db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
ship_mission
|
What is the ship with the largest amount of tonnage called?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : name (text) , tonnage (number)
| 0.833333 |
ship_mission
|
Show different types of ships and the number of ships of each type.
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , ship_id (number)
| 0.833333 |
ship_mission
|
For each type, how many ships are there?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , ship_id (number)
| 0.833333 |
ship_mission
|
Please show the most common type of ships.
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , ship_id (number)
| 0.833333 |
ship_mission
|
What is the most common type of ships?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , ship_id (number)
| 0.833333 |
ship_mission
|
List the nations that have more than two ships.
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : nationality (text) , ship_id (number)
| 0.833333 |
ship_mission
|
What are the nations that have more than two ships?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : nationality (text) , ship_id (number)
| 0.833333 |
ship_mission
|
Show different types of ships and the average tonnage of ships of each type.
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , tonnage (number)
| 0.833333 |
ship_mission
|
For each type, what is the average tonnage?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , tonnage (number)
| 0.833333 |
ship_mission
|
Show codes and fates of missions, and names of ships involved.
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
mission : code (text) , fate (text) , ship_id (number) | ship : name (text) , ship_id (number)
| 0.583333 |
ship_mission
|
What are the mission codes, fates, and names of the ships involved?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
mission : code (text) , fate (text) , ship_id (number) | ship : name (text) , ship_id (number)
| 0.583333 |
ship_mission
|
Show names of ships involved in a mission launched after 1928.
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : name (text) , ship_id (number) | mission : ship_id (number) , launched_year (number)
| 0.666667 |
ship_mission
|
What are the names of ships that were involved in a mission launched after 1928?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : name (text) , ship_id (number) | mission : ship_id (number) , launched_year (number)
| 0.666667 |
ship_mission
|
Show the distinct fate of missions that involve ships with nationality "United States"
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
mission : fate (text) , ship_id (number) | ship : ship_id (number) , nationality (text)
| 0.666667 |
ship_mission
|
What are the different fates of the mission that involved ships from the United States?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
mission : fate (text) , ship_id (number) | ship : ship_id (number) , nationality (text)
| 0.666667 |
ship_mission
|
List the name of ships that are not involved in any mission
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : name (text) , ship_id (number) | mission : ship_id (number)
| 0.75 |
ship_mission
|
What are the names of the ships that are not involved in any missions?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : name (text) , ship_id (number) | mission : ship_id (number)
| 0.75 |
ship_mission
|
Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , tonnage (number)
| 0.833333 |
ship_mission
|
What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000?
|
mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)
|
ship : type (text) , tonnage (number)
| 0.833333 |
student_1
|
Find the number of students in total.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text)
| 0.857143 |
student_1
|
How many students are there?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text)
| 0.857143 |
student_1
|
Find the last names of students studying in room 111.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number)
| 0.714286 |
student_1
|
What are the last names of students in room 111?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number)
| 0.714286 |
student_1
|
Find the first names of students studying in room 108.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , classroom (number)
| 0.714286 |
student_1
|
What are the first names of students in room 108?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , classroom (number)
| 0.714286 |
student_1
|
What are the first names of students studying in room 107?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , classroom (number)
| 0.714286 |
student_1
|
List the first names of all the students in room 107.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , classroom (number)
| 0.714286 |
student_1
|
For each classroom report the grade that is taught in it. Report just the classroom number and the grade number.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
What are the grade number and classroom number of each class in the list?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
Which grade is studying in classroom 103?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : grade (number) , classroom (number)
| 0.714286 |
student_1
|
Find the grade taught in classroom 103.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : grade (number) , classroom (number)
| 0.714286 |
student_1
|
Find the grade studying in room 105.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : grade (number) , classroom (number)
| 0.714286 |
student_1
|
Which grade is studying in room 105?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : grade (number) , classroom (number)
| 0.714286 |
student_1
|
Which classrooms are used by grade 4?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
Find the classrooms in which grade 4 is studying.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
Which classrooms are used by grade 5?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
Show me the classrooms grade 5 is using.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
Find the last names of the teachers that teach fifth grade.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number) , grade (number) | teachers : lastname (text) , classroom (number)
| 0.285714 |
student_1
|
what are the last names of the teachers who teach grade 5?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number) , grade (number) | teachers : lastname (text) , classroom (number)
| 0.285714 |
student_1
|
Find the first names of the teachers that teach first grade.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , classroom (number) , grade (number) | teachers : firstname (text) , classroom (number)
| 0.285714 |
student_1
|
What are the first names of the teachers who teach grade 1?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , classroom (number) , grade (number) | teachers : firstname (text) , classroom (number)
| 0.285714 |
student_1
|
Find the first names of all the teachers that teach in classroom 110.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
teachers : firstname (text) , classroom (number)
| 0.714286 |
student_1
|
Which teachers teach in classroom 110? Give me their first names.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
teachers : firstname (text) , classroom (number)
| 0.714286 |
student_1
|
Find the last names of teachers teaching in classroom 109.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
teachers : lastname (text) , classroom (number)
| 0.714286 |
student_1
|
Which teachers teach in classroom 109? Give me their last names.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
teachers : lastname (text) , classroom (number)
| 0.714286 |
student_1
|
Report the first name and last name of all the teachers.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
teachers : firstname (text) , lastname (text)
| 0.714286 |
student_1
|
What are the first name and last name of all the teachers?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
teachers : firstname (text) , lastname (text)
| 0.714286 |
student_1
|
Report the first name and last name of all the students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text)
| 0.714286 |
student_1
|
Show each student's first name and last name.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text)
| 0.714286 |
student_1
|
Find all students taught by OTHA MOYER. Output the first and last names of the students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Which students study under the teacher named OTHA MOYER? Give me the first and last names of the students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Find all students taught by MARROTTE KIRK. Output first and last names of students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Which are the first and last names of the students taught by MARROTTE KIRK?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Find the first and last name of all the teachers that teach EVELINA BROMLEY.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name of the teachers.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Find the last names of all the teachers that teach GELL TAMI.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)
| 0.142857 |
student_1
|
What are the last names of the teachers who teach the student called GELL TAMI?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)
| 0.142857 |
student_1
|
How many students does LORIA ONDERSMA teaches?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
Count the number of students the teacher LORIA ONDERSMA teaches.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
How many students does KAWA GORDON teaches?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
Find the number of students taught by the teacher KAWA GORDON.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
Find the number of students taught by TARRING LEIA.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
How many students are taught by teacher TARRING LEIA?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
How many teachers does the student named CHRISSY NABOZNY have?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
Find the number of teachers who teach the student called CHRISSY NABOZNY.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
How many teachers does the student named MADLOCK RAY have?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
Find the number of teachers who teach the student called MADLOCK RAY.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)
| 0.142857 |
student_1
|
Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) , grade (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0 |
student_1
|
What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) , grade (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0 |
student_1
|
Find the last names of the students in third grade that are not taught by COVIN JEROME.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number) , grade (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)
| 0 |
student_1
|
Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : lastname (text) , classroom (number) , grade (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)
| 0 |
student_1
|
For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : grade (number) , classroom (number) , lastname (text)
| 0.571429 |
student_1
|
For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : grade (number) , classroom (number) , lastname (text)
| 0.571429 |
student_1
|
For each classroom, report the classroom number and the number of grades using it.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
For each classroom, show the classroom number and count the number of distinct grades that use the room.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number)
| 0.714286 |
student_1
|
Which classroom has the most students?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , lastname (text)
| 0.714286 |
student_1
|
Find the classroom that the most students use.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , lastname (text)
| 0.714286 |
student_1
|
Report the number of students in each classroom.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , lastname (text)
| 0.714286 |
student_1
|
For each classroom, show the classroom number and find how many students are using it.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , lastname (text)
| 0.714286 |
student_1
|
For each grade 0 classroom, report the total number of students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number) , lastname (text)
| 0.571429 |
student_1
|
For each grade 0 classroom, return the classroom number and the count of students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number) , lastname (text)
| 0.571429 |
student_1
|
Report the total number of students for each fourth-grade classroom.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number) , lastname (text)
| 0.571429 |
student_1
|
For each fourth-grade classroom, show the classroom number and the total number of students using it.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , grade (number) , lastname (text)
| 0.571429 |
student_1
|
Find the name of the teacher who teaches the largest number of students.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Which teacher teaches the most students? Give me the first name and last name of the teacher.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)
| 0.142857 |
student_1
|
Find the number of students in one classroom.
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , lastname (text)
| 0.714286 |
student_1
|
How many students does one classroom have?
|
list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)
|
list : classroom (number) , lastname (text)
| 0.714286 |
company_employee
|
How many companies are headquartered in the US?
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : headquarters (text) , company_id (number)
| 0.875 |
company_employee
|
List the names of companies by ascending number of sales.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : name (text) , sales_in_billion (number)
| 0.875 |
company_employee
|
What are the headquarters and industries of all companies?
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : headquarters (text) , industry (text)
| 0.875 |
company_employee
|
Show the names of companies in the banking or retailing industry?
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : name (text) , industry (text)
| 0.875 |
company_employee
|
What is the maximum and minimum market value of companies?
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : market_value_in_billion (number)
| 0.9375 |
company_employee
|
What is the headquarter of the company with the largest sales?
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : headquarters (text) , sales_in_billion (number)
| 0.875 |
company_employee
|
Show the different headquarters and number of companies at each headquarter.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : headquarters (text) , company_id (number)
| 0.875 |
company_employee
|
Show the most common headquarter for companies.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : headquarters (text) , company_id (number)
| 0.875 |
company_employee
|
Show the headquarters that have at least two companies.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : headquarters (text) , company_id (number)
| 0.875 |
company_employee
|
Show the headquarters that have both companies in banking industry and companies in oil and gas industry.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
company : headquarters (text) , industry (text)
| 0.875 |
company_employee
|
Show the names of companies and of employees.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
people : name (text) , people_id (number) | company : name (text) , company_id (number) | employment : people_id (number) , company_id (number)
| 0.625 |
company_employee
|
Show names of companies and that of employees in descending order of number of years working for that employee.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
people : name (text) , people_id (number) | company : name (text) , company_id (number) | employment : people_id (number) , company_id (number) , year_working (number)
| 0.5625 |
company_employee
|
Show the names of employees that work for companies with sales bigger than 200.
|
people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)
|
people : name (text) , people_id (number) | company : name (text) , company_id (number) , sales_in_billion (number) | employment : people_id (number) , company_id (number)
| 0.5625 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.