Question: What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : nationality (text) , pilot_id (number)


Question: Show the most common nationality of pilots.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : nationality (text) , pilot_id (number)


Question: Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : position (text) , join_year (number)


Question: Show the names of pilots and models of aircrafts they have flied with.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) | aircraft : model (text) , aircraft_id (number) | pilot_record : aircraft_id (number) , pilot_id (number)


Question: Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) , rank (number) | aircraft : fleet_series (text) , aircraft_id (number) | pilot_record : aircraft_id (number) , pilot_id (number)


Question: Show the fleet series of the aircrafts flied by pilots younger than 34

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

aircraft : fleet_series (text) , aircraft_id (number) | pilot_record : aircraft_id (number) , pilot_id (number) | pilot : pilot_id (number) , age (number)


Question: Show the names of pilots and the number of records they have.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) | pilot_record : pilot_id (number)


Question: Show names of pilots that have more than one record.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) | pilot_record : pilot_id (number)


Question: List the names of pilots that do not have any record.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) | pilot_record : pilot_id (number)


Question: What document status codes do we have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What is the description of document status code 'working'?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_status : document_status_description (text) , document_status_code (text)


Question: What document type codes do we have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What is the description of document type 'Paper'?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_types : document_type_description (text) , document_type_code (text)


Question: What are the shipping agent names?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_shipping_agents : shipping_agent_name (text)


Question: What is the shipping agent code of shipping agent UPS?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What are all role codes?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What is the description of role code ED?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

roles : role_description (text) , role_code (text)


Question: How many employees do we have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What is the role of the employee named Koby?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

roles : role_description (text) , role_code (text) | employees : role_code (text) , employee_name (text)


Question: List all document ids and receipt dates of documents.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_id (number) , receipt_date (time)


Question: How many employees does each role have? List role description, id and number of employees.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

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


Question: How many documents have the status code done?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_status_code (text) , document_id (number)


Question: List the document type code for the document with the id 2.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_type_code (text) , document_id (number)


Question: List the document ids for any documents with the status code done and the type code paper.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: How many documents were shipped by USPS?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_shipping_agents : shipping_agent_code (text) | documents : document_id (number)


Question: What is the receipt date of the document with id 3?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : receipt_date (time) , document_id (number)


Question: What address was the document with id 4 mailed to?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What is the mail date of the document with id 7?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents_mailed : mailing_date (time) , document_id (number)


Question: List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What is draft detail of the document with id 7?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

document_drafts : draft_details (text) , document_id (number)


Question: How many draft copies does the document with id 2 have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: Which document has the most draft copies? List its document id and number of draft copies.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

draft_copies : document_id (number) , copy_number (number)


Question: Which documents have more than 1 draft copies? List document id and number of draft copies.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: List the employees who have not showed up in any circulation history of documents. List the employee's name.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

employees : employee_id (number) | circulation_history : document_id (number)


Question: For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

circulation_history : document_id (number) , employee_id (number)


Question: List all department names ordered by their starting date.

works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)

department : dname (text) , mgr_start_date (text)


Question: find all dependent names who have a spouse relation with some employee.

works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)

dependent : dependent_name (text) , relationship (text)


Question: how many female dependents are there?

works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)


Question: Find the names of departments that are located in Houston.

works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)

department : dname (text) , dnumber (number) | dept_locations : dnumber (number) , dlocation (text)


Question: Return the first names and last names of employees who earn more than 30000 in salary.

works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)

employee : fname (text) , lname (text) , salary (number)


Question: Find the number of employees of each gender whose salary is lower than 50000.

works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)

employee : sex (text) , salary (number) , ssn (number)


Question: list the first and last names, and the addresses of all employees in the ascending order of their birth date.

works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)

employee : fname (text) , lname (text) , address (text) , bdate (text)


Question: what are the event details of the services that have the type code 'Marriage'?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

events : event_details (text) , service_id (number) | services : service_id (number) , service_type_code (text)


Question: What are the ids and details of events that have more than one participants?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

events : event_id (number) , event_details (text) | participants_in_events : event_id (number)


Question: How many events have each participants attended? List the participant id, type and the number.

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

participants : participant_id (number) , participant_type_code (text) | participants_in_events : participant_id (number) , event_id (number)


Question: What are all the the participant ids, type code and details?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)


Question: How many participants belong to the type 'Organizer'?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

participants : participant_type_code (text) , participant_id (number)


Question: List the type of the services in alphabetical order.

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)


Question: List the service id and details for the events.

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

events : service_id (number) , event_details (text)


Question: How many events had participants whose details had the substring 'Dr.'

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

participants : participant_id (number) , participant_details (text) | participants_in_events : participant_id (number) , event_id (number)


Question: What is the most common participant type?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

participants : participant_type_code (text) , participant_id (number)


Question: Which service id and type has the least number of participants?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

services : service_id (number) , service_type_code (text) | events : service_id (number) , event_id (number) | participants : participant_id (number) | participants_in_events : participant_id (number) , event_id (number)


Question: What is the id of the event with the most participants?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)


Question: Which events id does not have any participant with detail 'Kenyatta Kuhn'?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

events : event_id (number) | participants_in_events : event_id (number) , participant_id (number) | participants : participant_id (number) , participant_details (text)


Question: Which services type had both successful and failure event details?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

services : service_type_code (text) , service_id (number) | events : service_id (number) , event_details (text)


Question: How many events did not have any participants?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

events : event_id (number) | participants_in_events : event_id (number)


Question: What are all the distinct participant ids who attended any events?

services : service_id (number) , service_type_code (text) | participants : participant_id (number) , participant_type_code (text) , participant_details (text) | events : event_id (number) , service_id (number) , event_details (text) | participants_in_events : event_id (number) , participant_id (number)

participants_in_events : participant_id (number)


Question: What is the name of the race held most recently?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: What is the name of the race that occurred most recently?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: What is the name and date of the most recent race?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: What is the name and date of the race that occurred most recently?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: Find the names of all races held in 2017.

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: What are the names of all the races that occurred in the year 2017?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: Find the distinct names of all races held between 2014 and 2017?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: What are the unique names of all race held between 2014 and 2017?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)


Question: List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : forename (text) , surname (text) , driverid (number) | laptimes : driverid (number) , milliseconds (number)


Question: What are the forenames and surnames of all unique drivers who had a lap time of less than 93000 milliseconds?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : forename (text) , surname (text) , driverid (number) | laptimes : driverid (number) , milliseconds (number)


Question: Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : driverid (number) , nationality (text) | laptimes : driverid (number) , milliseconds (number)


Question: What are the different driver ids and nationalities of all drivers who had a laptime of more than 100000 milliseconds?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : driverid (number) , nationality (text) | laptimes : driverid (number) , milliseconds (number)


Question: What are the forename and surname of the driver who has the smallest laptime?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : forename (text) , surname (text) , driverid (number) | laptimes : driverid (number) , milliseconds (number)


Question: What is the forename and surname of the driver with the shortest laptime?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : forename (text) , surname (text) , driverid (number) | laptimes : driverid (number) , milliseconds (number)


Question: What is the id and family name of the driver who has the longest laptime?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : driverid (number) , surname (text) | laptimes : driverid (number) , milliseconds (number)


Question: What is the id and last name of the driver with the longest laptime?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : driverid (number) , surname (text) | laptimes : driverid (number) , milliseconds (number)


Question: What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : driverid (number) , forename (text) , surname (text) | laptimes : driverid (number) , position (number) , raceid (number)


Question: What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

drivers : driverid (number) , forename (text) , surname (text) | laptimes : driverid (number) , position (number) , raceid (number)


Question: How many drivers participated in the race Australian Grand Prix held in 2009?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

races : raceid (number) , name (text) , year (number) | results : raceid (number) , resultid (number)


Question: How many drivers were in the Australian Grand Prix held in 2009?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

races : raceid (number) , name (text) , year (number) | results : raceid (number) , resultid (number)


Question: How many drivers did not participate in the races held in 2009?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

results : driverid (number) , raceid (number) | races : raceid (number) , year (number)


Question: How many drivers did not race in 2009?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

results : driverid (number) , raceid (number) | races : raceid (number) , year (number)


Question: Give me a list of names and years of races that had any driver whose forename is Lewis?

circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)

races : name (text) , year (number) , raceid (number) | results : raceid (number) , driverid (number) | drivers : driverid (number) , forename (text)