added new subapi for summary queries