id
stringlengths 36
36
| question
stringlengths 18
174
| db_id
stringclasses 20
values | query
stringlengths 20
361
| query_toks
stringlengths 33
509
| query_toks_no_value
stringlengths 33
607
| question_toks
stringlengths 39
264
| sql
stringlengths 232
983
| audio
audioduration (s) 1.24
12.8
| normalized_question_for_tts
stringlengths 22
182
| audio_duration
stringlengths 3
5
| audio_transcript
stringlengths 23
175
|
|---|---|---|---|---|---|---|---|---|---|---|---|
5fb02e41-227f-4e8c-9470-1d7240ac6b50
|
How many states are there?
|
voter_1
|
SELECT count(*) FROM area_code_state
|
["SELECT", "count", "(", "*", ")", "FROM", "area_code_state"]
|
["select", "count", "(", "*", ")", "from", "area_code_state"]
|
["How", "many", "states", "are", "there", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many states are there?
|
1.24
|
How many states are there?
|
|
be77105e-d7b5-44a8-91e8-0454c15032f9
|
What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?
|
world_1
|
select sum(population) , avg(surfacearea) from country where continent = "north america" and surfacearea > 3000
|
["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000"]
|
["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value"]
|
["What", "is", "the", "total", "population", "and", "average", "area", "of", "countries", "in", "the", "continent", "of", "North", "America", "whose", "area", "is", "bigger", "than", "3000", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null], "and", [false, 3, [0, [0, 12, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the total population and average area of countries in the continent of North America whose area is bigger than three thousand?
|
8.44
|
What is the total population and average area of countries in the continent of North America whose area is bigger than 3,000?
|
|
808224a7-9180-4a15-80cc-cf11c7d61632
|
Show the name of teachers aged either 32 or 33?
|
course_teach
|
SELECT Name FROM teacher WHERE Age = 32 OR Age = 33
|
["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33"]
|
["select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value"]
|
["Show", "the", "name", "of", "teachers", "aged", "either", "32", "or", "33", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 32.0, null], "or", [false, 2, [0, [0, 6, false], null], 33.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Show the name of teachers aged either thirty-two or thirty-three?
|
4.08
|
Show the name of teachers aged either 32 or 33.
|
|
c8a9737c-4532-482d-8a53-5193fa847c9c
|
Which shops run with no employees? Find the shop names
|
employee_hire_evaluation
|
SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)
|
["SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")"]
|
["select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")"]
|
["Which", "shops", "run", "with", "no", "employees", "?", "Find", "the", "shop", "names"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Which shops run with no employees? Find the shop names.
|
4.32
|
Which shops run with no employees? Find the shop names.
|
|
41c92c66-d627-49a4-88bf-b2236d549aa8
|
Give me all the information about hiring.
|
employee_hire_evaluation
|
SELECT * FROM hiring
|
["SELECT", "*", "FROM", "hiring"]
|
["select", "*", "from", "hiring"]
|
["Give", "me", "all", "the", "information", "about", "hiring", "."]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Give me all the information about hiring.
|
2.4
|
Give me all the information about hiring.
|
|
32553ea5-c248-4b4c-bd78-85c3fe14142b
|
How many professionals have performed any treatment to dogs?
|
dog_kennels
|
SELECT count(DISTINCT professional_id) FROM Treatments
|
["SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments"]
|
["select", "count", "(", "distinct", "professional_id", ")", "from", "treatments"]
|
["How", "many", "professionals", "have", "performed", "any", "treatment", "to", "dogs", "?"]
|
{"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 46, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many professionals have performed any treatment to dogs?
|
3.88
|
How many professionals have performed any treatment to dogs?
|
|
2c0af725-2652-4e59-8269-39873a98df3b
|
What are the maximum and minimum share of performances whose type is not "Live final".
|
orchestra
|
SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != "Live final"
|
["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''"]
|
["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value"]
|
["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "``", "Live", "final", "''", "."]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"Live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the maximum and minimum share of performances whose type is not Live final
|
5.42
|
What are the maximum and minimum share of performances whose type is not live final?
|
|
d767e577-522e-4efe-8c44-66c3ab452fe1
|
Return the names of friends of the high school student Kyle.
|
network_1
|
SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"
|
["SELECT", "T3.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "JOIN", "Highschooler", "AS", "T3", "ON", "T1.friend_id", "=", "T3.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"]
|
["select", "t3", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "join", "highschooler", "as", "t3", "on", "t1", ".", "friend_id", "=", "t3", ".", "id", "where", "t2", ".", "name", "=", "value"]
|
["Return", "the", "names", "of", "friends", "of", "the", "high", "school", "student", "Kyle", "."]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 5, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the names of friends of the high school student Kyle.
|
3.96
|
Return the names of friends of the high school student Kyle.
|
|
12a57e4f-47b2-4949-b300-5b351278ab59
|
How many cartoons did each director create?
|
tvshow
|
SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by
|
["SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by"]
|
["select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by"]
|
["How", "many", "cartoons", "did", "each", "director", "create", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many cartoons did each director create?
|
3.4
|
How many cartoons did each director create
|
|
45d36f8c-0686-4cc5-905d-18f14b923539
|
What is the id of the pet owned by the student whose last name is 'Smith'?
|
pets_1
|
SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'
|
["SELECT", "T2.petid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.Lname", "=", "'Smith", "'"]
|
["select", "t2", ".", "petid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "lname", "=", "value"]
|
["What", "is", "the", "id", "of", "the", "pet", "owned", "by", "the", "student", "whose", "last", "name", "is", "'Smith", "'", "?"]
|
{"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the identification of the pet owned by the student whose last name is Smith?
|
3.74
|
What is the identification of the pet owned by the student whose last name is Smith?
|
|
909b48a9-c752-42f1-93e3-81fa3afedd6d
|
How many people are there of each nationality?
|
poker_player
|
SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality
|
["SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality"]
|
["select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality"]
|
["How", "many", "people", "are", "there", "of", "each", "nationality", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many people are there of each nationality?
|
2.58
|
How many people are there of each nationality?
|
|
5f13e302-2d1c-4271-965a-3b7f892c5f16
|
What is the number of countries with more than 2 car makers ?
|
car_1
|
select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2
|
["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"]
|
["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value"]
|
["What", "is", "the", "number", "of", "countries", "with", "more", "than", "2", "car", "makers", "?"]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the number of countries with more than two car makers?
|
3.4
|
What is the number of countries with more than two carmakers?
|
|
e06e9c33-558b-494b-b741-cffad87bc564
|
Find the number of owners who do not own any dogs at this moment.
|
dog_kennels
|
SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )
|
["SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"]
|
["select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"]
|
["Find", "the", "number", "of", "owners", "who", "do", "not", "own", "any", "dogs", "at", "this", "moment", "."]
|
{"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the number of owners who do not own any dogs at this moment.
|
4.32
|
I'm to the number of owners who do not own any dogs at this moment.
|
|
545abb83-90d1-4202-9b75-68955e597aaf
|
What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?
|
tvshow
|
SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')
|
["SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")"]
|
["select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")"]
|
["What", "are", "the", "package", "options", "of", "all", "tv", "channels", "that", "are", "not", "playing", "any", "cartoons", "directed", "by", "Ben", "Jones", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the package options of all television channels that are not playing any cartoons directed by Ben Jones?
|
6.4
|
What are the package options of all television channels that are not playing any cartoons directed by Ben Jones?
|
|
474fd624-a52d-4471-8e3e-be649730c8a7
|
What is the semester which most student registered in? Show both the name and the id.
|
student_transcripts_tracking
|
SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1
|
["SELECT", "T1.semester_name", ",", "T1.semester_id", "FROM", "Semesters", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.semester_id", "=", "T2.semester_id", "GROUP", "BY", "T1.semester_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"]
|
["select", "t1", ".", "semester_name", ",", "t1", ".", "semester_id", "from", "semesters", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "semester_id", "=", "t2", ".", "semester_id", "group", "by", "t1", ".", "semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"]
|
["What", "is", "the", "semester", "which", "most", "student", "registered", "in", "?", "Show", "both", "the", "name", "and", "the", "id", "."]
|
{"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
What is the semester which most students registered in? Show both the name and the ID.
|
5.64
|
What is the semester which most students registered in? Show both the name and the ID.
|
|
b1789b98-c98c-4bc6-a8d2-1546eed35dec
|
Return the names of the 3 countries with the fewest people.
|
world_1
|
SELECT Name FROM country ORDER BY Population ASC LIMIT 3
|
["SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "ASC", "LIMIT", "3"]
|
["select", "name", "from", "country", "order", "by", "population", "asc", "limit", "value"]
|
["Return", "the", "names", "of", "the", "3", "countries", "with", "the", "fewest", "people", "."]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}
|
Return the names of the three countries with the fewest people.
|
3.52
|
Return the names of the three countries with the fewest people.
|
|
3d49816f-bd0c-4445-93f7-050c0d86460e
|
Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .
|
student_transcripts_tracking
|
select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'
|
["select", "t1.first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1.permanent_address_id", "=", "t2.address_id", "where", "t2.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""]
|
["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "or", "t1", ".", "cell_mobile_number", "=", "value"]
|
["Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "or", "have", "the", "cell", "phone", "number", "09700166582", "."]
|
{"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the first name of the students who permanently live in the country Haiti or have the cell phone number zero nine seven zero zero one six six five eight two
|
9.32
|
Find the first name of the students who permanently live in the country, Haiti, or have the cell phone number 09700166582.
|
|
9f8ddbab-1adb-4a9c-b9d4-779422c2f8ac
|
Find the maximum weight for each type of pet. List the maximum weight and pet type.
|
pets_1
|
SELECT max(weight) , petType FROM pets GROUP BY petType
|
["SELECT", "max", "(", "weight", ")", ",", "petType", "FROM", "pets", "GROUP", "BY", "petType"]
|
["select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"]
|
["Find", "the", "maximum", "weight", "for", "each", "type", "of", "pet", ".", "List", "the", "maximum", "weight", "and", "pet", "type", "."]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the maximum weight for each type of pet. List the maximum weight and pet type.
|
4.8
|
Find the maximum weight for each type of pet. List the maximum weight in pet type.
|
|
f9d96f01-6302-431e-8e73-b93f56829559
|
Show distinct names of singers that have songs with sales more than 300000.
|
singer
|
SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000
|
["SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000"]
|
["select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value"]
|
["Show", "distinct", "names", "of", "singers", "that", "have", "songs", "with", "sales", "more", "than", "300000", "."]
|
{"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 300000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Show distinct names of singers that have songs with sales more than three hundred thousand.
|
5.22
|
Show distinct names of singers that have songs with sales more than 300,000
|
|
4df1bbbe-8134-465f-b6cc-4601cbdcd216
|
What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?
|
cre_Doc_Template_Mgt
|
SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'
|
["SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Brazil", "'", "INTERSECT", "SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Ireland", "'"]
|
["select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value", "intersect", "select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value"]
|
["What", "are", "the", "ids", "of", "documents", "that", "contain", "the", "paragraph", "text", "'Brazil", "'", "and", "'Ireland", "'", "?"]
|
{"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Brazil\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Ireland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}
|
What are the identifiers of documents that contain the paragraph text 'Brazil' and 'Ireland'?
|
6.44
|
What are the identifiers of documents that contain the paragraph text Brazil and Ireland?
|
|
d227b64f-f07a-4ee4-8921-4160e4b127d8
|
What are the names of nations where both English and French are official languages?
|
world_1
|
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French" AND T2.IsOfficial = "T"
|
["SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"]
|
["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"]
|
["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "official", "languages", "?"]
|
{"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}
|
What are the names of nations where both English and French are official languages?
|
4.2
|
What are the names of nations where both English and French are official languages?
|
|
e4a8f99f-dab1-4db3-b991-edf2199b6734
|
Which model of the car has the minimum horsepower?
|
car_1
|
SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;
|
["SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "ORDER", "BY", "T2.horsepower", "ASC", "LIMIT", "1", ";"]
|
["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value"]
|
["Which", "model", "of", "the", "car", "has", "the", "minimum", "horsepower", "?"]
|
{"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Which model of the car has the minimum horsepower?
|
3.2
|
Which model of the car has the minimum horsepower?
|
|
6275786f-6645-4ad2-b4d6-312dc0213411
|
How many countries have governments that are republics?
|
world_1
|
SELECT count(*) FROM country WHERE GovernmentForm = "Republic"
|
["SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "Republic", "''"]
|
["select", "count", "(", "*", ")", "from", "country", "where", "governmentform", "=", "value"]
|
["How", "many", "countries", "have", "governments", "that", "are", "republics", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many countries have governments that are republics
|
2.2
|
How many countries have governments that are republics?
|
|
9b6a98a2-77b6-458b-9d89-12dde6d0afc7
|
What is the name of the high schooler who has the greatest number of friends?
|
network_1
|
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
|
["SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"]
|
["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"]
|
["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "friends", "?"]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
What is the name of the high schooler who has the greatest number of friends?
|
4.16
|
What is the name of the high schooler who has the greatest number of friends?
|
|
ddc8a211-fe33-46b1-877e-0feab119862d
|
Find the type and weight of the youngest pet.
|
pets_1
|
SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1
|
["SELECT", "pettype", ",", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1"]
|
["select", "pettype", ",", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value"]
|
["Find", "the", "type", "and", "weight", "of", "the", "youngest", "pet", "."]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Find the type and weight of the youngest pet.
|
2.6
|
Find the type and weight of the youngest pet.
|
|
561b3737-ba3b-4339-9cf6-4b259dd89a64
|
What are years of founding for orchestras that have had more than a single performance?
|
orchestra
|
SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1
|
["SELECT", "Year_of_Founded", "FROM", "orchestra", "AS", "T1", "JOIN", "performance", "AS", "T2", "ON", "T1.Orchestra_ID", "=", "T2.Orchestra_ID", "GROUP", "BY", "T2.Orchestra_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1"]
|
["select", "year_of_founded", "from", "orchestra", "as", "t1", "join", "performance", "as", "t2", "on", "t1", ".", "orchestra_id", "=", "t2", ".", "orchestra_id", "group", "by", "t2", ".", "orchestra_id", "having", "count", "(", "*", ")", ">", "value"]
|
["What", "are", "years", "of", "founding", "for", "orchestras", "that", "have", "had", "more", "than", "a", "single", "performance", "?"]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are years of founding for orchestras that have had more than a single performance?
|
4.48
|
What are years of founding for orchestras that have had more than a single performance?
|
|
4cefd557-fa01-4325-a06e-ada0eaf1162e
|
When did the episode "A Love of a Lifetime" air?
|
tvshow
|
SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime";
|
["SELECT", "Air_Date", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";"]
|
["select", "air_date", "from", "tv_series", "where", "episode", "=", "value"]
|
["When", "did", "the", "episode", "``", "A", "Love", "of", "a", "Lifetime", "''", "air", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"A Love of a Lifetime\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
When did the episode A Love of a Lifetime air?
|
3.16
|
When did the episode A, Love of a Lifetime, air?
|
|
7a4d5d45-8cc3-405e-8401-a7a0899f1e0e
|
What are the names of players who won in both 2013 and 2016?
|
wta_1
|
SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016
|
["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016"]
|
["select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value"]
|
["What", "are", "the", "names", "of", "players", "who", "won", "in", "both", "2013", "and", "2016", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}
|
What are the names of players who won in both two thousand thirteen and two thousand sixteen?
|
5.7
|
What are the names of players who won in both 2013 and 2016?
|
|
0e174cbd-3912-483f-a38b-67b5ce9cb381
|
Return the number of likes that the high schooler named Kyle has.
|
network_1
|
SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"
|
["SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"]
|
["select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"]
|
["Return", "the", "number", "of", "likes", "that", "the", "high", "schooler", "named", "Kyle", "has", "."]
|
{"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the number of likes that the high schooler named Kyle has.
|
3.88
|
Return the number of likes that the high schooler named Kyle has.
|
|
6b4987e5-0f15-4471-9efa-8c200d828484
|
How many cars have a larger accelerate than the car with the largest horsepower?
|
car_1
|
SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );
|
["SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Accelerate", ">", "(", "SELECT", "Accelerate", "FROM", "CARS_DATA", "ORDER", "BY", "Horsepower", "DESC", "LIMIT", "1", ")", ";"]
|
["select", "count", "(", "*", ")", "from", "cars_data", "where", "accelerate", ">", "(", "select", "accelerate", "from", "cars_data", "order", "by", "horsepower", "desc", "limit", "value", ")"]
|
["How", "many", "cars", "have", "a", "larger", "accelerate", "than", "the", "car", "with", "the", "largest", "horsepower", "?"]
|
{"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 22, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many cars have a larger acceleration than the car with the largest horsepower?
|
4.48
|
How many cars have a larger acceleration than the car with the largest horsepower?
|
|
5d73144e-d4ed-4991-8495-5eeb7e28270f
|
Return the template type code of the template that is used by a document named Data base.
|
cre_Doc_Template_Mgt
|
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = "Data base"
|
["SELECT", "T1.template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "WHERE", "T2.document_name", "=", "``", "Data", "base", "''"]
|
["select", "t1", ".", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "document_name", "=", "value"]
|
["Return", "the", "template", "type", "code", "of", "the", "template", "that", "is", "used", "by", "a", "document", "named", "Data", "base", "."]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Data base\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the template type code of the template that is used by a document named Data base.
|
6.04
|
Return the template type code of the template that is used by a document named database.
|
|
6f0e3cce-a8de-4edf-92f6-1e629dcbf1e3
|
Return the maximum final tables made across all poker players who have earnings below 200000.
|
poker_player
|
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000
|
["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000"]
|
["select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value"]
|
["Return", "the", "maximum", "final", "tables", "made", "across", "all", "poker", "players", "who", "have", "earnings", "below", "200000", "."]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], 200000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the maximum final tables made across all poker players who have earnings below two hundred thousand.
|
7.28
|
Return the maximum final tables made across all poker players who have earnings below $200,000
|
|
bcb52779-b356-4c52-9c98-4d915c2a8986
|
Find the total amount of bonus given in all the evaluations.
|
employee_hire_evaluation
|
SELECT sum(bonus) FROM evaluation
|
["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"]
|
["select", "sum", "(", "bonus", ")", "from", "evaluation"]
|
["Find", "the", "total", "amount", "of", "bonus", "given", "in", "all", "the", "evaluations", "."]
|
{"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the total amount of bonus given in all the evaluations.
|
4.06
|
Find the total amount of bonus given in all the evaluations.
|
|
4968c572-6718-4d9d-a069-b45b47908960
|
Give me Brazil’s population and life expectancies.
|
world_1
|
SELECT Population , LifeExpectancy FROM country WHERE Name = "Brazil"
|
["SELECT", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Name", "=", "``", "Brazil", "''"]
|
["select", "population", ",", "lifeexpectancy", "from", "country", "where", "name", "=", "value"]
|
["Give", "me", "Brazil’s", "population", "and", "life", "expectancies", "."]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Brazil\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Give me Brazil's population and life expectancies.
|
4.62
|
Give me Brazil's population and life expectancies.
|
|
fda1c830-a733-4ae4-9e3a-a390f6091dbe
|
What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?
|
student_transcripts_tracking
|
SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2
|
["SELECT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", ",", "T1.student_id", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", "=", "2"]
|
["select", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", ",", "t1", ".", "student_id", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", "=", "value"]
|
["What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", ",", "along", "with", "the", "ids", ",", "of", "all", "students", "who", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?"]
|
{"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the first, middle, and last names, along with the identifiers, of all students who enrolled in two degree programs in one semester?
|
8.48
|
What are the first, middle and last names along with the identifiers of all students who enrolled in two degree programs in one semester?
|
|
96135006-0876-4481-9d0e-c631ef079e33
|
What is the hometown of the youngest teacher?
|
course_teach
|
SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1
|
["SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1"]
|
["select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "value"]
|
["What", "is", "the", "hometown", "of", "the", "youngest", "teacher", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
What is the hometown of the youngest teacher?
|
2.24
|
What is the hometown of the youngest teacher?
|
|
87df5cb0-f64e-4782-8f3a-19cd5e3776be
|
What is the last transcript release date?
|
student_transcripts_tracking
|
SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1
|
["SELECT", "transcript_date", "FROM", "Transcripts", "ORDER", "BY", "transcript_date", "DESC", "LIMIT", "1"]
|
["select", "transcript_date", "from", "transcripts", "order", "by", "transcript_date", "desc", "limit", "value"]
|
["What", "is", "the", "last", "transcript", "release", "date", "?"]
|
{"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 53, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 53, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
What is the last transcript release date?
|
3.76
|
What is the last transcript release date?
|
|
f6688245-b1af-405d-a104-dfaa49bf1fa5
|
What is the horsepower of the car with the largest accelerate?
|
car_1
|
SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;
|
["SELECT", "T1.horsepower", "FROM", "CARS_DATA", "AS", "T1", "ORDER", "BY", "T1.accelerate", "DESC", "LIMIT", "1", ";"]
|
["select", "t1", ".", "horsepower", "from", "cars_data", "as", "t1", "order", "by", "t1", ".", "accelerate", "desc", "limit", "value"]
|
["What", "is", "the", "horsepower", "of", "the", "car", "with", "the", "largest", "accelerate", "?"]
|
{"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
What is the horsepower of the car with the largest acceleration?
|
3.16
|
What is the horsepower of the car with the largest acceleration?
|
|
0e6bc124-624a-4069-83cd-f87258e2639c
|
Find the total number of players.
|
wta_1
|
SELECT count(*) FROM players
|
["SELECT", "count", "(", "*", ")", "FROM", "players"]
|
["select", "count", "(", "*", ")", "from", "players"]
|
["Find", "the", "total", "number", "of", "players", "."]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the total number of players
|
2.16
|
Find the total number of players.
|
|
e192d86f-0a5a-4e6d-b6bd-0b180a90144d
|
Show the name and theme for all concerts and the number of singers in each concert.
|
concert_singer
|
SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id
|
["SELECT", "T2.concert_name", ",", "T2.theme", ",", "count", "(", "*", ")", "FROM", "singer_in_concert", "AS", "T1", "JOIN", "concert", "AS", "T2", "ON", "T1.concert_id", "=", "T2.concert_id", "GROUP", "BY", "T2.concert_id"]
|
["select", "t2", ".", "concert_name", ",", "t2", ".", "theme", ",", "count", "(", "*", ")", "from", "singer_in_concert", "as", "t1", "join", "concert", "as", "t2", "on", "t1", ".", "concert_id", "=", "t2", ".", "concert_id", "group", "by", "t2", ".", "concert_id"]
|
["Show", "the", "name", "and", "theme", "for", "all", "concerts", "and", "the", "number", "of", "singers", "in", "each", "concert", "."]
|
{"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Show the name and theme for all concerts and the number of singers in each concert.
|
4.78
|
so the name and theme for all concerts and the number of singers in each concert.
|
|
ab73aaae-091e-48f6-992a-a9cdaf4a183b
|
What is the description of the treatment type that costs the least money in total?
|
dog_kennels
|
SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1
|
["SELECT", "T1.treatment_type_description", "FROM", "Treatment_types", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code", "GROUP", "BY", "T1.treatment_type_code", "ORDER", "BY", "sum", "(", "cost_of_treatment", ")", "ASC", "LIMIT", "1"]
|
["select", "t1", ".", "treatment_type_description", "from", "treatment_types", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code", "group", "by", "t1", ".", "treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value"]
|
["What", "is", "the", "description", "of", "the", "treatment", "type", "that", "costs", "the", "least", "money", "in", "total", "?"]
|
{"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["asc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
What is the description of the treatment type that costs the least money in total?
|
4.44
|
What is the description of the treatment type that costs the least money in total?
|
|
1554f8bc-baa4-4c14-9782-ba7d4db5d1f6
|
For each citizenship, how many singers are from that country?
|
singer
|
SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship
|
["SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship"]
|
["select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship"]
|
["For", "each", "citizenship", ",", "how", "many", "singers", "are", "from", "that", "country", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
For each citizenship, how many singers are from that country?
|
3.5
|
For each citizenship, how many singers are from that country?
|
|
cccd53ef-4adc-49d3-955f-b08b133abb24
|
What is the first name of the student whose permanent address is different from his or her current one?
|
student_transcripts_tracking
|
SELECT first_name FROM Students WHERE current_address_id != permanent_address_id
|
["SELECT", "first_name", "FROM", "Students", "WHERE", "current_address_id", "!", "=", "permanent_address_id"]
|
["select", "first_name", "from", "students", "where", "current_address_id", "!", "=", "permanent_address_id"]
|
["What", "is", "the", "first", "name", "of", "the", "student", "whose", "permanent", "address", "is", "different", "from", "his", "or", "her", "current", "one", "?"]
|
{"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 7, [0, [0, 33, false], null], [0, 34, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the first name of the student whose permanent address is different from his or her current one?
|
4.64
|
What is the first name of the student whose permanent address is different from his or her current one?
|
|
0c77bdc0-d495-485e-8b0d-46aa25d6d527
|
What are each professional's first name and description of the treatment they have performed?
|
dog_kennels
|
SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code
|
["SELECT", "DISTINCT", "T1.first_name", ",", "T3.treatment_type_description", "FROM", "professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "JOIN", "Treatment_types", "AS", "T3", "ON", "T2.treatment_type_code", "=", "T3.treatment_type_code"]
|
["select", "distinct", "t1", ".", "first_name", ",", "t3", ".", "treatment_type_description", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "join", "treatment_types", "as", "t3", "on", "t2", ".", "treatment_type_code", "=", "t3", ".", "treatment_type_code"]
|
["What", "are", "each", "professional", "'s", "first", "name", "and", "description", "of", "the", "treatment", "they", "have", "performed", "?"]
|
{"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null], "and", [false, 2, [0, [0, 47, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 35, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are each professional's first name and description of the treatment they have performed?
|
4.18
|
What are each professional's first name and description of the treatment they have performed?
|
|
eeb061f8-d7a2-4e6e-b4be-d4ccc553b8c7
|
What are the names and areas of countries with the top 5 largest area?
|
world_1
|
SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
|
["SELECT", "Name", ",", "SurfaceArea", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "5"]
|
["select", "name", ",", "surfacearea", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value"]
|
["What", "are", "the", "names", "and", "areas", "of", "countries", "with", "the", "top", "5", "largest", "area", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 12, false], null]]], "limit": 5, "intersect": null, "union": null, "except": null}
|
What are the names and areas of countries with the top five largest area
|
5.04
|
What are the names and areas of countries with the top 5 largest area?
|
|
bfeeabb6-a2e9-4c12-9647-6d29d67e34fb
|
What is last date created of votes from the state 'CA'?
|
voter_1
|
SELECT max(created) FROM votes WHERE state = 'CA'
|
["SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "'CA", "'"]
|
["select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "value"]
|
["What", "is", "last", "date", "created", "of", "votes", "from", "the", "state", "'CA", "'", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"CA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the last date created of votes from the state California?
|
4.04
|
What is the last date created of votes from the state California?
|
|
5ec51905-bdb3-496a-a2f9-0878e21d5f6f
|
What is the average attendance of shows?
|
orchestra
|
SELECT avg(Attendance) FROM SHOW
|
["SELECT", "avg", "(", "Attendance", ")", "FROM", "SHOW"]
|
["select", "avg", "(", "attendance", ")", "from", "show"]
|
["What", "is", "the", "average", "attendance", "of", "shows", "?"]
|
{"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the average attendance of shows?
|
4.08
|
What is the average attendance of shows?
|
|
b7950d82-fc95-4e3b-9d2f-9b2d49274ff4
|
Where is the youngest teacher from?
|
course_teach
|
SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1
|
["SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1"]
|
["select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "value"]
|
["Where", "is", "the", "youngest", "teacher", "from", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Where is the youngest teacher from?
|
2.2
|
Where is the youngest teacher from?
|
|
5bc2eb22-0806-4b07-9afd-5170c24ccf5e
|
What major is every student who does not own a cat as a pet, and also how old are they?
|
pets_1
|
SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')
|
["SELECT", "major", ",", "age", "FROM", "student", "WHERE", "stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", ")"]
|
["select", "major", ",", "age", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", ")"]
|
["What", "major", "is", "every", "student", "who", "does", "not", "own", "a", "cat", "as", "a", "pet", ",", "and", "also", "how", "old", "are", "they", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What major is every student who does not own a cat as a pet, and also how old are they
|
4.32
|
What major is every student who does not own a cat as a pet and also how old are they?
|
|
5f74b747-10d7-412e-a2fc-694df7b78ec2
|
Which professionals have done at least two types of treatments? List the professional id and cell phone.
|
dog_kennels
|
SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2
|
["SELECT", "T1.professional_id", ",", "T1.cell_number", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"]
|
["select", "t1", ".", "professional_id", ",", "t1", ".", "cell_number", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "=", "value"]
|
["Which", "professionals", "have", "done", "at", "least", "two", "types", "of", "treatments", "?", "List", "the", "professional", "id", "and", "cell", "phone", "."]
|
{"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Which professionals have done at least two types of treatments? List the professional identification and cell phone.
|
5.24
|
which professionals have done at least two types of treatments. List the professional identification in cell phone
|
|
e9cd33cc-2c23-429f-a02c-52c2001a7b37
|
Return the codes of countries for which Spanish is the predominantly spoken language.
|
world_1
|
SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
|
["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"]
|
["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"]
|
["Return", "the", "codes", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "."]
|
{"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the codes of countries for which Spanish is the predominantly spoken language.
|
5.52
|
Return the codes of countries for which Spanish is the predominantly spoken language.
|
|
65b8a585-7792-430f-ad3d-f24f95cbc40f
|
Which owner owns the most dogs? List the owner id, first name and last name.
|
dog_kennels
|
SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
|
["SELECT", "T1.owner_id", ",", "T2.first_name", ",", "T2.last_name", "FROM", "Dogs", "AS", "T1", "JOIN", "Owners", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"]
|
["select", "t1", ".", "owner_id", ",", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "dogs", "as", "t1", "join", "owners", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"]
|
["Which", "owner", "owns", "the", "most", "dogs", "?", "List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "."]
|
{"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Which owner owns the most dogs? List the owner identification, first name and last name.
|
5.5
|
Which owner owns the most dogs? List the owner identification, first name and last name.
|
|
f05fc885-bb5f-49b9-8ef5-e73f06a4a9a8
|
Return the owner id, first name and last name of the owner who has the most dogs.
|
dog_kennels
|
SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
|
["SELECT", "T1.owner_id", ",", "T2.first_name", ",", "T2.last_name", "FROM", "Dogs", "AS", "T1", "JOIN", "Owners", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"]
|
["select", "t1", ".", "owner_id", ",", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "dogs", "as", "t1", "join", "owners", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"]
|
["Return", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "of", "the", "owner", "who", "has", "the", "most", "dogs", "."]
|
{"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Return the owner identification, first name and last name of the owner who has the most dogs.
|
5.48
|
Return the owner identification, first name and last name of the owner who has the most dogs.
|
|
9331dc05-5293-48d5-99f0-f26cb41aa727
|
What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
|
battle_death
|
SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'
|
["SELECT", "name", "FROM", "battle", "WHERE", "bulgarian_commander", "=", "'Kaloyan", "'", "AND", "latin_commander", "=", "'Baldwin", "I", "'"]
|
["select", "name", "from", "battle", "where", "bulgarian_commander", "=", "value", "and", "latin_commander", "=", "value"]
|
["What", "are", "the", "distinct", "battle", "names", "which", "are", "between", "bulgarian", "commander", "'Kaloyan", "'", "and", "latin", "commander", "'Baldwin", "I", "'", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Kaloyan\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Baldwin I\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the distinct battle names which are between Bulgarian commander Kaloyan and Latin commander Baldwin the first?
|
7.16
|
What are the distinct battle names which are between Bulgarian commander Kaloyan and Latin commander Baldwin I?
|
|
857f8245-ffef-4655-87f4-cc10b0ec980d
|
Find the first name and gender of student who have more than one pet.
|
pets_1
|
SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1
|
["SELECT", "T1.fname", ",", "T1.sex", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "GROUP", "BY", "T1.stuid", "HAVING", "count", "(", "*", ")", ">", "1"]
|
["select", "t1", ".", "fname", ",", "t1", ".", "sex", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "having", "count", "(", "*", ")", ">", "value"]
|
["Find", "the", "first", "name", "and", "gender", "of", "student", "who", "have", "more", "than", "one", "pet", "."]
|
{"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the first name and gender of students who have more than one pet.
|
4.0
|
Find the first name and gender of students who have more than one pet.
|
|
ce44689c-080f-478f-9c77-677827097605
|
Find the production code and channel of the most recently aired cartoon .
|
tvshow
|
select production_code , channel from cartoon order by original_air_date desc limit 1
|
["select", "production_code", ",", "channel", "from", "cartoon", "order", "by", "original_air_date", "desc", "limit", "1"]
|
["select", "production_code", ",", "channel", "from", "cartoon", "order", "by", "original_air_date", "desc", "limit", "value"]
|
["Find", "the", "production", "code", "and", "channel", "of", "the", "most", "recently", "aired", "cartoon", "."]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 23, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Find the production code and channel of the most recently aired cartoon.
|
4.36
|
Find the production code and channel of the most recently aired cartoon.
|
|
c0a52e9a-01e8-4fb5-a52f-e81cceee8622
|
What is the age of the oldest dog?
|
dog_kennels
|
SELECT max(age) FROM Dogs
|
["SELECT", "max", "(", "age", ")", "FROM", "Dogs"]
|
["select", "max", "(", "age", ")", "from", "dogs"]
|
["What", "is", "the", "age", "of", "the", "oldest", "dog", "?"]
|
{"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the age of the oldest dog?
|
2.92
|
What is the age of the oldest dog?
|
|
7f25349d-f53e-4f13-a138-82d9f6219cdb
|
Return the grade for the high schooler named Kyle.
|
network_1
|
SELECT grade FROM Highschooler WHERE name = "Kyle"
|
["SELECT", "grade", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''"]
|
["select", "grade", "from", "highschooler", "where", "name", "=", "value"]
|
["Return", "the", "grade", "for", "the", "high", "schooler", "named", "Kyle", "."]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the grade for the high schooler named Kyle.
|
2.42
|
Return the grade for the high schooler named Kyle.
|
|
767660a0-792d-461e-9b2a-b6ae5868b679
|
Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.
|
student_transcripts_tracking
|
SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'
|
["SELECT", "DISTINCT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "Degree_Programs", "AS", "T3", "ON", "T2.degree_program_id", "=", "T3.degree_program_id", "WHERE", "T3.degree_summary_name", "=", "'Bachelor", "'"]
|
["select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "degree_programs", "as", "t3", "on", "t2", ".", "degree_program_id", "=", "t3", ".", "degree_program_id", "where", "t3", ".", "degree_summary_name", "=", "value"]
|
["Who", "is", "enrolled", "in", "a", "Bachelor", "degree", "program", "?", "List", "the", "first", "name", ",", "middle", "name", ",", "last", "name", "."]
|
{"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [true, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Bachelor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Who is enrolled in a Bachelor degree program. List the first name, middle name, last name.
|
5.36
|
who is enrolled in a bachelor degree program. List the first name, middle name, last name.
|
|
a78911c8-f500-4532-9bad-540c5e6f95e6
|
What is the name and capacity for the stadium with the highest average attendance?
|
concert_singer
|
SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1
|
["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "average", "DESC", "LIMIT", "1"]
|
["select", "name", ",", "capacity", "from", "stadium", "order", "by", "average", "desc", "limit", "value"]
|
["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "the", "highest", "average", "attendance", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
What is the name and capacity for the stadium with the highest average attendance?
|
4.4
|
What is the name and capacity for the stadium with the highest average attendance?
|
|
0ee31f34-145b-4fdf-9050-6c83afeff964
|
Show the hometowns shared by at least two teachers.
|
course_teach
|
SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2
|
["SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"]
|
["select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value"]
|
["Show", "the", "hometowns", "shared", "by", "at", "least", "two", "teachers", "."]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Show the hometowns shared by at least two teachers
|
3.16
|
Show the hometown shared by at least two teachers.
|
|
6589fe82-89d1-4716-a2c5-a0dea98c6c0b
|
Find the number of cities in each district whose population is greater than the average population of cities?
|
world_1
|
SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District
|
["SELECT", "count", "(", "*", ")", ",", "District", "FROM", "city", "WHERE", "Population", ">", "(", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")", "GROUP", "BY", "District"]
|
["select", "count", "(", "*", ")", ",", "district", "from", "city", "where", "population", ">", "(", "select", "avg", "(", "population", ")", "from", "city", ")", "group", "by", "district"]
|
["Find", "the", "number", "of", "cities", "in", "each", "district", "whose", "population", "is", "greater", "than", "the", "average", "population", "of", "cities", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the number of cities in each district whose population is greater than the average population of cities?
|
7.28
|
Find the number of cities in each district whose population is greater than the average population of cities.
|
|
4b1534f5-f90d-4163-a4b1-16381d5fe6b8
|
List the first and last name of all players who are left / L hand in the order of birth date.
|
wta_1
|
SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date
|
["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date"]
|
["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date"]
|
["List", "the", "first", "and", "last", "name", "of", "all", "players", "who", "are", "left", "/", "L", "hand", "in", "the", "order", "of", "birth", "date", "."]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}
|
List the first and last name of all players who are left hand in the order of birth date.
|
5.18
|
List the first and last name of all players who are left hand in the order of birth date.
|
|
43819bc5-fc6e-4d7b-bc15-83e8517807e8
|
What are the countries that have cartoons on TV that were written by Todd Casey?
|
tvshow
|
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
|
["SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'"]
|
["select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value"]
|
["What", "are", "the", "countries", "that", "have", "cartoons", "on", "TV", "that", "were", "written", "by", "Todd", "Casey", "?"]
|
{"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Todd Casey\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the countries that have cartoons on television that were written by Todd Casey
|
3.96
|
What are the countries that have cartoons on television that were written by Todd Casey?
|
|
920ae4bd-5435-4ca1-9330-460c91c8837f
|
Show location and name for all stadiums with a capacity between 5000 and 10000.
|
concert_singer
|
SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000
|
["SELECT", "LOCATION", ",", "name", "FROM", "stadium", "WHERE", "capacity", "BETWEEN", "5000", "AND", "10000"]
|
["select", "location", ",", "name", "from", "stadium", "where", "capacity", "between", "value", "and", "value"]
|
["Show", "location", "and", "name", "for", "all", "stadiums", "with", "a", "capacity", "between", "5000", "and", "10000", "."]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 5000.0, 10000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Show location and name for all stadiums with a capacity between five thousand and ten thousand.
|
6.52
|
show location and name for all stadiums with a capacity between 5,000 and 10,000.
|
|
0483abb5-fe51-4b51-b150-e2373f4239bb
|
What are the countries that are not playing cartoons written by Todd Casey?
|
tvshow
|
SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
|
["SELECT", "country", "FROM", "TV_Channel", "EXCEPT", "SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'"]
|
["select", "country", "from", "tv_channel", "except", "select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value"]
|
["What", "are", "the", "countries", "that", "are", "not", "playing", "cartoons", "written", "by", "Todd", "Casey", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Todd Casey\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}
|
What are the countries that are not playing cartoons written by Todd Casey?
|
3.6
|
What are the countries that are not playing cartoons written by Todd Casey?
|
|
44b56616-7ab5-4147-a4bd-bfcf86de8dfc
|
What are the first names of all players, and their average rankings?
|
wta_1
|
SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name
|
["SELECT", "avg", "(", "ranking", ")", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.first_name"]
|
["select", "avg", "(", "ranking", ")", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "first_name"]
|
["What", "are", "the", "first", "names", "of", "all", "players", ",", "and", "their", "average", "rankings", "?"]
|
{"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[5, [0, [0, 40, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the first names of all players, and their average rankings?
|
3.52
|
What are the first names of all players and their average rankings?
|
|
87740180-aa3c-4d3b-9451-426766fadf49
|
How many type of governments are in Africa?
|
world_1
|
SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = "Africa"
|
["SELECT", "count", "(", "DISTINCT", "GovernmentForm", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''"]
|
["select", "count", "(", "distinct", "governmentform", ")", "from", "country", "where", "continent", "=", "value"]
|
["How", "many", "type", "of", "governments", "are", "in", "Africa", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many types of governments are in Africa?
|
2.68
|
How many types of governments are in Africa?
|
|
00040883-01b6-4c43-9248-e7ecac2167ee
|
Show the names of high schoolers who have at least 3 friends.
|
network_1
|
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3
|
["SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "3"]
|
["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"]
|
["Show", "the", "names", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friends", "."]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Show the names of high schoolers who have at least three friends.
|
3.92
|
Show the names of high schoolers who have at least three friends.
|
|
e31649f1-0f77-4d06-9d11-6db89dd4631b
|
Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?
|
car_1
|
SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;
|
["SELECT", "DISTINCT", "T2.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Model", "=", "T2.Model", "JOIN", "CAR_MAKERS", "AS", "T3", "ON", "T2.Maker", "=", "T3.Id", "JOIN", "CARS_DATA", "AS", "T4", "ON", "T1.MakeId", "=", "T4.Id", "WHERE", "T3.FullName", "=", "'General", "Motors", "'", "OR", "T4.weight", ">", "3500", ";"]
|
["select", "distinct", "t2", ".", "model", "from", "car_names", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "car_makers", "as", "t3", "on", "t2", ".", "maker", "=", "t3", ".", "id", "join", "cars_data", "as", "t4", "on", "t1", ".", "makeid", "=", "t4", ".", "id", "where", "t3", ".", "fullname", "=", "value", "or", "t4", ".", "weight", ">", "value"]
|
["Which", "distinctive", "models", "are", "produced", "by", "maker", "with", "the", "full", "name", "General", "Motors", "or", "weighing", "more", "than", "3500", "?"]
|
{"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"General Motors\"", null], "or", [false, 3, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Which distinctive models are produced by maker with the full name General Motors or weighing more than three thousand five hundred?
|
6.6
|
which distinctive models are produced by maker with the full name General Motors or weighing more than 3,500.
|
|
66833634-7928-425f-92e1-635c43e52142
|
What are the death and injury situations caused by the ship with tonnage 't'?
|
battle_death
|
SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'
|
["SELECT", "T1.killed", ",", "T1.injured", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1.caused_by_ship_id", "=", "T2.id", "WHERE", "T2.tonnage", "=", "'t", "'"]
|
["select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "value"]
|
["What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'t", "'", "?"]
|
{"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the death and injury situations caused by the ship with tonnage metric tons
|
3.96
|
What are the death and injury situations caused by the ship with tonnage metric tons?
|
|
5aa3adef-09e6-4ab7-992f-4651536caba9
|
Which city and country is the Alton airport at?
|
flight_2
|
SELECT City , Country FROM AIRPORTS WHERE AirportName = "Alton"
|
["SELECT", "City", ",", "Country", "FROM", "AIRPORTS", "WHERE", "AirportName", "=", "``", "Alton", "''"]
|
["select", "city", ",", "country", "from", "airports", "where", "airportname", "=", "value"]
|
["Which", "city", "and", "country", "is", "the", "Alton", "airport", "at", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Which city and country is the Alton airport at?
|
2.76
|
Which city and country is the Alton Airport at?
|
|
b0139e8b-8650-47fc-bdbf-c33e3be991ae
|
What is the weekly rank for the episode "A Love of a Lifetime"?
|
tvshow
|
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime";
|
["SELECT", "Weekly_Rank", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";"]
|
["select", "weekly_rank", "from", "tv_series", "where", "episode", "=", "value"]
|
["What", "is", "the", "weekly", "rank", "for", "the", "episode", "``", "A", "Love", "of", "a", "Lifetime", "''", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"A Love of a Lifetime\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the weekly rank for the episode A Love of a Lifetime?
|
3.46
|
What is the weekly rank for the episode A Love of a Lifetime?
|
|
8ce01645-046a-4735-9335-6a65085d3571
|
Return the country codes for countries that do not speak English.
|
world_1
|
SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = "English"
|
["SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"]
|
["select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"]
|
["Return", "the", "country", "codes", "for", "countries", "that", "do", "not", "speak", "English", "."]
|
{"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}
|
Return the country codes for countries that do not speak English
|
4.56
|
Return the country codes for countries that do not speak English.
|
|
ca92d61f-1a96-4517-8d23-5855d751eca5
|
What is the full name of each car maker, along with its id and how many models it produces?
|
car_1
|
SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;
|
["SELECT", "T1.FullName", ",", "T1.Id", ",", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", ";"]
|
["select", "t1", ".", "fullname", ",", "t1", ".", "id", ",", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id"]
|
["What", "is", "the", "full", "name", "of", "each", "car", "maker", ",", "along", "with", "its", "id", "and", "how", "many", "models", "it", "produces", "?"]
|
{"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the full name of each car maker, along with its identifier and how many models it produces?
|
7.12
|
What is the full name of each car maker along with its identifier and how many models it produces?
|
|
0b3bcd91-d433-4ec5-a796-be6699400059
|
What is the document name and template id for document with description with the letter 'w' in it?
|
cre_Doc_Template_Mgt
|
SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE "%w%"
|
["SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''"]
|
["select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value"]
|
["What", "is", "the", "document", "name", "and", "template", "id", "for", "document", "with", "description", "with", "the", "letter", "'w", "'", "in", "it", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the document name and template ID for document with description with the letter W in it?
|
5.36
|
What is the document name and template ID for document with description with the letter W in it?
|
|
2ed9dc7e-e32c-42ab-9790-64f6fab7970f
|
What are the countries where either English or Dutch is the official language ?
|
world_1
|
select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = "english" and isofficial = "t" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = "dutch" and isofficial = "t"
|
["select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"english\"", "and", "isofficial", "=", "\"t\"", "union", "select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"dutch\"", "and", "isofficial", "=", "\"t\""]
|
["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"]
|
["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "official", "language", "?"]
|
{"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}
|
What are the countries where either English or Dutch is the official language?
|
4.52
|
What are the countries where either English or Dutch is the official language?
|
|
368d0bf0-a949-4a51-96e7-d6be61cb55f1
|
What is the department description for the one whose name has the word computer?
|
student_transcripts_tracking
|
SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'
|
["SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'"]
|
["select", "department_description", "from", "departments", "where", "department_name", "like", "value"]
|
["What", "is", "the", "department", "description", "for", "the", "one", "whose", "name", "has", "the", "word", "computer", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%computer%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the department description for the one whose name has the word computer
|
4.32
|
What is the department description for the one whose name has the word computer?
|
|
b1c06b0a-655a-4564-afc2-afd2707518b9
|
What are the different template type codes, and how many templates correspond to each?
|
cre_Doc_Template_Mgt
|
SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code
|
["SELECT", "template_type_code", ",", "count", "(", "*", ")", "FROM", "Templates", "GROUP", "BY", "template_type_code"]
|
["select", "template_type_code", ",", "count", "(", "*", ")", "from", "templates", "group", "by", "template_type_code"]
|
["What", "are", "the", "different", "template", "type", "codes", ",", "and", "how", "many", "templates", "correspond", "to", "each", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the different template type codes, and how many templates correspond to each?
|
3.72
|
What are the different template type codes and how many templates correspond to each?
|
|
b5fe0a0a-c955-43b6-9997-6b18aa6fbcfb
|
Give me the description of the treatment type whose total cost is the lowest.
|
dog_kennels
|
SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1
|
["SELECT", "T1.treatment_type_description", "FROM", "Treatment_types", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code", "GROUP", "BY", "T1.treatment_type_code", "ORDER", "BY", "sum", "(", "cost_of_treatment", ")", "ASC", "LIMIT", "1"]
|
["select", "t1", ".", "treatment_type_description", "from", "treatment_types", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code", "group", "by", "t1", ".", "treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value"]
|
["Give", "me", "the", "description", "of", "the", "treatment", "type", "whose", "total", "cost", "is", "the", "lowest", "."]
|
{"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["asc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Give me the description of the treatment type whose total cost is the lowest
|
3.36
|
Give me the description of the treatment type whose total cost is the lowest.
|
|
525c3c44-1896-44ef-9fdf-a964bf460ea0
|
Count the number of paragraphs.
|
cre_Doc_Template_Mgt
|
SELECT count(*) FROM Paragraphs
|
["SELECT", "count", "(", "*", ")", "FROM", "Paragraphs"]
|
["select", "count", "(", "*", ")", "from", "paragraphs"]
|
["Count", "the", "number", "of", "paragraphs", "."]
|
{"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Count the number of paragraphs.
|
2.1
|
Count the number of paragraphs
|
|
a56c5fd7-d6e7-4735-bac8-dbe60b651303
|
Return the names of poker players sorted by their earnings descending.
|
poker_player
|
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC
|
["SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC"]
|
["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc"]
|
["Return", "the", "names", "of", "poker", "players", "sorted", "by", "their", "earnings", "descending", "."]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the names of poker players sorted by their earnings in descending order.
|
4.54
|
return the names of poker players sorted by their earnings in descending order.
|
|
f0f26ffd-e965-42f5-bdd8-0311cac9c8e8
|
What are the names of the singers whose birth years are either 1948 or 1949?
|
singer
|
SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949
|
["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949"]
|
["select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value"]
|
["What", "are", "the", "names", "of", "the", "singers", "whose", "birth", "years", "are", "either", "1948", "or", "1949", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null], "or", [false, 2, [0, [0, 3, false], null], 1949.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the names of the singers whose birth years are either nineteen forty eight or nineteen forty nine?
|
5.12
|
What are the names of the singers whose birth years are either 1948 or 1949?
|
|
96515c2b-39f1-49c9-87d2-7d2a9d474594
|
Find the first name and country code of the player who did the most number of tours.
|
wta_1
|
SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1
|
["SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "ORDER", "BY", "T2.tours", "DESC", "LIMIT", "1"]
|
["select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "order", "by", "t2", ".", "tours", "desc", "limit", "value"]
|
["Find", "the", "first", "name", "and", "country", "code", "of", "the", "player", "who", "did", "the", "most", "number", "of", "tours", "."]
|
{"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 43, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Find the first name and country code of the player who did the most number of tours.
|
4.08
|
Find the first name and country code of the player who did the most number of tours.
|
|
029f7693-4a5c-4994-8ebd-66e471ef0aeb
|
What is the mobile phone number of the student named Timmothy Ward ?
|
student_transcripts_tracking
|
select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'
|
["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "\"timmothy\"", "and", "last_name", "=", "\"ward\""]
|
["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value"]
|
["What", "is", "the", "mobile", "phone", "number", "of", "the", "student", "named", "Timmothy", "Ward", "?"]
|
{"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null], "and", [false, 2, [0, [0, 37, false], null], "\"ward\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the mobile phone number of the student named Timmothy Ward
|
3.52
|
What is the mobile phone number of the student named Timothy Ward?
|
|
5789a96e-b40c-4d2e-8466-f6f57ad190e8
|
What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?
|
network_1
|
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2
|
["SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.grade", ">", "5", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"]
|
["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"]
|
["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "a", "grade", "of", "over", "5", "and", "have", "2", "or", "more", "friends", "?"]
|
{"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 5.0, null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are the names of high schoolers who have a grade of over five and have two or more friends?
|
4.8
|
What are the names of high schoolers who have a grade of over five and have two or more friends?
|
|
e4820c37-6958-4ce0-aabe-daf7b4b55cca
|
How much does the youngest dog weigh?
|
pets_1
|
SELECT weight FROM pets ORDER BY pet_age LIMIT 1
|
["SELECT", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1"]
|
["select", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value"]
|
["How", "much", "does", "the", "youngest", "dog", "weigh", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
How much does the youngest dog weigh?
|
1.72
|
How much does the youngest dog weigh?
|
|
b92f8e84-c31c-4383-b4df-c9f0dd914e0b
|
How many courses in total are listed?
|
student_transcripts_tracking
|
SELECT count(*) FROM Courses
|
["SELECT", "count", "(", "*", ")", "FROM", "Courses"]
|
["select", "count", "(", "*", ")", "from", "courses"]
|
["How", "many", "courses", "in", "total", "are", "listed", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
How many courses in total are listed?
|
2.64
|
How many courses in total are listed?
|
|
b789529d-f471-4943-9b9a-216afcae13b1
|
What is minimum and maximum share of TV series?
|
tvshow
|
SELECT max(SHARE) , min(SHARE) FROM TV_series;
|
["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";"]
|
["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"]
|
["What", "is", "minimum", "and", "maximum", "share", "of", "TV", "series", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What is the minimum and maximum share of T V series?
|
2.96
|
What is the minimum and maximum share of TV series?
|
|
691e8fe7-9514-4578-898c-3f2c066d93ef
|
List the contestant numbers and names, ordered by contestant name descending.
|
voter_1
|
SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC
|
["SELECT", "contestant_number", ",", "contestant_name", "FROM", "contestants", "ORDER", "BY", "contestant_name", "DESC"]
|
["select", "contestant_number", ",", "contestant_name", "from", "contestants", "order", "by", "contestant_name", "desc"]
|
["List", "the", "contestant", "numbers", "and", "names", ",", "ordered", "by", "contestant", "name", "descending", "."]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}
|
List the contestant numbers and names, ordered by contestant name in descending order.
|
5.92
|
List the contestant numbers and names, ordered by contestant name and descending order,
|
|
61cefbc1-980a-4182-88d0-87a458f0244a
|
Find the first names of owners living in Virginia and the names of dogs they own.
|
dog_kennels
|
SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'
|
["SELECT", "T1.first_name", ",", "T2.name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "WHERE", "T1.state", "=", "'Virginia", "'"]
|
["select", "t1", ".", "first_name", ",", "t2", ".", "name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t1", ".", "state", "=", "value"]
|
["Find", "the", "first", "names", "of", "owners", "living", "in", "Virginia", "and", "the", "names", "of", "dogs", "they", "own", "."]
|
{"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Virginia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Find the first names of owners living in Virginia and the names of dogs they own.
|
4.42
|
Find the first names of owners living in Virginia and the names of dogs they own.
|
|
2a4984ee-a718-45e0-a389-19dbef366279
|
What are flight numbers of flights departing from Airport "APG"?
|
flight_2
|
SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = "APG"
|
["SELECT", "FlightNo", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''"]
|
["select", "flightno", "from", "flights", "where", "sourceairport", "=", "value"]
|
["What", "are", "flight", "numbers", "of", "flights", "departing", "from", "Airport", "``", "APG", "''", "?"]
|
{"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are flight numbers of flights departing from Airport A P G?
|
3.76
|
What are flight numbers of flights departing from Airport APG?
|
|
0749e116-6e3a-4d48-96aa-cd0ed63a67f5
|
What country is Jetblue Airways affiliated with?
|
flight_2
|
SELECT Country FROM AIRLINES WHERE Airline = "JetBlue Airways"
|
["SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''"]
|
["select", "country", "from", "airlines", "where", "airline", "=", "value"]
|
["What", "country", "is", "Jetblue", "Airways", "affiliated", "with", "?"]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"JetBlue Airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What country is JetBlue Airways affiliated with?
|
3.72
|
What country is JetBlue Airways affiliated with?
|
|
9e49f289-2616-48c7-ac14-a839abec3d2a
|
Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.
|
dog_kennels
|
SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1
|
["SELECT", "T1.owner_id", ",", "T1.zip_code", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "JOIN", "Treatments", "AS", "T3", "ON", "T2.dog_id", "=", "T3.dog_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "sum", "(", "T3.cost_of_treatment", ")", "DESC", "LIMIT", "1"]
|
["select", "t1", ".", "owner_id", ",", "t1", ".", "zip_code", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "join", "treatments", "as", "t3", "on", "t2", ".", "dog_id", "=", "t3", ".", "dog_id", "group", "by", "t1", ".", "owner_id", "order", "by", "sum", "(", "t3", ".", "cost_of_treatment", ")", "desc", "limit", "value"]
|
["Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "."]
|
{"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}
|
Which owner has paid the largest amount of money in total for their dogs? Show the owner identification and zip code.
|
7.36
|
Which owner has paid the largest amount of money in total for their dogs? Show the owner identification and zip code.
|
|
07eae7b0-e28f-4898-835e-e889b97d454c
|
What are all the song names by singers who are older than average?
|
concert_singer
|
SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)
|
["SELECT", "song_name", "FROM", "singer", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "singer", ")"]
|
["select", "song_name", "from", "singer", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "singer", ")"]
|
["What", "are", "all", "the", "song", "names", "by", "singers", "who", "are", "older", "than", "average", "?"]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
What are all the song names by singers who are older than average?
|
3.72
|
What are all the song names by singers who are older than average?
|
|
bbb6a236-7ef2-4c60-8479-5b6bc5745a9e
|
Return the record companies of orchestras, sorted descending by the years in which they were founded.
|
orchestra
|
SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
|
["SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC"]
|
["select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc"]
|
["Return", "the", "record", "companies", "of", "orchestras", ",", "sorted", "descending", "by", "the", "years", "in", "which", "they", "were", "founded", "."]
|
{"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the record companies of orchestras, sorted in descending order by the years in which they were founded.
|
5.2
|
returned the record companies of orchestras, sorted in descending order by the years in which they were founded.
|
|
068423d2-6c42-4b17-9e23-6fa355b47180
|
Show names of all high school students who do not have any friends.
|
network_1
|
SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id
|
["SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id"]
|
["select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id"]
|
["Show", "names", "of", "all", "high", "school", "students", "who", "do", "not", "have", "any", "friends", "."]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}
|
Show names of all high school students who do not have any friends
|
3.96
|
Show names of all high school students who do not have any friends.
|
|
6c61b635-992f-4c0a-a80f-dac470388d23
|
Which airlines have departing flights from both APG and CVO airports?
|
flight_2
|
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO"
|
["SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "APG", "''", "INTERSECT", "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "CVO", "''"]
|
["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "intersect", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"]
|
["Which", "airlines", "have", "departing", "flights", "from", "both", "APG", "and", "CVO", "airports", "?"]
|
{"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"CVO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}
|
Which airlines have departing flights from both Aberdeen Phillips Army Airfield and Corvallis Municipal airports?
|
5.54
|
Which airlines have departing flights from both Aberdeen Phillips Army Airfield and Corvallis Municipal Airports?
|
|
c79392aa-91f7-4c5a-8b04-26c8b2632856
|
Return the number of flights departing from Aberdeen.
|
flight_2
|
SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen"
|
["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"]
|
["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"]
|
["Return", "the", "number", "of", "flights", "departing", "from", "Aberdeen", "."]
|
{"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Return the number of flights departing from Aberdeen
|
3.4
|
Return the number of flights departing from Aberdeen.
|
|
f6e12bd1-16a7-4d81-975e-fa84372b772c
|
Count the number of employees for each city.
|
employee_hire_evaluation
|
SELECT count(*) , city FROM employee GROUP BY city
|
["SELECT", "count", "(", "*", ")", ",", "city", "FROM", "employee", "GROUP", "BY", "city"]
|
["select", "count", "(", "*", ")", ",", "city", "from", "employee", "group", "by", "city"]
|
["Count", "the", "number", "of", "employees", "for", "each", "city", "."]
|
{"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}
|
Count the number of employees for each city.
|
2.48
|
Count the number of employees for each city.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.