adding third query and summary report