Amex Interior interview question

3 types of SQL queries