IBM Interview Question

to write queries i forgot the exact question