Tredence interview question

Puzzles, SQL and guesstimate questions?