Asana Interview Question

Solve SQL, think about this case