added more complex queries