American Express interview question

Basic ML questions , technical SQL query intermediate, guesstimate