thinking about queries