text
stringlengths
150
1.06k
source
dict
### QUESTION In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427? ### CONTEXT CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR) ### ANSWER SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"</s>
{ "answer": "SELECT lyrics FROM table_name_48 WHERE date = \"august 10, 2005\" AND catalog_number = \"tocp-66427\"", "context": "CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)", "question": "In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?" }
### QUESTION What country has a compulsory deduction of 29.3%? ### CONTEXT CREATE TABLE table_24486462_1 (country VARCHAR, compulsory_deduction VARCHAR) ### ANSWER SELECT country FROM table_24486462_1 WHERE compulsory_deduction = "29.3%"</s>
{ "answer": "SELECT country FROM table_24486462_1 WHERE compulsory_deduction = \"29.3%\"", "context": "CREATE TABLE table_24486462_1 (country VARCHAR, compulsory_deduction VARCHAR)", "question": "What country has a compulsory deduction of 29.3%?" }
### QUESTION What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111? ### CONTEXT CREATE TABLE table_name_46 (region VARCHAR, catalog_number VARCHAR, label VARCHAR, format VARCHAR) ### ANSWER SELECT region FROM table_name_46 WHERE label = "emi" AND format = "4 x vinyl" AND catalog_number = "560 6111"</s>
{ "answer": "SELECT region FROM table_name_46 WHERE label = \"emi\" AND format = \"4 x vinyl\" AND catalog_number = \"560 6111\"", "context": "CREATE TABLE table_name_46 (region VARCHAR, catalog_number VARCHAR, label VARCHAR, format VARCHAR)", "question": "What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?" }
### QUESTION What are the death and injury situations caused by the ship with tonnage 't'? ### CONTEXT CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR)", "question": "What are the death and injury situations caused by the ship with tonnage 't'?" }
### QUESTION What are the ids and names of the battles that led to more than 10 people killed in total. ### CONTEXT CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR) ### ANSWER SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10</s>
{ "answer": "SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10", "context": "CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)", "question": "What are the ids and names of the battles that led to more than 10 people killed in total." }
### QUESTION What is the ship id and name that caused most total injuries? ### CONTEXT CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR) ### ANSWER SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)", "question": "What is the ship id and name that caused most total injuries?" }
### QUESTION When was the stokers' training ship launched? ### CONTEXT CREATE TABLE table_24496403_1 (launched VARCHAR, disposition VARCHAR) ### ANSWER SELECT launched FROM table_24496403_1 WHERE disposition = "Stokers' training ship"</s>
{ "answer": "SELECT launched FROM table_24496403_1 WHERE disposition = \"Stokers' training ship\"", "context": "CREATE TABLE table_24496403_1 (launched VARCHAR, disposition VARCHAR)", "question": "When was the stokers' training ship launched?" }
### QUESTION What's the money ($) for the t3 place and the score of 74-74-71-69=288? ### CONTEXT CREATE TABLE table_name_87 (money___$__ VARCHAR, place VARCHAR, score VARCHAR) ### ANSWER SELECT money___$__ FROM table_name_87 WHERE place = "t3" AND score = 74 - 74 - 71 - 69 = 288</s>
{ "answer": "SELECT money___$__ FROM table_name_87 WHERE place = \"t3\" AND score = 74 - 74 - 71 - 69 = 288", "context": "CREATE TABLE table_name_87 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)", "question": "What's the money ($) for the t3 place and the score of 74-74-71-69=288?" }
### QUESTION List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta' ### CONTEXT CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR) ### ANSWER SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'</s>
{ "answer": "SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'", "context": "CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)", "question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'" }
### QUESTION Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'. ### CONTEXT CREATE TABLE ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR) ### ANSWER SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'</s>
{ "answer": "SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'", "context": "CREATE TABLE ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR)", "question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'." }
### QUESTION What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms? ### CONTEXT CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR) ### ANSWER SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = "liverpool" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10</s>
{ "answer": "SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = \"liverpool\" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10", "context": "CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR)", "question": "What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?" }
### QUESTION What's the highest annual interchange for wimbledon railway station? ### CONTEXT CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR) ### ANSWER SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = "wimbledon"</s>
{ "answer": "SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = \"wimbledon\"", "context": "CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR)", "question": "What's the highest annual interchange for wimbledon railway station?" }
### QUESTION What rank has an annual interchange less than 1.99 million, an annual entry/exit less than 13.835 million, and more than 13.772 million total passengers? ### CONTEXT CREATE TABLE table_name_83 (rank VARCHAR, total_passengers__millions__2011_12 VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR) ### ANSWER SELECT rank FROM table_name_83 WHERE annual_interchanges__millions__2011_12 < 1.99 AND annual_entry_exit__millions__2011_12 < 13.835 AND total_passengers__millions__2011_12 > 13.772</s>
{ "answer": "SELECT rank FROM table_name_83 WHERE annual_interchanges__millions__2011_12 < 1.99 AND annual_entry_exit__millions__2011_12 < 13.835 AND total_passengers__millions__2011_12 > 13.772", "context": "CREATE TABLE table_name_83 (rank VARCHAR, total_passengers__millions__2011_12 VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR)", "question": "What rank has an annual interchange less than 1.99 million, an annual entry/exit less than 13.835 million, and more than 13.772 million total passengers?" }
### QUESTION How many age figures for the player fired in week 6? ### CONTEXT CREATE TABLE table_24501530_1 (age VARCHAR, result VARCHAR) ### ANSWER SELECT COUNT(age) FROM table_24501530_1 WHERE result = "Fired in week 6"</s>
{ "answer": "SELECT COUNT(age) FROM table_24501530_1 WHERE result = \"Fired in week 6\"", "context": "CREATE TABLE table_24501530_1 (age VARCHAR, result VARCHAR)", "question": "How many age figures for the player fired in week 6?" }
### QUESTION Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783? ### CONTEXT CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR) ### ANSWER SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = "$21,571" AND population < 9 OFFSET 783</s>
{ "answer": "SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = \"$21,571\" AND population < 9 OFFSET 783", "context": "CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)", "question": "Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783?" }
### QUESTION Which department offers the most number of degrees? List department name and id. ### CONTEXT CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR) ### ANSWER SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR)", "question": "Which department offers the most number of degrees? List department name and id." }
### QUESTION What is the name and id of the department with the most number of degrees ? ### CONTEXT CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR) ### ANSWER SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR)", "question": "What is the name and id of the department with the most number of degrees ?" }
### QUESTION Which Number of households has a County of cook, and Population smaller than 5,176? ### CONTEXT CREATE TABLE table_name_98 (number_of_households INTEGER, county VARCHAR, population VARCHAR) ### ANSWER SELECT AVG(number_of_households) FROM table_name_98 WHERE county = "cook" AND population < 5 OFFSET 176</s>
{ "answer": "SELECT AVG(number_of_households) FROM table_name_98 WHERE county = \"cook\" AND population < 5 OFFSET 176", "context": "CREATE TABLE table_name_98 (number_of_households INTEGER, county VARCHAR, population VARCHAR)", "question": "Which Number of households has a County of cook, and Population smaller than 5,176?" }
### QUESTION How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million? ### CONTEXT CREATE TABLE table_name_91 (rank VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, location VARCHAR, number_of_platforms VARCHAR) ### ANSWER SELECT COUNT(rank) FROM table_name_91 WHERE location = "liverpool" AND number_of_platforms > 3 AND annual_interchanges__millions__2011_12 < 0.778</s>
{ "answer": "SELECT COUNT(rank) FROM table_name_91 WHERE location = \"liverpool\" AND number_of_platforms > 3 AND annual_interchanges__millions__2011_12 < 0.778", "context": "CREATE TABLE table_name_91 (rank VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, location VARCHAR, number_of_platforms VARCHAR)", "question": "How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million?" }
### QUESTION How many degrees does the engineering department offer? ### CONTEXT CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR) ### ANSWER SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'</s>
{ "answer": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "context": "CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR)", "question": "How many degrees does the engineering department offer?" }
### QUESTION Which Country has a Player of jodie mudd? ### CONTEXT CREATE TABLE table_name_62 (country VARCHAR, player VARCHAR) ### ANSWER SELECT country FROM table_name_62 WHERE player = "jodie mudd"</s>
{ "answer": "SELECT country FROM table_name_62 WHERE player = \"jodie mudd\"", "context": "CREATE TABLE table_name_62 (country VARCHAR, player VARCHAR)", "question": "Which Country has a Player of jodie mudd?" }
### QUESTION What are the names and id of courses having at most 2 sections? ### CONTEXT CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR) ### ANSWER SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2</s>
{ "answer": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2", "context": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR)", "question": "What are the names and id of courses having at most 2 sections?" }
### QUESTION What is the semester which most student registered in? Show both the name and the id. ### CONTEXT CREATE TABLE Student_Enrolment (semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Student_Enrolment (semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR)", "question": "What is the semester which most student registered in? Show both the name and the id." }
### QUESTION What is the description of the department whose name has the substring the computer? ### CONTEXT CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR) ### ANSWER SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'</s>
{ "answer": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "context": "CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR)", "question": "What is the description of the department whose name has the substring the computer?" }
### QUESTION Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id. ### CONTEXT CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)", "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id." }
### QUESTION Who is enrolled in a Bachelor degree program? List the first name, middle name, last name. ### CONTEXT CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR, degree_program_id VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR, degree_program_id VARCHAR)", "question": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name." }
### QUESTION Find the kind of program which most number of students are enrolled in? ### CONTEXT CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR) ### ANSWER SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR)", "question": "Find the kind of program which most number of students are enrolled in?" }
### QUESTION Find the program which most number of students are enrolled in. List both the id and the summary. ### CONTEXT CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR) ### ANSWER SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR)", "question": "Find the program which most number of students are enrolled in. List both the id and the summary." }
### QUESTION Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id. ### CONTEXT CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) ### ANSWER SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)", "question": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id." }
### QUESTION What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx? ### CONTEXT CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR, socket VARCHAR, codename__main_article_ VARCHAR) ### ANSWER SELECT i_o_bus FROM table_24538587_11 WHERE socket = "LGA 1155" AND codename__main_article_ = "Sandy Bridge (Desktop)" AND brand_name__list_ = "Core i3-21xx"</s>
{ "answer": "SELECT i_o_bus FROM table_24538587_11 WHERE socket = \"LGA 1155\" AND codename__main_article_ = \"Sandy Bridge (Desktop)\" AND brand_name__list_ = \"Core i3-21xx\"", "context": "CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR, socket VARCHAR, codename__main_article_ VARCHAR)", "question": "What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?" }
### QUESTION How many sockets are listed that have a brand name of "Core i3-2xx7m"? ### CONTEXT CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR) ### ANSWER SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-2xx7M"</s>
{ "answer": "SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = \"Core i3-2xx7M\"", "context": "CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR)", "question": "How many sockets are listed that have a brand name of \"Core i3-2xx7m\"?" }
### QUESTION What's the name of the course with most number of enrollments? ### CONTEXT CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR) ### ANSWER SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)", "question": "What's the name of the course with most number of enrollments?" }
### QUESTION Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program. ### CONTEXT CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) ### ANSWER SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id</s>
{ "answer": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", "context": "CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)", "question": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program." }
### QUESTION Show the date and id of the transcript with at least 2 course results. ### CONTEXT CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR) ### ANSWER SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)", "question": "Show the date and id of the transcript with at least 2 course results." }
### QUESTION What are the scores when total score/week is 41/60 and co-contestant is Shalini Chandran? ### CONTEXT CREATE TABLE table_name_10 (scores_by_each_individual_judge VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### ANSWER SELECT scores_by_each_individual_judge FROM table_name_10 WHERE total_score_week = "41/60" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran"</s>
{ "answer": "SELECT scores_by_each_individual_judge FROM table_name_10 WHERE total_score_week = \"41/60\" AND co_contestant__yaar_vs_pyaar_ = \"shalini chandran\"", "context": "CREATE TABLE table_name_10 (scores_by_each_individual_judge VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)", "question": "What are the scores when total score/week is 41/60 and co-contestant is Shalini Chandran?" }
### QUESTION Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13? ### CONTEXT CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR) ### ANSWER SELECT main_contestant FROM table_name_11 WHERE status = "eliminated" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13</s>
{ "answer": "SELECT main_contestant FROM table_name_11 WHERE status = \"eliminated\" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13", "context": "CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR)", "question": "Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13?" }
### QUESTION What are all the course names of the courses which ever have students enrolled in? ### CONTEXT CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR) ### ANSWER SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id</s>
{ "answer": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "context": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)", "question": "What are all the course names of the courses which ever have students enrolled in?" }
### QUESTION What is the fewest loses for the club that is below 8 in position, and had played less than 30 games? ### CONTEXT CREATE TABLE table_name_83 (loses INTEGER, position VARCHAR, games_played VARCHAR) ### ANSWER SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30</s>
{ "answer": "SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30", "context": "CREATE TABLE table_name_83 (loses INTEGER, position VARCHAR, games_played VARCHAR)", "question": "What is the fewest loses for the club that is below 8 in position, and had played less than 30 games?" }
### QUESTION What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2? ### CONTEXT CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR) ### ANSWER SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38</s>
{ "answer": "SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38", "context": "CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR)", "question": "What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2?" }
### QUESTION Show the date of the transcript which shows the least number of results, also list the id. ### CONTEXT CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR) ### ANSWER SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1</s>
{ "answer": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)", "question": "Show the date of the transcript which shows the least number of results, also list the id." }
### QUESTION Find the semester when both Master students and Bachelor students got enrolled in. ### CONTEXT CREATE TABLE Degree_Programs (degree_program_id VARCHAR); CREATE TABLE Student_Enrolment (semester_id VARCHAR, degree_program_id VARCHAR) ### ANSWER SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'</s>
{ "answer": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", "context": "CREATE TABLE Degree_Programs (degree_program_id VARCHAR); CREATE TABLE Student_Enrolment (semester_id VARCHAR, degree_program_id VARCHAR)", "question": "Find the semester when both Master students and Bachelor students got enrolled in." }
### QUESTION Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 . ### CONTEXT CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR)", "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 ." }
### QUESTION Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs? ### CONTEXT CREATE TABLE table_name_48 (third_place VARCHAR, fourth_placed VARCHAR, number_of_clubs VARCHAR, winners VARCHAR) ### ANSWER SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = "dalian shide" AND fourth_placed = "chongqing longxin"</s>
{ "answer": "SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = \"dalian shide\" AND fourth_placed = \"chongqing longxin\"", "context": "CREATE TABLE table_name_48 (third_place VARCHAR, fourth_placed VARCHAR, number_of_clubs VARCHAR, winners VARCHAR)", "question": "Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs?" }
### QUESTION What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th? ### CONTEXT CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR) ### ANSWER SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = "dalian shide" AND fourth_placed = "sichuan quanxing"</s>
{ "answer": "SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = \"dalian shide\" AND fourth_placed = \"sichuan quanxing\"", "context": "CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR)", "question": "What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th?" }
### QUESTION Name the number of position for democratic republic of the congo ### CONTEXT CREATE TABLE table_24565004_13 (position VARCHAR, nationality² VARCHAR) ### ANSWER SELECT COUNT(position) FROM table_24565004_13 WHERE nationality² = "Democratic Republic of the Congo"</s>
{ "answer": "SELECT COUNT(position) FROM table_24565004_13 WHERE nationality² = \"Democratic Republic of the Congo\"", "context": "CREATE TABLE table_24565004_13 (position VARCHAR, nationality² VARCHAR)", "question": "Name the number of position for democratic republic of the congo" }
### QUESTION Which Byes have a Lexton Plains of skipton? ### CONTEXT CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR) ### ANSWER SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = "skipton"</s>
{ "answer": "SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = \"skipton\"", "context": "CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR)", "question": "Which Byes have a Lexton Plains of skipton?" }
### QUESTION How many Byes have an Against of 972, and more than 11 wins? ### CONTEXT CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR) ### ANSWER SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11</s>
{ "answer": "SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11", "context": "CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR)", "question": "How many Byes have an Against of 972, and more than 11 wins?" }
### QUESTION What tries against value does burry port rfc have? ### CONTEXT CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR) ### ANSWER SELECT tries_against FROM table_name_87 WHERE club = "burry port rfc"</s>
{ "answer": "SELECT tries_against FROM table_name_87 WHERE club = \"burry port rfc\"", "context": "CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR)", "question": "What tries against value does burry port rfc have?" }
### QUESTION How many TV Channel using language English? ### CONTEXT CREATE TABLE TV_Channel (LANGUAGE VARCHAR) ### ANSWER SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = "English"</s>
{ "answer": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = \"English\"", "context": "CREATE TABLE TV_Channel (LANGUAGE VARCHAR)", "question": "How many TV Channel using language English?" }
### QUESTION List the language used least number of TV Channel. List language and number of TV Channel. ### CONTEXT CREATE TABLE TV_Channel (LANGUAGE VARCHAR) ### ANSWER SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) LIMIT 1</s>
{ "answer": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE TV_Channel (LANGUAGE VARCHAR)", "question": "List the language used least number of TV Channel. List language and number of TV Channel." }
### QUESTION List each language and the number of TV Channels using it. ### CONTEXT CREATE TABLE TV_Channel (LANGUAGE VARCHAR) ### ANSWER SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE</s>
{ "answer": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE", "context": "CREATE TABLE TV_Channel (LANGUAGE VARCHAR)", "question": "List each language and the number of TV Channels using it." }
### QUESTION Name the number of appearances for yugoslavia ### CONTEXT CREATE TABLE table_24565004_20 (appearances¹ VARCHAR, nationality² VARCHAR) ### ANSWER SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = "Yugoslavia"</s>
{ "answer": "SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = \"Yugoslavia\"", "context": "CREATE TABLE table_24565004_20 (appearances¹ VARCHAR, nationality² VARCHAR)", "question": "Name the number of appearances for yugoslavia" }
### QUESTION Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms? ### CONTEXT CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR) ### ANSWER SELECT MIN(staterooms) FROM table_name_44 WHERE comments = "diesel-electric hybrid engines" AND length = "443 feet" AND guests > 190</s>
{ "answer": "SELECT MIN(staterooms) FROM table_name_44 WHERE comments = \"diesel-electric hybrid engines\" AND length = \"443 feet\" AND guests > 190", "context": "CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR)", "question": "Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?" }
### QUESTION Name the nationality for defender 201 ### CONTEXT CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR) ### ANSWER SELECT nationality² FROM table_24565004_20 WHERE position = "Defender" AND appearances¹ = 201</s>
{ "answer": "SELECT nationality² FROM table_24565004_20 WHERE position = \"Defender\" AND appearances¹ = 201", "context": "CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR)", "question": "Name the nationality for defender 201" }
### QUESTION What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro? ### CONTEXT CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR) ### ANSWER SELECT place_of_birth FROM table_name_65 WHERE elevator = "lucius iii" AND cardinalatial_title = "deacon of s. giorgio in velabro"</s>
{ "answer": "SELECT place_of_birth FROM table_name_65 WHERE elevator = \"lucius iii\" AND cardinalatial_title = \"deacon of s. giorgio in velabro\"", "context": "CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR)", "question": "What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro?" }
### QUESTION List the Episode of all TV series showed on TV Channel with series name "Sky Radio". ### CONTEXT CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR); CREATE TABLE TV_series (Episode VARCHAR, Channel VARCHAR) ### ANSWER SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"</s>
{ "answer": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\"", "context": "CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR); CREATE TABLE TV_series (Episode VARCHAR, Channel VARCHAR)", "question": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\"." }
### QUESTION How many totals have a Premier League smaller than 6, and a League Cup larger than 0? ### CONTEXT CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR) ### ANSWER SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0</s>
{ "answer": "SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0", "context": "CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR)", "question": "How many totals have a Premier League smaller than 6, and a League Cup larger than 0?" }
### QUESTION Find the production code and channel of the most recently aired cartoon . ### CONTEXT CREATE TABLE cartoon (production_code VARCHAR, channel VARCHAR, original_air_date VARCHAR) ### ANSWER SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1</s>
{ "answer": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1", "context": "CREATE TABLE cartoon (production_code VARCHAR, channel VARCHAR, original_air_date VARCHAR)", "question": "Find the production code and channel of the most recently aired cartoon ." }
### QUESTION Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang? ### CONTEXT CREATE TABLE TV_Channel (series_name VARCHAR, country VARCHAR, id VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, directed_by VARCHAR) ### ANSWER SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'</s>
{ "answer": "SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", "context": "CREATE TABLE TV_Channel (series_name VARCHAR, country VARCHAR, id VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, directed_by VARCHAR)", "question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?" }
### QUESTION Which player had 252 appearances ### CONTEXT CREATE TABLE table_24565004_7 (name VARCHAR, appearances¹ VARCHAR) ### ANSWER SELECT name FROM table_24565004_7 WHERE appearances¹ = 252</s>
{ "answer": "SELECT name FROM table_24565004_7 WHERE appearances¹ = 252", "context": "CREATE TABLE table_24565004_7 (name VARCHAR, appearances¹ VARCHAR)", "question": "Which player had 252 appearances" }
### QUESTION find the id of tv channels that do not play any cartoon directed by Ben Jones. ### CONTEXT CREATE TABLE TV_Channel (id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE cartoon (id VARCHAR, channel VARCHAR, directed_by VARCHAR) ### ANSWER SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'</s>
{ "answer": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "context": "CREATE TABLE TV_Channel (id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE cartoon (id VARCHAR, channel VARCHAR, directed_by VARCHAR)", "question": "find the id of tv channels that do not play any cartoon directed by Ben Jones." }
### QUESTION how many time is the final record is 9–16–5? ### CONTEXT CREATE TABLE table_245711_2 (season VARCHAR, final_record VARCHAR) ### ANSWER SELECT COUNT(season) FROM table_245711_2 WHERE final_record = "9–16–5"</s>
{ "answer": "SELECT COUNT(season) FROM table_245711_2 WHERE final_record = \"9–16–5\"", "context": "CREATE TABLE table_245711_2 (season VARCHAR, final_record VARCHAR)", "question": "how many time is the final record is 9–16–5?" }
### QUESTION Name the least indian tamil for population density being 240 ### CONTEXT CREATE TABLE table_24574438_1 (indian_tamil INTEGER, population_density___km_2__ VARCHAR) ### ANSWER SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240</s>
{ "answer": "SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240", "context": "CREATE TABLE table_24574438_1 (indian_tamil INTEGER, population_density___km_2__ VARCHAR)", "question": "Name the least indian tamil for population density being 240" }
### QUESTION When westcott is in division one how many leagues are in division 5? ### CONTEXT CREATE TABLE table_24575253_4 (division_five VARCHAR, division_one VARCHAR) ### ANSWER SELECT COUNT(division_five) FROM table_24575253_4 WHERE division_one = "Westcott"</s>
{ "answer": "SELECT COUNT(division_five) FROM table_24575253_4 WHERE division_one = \"Westcott\"", "context": "CREATE TABLE table_24575253_4 (division_five VARCHAR, division_one VARCHAR)", "question": "When westcott is in division one how many leagues are in division 5?" }
### QUESTION What are the names of poker players in descending order of earnings? ### CONTEXT CREATE TABLE poker_player (People_ID VARCHAR, Earnings VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### ANSWER SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC</s>
{ "answer": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "context": "CREATE TABLE poker_player (People_ID VARCHAR, Earnings VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "question": "What are the names of poker players in descending order of earnings?" }
### QUESTION What is the most common nationality of people? ### CONTEXT CREATE TABLE people (Nationality VARCHAR) ### ANSWER SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE people (Nationality VARCHAR)", "question": "What is the most common nationality of people?" }
### QUESTION When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration? ### CONTEXT CREATE TABLE table_245801_2 (duration VARCHAR, spacecraft VARCHAR) ### ANSWER SELECT duration FROM table_245801_2 WHERE spacecraft = "Salyut 7 – VE-4 – EVA 1"</s>
{ "answer": "SELECT duration FROM table_245801_2 WHERE spacecraft = \"Salyut 7 – VE-4 – EVA 1\"", "context": "CREATE TABLE table_245801_2 (duration VARCHAR, spacecraft VARCHAR)", "question": "When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration?" }
### QUESTION When first woman eva is the comment what is the end -utc? ### CONTEXT CREATE TABLE table_245801_2 (end___utc VARCHAR, comments VARCHAR) ### ANSWER SELECT end___utc FROM table_245801_2 WHERE comments = "First woman EVA"</s>
{ "answer": "SELECT end___utc FROM table_245801_2 WHERE comments = \"First woman EVA\"", "context": "CREATE TABLE table_245801_2 (end___utc VARCHAR, comments VARCHAR)", "question": "When first woman eva is the comment what is the end -utc?" }
### QUESTION Name the duration for vladimir vasyutin , alexander volkov ### CONTEXT CREATE TABLE table_245801_1 (duration__days_ VARCHAR, crew VARCHAR) ### ANSWER SELECT COUNT(duration__days_) FROM table_245801_1 WHERE crew = "Vladimir Vasyutin , Alexander Volkov"</s>
{ "answer": "SELECT COUNT(duration__days_) FROM table_245801_1 WHERE crew = \"Vladimir Vasyutin , Alexander Volkov\"", "context": "CREATE TABLE table_245801_1 (duration__days_ VARCHAR, crew VARCHAR)", "question": "Name the duration for vladimir vasyutin , alexander volkov" }
### QUESTION What are the contestant numbers and names of the contestants who had at least two votes? ### CONTEXT CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR) ### ANSWER SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING COUNT(*) >= 2", "context": "CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)", "question": "What are the contestant numbers and names of the contestants who had at least two votes?" }
### QUESTION Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes? ### CONTEXT CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR) ### ANSWER SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1</s>
{ "answer": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)", "question": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?" }
### QUESTION What are the number of votes from state 'NY' or 'CA'? ### CONTEXT CREATE TABLE votes (state VARCHAR) ### ANSWER SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA'</s>
{ "answer": "SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA'", "context": "CREATE TABLE votes (state VARCHAR)", "question": "What are the number of votes from state 'NY' or 'CA'?" }
### QUESTION What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'? ### CONTEXT CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR); CREATE TABLE votes (created VARCHAR, state VARCHAR, phone_number VARCHAR, contestant_number VARCHAR) ### ANSWER SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'</s>
{ "answer": "SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'", "context": "CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR); CREATE TABLE votes (created VARCHAR, state VARCHAR, phone_number VARCHAR, contestant_number VARCHAR)", "question": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?" }
### QUESTION List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'. ### CONTEXT CREATE TABLE votes (contestant_number VARCHAR, state VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR); CREATE TABLE area_code_state (area_code VARCHAR, state VARCHAR) ### ANSWER SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'</s>
{ "answer": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'", "context": "CREATE TABLE votes (contestant_number VARCHAR, state VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR); CREATE TABLE area_code_state (area_code VARCHAR, state VARCHAR)", "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'." }
### QUESTION Which district had SC reserved and 169 Constituents? ### CONTEXT CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) ### ANSWER SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169"</s>
{ "answer": "SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = \"sc\" AND constituency_number = \"169\"", "context": "CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)", "question": "Which district had SC reserved and 169 Constituents?" }
### QUESTION Name the most number of believers for ܓܘܝܠܢ ### CONTEXT CREATE TABLE table_24613895_1 (number_of_believers INTEGER, name_in_syriac VARCHAR) ### ANSWER SELECT MAX(number_of_believers) FROM table_24613895_1 WHERE name_in_syriac = "ܓܘܝܠܢ"</s>
{ "answer": "SELECT MAX(number_of_believers) FROM table_24613895_1 WHERE name_in_syriac = \"ܓܘܝܠܢ\"", "context": "CREATE TABLE table_24613895_1 (number_of_believers INTEGER, name_in_syriac VARCHAR)", "question": "Name the most number of believers for ܓܘܝܠܢ" }
### QUESTION Which language is the most popular in Aruba? ### CONTEXT CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### ANSWER SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba" ORDER BY Percentage DESC LIMIT 1</s>
{ "answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1", "context": "CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "question": "Which language is the most popular in Aruba?" }
### QUESTION When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there? ### CONTEXT CREATE TABLE table_24620684_2 (clean_electric_grid_california__san_francisco_ VARCHAR, vehicle VARCHAR) ### ANSWER SELECT COUNT(clean_electric_grid_california__san_francisco_) FROM table_24620684_2 WHERE vehicle = "BMW ActiveE"</s>
{ "answer": "SELECT COUNT(clean_electric_grid_california__san_francisco_) FROM table_24620684_2 WHERE vehicle = \"BMW ActiveE\"", "context": "CREATE TABLE table_24620684_2 (clean_electric_grid_california__san_francisco_ VARCHAR, vehicle VARCHAR)", "question": "When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there?" }
### QUESTION What are the population and life expectancies in Brazil? ### CONTEXT CREATE TABLE country (Population VARCHAR, LifeExpectancy VARCHAR, Name VARCHAR) ### ANSWER SELECT Population, LifeExpectancy FROM country WHERE Name = "Brazil"</s>
{ "answer": "SELECT Population, LifeExpectancy FROM country WHERE Name = \"Brazil\"", "context": "CREATE TABLE country (Population VARCHAR, LifeExpectancy VARCHAR, Name VARCHAR)", "question": "What are the population and life expectancies in Brazil?" }
### QUESTION When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix? ### CONTEXT CREATE TABLE table_24620684_2 (us_national_average_electric_mix VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR) ### ANSWER SELECT us_national_average_electric_mix FROM table_24620684_2 WHERE dirty_electric_grid_rocky_mountains__denver_ = "380 g/mi (236 g/km)"</s>
{ "answer": "SELECT us_national_average_electric_mix FROM table_24620684_2 WHERE dirty_electric_grid_rocky_mountains__denver_ = \"380 g/mi (236 g/km)\"", "context": "CREATE TABLE table_24620684_2 (us_national_average_electric_mix VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR)", "question": "When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?" }
### QUESTION What is the release date of the mm series, which has the title tom thumb in trouble? ### CONTEXT CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR) ### ANSWER SELECT release_date FROM table_name_40 WHERE series = "mm" AND title = "tom thumb in trouble"</s>
{ "answer": "SELECT release_date FROM table_name_40 WHERE series = \"mm\" AND title = \"tom thumb in trouble\"", "context": "CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR)", "question": "What is the release date of the mm series, which has the title tom thumb in trouble?" }
### QUESTION What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007? ### CONTEXT CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR) ### ANSWER SELECT AVG(start) FROM table_name_33 WHERE team = "andretti green racing" AND finish > 3 AND year < 2007</s>
{ "answer": "SELECT AVG(start) FROM table_name_33 WHERE team = \"andretti green racing\" AND finish > 3 AND year < 2007", "context": "CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR)", "question": "What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?" }
### QUESTION What is the total surface area of the continents Asia and Europe? ### CONTEXT CREATE TABLE country (SurfaceArea INTEGER, Continent VARCHAR) ### ANSWER SELECT SUM(SurfaceArea) FROM country WHERE Continent = "Asia" OR Continent = "Europe"</s>
{ "answer": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", "context": "CREATE TABLE country (SurfaceArea INTEGER, Continent VARCHAR)", "question": "What is the total surface area of the continents Asia and Europe?" }
### QUESTION What is the average GNP and total population in all nations whose government is US territory? ### CONTEXT CREATE TABLE country (GNP INTEGER, population INTEGER, GovernmentForm VARCHAR) ### ANSWER SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = "US Territory"</s>
{ "answer": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = \"US Territory\"", "context": "CREATE TABLE country (GNP INTEGER, population INTEGER, GovernmentForm VARCHAR)", "question": "What is the average GNP and total population in all nations whose government is US territory?" }
### QUESTION What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis? ### CONTEXT CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR) ### ANSWER SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8</s>
{ "answer": "SELECT year FROM table_name_51 WHERE chassis = \"dallara\" AND team = \"andretti green racing\" AND finish < 8", "context": "CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR)", "question": "What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?" }
### QUESTION What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character? ### CONTEXT CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR) ### ANSWER SELECT director FROM table_name_93 WHERE release_date = "2004-03-31" AND characters = "daffy (as duck dodgers)"</s>
{ "answer": "SELECT director FROM table_name_93 WHERE release_date = \"2004-03-31\" AND characters = \"daffy (as duck dodgers)\"", "context": "CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR)", "question": "What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?" }
### QUESTION What is the total number of languages used in Aruba? ### CONTEXT CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### ANSWER SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba"</s>
{ "answer": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", "context": "CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "question": "What is the total number of languages used in Aruba?" }
### QUESTION What series has dan povenmire as the director, with museum scream as the title? ### CONTEXT CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR) ### ANSWER SELECT series FROM table_name_46 WHERE director = "dan povenmire" AND title = "museum scream"</s>
{ "answer": "SELECT series FROM table_name_46 WHERE director = \"dan povenmire\" AND title = \"museum scream\"", "context": "CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR)", "question": "What series has dan povenmire as the director, with museum scream as the title?" }
### QUESTION How many official languages does Afghanistan have? ### CONTEXT CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR) ### ANSWER SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Afghanistan" AND IsOfficial = "T"</s>
{ "answer": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", "context": "CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR)", "question": "How many official languages does Afghanistan have?" }
### QUESTION Which continent has the most diverse languages? ### CONTEXT CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Continent VARCHAR, Code VARCHAR) ### ANSWER SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Continent VARCHAR, Code VARCHAR)", "question": "Which continent has the most diverse languages?" }
### QUESTION How many countries speak both English and Dutch? ### CONTEXT CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### ANSWER SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch")</s>
{ "answer": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", "context": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "question": "How many countries speak both English and Dutch?" }
### QUESTION What are the names of nations speak both English and French? ### CONTEXT CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### ANSWER SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French"</s>
{ "answer": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", "context": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "question": "What are the names of nations speak both English and French?" }
### QUESTION What are the names of nations where both English and French are official languages? ### CONTEXT CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)", "question": "What are the names of nations where both English and French are official languages?" }
### QUESTION Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790? ### CONTEXT CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR) ### ANSWER SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790</s>
{ "answer": "SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790", "context": "CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR)", "question": "Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?" }
### QUESTION Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse? ### CONTEXT CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR) ### ANSWER SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = "pinehouse"</s>
{ "answer": "SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = \"pinehouse\"", "context": "CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)", "question": "Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?" }
### QUESTION What are the countries where either English or Dutch is the official language ? ### CONTEXT CREATE TABLE countrylanguage (countrycode VARCHAR, language VARCHAR); CREATE TABLE country (name VARCHAR, code VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE countrylanguage (countrycode VARCHAR, language VARCHAR); CREATE TABLE country (name VARCHAR, code VARCHAR)", "question": "What are the countries where either English or Dutch is the official language ?" }
### QUESTION Which countries have either English or Dutch as an official language? ### CONTEXT CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### ANSWER SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND IsOfficial = "T" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch" AND IsOfficial = "T"</s>
{ "answer": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\"", "context": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "question": "Which countries have either English or Dutch as an official language?" }
### QUESTION Which language is the most popular on the Asian continent? ### CONTEXT CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### ANSWER SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = "Asia" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "question": "Which language is the most popular on the Asian continent?" }
### QUESTION What is the number of distinct continents where Chinese is spoken? ### CONTEXT CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### ANSWER SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Chinese"</s>
{ "answer": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", "context": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "question": "What is the number of distinct continents where Chinese is spoken?" }
### QUESTION Find the city with the largest population that uses English. ### CONTEXT CREATE TABLE city (Name VARCHAR, Population VARCHAR, CountryCode VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### ANSWER SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = "English" ORDER BY T1.Population DESC LIMIT 1</s>
{ "answer": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", "context": "CREATE TABLE city (Name VARCHAR, Population VARCHAR, CountryCode VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "question": "Find the city with the largest population that uses English." }