getQueryResult only if query.data_source_id exists