Sourcevolution interview question

Few question about how to create a query,