Question: What is the first name of all employees who do not give any lessons?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , staff_id (number) | lessons : staff_id (number)


Question: What is the id and detail of the vehicle used in lessons for most of the times?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

vehicles : vehicle_id (number) , vehicle_details (text) | lessons : vehicle_id (number) , lesson_id (number)


Question: How many faculty do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: What is the total number of faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: What ranks do we have for faculty?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Find the list of distinct ranks for faculty.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show all the distinct buildings that have faculty rooms.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: What buildings have faculty offices?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show the rank, first name, and last name for all the faculty.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , fname (text) , lname (text)


Question: What are the rank, first name, and last name of the faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , fname (text) , lname (text)


Question: Show the first name, last name, and phone number for all female faculty members.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , phone (number) , sex (text)


Question: What are the first name, last name, and phone number of all the female faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , phone (number) , sex (text)


Question: Show ids for all the male faculty.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: What are the faculty ids of all the male faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: How many female Professors do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : sex (text) , rank (text) , facid (number)


Question: Count the number of female Professors we have.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : sex (text) , rank (text) , facid (number)


Question: Show the phone, room, and building for the faculty named Jerry Prince.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : phone (number) , room (text) , building (text) , fname (text) , lname (text)


Question: What are the phone, room, and building of the faculty member called Jerry Prince?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : phone (number) , room (text) , building (text) , fname (text) , lname (text)


Question: How many Professors are in building NEB?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , building (text) , facid (number)


Question: Count the number of Professors who have office in building NEB.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , building (text) , facid (number)


Question: Show the first name and last name for all the instructors.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , rank (text)


Question: What are the first name and last name of all the instructors?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , rank (text)


Question: Show all the buildings along with the number of faculty members the buildings have.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: How many faculty members does each building have? List the result with the name of the building.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: Which building has most faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: Find the building that has the largest number of faculty members.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: Show all the buildings that have at least 10 professors.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , rank (text) , facid (number)


Question: In which buildings are there at least ten professors?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , rank (text) , facid (number)


Question: For each faculty rank, show the number of faculty members who have it.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: How many faculty members do we have for each faculty rank?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show all the ranks and the number of male and female faculty for each rank.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , sex (text) , facid (number)


Question: How many faculty members do we have for each rank and gender?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , sex (text) , facid (number)


Question: Which rank has the smallest number of faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Find the faculty rank that has the least members.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show the number of male and female assistant professors.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : sex (text) , rank (text) , facid (number)


Question: How many male and female assistant professors do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : sex (text) , rank (text) , facid (number)


Question: What are the first name and last name of Linda Smith's advisor?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , advisor (number) | faculty : fname (text) , lname (text) , facid (number)


Question: Who is the advisor of Linda Smith? Give me the first name and last name.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , advisor (number) | faculty : fname (text) , lname (text) , facid (number)


Question: Show the ids of students whose advisors are professors.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : stuid (number) , advisor (number) | faculty : facid (number) , rank (text)


Question: Which students have professors as their advisors? Find their student ids.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : stuid (number) , advisor (number) | faculty : facid (number) , rank (text)


Question: Show first name and last name for all the students advised by Michael Goodrich.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , advisor (number) | faculty : fname (text) , lname (text) , facid (number)


Question: Which students are advised by Michael Goodrich? Give me their first and last names.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , advisor (number) | faculty : fname (text) , lname (text) , facid (number)


Question: Show the faculty id of each faculty member, along with the number of students he or she advises.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : facid (number) | student : advisor (number) , stuid (number)


Question: What are the faculty id and the number of students each faculty has?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : facid (number) | student : advisor (number) , stuid (number)


Question: Show all the faculty ranks and the number of students advised by each rank.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , facid (number) | student : advisor (number) , stuid (number)


Question: How many students are advised by each rank of faculty? List the rank and the number of students.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , facid (number) | student : advisor (number) , stuid (number)


Question: What are the first and last name of the faculty who has the most students?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , advisor (number) , stuid (number) | faculty : fname (text) , lname (text) , facid (number)


Question: Give me the the first and last name of the faculty who advises the most students.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , advisor (number) , stuid (number) | faculty : fname (text) , lname (text) , facid (number)


Question: Show the ids for all the faculty members who have at least 2 students.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : facid (number) | student : advisor (number) , stuid (number)


Question: Which faculty members advise two ore more students? Give me their faculty ids.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : facid (number) | student : advisor (number) , stuid (number)


Question: Show ids for the faculty members who don't advise any student.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : facid (number) | student : advisor (number)


Question: What are the ids of the faculty members who do not advise any student.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : facid (number) | student : advisor (number)


Question: What activities do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: List all the activities we have.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: How many activities do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Find the number of activities available.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: How many faculty members participate in an activity?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Give me the number of faculty members who participate in an activity

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show the ids of the faculty who don't participate in any activity.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | faculty : facid (number)


Question: Which faculty do not participate in any activity? Find their faculty ids.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | faculty : facid (number)


Question: Show the ids of all the faculty members who participate in an activity and advise a student.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | student : advisor (number)


Question: What are ids of the faculty members who not only participate in an activity but also advise a student.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | student : advisor (number)


Question: How many activities does Mark Giuliano participate in?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | faculty : facid (number) , fname (text) , lname (text)


Question: Find the number of activities Mark Giuliano is involved in.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | faculty : facid (number) , fname (text) , lname (text)


Question: Show the names of all the activities Mark Giuliano participates in.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | faculty_participates_in : facid (number) , actid (number) | faculty : facid (number) , fname (text) , lname (text)


Question: What are the names of the activities Mark Giuliano is involved in

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | faculty_participates_in : facid (number) , actid (number) | faculty : facid (number) , fname (text) , lname (text)


Question: Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , facid (number) | faculty_participates_in : facid (number)


Question: What is the first and last name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , facid (number) | faculty_participates_in : facid (number)


Question: Show all the activity names and the number of faculty involved in each activity.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | faculty_participates_in : actid (number)


Question: How many faculty members participate in each activity? Return the activity names and the number of faculty members.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | faculty_participates_in : actid (number)


Question: What is the first and last name of the faculty participating in the most activities?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , facid (number) | faculty_participates_in : facid (number)


Question: Find the first and last name of the faculty who is involved in the largest number of activities.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : fname (text) , lname (text) , facid (number) | faculty_participates_in : facid (number)


Question: What is the name of the activity that has the most faculty members involved in?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | faculty_participates_in : actid (number)


Question: Which activity has the most faculty members participating in? Find the activity name.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | faculty_participates_in : actid (number)


Question: Show the ids of the students who don't participate in any activity.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

participates_in : stuid (number) | student : stuid (number)


Question: What are the ids of the students who are not involved in any activity

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

participates_in : stuid (number) | student : stuid (number)


Question: Show the ids for all the students who participate in an activity and are under 20.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

participates_in : stuid (number) | student : stuid (number) , age (number)


Question: What are the ids of the students who are under 20 years old and are involved in at least one activity.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

participates_in : stuid (number) | student : stuid (number) , age (number)


Question: What is the first and last name of the student participating in the most activities?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , stuid (number) | participates_in : stuid (number)


Question: Tell me the first and last name of the student who has the most activities.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , stuid (number) | participates_in : stuid (number)


Question: What is the name of the activity with the most students?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | participates_in : actid (number)


Question: Find the name of the activity that has the largest number of student participants.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

activity : activity_name (text) , actid (number) | participates_in : actid (number)


Question: Find the first names of the faculty members who are playing Canoeing or Kayaking.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : lname (text) , facid (number) | faculty_participates_in : facid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : lname (text) , facid (number) | faculty_participates_in : facid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: Find the first names of professors who are not playing Canoeing or Kayaking.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : lname (text) , rank (text) , facid (number) | faculty_participates_in : facid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: What are the first names of the professors who do not play Canoeing or Kayaking as activities?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : lname (text) , rank (text) , facid (number) | faculty_participates_in : facid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: Find the first names of the faculty members who participate in Canoeing and Kayaking.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : lname (text) , facid (number) | faculty_participates_in : facid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: What are the first names of the faculty members playing both Canoeing and Kayaking?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : lname (text) , facid (number) | faculty_participates_in : facid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: Find the ids of the students who participate in Canoeing and Kayaking.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

participates_in : stuid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: Which students participate in both Canoeing and Kayaking as their activities? Tell me their student ids.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

participates_in : stuid (number) , actid (number) | activity : actid (number) , activity_name (text)


Question: Find the name of the airport in the city of Goroka.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What are the names of the airports in the city of Goroka?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , country (text) , elevation (number)


Question: What is the name, city, country, and elevation for every airport in the city of New York?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , country (text) , elevation (number)


Question: How many airlines are there?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What is the total number of airlines?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: How many airlines does Russia has?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , alid (number)


Question: What is the number of airlines based in Russia?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , alid (number)


Question: What is the maximum elevation of all airports in the country of Iceland?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : elevation (number) , country (text)


Question: What is the highest elevation of an airport in the country of Iceland?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : elevation (number) , country (text)


Question: Find the name of the airports located in Cuba or Argentina.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What are the names of all airports in Cuba or Argentina?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: Find the country of the airlines whose name starts with 'Orbit'.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What are the countries of all airlines whose names start with Orbit?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: Find the name of airports whose altitude is between -50 and 50.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , elevation (number)


Question: What are the names of all airports whose elevation is between -50 and 50?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , elevation (number)


Question: Which country is the airport that has the highest altitude located in?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : country (text) , elevation (number)


Question: What is the country of the airport with the highest elevation?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : country (text) , elevation (number)


Question: Find the number of airports whose name contain the word 'International'.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: How many airports' names have the word Interanation in them?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: How many different cities do have some airport in the country of Greenland?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: In how many cities are there airports in the country of Greenland?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: Find the number of routes operated by American Airlines.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : alid (number) , rid (number) | airlines : alid (number) , name (text)


Question: How many routes does American Airlines operate?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : alid (number) , rid (number) | airlines : alid (number) , name (text)


Question: Find the number of routes whose destination airports are in Canada.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : apid (number) , country (text) | routes : dst_apid (number) , rid (number)


Question: How many routes end in a Canadian airport?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : apid (number) , country (text) | routes : dst_apid (number) , rid (number)


Question: Find the name, city, and country of the airport that has the lowest altitude.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , country (text) , elevation (number)


Question: What is the name, city, and country of the airport with the lowest altitude?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , country (text) , elevation (number)


Question: Find the name, city, and country of the airport that has the highest latitude.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , country (text) , elevation (number)


Question: What is the name, city, and country of the airport with the highest elevation?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , country (text) , elevation (number)


Question: Find the name and city of the airport which is the destination of the most number of routes.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , apid (number) | routes : dst_apid (number) , rid (number)


Question: What is the name and city of the airport that the most routes end at?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , apid (number) | routes : dst_apid (number) , rid (number)


Question: Find the names of the top 10 airlines that operate the most number of routes.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : name (text) , alid (number) | routes : alid (number) , rid (number)


Question: For the airline ids with the top 10 most routes operated, what are their names?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : name (text) , alid (number) | routes : alid (number) , rid (number)


Question: Find the name and city of the airport which is the source for the most number of flight routes.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , apid (number) | routes : src_apid (number) , rid (number)


Question: What is the name and city of the airport from most of the routes start?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , city (text) , apid (number) | routes : src_apid (number) , rid (number)


Question: Find the number of different airports which are the destinations of the American Airlines.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , alid (number) | airlines : alid (number) , name (text)


Question: What is the number of different different airports that are destinations for American Airlines?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , alid (number) | airlines : alid (number) , name (text)


Question: Which countries has the most number of airlines?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , alid (number)


Question: What is the name of the country with the most number of home airlines?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , alid (number)


Question: Which countries has the most number of airlines whose active status is 'Y'?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , active (text) , alid (number)


Question: What are the countries with the most airlines whose active status is Y?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , active (text) , alid (number)


Question: List all countries and their number of airlines in the descending order of number of airlines.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , alid (number)


Question: How many airlines operate out of each country in descending order?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , alid (number)


Question: How many airports are there per country? Order the countries by decreasing number of airports.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : country (text) , apid (number)


Question: What is the number of airports per country, ordered from most to least?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : country (text) , apid (number)


Question: How many airports are there per city in the United States? Order the cities by decreasing number of airports.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : city (text) , country (text) , apid (number)


Question: How many airports are there per city in the US ordered from most to least?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : city (text) , country (text) , apid (number)


Question: Return the cities with more than 3 airports in the United States.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : city (text) , country (text) , apid (number)


Question: What is the number of cities in the United States with more than 3 airports?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : city (text) , country (text) , apid (number)


Question: How many cities are there that have more than 3 airports?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What is the count of cities with more than 3 airports?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: List the cities which have more than one airport and number of airports.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What are the names of all cities with more than one airport and how many airports do they have?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: List the cities which have more than 2 airports sorted by the number of airports.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What are the cities that have more than 2 airports sorted by number of airports?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: Find the number of routes for each source airport and the airport name.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) | routes : src_apid (number) , rid (number)


Question: For each airport name, how many routes start at that airport?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) | routes : src_apid (number) , rid (number)


Question: Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) | routes : src_apid (number) , rid (number)


Question: For each  airport name, how many routes start at that airport, ordered from most to least?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) | routes : src_apid (number) , rid (number)


Question: Find the average elevation of all airports for each country.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : elevation (number) , country (text)


Question: For each country, what is the average elevation of that country's airports?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : elevation (number) , country (text)


Question: Find the cities which have exactly two airports.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: What are the cities with exactly two airports?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)


Question: For each country and airline name, how many routes are there?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , name (text) , alid (number) | routes : alid (number) , rid (number)


Question: What is the total number of routes for each country and airline in that country?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : country (text) , name (text) , alid (number) | routes : alid (number) , rid (number)


Question: Find the number of routes with destination airports in Italy.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , rid (number) | airports : apid (number) , country (text)


Question: What is the number of routes whose destinations are Italian airports?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , rid (number) | airports : apid (number) , country (text)


Question: Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , alid (number) , rid (number) | airports : apid (number) , country (text) , name (text) | airlines : alid (number) , country (text) , name (text)


Question: What is the number of routes operated by the airline American Airlines whose destinations are in Italy?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , alid (number) , rid (number) | airports : apid (number) , country (text) , name (text) | airlines : alid (number) , country (text) , name (text)


Question: Find the number of routes that have destination John F Kennedy International Airport.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : apid (number) , name (text) | routes : dst_apid (number) , rid (number)


Question: What is the number of routes that end at John F Kennedy International Airport?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : apid (number) , name (text) | routes : dst_apid (number) , rid (number)


Question: Find the number of routes from the United States to Canada.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , src_apid (number) , rid (number) | airports : apid (number) , country (text)


Question: How many routes go from the United States to Canada?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : dst_apid (number) , src_apid (number) , rid (number) | airports : apid (number) , country (text)


Question: Find the id of routes whose source and destination airports are in the United States.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : rid (number) , dst_apid (number) , src_apid (number) | airports : apid (number) , country (text)


Question: What is the id of the routes whose source and destination airports are in the United States?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

routes : rid (number) , dst_apid (number) , src_apid (number) | airports : apid (number) , country (text)


Question: Find the name of airline which runs the most number of routes.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : name (text) , alid (number) | routes : alid (number) , rid (number)


Question: What is the name of the airline with the most routes?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airlines : name (text) , alid (number) | routes : alid (number) , rid (number)


Question: Find the busiest source airport that runs most number of routes in China.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) , country (text) | routes : src_apid (number) , rid (number)


Question: What is the name of the airport with the most number of routes that start in China?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) , country (text) | routes : src_apid (number) , rid (number)


Question: Find the busiest destination airport that runs most number of routes in China.

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) , country (text) | routes : dst_apid (number) , rid (number)


Question: What is the name of the airport that is the destination of the most number of routes that start in China?

routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)

airports : name (text) , apid (number) , country (text) | routes : dst_apid (number) , rid (number)