A simple query engine that allows for multiple return types.