Improved syntax for previous queries