added abstract query to core-api