TD interview question

SQL Querying on live screen share