Added query for a report