thinking about nested queries