Mu Sigma Interview Question

Q. Maths puzzle, SQL queries ?