Fi Money interview question

Do you know sql. Answer this query