Basic QueryEngine implementation.