First crack at a query engine.