introduce adapter for query object.