group query for doctor and schedule level information

group query for doctor and schedule level information