Question: What is the type of the organization with the most research 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

organisations : organisation_type (text) , organisation_id (number) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described

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

documents : sent_date (time) , grant_id (number) , document_id (number) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: What are the send dates for all documents that have a grant amount of more than 5000 and are involved in research?

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

documents : sent_date (time) , grant_id (number) , document_id (number) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: What are the response received dates for the documents described as 'Regular' or granted with more than 100?

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

documents : response_received_date (time) , document_type_code (text) , grant_id (number) , document_id (number) | document_types : document_type_code (text) , document_description (text) | grants : grant_id (number) , grant_amount (number)


Question: What is the response received date for the document described as Regular that was granted more than 100 dollars?

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

documents : response_received_date (time) , document_type_code (text) , grant_id (number) , document_id (number) | document_types : document_type_code (text) , document_description (text) | grants : grant_id (number) , grant_amount (number)


Question: List the project details of the projects which did not hire any staff for a researcher role.

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) | project_staff : project_id (number) , role_code (text) , staff_id (number)


Question: What are the details for all projects that did not hire any staff in a research role?

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) | project_staff : project_id (number) , role_code (text) , staff_id (number)


Question: What are the task details, task id and project id for the projects which are detailed as 'omnis' or  have more than 2 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

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


Question: What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 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

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


Question: When do all the researcher role staff start to work, and when do they stop working?

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 : date_from (time) , date_to (time) , role_code (text) , staff_id (number)


Question: When did researchers start and stop working?

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 : date_from (time) , date_to (time) , role_code (text) , staff_id (number)


Question: How many kinds of roles are there 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 different roles are there on the project 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 total amount of grants given by each organisations? Also list the organisation id.

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

grants : grant_amount (number) , organisation_id (number) , grant_id (number)


Question: What is the total amount of grant money given to each organization and what is its id?

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

grants : grant_amount (number) , organisation_id (number) , grant_id (number)


Question: List the project details of the projects with the research outcome described with the substring 'Published'.

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) | project_outcomes : project_id (number) , outcome_code (text) | research_outcomes : outcome_code (text) , outcome_description (text)


Question: What are the details for the project whose research has been published?

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) | project_outcomes : project_id (number) , outcome_code (text) | research_outcomes : outcome_code (text) , outcome_description (text)


Question: How many staff does each project has? List the project id and the number 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

project_staff : project_id (number) , staff_id (number) | projects : project_id (number)


Question: For each project id, how many staff does it have? List them in increasing 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

project_staff : project_id (number) , staff_id (number) | projects : project_id (number)


Question: What is the complete description of the researcher role.

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

staff_roles : role_description (text) , role_code (text)


Question: What is the complete description of the job of a researcher?

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

staff_roles : role_description (text) , role_code (text)


Question: When did the first staff for the projects started working?

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 : date_from (time) , staff_id (number)


Question: When did the first staff member start working?

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 : date_from (time) , staff_id (number)


Question: Which project made the most number of outcomes? List the project details and the project id.

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) | project_outcomes : project_id (number)


Question: What are the details and id of the project with the most 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

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number)


Question: Which projects have no outcome? List the project details.

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) | project_outcomes : project_id (number)


Question: What are the details of the project with no 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

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number)


Question: Which organisation hired the most number of research staff? List the organisation id, type and 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

organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: What are the ids, types, and details of the organization with the most research 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

organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: Show the role description and the id of the project staff involved in most number of 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

staff_roles : role_description (text) , role_code (text) | project_staff : staff_id (number) , role_code (text) , project_id (number) | project_outcomes : project_id (number)


Question: For each staff id, what is the description of the role that is involved with the most number of 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

staff_roles : role_description (text) , role_code (text) | project_staff : staff_id (number) , role_code (text) , project_id (number) | project_outcomes : project_id (number)


Question: Which document type is described with the prefix 'Initial'?

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 type of the document whose description starts with the word 'Initial'?

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: For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.

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

grants : grant_start_date (time) , grant_id (number) | documents : grant_id (number) , document_type_code (text) , document_id (number) | document_types : document_type_code (text) , document_description (text)


Question: For grants that have descriptions of Regular and Initial Applications, what are their start dates?

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

grants : grant_start_date (time) , grant_id (number) | documents : grant_id (number) , document_type_code (text) , document_id (number) | document_types : document_type_code (text) , document_description (text)


Question: How many documents can one grant have at most? List the grant id and number.

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

documents : grant_id (number) , document_id (number)


Question: For each grant id, how many documents does it have, and which one has the most?

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

documents : grant_id (number) , document_id (number)


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) , organisation_id (number)


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) , organisation_id (number)


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_id (number) | 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_id (number) | 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

project_staff : date_to (time) , staff_id (number)


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

project_staff : date_to (time) , staff_id (number)


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

research_staff : staff_details (text) , staff_id (number)


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

research_staff : staff_details (text) , staff_id (number)


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) , staff_id (number)


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) , staff_id (number)


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)

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


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)

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


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)

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


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)

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


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) , name (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) , name (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)

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


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)

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


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)