generic data service for query path