Nested queries demo