Question: What is the role with the smallest number of employees? Find the role codes.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : role_code (text) , employee_id (number)


Question: What is the role name and role description for employee called Ebba?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

roles : role_name (text) , role_description (text) , role_code (text) | employees : role_code (text) , employee_name (text) , employee_id (number)


Question: Show the name and description of the role played by the employee named Ebba.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

roles : role_name (text) , role_description (text) , role_code (text) | employees : role_code (text) , employee_name (text) , employee_id (number)


Question: Show the names of employees with role name Editor.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_name (text) , role_code (text) , employee_id (number) | roles : role_code (text) , role_name (text)


Question: Find the names of all the employees whose the role name is "Editor".

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_name (text) , role_code (text) , employee_id (number) | roles : role_code (text) , role_name (text)


Question: Show the employee ids for all employees with role name "Human Resource" or "Manager".

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_id (number) , role_code (text) | roles : role_code (text) , role_name (text)


Question: What are the employee ids of the employees whose role name is "Human Resource" or "Manager"?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_id (number) , role_code (text) | roles : role_code (text) , role_name (text)


Question: What are the different location codes for documents?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: Give me all the distinct location codes for documents.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: Show the location name for document "Robin CV".

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

ref_locations : location_name (text) , location_code (text) | all_documents : document_id (number) , document_name (text) | document_locations : document_id (number) , location_code (text)


Question: What is the location name of the document "Robin CV"?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

ref_locations : location_name (text) , location_code (text) | all_documents : document_id (number) , document_name (text) | document_locations : document_id (number) , location_code (text)


Question: Show the location code, the starting date and ending data in that location for all the documents.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) , document_id (number)


Question: What are each document's location code, and starting date and ending data in that location?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) , document_id (number)


Question: What is "the date in location from" and "the date in location to" for the document with name "Robin CV"?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : date_in_location_from (time) , date_in_locaton_to (time) , document_id (number) | all_documents : document_id (number) , document_name (text)


Question: Find the starting date and ending data in location for the document named "Robin CV".

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : date_in_location_from (time) , date_in_locaton_to (time) , document_id (number) | all_documents : document_id (number) , document_name (text)


Question: Show the location codes and the number of documents in each location.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: What is the code of each location and the number of documents in that location?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: What is the location code with the most documents?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: Find the code of the location with the largest number of documents.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: Show the location codes with at least 3 documents.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: What are the codes of the locations with at least three documents?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

document_locations : location_code (text) , document_id (number)


Question: Show the location name and code with the least documents.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

ref_locations : location_name (text) , location_code (text) | document_locations : location_code (text) , document_id (number)


Question: What are the name and code of the location with the smallest number of documents?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

ref_locations : location_name (text) , location_code (text) | document_locations : location_code (text) , document_id (number)


Question: What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_name (text) , employee_id (number) | documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , document_id (number)


Question: List the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_name (text) , employee_id (number) | documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , document_id (number)


Question: Show the id of each employee and the number of document destruction authorised by that employee.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , document_id (number)


Question: What are the id of each employee and the number of document destruction authorised by that employee?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , document_id (number)


Question: Show the employee ids and the number of documents destroyed by each employee.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destroyed_by_employee_id (number) , document_id (number)


Question: What are the id of each employee and the number of document destroyed by that employee?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destroyed_by_employee_id (number) , document_id (number)


Question: Show the ids of the employees who don't authorize destruction for any document.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_id (number) | documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , document_id (number)


Question: Which employees do not authorize destruction for any document? Give me their employee ids.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_id (number) | documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , document_id (number)


Question: Show the ids of all employees who have authorized destruction.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , document_id (number)


Question: What are the ids of all the employees who authorize document destruction?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destruction_authorised_by_employee_id (number) , document_id (number)


Question: Show the ids of all employees who have destroyed a document.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destroyed_by_employee_id (number) , document_id (number)


Question: What are the ids of all the employees who have destroyed documents?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destroyed_by_employee_id (number) , document_id (number)


Question: Show the ids of all employees who don't destroy any document.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_id (number) | documents_to_be_destroyed : destroyed_by_employee_id (number) , document_id (number)


Question: Which employees do not destroy any document? Find their employee ids.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

employees : employee_id (number) | documents_to_be_destroyed : destroyed_by_employee_id (number) , document_id (number)


Question: Show the ids of all employees who have either destroyed a document or made an authorization to do this.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destroyed_by_employee_id (number) , destruction_authorised_by_employee_id (number) , document_id (number)


Question: Which employees have either destroyed a document or made an authorization to do so? Return their employee ids.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)

documents_to_be_destroyed : destroyed_by_employee_id (number) , destruction_authorised_by_employee_id (number) , document_id (number)


Question: How many clubs are there?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)


Question: Count the total number of clubs.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)


Question: What are the names of all clubs?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number)


Question: Give me the name of each club.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number)


Question: How many students are there?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)


Question: Count the total number of students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)


Question: What are the first names of all the students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)


Question: Find each student's first name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)


Question: Find the last names of the members of the club "Bootup Baltimore".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Who are the members of the club named "Bootup Baltimore"? Give me their last names.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Who are the members of the club named "Hopkins Student Enterprises"? Show the last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Return the last name for the members of the club named "Hopkins Student Enterprises".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: How many members does the club "Tennis Club" has?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: Count the members of the club "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: Find the number of members of club "Pen and Paper Gaming".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: How many people have membership in the club "Pen and Paper Gaming"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: How many clubs does "Linda Smith" belong to?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: How many clubs does "Linda Smith" have membership for?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: Find the number of clubs where "Tracy Kim" is a member.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: For how many clubs is "Tracy Kim" a member?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: Find all the female members of club "Bootup Baltimore". Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Give me the first name and last name for all the female members of the club "Bootup Baltimore".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: What are the first name and last name of each male member in club "Hopkins Student Enterprises"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , major (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Which members of "Bootup Baltimore" major in "600"? Give me their first names and last names.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , major (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Which club has the most members majoring in "600"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , major (number)


Question: Find the club which has the largest number of members majoring in "600".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , major (number)


Question: Find the name of the club that has the most female students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , sex (text)


Question: Which club has the most female students as their members? Give me the name of the club.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , sex (text)


Question: What is the description of the club named "Tennis Club"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text) , clubid (number)


Question: Find the description of the club called "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text) , clubid (number)


Question: Find the description of the club "Pen and Paper Gaming".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text) , clubid (number)


Question: What is the description of the club "Pen and Paper Gaming"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text) , clubid (number)


Question: What is the location of the club named "Tennis Club"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text) , clubid (number)


Question: Where us the club named "Tennis Club" located?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text) , clubid (number)


Question: Find the location of the club "Pen and Paper Gaming".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text) , clubid (number)


Question: Where is the club "Pen and Paper Gaming" located?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text) , clubid (number)


Question: Where is the club "Hopkins Student Enterprises" located?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text) , clubid (number)


Question: Tell me the location of the club "Hopkins Student Enterprises".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text) , clubid (number)


Question: Find the name of all the clubs at "AKW".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clublocation (text) , clubid (number)


Question: Which clubs are located at "AKW"? Return the club names.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clublocation (text) , clubid (number)


Question: How many clubs are located at "HHH"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubid (number)


Question: Count the number of clubs located at "HHH".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubid (number)


Question: What are the first and last name of the president of the club "Bootup Baltimore"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: Who is the president of the club "Bootup Baltimore"? Give me the first and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: Find the first name and last name for the "CTO" of the club "Hopkins Student Enterprises"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: How many different roles are there in the club "Bootup Baltimore"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

member_of_club : position (text) , clubid (number) | club : clubid (number) , clubname (text)


Question: Count the number of different positions in the club "Bootup Baltimore".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

member_of_club : position (text) , clubid (number) | club : clubid (number) , clubname (text)


Question: How many members of "Bootup Baltimore" are older than 18?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: Count the number of members in club "Bootup Baltimore" whose age is above 18.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: How many members of club "Bootup Baltimore" are younger than 18?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: Count the number of members in club "Bootup Baltimore" whose age is below 18.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: Find the names of all the clubs that have at least a member from the city with city code "BAL".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: Which clubs have one or more members from the city with code "BAL"? Give me the names of the clubs.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: Find the names of the clubs that have at least a member from the city with city code "HOU".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: Which clubs have one or more members from the city with code "HOU"? Give me the names of the clubs.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: How many clubs does the student named "Eric Tai" belong to?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: Count the number of clubs for which the student named "Eric Tai" is a member.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: List the clubs having "Davis Steven" as a member.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: What are the names of the clubs that have "Davis Steven" as a member?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: List the clubs that have at least a member with advisor "1121".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , advisor (number)


Question: Which clubs have one or more members whose advisor is "1121"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , advisor (number)


Question: What is the average age of the members of the club "Bootup Baltimore"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find the average age of the members in the club "Bootup Baltimore".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find the average age of members of the club "Hopkins Student Enterprises".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: On average, how old are the members in the club "Hopkins Student Enterprises"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Retrieve the average age of members of the club "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Compute the average age of the members in the club "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?

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) , grant_id (number) , grant_end_date (time) | documents : grant_id (number) , sent_date (time) , document_id (number)


Question: What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?

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) , grant_id (number) , grant_end_date (time) | documents : grant_id (number) , sent_date (time) , document_id (number)


Question: List the project details of the project both producing patent and paper as 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) , outcome_code (text)


Question: What are the details of the project that is producing both patents and papers as 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) , outcome_code (text)


Question: What is the total grant amount of the organisations described as 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

grants : grant_amount (number) , organisation_id (number) , grant_id (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: What is the total amount of grant money for 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

grants : grant_amount (number) , organisation_id (number) , grant_id (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: List from which date and to which date these staff work: project staff of the project which hires the most staffs

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


Question: From what date and to what date do the staff work on a project that has the most staff and has staff in a leader 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

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


Question: Find the organisation ids and details of the organisations which are involved in

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 : organisation_id (number) , grant_amount (number) , grant_id (number) | organisations : organisation_id (number) , organisation_details (text)


Question: What are the ids and details for all organizations that have grants of more than 6000 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

grants : organisation_id (number) , grant_amount (number) , grant_id (number) | organisations : organisation_id (number) , organisation_details (text)


Question: What is the organisation type and id of the organisation which has the most number of 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: What is the type and id of the organization that has 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: Which organisation type hires 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)