WIP: wire up some of the query functionality in coordinator and create query spec object in parser.