now query runs on endpoint directly