db_id
stringclasses
140 values
question
stringlengths
16
224
schema
stringclasses
140 values
summarized-schema
stringlengths
18
304
shrink-score
float64
0
1
flight_1
What are the numbers of the shortest flights?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : flno (number) , distance (number)
0.875
flight_1
What is the average distance and average price for flights from Los Angeles.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : distance (number) , price (number) , origin (text)
0.8125
flight_1
What is the average distance and price for all flights from LA?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : distance (number) , price (number) , origin (text)
0.8125
flight_1
Show all origins and the number of flights from each origin.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : origin (text) , flno (number)
0.875
flight_1
For each origin, how many flights came from there?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : origin (text) , flno (number)
0.875
flight_1
Show all destinations and the number of flights to each destination.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : destination (text) , flno (number)
0.875
flight_1
What are the destinations and number of flights to each one?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : destination (text) , flno (number)
0.875
flight_1
Which origin has most number of flights?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : origin (text) , flno (number)
0.875
flight_1
What place has the most flights coming from there?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : origin (text) , flno (number)
0.875
flight_1
Which destination has least number of flights?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : destination (text) , flno (number)
0.875
flight_1
What destination has the fewest number of flights?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : destination (text) , flno (number)
0.875
flight_1
What is the aircraft name for the flight with number 99
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | flight : aid (number) , flno (number)
0.75
flight_1
What is the name of the aircraft that was on flight number 99?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | flight : aid (number) , flno (number)
0.75
flight_1
Show all flight numbers with aircraft Airbus A340-300.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : flno (number) , aid (number) | aircraft : aid (number) , name (text)
0.75
flight_1
What are the flight numbers for the aircraft Airbus A340-300?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
flight : flno (number) , aid (number) | aircraft : aid (number) , name (text)
0.75
flight_1
Show aircraft names and number of flights for each aircraft.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | flight : aid (number) , flno (number)
0.75
flight_1
What is the name of each aircraft and how many flights does each one complete?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | flight : aid (number) , flno (number)
0.75
flight_1
Show names for all aircraft with at least two flights.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | flight : aid (number) , flno (number)
0.75
flight_1
What are the names for all aircrafts with at least 2 flights?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | flight : aid (number) , flno (number)
0.75
flight_1
How many employees have certificate.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
certificate : eid (number)
0.9375
flight_1
What is the count of distinct employees with certificates?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
certificate : eid (number)
0.9375
flight_1
Show ids for all employees who don't have a certificate.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
employee : eid (number) | certificate : eid (number)
0.875
flight_1
What are the ids of all employees that don't have certificates?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
employee : eid (number) | certificate : eid (number)
0.875
flight_1
Show names for all aircrafts of which John Williams has certificates.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
What are the names of all aircrafts that John Williams have certificates to be able to fly?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
Show names for all employees who have certificate of Boeing 737-800.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
What are the names of all employees who have a certificate to fly Boeing 737-800?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
What are the names of all employees who can fly both the Boeing 737-800 and the Airbus A340-300?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
Show names for all employees who do not have certificate of Boeing 737-800.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
What are the names of all employees who are not certified to fly Boeing 737-800s?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.625
flight_1
Show the name of aircraft which fewest people have its certificate.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | certificate : aid (number) , eid (number)
0.75
flight_1
What are the names of the aircraft that the least people are certified to fly?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) | certificate : aid (number) , eid (number)
0.75
flight_1
Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) , distance (number) | certificate : aid (number) , eid (number)
0.6875
flight_1
What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) , distance (number) | certificate : aid (number) , eid (number)
0.6875
flight_1
what is the salary and name of the employee who has the most number of aircraft certificates?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
employee : name (text) , salary (number) , eid (number) | certificate : eid (number)
0.75
flight_1
What is the salaray and name of the employee that is certified to fly the most planes?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
employee : name (text) , salary (number) , eid (number) | certificate : eid (number)
0.75
flight_1
What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) , distance (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.5625
flight_1
What is the salaray and name of the employee with the most certificates to fly planes more than 5000?
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
aircraft : name (text) , aid (number) , distance (number) | employee : name (text) , eid (number) | certificate : eid (number) , aid (number)
0.5625
allergy_1
How many allergies are there?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergy (text)
0.916667
allergy_1
How many allergy entries are there?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergy (text)
0.916667
allergy_1
How many different allergy types exist?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text)
0.916667
allergy_1
How many distinct allergies are there?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text)
0.916667
allergy_1
Show all allergy types.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text)
0.916667
allergy_1
What are the different allergy types?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text)
0.916667
allergy_1
Show all allergies and their types.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergy (text) , allergytype (text)
0.833333
allergy_1
What are the allergies and their types?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergy (text) , allergytype (text)
0.833333
allergy_1
Show all allergies with type food.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergy (text) , allergytype (text)
0.833333
allergy_1
What are all the different food allergies?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergy (text) , allergytype (text)
0.833333
allergy_1
What is the type of allergy Cat?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
What is allergy type of a cat allergy?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
How many allergies have type animal?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
How many animal type allergies exist?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
Show all allergy types and the number of allergies in each type.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
What are the allergy types and how many allergies correspond to each one?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
Which allergy type has most number of allergies?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
Which allergy type is most common?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
Which allergy type has least number of allergies?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
Which allergy type is the least common?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
allergy_type : allergytype (text) , allergy (text)
0.833333
allergy_1
How many students are there?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number)
0.916667
allergy_1
What is the total number of students?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number)
0.916667
allergy_1
Show first name and last name for all students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : fname (text) , lname (text)
0.833333
allergy_1
What are the full names of all students
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : fname (text) , lname (text)
0.833333
allergy_1
How many different advisors are listed?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : advisor (number)
0.916667
allergy_1
How many advisors are there?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : advisor (number)
0.916667
allergy_1
Show all majors.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : major (number)
0.916667
allergy_1
What are the different majors?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : major (number)
0.916667
allergy_1
Show all cities where students live.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text)
0.916667
allergy_1
What cities do students live in?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text)
0.916667
allergy_1
Show first name, last name, age for all female students. Their sex is F.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : fname (text) , lname (text) , age (number) , sex (text)
0.666667
allergy_1
What are the full names and ages for all female students whose sex is F?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : fname (text) , lname (text) , age (number) , sex (text)
0.666667
allergy_1
Show student ids for all male students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number) , sex (text)
0.833333
allergy_1
What are the student ids for all male students?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number) , sex (text)
0.833333
allergy_1
How many students are age 18?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number) , stuid (number)
0.833333
allergy_1
How many students are 18 years old?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number) , stuid (number)
0.833333
allergy_1
Show all student ids who are older than 20.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number) , age (number)
0.833333
allergy_1
What are the student ids for students over 20 years old?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number) , age (number)
0.833333
allergy_1
Which city does the student whose last name is "Kim" live in?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text) , lname (text)
0.833333
allergy_1
Give the city that the student whose family name is Kim lives in.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text) , lname (text)
0.833333
allergy_1
Who is the advisor of student with ID 1004?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : advisor (number) , stuid (number)
0.833333
allergy_1
Who advises student 1004?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : advisor (number) , stuid (number)
0.833333
allergy_1
How many students live in HKG or CHI?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text) , stuid (number)
0.833333
allergy_1
Give the number of students living in either HKG or CHI.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text) , stuid (number)
0.833333
allergy_1
Show the minimum, average, and maximum age of all students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number)
0.916667
allergy_1
What is the minimum, mean, and maximum age across all students?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number)
0.916667
allergy_1
What is the last name of the youngest student?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : lname (text) , age (number)
0.833333
allergy_1
Provide the last name of the youngest student.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : lname (text) , age (number)
0.833333
allergy_1
Show the student id of the oldest student.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number) , age (number)
0.833333
allergy_1
What student id corresponds to the oldest student?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : stuid (number) , age (number)
0.833333
allergy_1
Show all majors and corresponding number of students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : major (number) , stuid (number)
0.833333
allergy_1
How many students are there for each major?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : major (number) , stuid (number)
0.833333
allergy_1
Which major has most number of students?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : major (number) , stuid (number)
0.833333
allergy_1
What is the largest major?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : major (number) , stuid (number)
0.833333
allergy_1
Show all ages and corresponding number of students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number) , stuid (number)
0.833333
allergy_1
How old is each student and how many students are each age?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number) , stuid (number)
0.833333
allergy_1
Show the average age for male and female students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number) , sex (text)
0.833333
allergy_1
What are the average ages for male and female students?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : age (number) , sex (text)
0.833333
allergy_1
Show all cities and corresponding number of students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text) , stuid (number)
0.833333
allergy_1
How many students live in each city?
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : city_code (text) , stuid (number)
0.833333
allergy_1
Show all advisors and corresponding number of students.
allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)
student : advisor (number) , stuid (number)
0.833333