Fix boundary issues for local names.
Add support for CONSTRUCT WHERE queries.
Order tests by query name.
Simplify unionAll calls.