4a. Advanced work with queries