Question: Find the organisation type description of the organisation detailed as 'quo'.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisation_types : organisation_type_description (text) , organisation_type (text) | organisations : organisation_type (text) , organisation_details (text)


Question: What is the type description of the organization whose detail is listed as 'quo'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisation_types : organisation_type_description (text) , organisation_type (text) | organisations : organisation_type (text) , organisation_details (text)


Question: What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_details (text) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: What are the details of all organizations that are described as Sponsors and sort the results in ascending order?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_details (text) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: How many Patent outcomes are generated from all the projects?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: How many patents outcomes were listed for all the projects?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : role_code (text) , date_from (time) , staff_id (number)


Question: How many project members were leaders or started working before '1989-04-24 23:51:54'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : role_code (text) , date_from (time) , staff_id (number)


Question: What is the last date of the staff leaving the projects?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: What is the last date that a staff member left a project?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: What are the result description of the project whose detail is 'sint'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

research_outcomes : outcome_description (text) , outcome_code (text) | project_outcomes : outcome_code (text) , project_id (number) | projects : project_id (number) , project_details (text)


Question: What is the description for the results whose project detail is 'sint'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

research_outcomes : outcome_description (text) , outcome_code (text) | project_outcomes : outcome_code (text) , project_id (number) | projects : project_id (number) , project_details (text)


Question: List the organisation id with the maximum outcome count, and the count.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : organisation_id (number) , project_id (number) | project_outcomes : project_id (number)


Question: What is the id of the organization with the maximum number of outcomes and how many outcomes are there?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : organisation_id (number) , project_id (number) | project_outcomes : project_id (number)


Question: List the project details of the projects launched by the organisation

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , organisation_id (number) , project_id (number)


Question: What are the details for the projects which were launched by the organization with the most projects?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , organisation_id (number) , project_id (number)


Question: List the research staff details, and order in ascending order.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: What details are there on the research staff? List the result in ascending alphabetical order.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: How many tasks are there in total?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: How many tasks are there?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: How many tasks does each project have? List the task count and the project detail.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | tasks : project_id (number) , task_id (number)


Question: For each project id, how many tasks are there?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | tasks : project_id (number) , task_id (number)


Question: What are the staff roles of the staff who

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : role_code (text) , date_from (time) , date_to (time)


Question: What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : role_code (text) , date_from (time) , date_to (time)


Question: What are the descriptions of all the project outcomes?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

research_outcomes : outcome_description (text) , outcome_code (text) | project_outcomes : outcome_code (text)


Question: List the description of the outcomes for all projects.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

research_outcomes : outcome_description (text) , outcome_code (text) | project_outcomes : outcome_code (text)


Question: Which role is most common for the staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : role_code (text) , staff_id (number)


Question: What is the most common role for the staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : role_code (text) , staff_id (number)


Question: How many friends does Dan have?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text)


Question: How many friends does Dan have?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text)


Question: How many females does this network has?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How many females are in the network?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What is the average age for all person?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What is the average age for all people in the table?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How many different cities are they from?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How many different cities do people originate from?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How many type of jobs do they have?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How many different jobs are listed?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Who is the oldest person?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What is the name of the person who is the oldest?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Who is the oldest person whose job is student?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , job (text) , age (number)


Question: What is the name of the oldest student?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , job (text) , age (number)


Question: Who is the youngest male?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , gender (text) , age (number)


Question: What is the name of the youngest male?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , gender (text) , age (number)


Question: How old is the doctor named Zach?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , name (text)


Question: What is the age of the doctor named Zach?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , name (text)


Question: Who is the person whose age is below 30?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What is the name of the person whose age is below 30?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How many people whose age is greater 30 and job is engineer?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , name (text)


Question: HOw many engineers are older than 30?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , name (text)


Question: What is the average age for each gender?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How old is each gender, on average?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What is average age for different job title?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How old is the average person for each job?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What is average age of male for different job title?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , gender (text)


Question: What is the average age for a male in each job?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , gender (text)


Question: What is minimum age for different job title?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: How old is the youngest person for each job?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Find the number of people who is under 40 for each gender.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : gender (text) , age (number) , name (text)


Question: How many people are under 40 for each gender?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : gender (text) , age (number) , name (text)


Question: Find the name of people whose age is greater than any engineer sorted by their age.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) , job (text)


Question: What is the name of all the people who are older than at least one engineer? Order them by age.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) , job (text)


Question: Find the number of people whose age is greater than all engineers.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , name (text)


Question: How many people are older than every engineer?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , job (text) , name (text)


Question: list the name, job title of all people ordered by their names.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What are the names and job titles of every person ordered alphabetically by name?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Find the names of all person sorted in the descending order using age.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What are the names of everybody sorted by age in descending order?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Find the name and age of all males in order of their age.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , gender (text) , age (number)


Question: What is the name and age of every male? Order the results by age.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , gender (text) , age (number)


Question: Find the name and age of the person who is a friend of both Dan and Alice.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: What are the names and ages of every person who is a friend of both Dan and Alice?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: Find the name and age of the person who is a friend of Dan or Alice.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: What are the different names and ages of every friend of either Dan or alice?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: Find the name of the person who has friends with age above 40 and under age 30?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: What are the names of every person who has a friend over 40 and under 30?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: Find the name of the person who has friends with age above 40 but not under age 30?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: What are the names of the people who are older 40 but no friends under age 30?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: Find the name of the person who has no student friends.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , job (text) | personfriend : name (text) , friend (text)


Question: What are the names of the people who have no friends who are students?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , job (text) | personfriend : name (text) , friend (text)


Question: Find the person who has exactly one friend.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What are the names of everybody who has exactly one friend?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Who are the friends of Bob?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text)


Question: Who are Bob's friends?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text)


Question: Find the name of persons who are friends with Bob.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) | personfriend : name (text) , friend (text)


Question: What are the names of all of Bob's friends?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) | personfriend : name (text) , friend (text)


Question: Find the names of females who are friends with Zach

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , gender (text) | personfriend : name (text) , friend (text)


Question: What are the names of all females who are friends with Zach?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , gender (text) | personfriend : name (text) , friend (text)


Question: Find the female friends of Alice.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text) , gender (text)


Question: What are all the friends of Alice who are female?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text) , gender (text)


Question: Find the male friend of Alice whose job is a doctor?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text) , gender (text) , job (text)


Question: Who are the friends of Alice that are doctors?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) | person : name (text) , gender (text) , job (text)


Question: Who has a friend that is from new york city?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , city (text) | personfriend : name (text) , friend (text)


Question: What are the names of all friends who are from New York?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , city (text) | personfriend : name (text) , friend (text)


Question: Who has friends that are younger than the average age?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: What are the different names of friends who are younger than the average age for a friend?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: Who has friends that are older than the average age? Print their friends and their ages as well

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: Whare the names, friends, and ages of all people who are older than the average age of a person?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: Who is the friend of Zach with longest year relationship?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) , year (number)


Question: Which friend of Zach has the longest-lasting friendship?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

personfriend : friend (text) , name (text) , year (number)


Question: What is the age of the friend of Zach with longest year relationship?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , name (text) | personfriend : name (text) , friend (text) , year (number)


Question: What are the ages of all of Zach's friends who are in the longest relationship?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : age (number) , name (text) | personfriend : name (text) , friend (text) , year (number)


Question: Find the name of persons who are friends with Alice for the shortest years.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What are the names of all people who are friends with Alice for the shortest amount of time?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Find the name, age, and job title of persons who are friends with Alice for the longest years.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) , job (text) | personfriend : name (text) , friend (text) , year (number)


Question: Who is the person that has no friend?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) | personfriend : name (text)


Question: What are the names of all people who do not have friends?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) | personfriend : name (text)


Question: Which person whose friends have the oldest average age?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: What is the name of the person who has the oldest average age for their friends, and what is that average age?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , age (number) | personfriend : name (text) , friend (text)


Question: What is the total number of people who has no friend living in the city of Austin.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , city (text) | personfriend : name (text) , friend (text)


Question: What is the total number of people who have no friends living in Austin?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) , city (text) | personfriend : name (text) , friend (text)


Question: Find Alice's friends of friends.

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) | personfriend : name (text) , friend (text)


Question: What are the names of all of Alice's friends of friends?

person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)

person : name (text) | personfriend : name (text) , friend (text)


Question: How many members are there?

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)


Question: List the names of members in ascending alphabetical order.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)


Question: What are the names and countries of members?

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)


Question: Show the names of members whose country is "United States" or "Canada".

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)


Question: Show the different countries and the number of members from each.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

member : country (text) , member_id (number)


Question: Show the most common country across members.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

member : country (text) , member_id (number)


Question: Which countries have more than two members?

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

member : country (text) , member_id (number)


Question: Show the leader names and locations of colleges.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

college : leader_name (text) , college_location (text)


Question: Show the names of members and names of colleges they go to.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

college : name (text) , college_id (number) | member : name (text) , college_id (number)


Question: Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

college : name (text) , college_location (text) , college_id (number) | member : name (text) , college_id (number)


Question: Show the distinct leader names of colleges associated with members from country "Canada".

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

college : leader_name (text) , college_id (number) | member : college_id (number) , country (text)


Question: Show the names of members and the decoration themes they have.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

member : name (text) , member_id (number) | round : decoration_theme (text) , member_id (number)


Question: Show the names of members that have a rank in round higher than 3.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

member : name (text) , member_id (number) | round : member_id (number) , rank_in_round (number)


Question: Show the names of members in ascending order of their rank in rounds.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

member : name (text) , member_id (number) | round : member_id (number) , rank_in_round (number)


Question: List the names of members who did not participate in any round.

college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)

member : name (text) , member_id (number) | round : member_id (number)


Question: Find the name and access counts of all documents, in alphabetic order of the document name.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , access_count (number)


Question: What are the names of all the documents, as well as the access counts of each, ordered alphabetically?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , access_count (number)


Question: Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , access_count (number)


Question: What is the name of the document which has been accessed the most times, as well as the number of times it has been accessed?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , access_count (number)


Question: Find the types of documents with more than 4 documents.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_type_code (text) , document_code (text)


Question: What are the codes of types of documents of which there are for or more?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_type_code (text) , document_code (text)


Question: Find the total access count of all documents in the most popular document type.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : access_count (number) , document_type_code (text) , document_code (text)


Question: What is the total access count of documents that are of the most common document type?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : access_count (number) , document_type_code (text) , document_code (text)


Question: What is the average access count of documents?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)


Question: Find the average access count across all documents?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)


Question: What is the structure of the document with the least number of accesses?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

document_structures : document_structure_description (text) , document_structure_code (text) | documents : document_structure_code (text) , document_code (text)


Question: Return the structure description of the document that has been accessed the fewest number of times.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

document_structures : document_structure_description (text) , document_structure_code (text) | documents : document_structure_code (text) , document_code (text)


Question: What is the type of the document named "David CV"?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_type_code (text) , document_name (text)


Question: Return the type code of the document named "David CV".

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_type_code (text) , document_name (text)


Question: Find the list of documents that are both in the most three popular type and have the most three popular structure.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , document_type_code (text) , document_structure_code (text) , document_code (text)


Question: What are the names of documents that have both one of the three most common types and one of three most common structures?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , document_type_code (text) , document_structure_code (text) , document_code (text)


Question: What document types do have more than 10000 total access number.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_type_code (text) , access_count (number)


Question: Return the codes of the document types that do not have a total access count of over 10000.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_type_code (text) , access_count (number)


Question: What are all the section titles of the document named "David CV"?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

document_sections : section_title (text) , document_code (text) | documents : document_code (text) , document_name (text)


Question: Give the section titles of the document with the name "David CV".

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

document_sections : section_title (text) , document_code (text) | documents : document_code (text) , document_name (text)


Question: Find all the name of documents without any sections.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , document_code (text) | document_sections : document_code (text)


Question: What are the names of documents that do not have any sections?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , document_code (text) | document_sections : document_code (text)


Question: List all the username and passwords of users with the most popular role.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

users : user_name (text) , password (text) , role_code (text) , user_id (number)


Question: What are the usernames and passwords of users that have the most common role?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

users : user_name (text) , password (text) , role_code (text) , user_id (number)


Question: Find the average access counts of documents with functional area "Acknowledgement".

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : access_count (number) , document_code (text) | document_functional_areas : document_code (text) , functional_area_code (text) | functional_areas : functional_area_code (text) , functional_area_description (text)


Question: What are the average access counts of documents that have the functional area description "Acknowledgement"?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : access_count (number) , document_code (text) | document_functional_areas : document_code (text) , functional_area_code (text) | functional_areas : functional_area_code (text) , functional_area_description (text)


Question: Find names of the document without any images.

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , document_code (text) | document_sections : document_code (text) , section_id (number) | document_sections_images : section_id (number)


Question: What are the names of documents that do not have any images?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , document_code (text) | document_sections : document_code (text) , section_id (number) | document_sections_images : section_id (number)


Question: What is the name of the document with the most number of sections?

roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)

documents : document_name (text) , document_code (text) | document_sections : document_code (text) , section_id (number)