how to make this query?

Printable View