Revolut interview question

Just some simple SQL queries