text
stringlengths
150
1.06k
source
dict
### QUESTION Which Points 1 has a Team of atherton collieries, and a Position smaller than 8? ### CONTEXT CREATE TABLE table_name_11 (points_1 INTEGER, team VARCHAR, position VARCHAR) ### ANSWER SELECT MAX(points_1) FROM table_name_11 WHERE team = "atherton collieries" AND position < 8</s>
{ "answer": "SELECT MAX(points_1) FROM table_name_11 WHERE team = \"atherton collieries\" AND position < 8", "context": "CREATE TABLE table_name_11 (points_1 INTEGER, team VARCHAR, position VARCHAR)", "question": "Which Points 1 has a Team of atherton collieries, and a Position smaller than 8?" }
### QUESTION Which province is Villa Bisonó in? ### CONTEXT CREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR) ### ANSWER SELECT province, _community FROM table_22447251_2 WHERE hometown = "Villa Bisonó"</s>
{ "answer": "SELECT province, _community FROM table_22447251_2 WHERE hometown = \"Villa Bisonó\"", "context": "CREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR)", "question": "Which province is Villa Bisonó in?" }
### QUESTION Find the name and age of the person who is a friend of both Dan and Alice. ### CONTEXT CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR) ### ANSWER SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'</s>
{ "answer": "SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'", "context": "CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)", "question": "Find the name and age of the person who is a friend of both Dan and Alice." }
### QUESTION Find the name of the person who has friends with age above 40 and under age 30? ### CONTEXT CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) ### ANSWER SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)</s>
{ "answer": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)", "context": "CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)", "question": "Find the name of the person who has friends with age above 40 and under age 30?" }
### QUESTION Find the name of the person who has friends with age above 40 but not under age 30? ### CONTEXT CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) ### ANSWER SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)</s>
{ "answer": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)", "context": "CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)", "question": "Find the name of the person who has friends with age above 40 but not under age 30?" }
### QUESTION Find the name of the person who has no student friends. ### CONTEXT CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR) ### ANSWER SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'</s>
{ "answer": "SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'", "context": "CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR)", "question": "Find the name of the person who has no student friends." }
### QUESTION What event had Xu Zhilin competing? ### CONTEXT CREATE TABLE table_name_21 (event VARCHAR, name VARCHAR) ### ANSWER SELECT event FROM table_name_21 WHERE name = "xu zhilin"</s>
{ "answer": "SELECT event FROM table_name_21 WHERE name = \"xu zhilin\"", "context": "CREATE TABLE table_name_21 (event VARCHAR, name VARCHAR)", "question": "What event had Xu Zhilin competing?" }
### QUESTION Find the name of persons who are friends with Bob. ### CONTEXT CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) ### ANSWER SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'</s>
{ "answer": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'", "context": "CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)", "question": "Find the name of persons who are friends with Bob." }
### QUESTION How many years is Antonio Pompa-Baldi Italy first? ### CONTEXT CREATE TABLE table_name_36 (year VARCHAR, first VARCHAR) ### ANSWER SELECT COUNT(year) FROM table_name_36 WHERE first = "antonio pompa-baldi italy"</s>
{ "answer": "SELECT COUNT(year) FROM table_name_36 WHERE first = \"antonio pompa-baldi italy\"", "context": "CREATE TABLE table_name_36 (year VARCHAR, first VARCHAR)", "question": "How many years is Antonio Pompa-Baldi Italy first?" }
### QUESTION Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18? ### CONTEXT CREATE TABLE table_name_47 (wins INTEGER, club VARCHAR, goals_for VARCHAR) ### ANSWER SELECT SUM(wins) FROM table_name_47 WHERE club = "abuls smiltene" AND goals_for < 18</s>
{ "answer": "SELECT SUM(wins) FROM table_name_47 WHERE club = \"abuls smiltene\" AND goals_for < 18", "context": "CREATE TABLE table_name_47 (wins INTEGER, club VARCHAR, goals_for VARCHAR)", "question": "Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18?" }
### QUESTION Find the male friend of Alice whose job is a doctor? ### CONTEXT CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, job VARCHAR, gender VARCHAR) ### ANSWER SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'</s>
{ "answer": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'", "context": "CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, job VARCHAR, gender VARCHAR)", "question": "Find the male friend of Alice whose job is a doctor?" }
### QUESTION Who has friends that are older than the average age? Print their friends and their ages as well ### CONTEXT CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR) ### ANSWER SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person)</s>
{ "answer": "SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person)", "context": "CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)", "question": "Who has friends that are older than the average age? Print their friends and their ages as well" }
### QUESTION What is the age of the friend of Zach with longest year relationship? ### CONTEXT CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, year VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, name VARCHAR); CREATE TABLE Person (age VARCHAR, name VARCHAR) ### ANSWER SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')</s>
{ "answer": "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')", "context": "CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, year VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, name VARCHAR); CREATE TABLE Person (age VARCHAR, name VARCHAR)", "question": "What is the age of the friend of Zach with longest year relationship?" }
### QUESTION how many times has Aaron Ogden (f), been a successor and has had a formal installation? ### CONTEXT CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR) ### ANSWER SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)"</s>
{ "answer": "SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = \"Aaron Ogden (F)\"", "context": "CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)", "question": "how many times has Aaron Ogden (f), been a successor and has had a formal installation? " }
### QUESTION Find the name, age, and job title of persons who are friends with Alice for the longest years. ### CONTEXT CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year VARCHAR); CREATE TABLE Person (name VARCHAR, age VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, friend VARCHAR) ### ANSWER SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE friend = 'Alice')</s>
{ "answer": "SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE friend = 'Alice')", "context": "CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year VARCHAR); CREATE TABLE Person (name VARCHAR, age VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, friend VARCHAR)", "question": "Find the name, age, and job title of persons who are friends with Alice for the longest years." }
### QUESTION What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical? ### CONTEXT CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR) ### ANSWER SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = "drama desk award" AND category = "outstanding featured actor in a musical"</s>
{ "answer": "SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = \"drama desk award\" AND category = \"outstanding featured actor in a musical\"", "context": "CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)", "question": "What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?" }
### QUESTION Which person whose friends have the oldest average age? ### CONTEXT CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR) ### ANSWER SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1</s>
{ "answer": "SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1", "context": "CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)", "question": "Which person whose friends have the oldest average age?" }
### QUESTION Who is the person that has no friend? ### CONTEXT CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR) ### ANSWER SELECT name FROM person EXCEPT SELECT name FROM PersonFriend</s>
{ "answer": "SELECT name FROM person EXCEPT SELECT name FROM PersonFriend", "context": "CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR)", "question": "Who is the person that has no friend?" }
### QUESTION Find Alice's friends of friends. ### CONTEXT CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) ### ANSWER SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice'</s>
{ "answer": "SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice'", "context": "CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)", "question": "Find Alice's friends of friends." }
### QUESTION What was the nominated work, nominated for the drama league award before 2007? ### CONTEXT CREATE TABLE table_name_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR) ### ANSWER SELECT nominated_work FROM table_name_29 WHERE result = "nominated" AND award = "drama league award" AND year < 2007</s>
{ "answer": "SELECT nominated_work FROM table_name_29 WHERE result = \"nominated\" AND award = \"drama league award\" AND year < 2007", "context": "CREATE TABLE table_name_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR)", "question": "What was the nominated work, nominated for the drama league award before 2007?" }
### QUESTION How many Losses have South West DFL of coleraine, and an Against smaller than 891? ### CONTEXT CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR) ### ANSWER SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891</s>
{ "answer": "SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = \"coleraine\" AND against < 891", "context": "CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR)", "question": "How many Losses have South West DFL of coleraine, and an Against smaller than 891?" }
### QUESTION Who is the color commentator when brian engblom is ice level reporters? ### CONTEXT CREATE TABLE table_22485543_1 (color_commentator_s_ VARCHAR, ice_level_reporters VARCHAR) ### ANSWER SELECT color_commentator_s_ FROM table_22485543_1 WHERE ice_level_reporters = "Brian Engblom"</s>
{ "answer": "SELECT color_commentator_s_ FROM table_22485543_1 WHERE ice_level_reporters = \"Brian Engblom\"", "context": "CREATE TABLE table_22485543_1 (color_commentator_s_ VARCHAR, ice_level_reporters VARCHAR)", "question": "Who is the color commentator when brian engblom is ice level reporters?" }
### QUESTION What is the population when the area is 4,575? ### CONTEXT CREATE TABLE table_name_8 (population VARCHAR, area VARCHAR) ### ANSWER SELECT population FROM table_name_8 WHERE area = "4,575"</s>
{ "answer": "SELECT population FROM table_name_8 WHERE area = \"4,575\"", "context": "CREATE TABLE table_name_8 (population VARCHAR, area VARCHAR)", "question": "What is the population when the area is 4,575?" }
### QUESTION Name the gdp per capita for world rank being 131 ### CONTEXT CREATE TABLE table_2249029_1 (gdp_per_capita VARCHAR, gdp_world_rank VARCHAR) ### ANSWER SELECT gdp_per_capita FROM table_2249029_1 WHERE gdp_world_rank = "131"</s>
{ "answer": "SELECT gdp_per_capita FROM table_2249029_1 WHERE gdp_world_rank = \"131\"", "context": "CREATE TABLE table_2249029_1 (gdp_per_capita VARCHAR, gdp_world_rank VARCHAR)", "question": "Name the gdp per capita for world rank being 131" }
### QUESTION Find the name and access counts of all documents, in alphabetic order of the document name. ### CONTEXT CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR) ### ANSWER SELECT document_name, access_count FROM documents ORDER BY document_name</s>
{ "answer": "SELECT document_name, access_count FROM documents ORDER BY document_name", "context": "CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR)", "question": "Find the name and access counts of all documents, in alphabetic order of the document name." }
### QUESTION Find the types of documents with more than 4 documents. ### CONTEXT CREATE TABLE documents (document_type_code VARCHAR) ### ANSWER SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4</s>
{ "answer": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4", "context": "CREATE TABLE documents (document_type_code VARCHAR)", "question": "Find the types of documents with more than 4 documents." }
### QUESTION What is the average access count of documents? ### CONTEXT CREATE TABLE documents (access_count INTEGER) ### ANSWER SELECT AVG(access_count) FROM documents</s>
{ "answer": "SELECT AVG(access_count) FROM documents", "context": "CREATE TABLE documents (access_count INTEGER)", "question": "What is the average access count of documents?" }
### QUESTION What is the structure of the document with the least number of accesses? ### CONTEXT CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR) ### ANSWER SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR)", "question": "What is the structure of the document with the least number of accesses?" }
### QUESTION Find the list of documents that are both in the most three popular type and have the most three popular structure. ### CONTEXT CREATE TABLE documents (document_name VARCHAR, document_type_code VARCHAR, document_structure_code VARCHAR) ### ANSWER SELECT document_name FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) DESC LIMIT 3</s>
{ "answer": "SELECT document_name FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) DESC LIMIT 3", "context": "CREATE TABLE documents (document_name VARCHAR, document_type_code VARCHAR, document_structure_code VARCHAR)", "question": "Find the list of documents that are both in the most three popular type and have the most three popular structure." }
### QUESTION What are all the section titles of the document named "David CV"? ### CONTEXT CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR) ### ANSWER SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV"</s>
{ "answer": "SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = \"David CV\"", "context": "CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR)", "question": "What are all the section titles of the document named \"David CV\"?" }
### QUESTION Find the average access counts of documents with functional area "Acknowledgement". ### CONTEXT CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR) ### ANSWER SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = "Acknowledgement"</s>
{ "answer": "SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = \"Acknowledgement\"", "context": "CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)", "question": "Find the average access counts of documents with functional area \"Acknowledgement\"." }
### QUESTION Find names of the document without any images. ### CONTEXT CREATE TABLE document_sections_images (section_id VARCHAR); CREATE TABLE documents (document_name VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR); CREATE TABLE document_sections (document_code VARCHAR, section_id VARCHAR) ### ANSWER SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id</s>
{ "answer": "SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id", "context": "CREATE TABLE document_sections_images (section_id VARCHAR); CREATE TABLE documents (document_name VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR); CREATE TABLE document_sections (document_code VARCHAR, section_id VARCHAR)", "question": "Find names of the document without any images." }
### QUESTION How many weight stats are there for players from San Francisco, CA? ### CONTEXT CREATE TABLE table_22496374_1 (weight VARCHAR, home_town VARCHAR) ### ANSWER SELECT COUNT(weight) FROM table_22496374_1 WHERE home_town = "San Francisco, CA"</s>
{ "answer": "SELECT COUNT(weight) FROM table_22496374_1 WHERE home_town = \"San Francisco, CA\"", "context": "CREATE TABLE table_22496374_1 (weight VARCHAR, home_town VARCHAR)", "question": "How many weight stats are there for players from San Francisco, CA?" }
### QUESTION What is To par, when Total is less than 148, and when Country is "South Africa"? ### CONTEXT CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR) ### ANSWER SELECT to_par FROM table_name_7 WHERE total < 148 AND country = "south africa"</s>
{ "answer": "SELECT to_par FROM table_name_7 WHERE total < 148 AND country = \"south africa\"", "context": "CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR)", "question": "What is To par, when Total is less than 148, and when Country is \"South Africa\"?" }
### QUESTION Find the description of the most popular role among the users that have logged in. ### CONTEXT CREATE TABLE users (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR); CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR) ### ANSWER SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1)</s>
{ "answer": "SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1)", "context": "CREATE TABLE users (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR); CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR)", "question": "Find the description of the most popular role among the users that have logged in." }
### QUESTION How many reasons for change were listed when Edward Hempstead was the successor? ### CONTEXT CREATE TABLE table_225095_4 (reason_for_change VARCHAR, successor VARCHAR) ### ANSWER SELECT COUNT(reason_for_change) FROM table_225095_4 WHERE successor = "Edward Hempstead"</s>
{ "answer": "SELECT COUNT(reason_for_change) FROM table_225095_4 WHERE successor = \"Edward Hempstead\"", "context": "CREATE TABLE table_225095_4 (reason_for_change VARCHAR, successor VARCHAR)", "question": "How many reasons for change were listed when Edward Hempstead was the successor?" }
### QUESTION What's the total for the wc belgrade event with 10 rank points? ### CONTEXT CREATE TABLE table_name_3 (total VARCHAR, event VARCHAR, rank_points VARCHAR) ### ANSWER SELECT total FROM table_name_3 WHERE event = "wc belgrade" AND rank_points = "10"</s>
{ "answer": "SELECT total FROM table_name_3 WHERE event = \"wc belgrade\" AND rank_points = \"10\"", "context": "CREATE TABLE table_name_3 (total VARCHAR, event VARCHAR, rank_points VARCHAR)", "question": "What's the total for the wc belgrade event with 10 rank points?" }
### QUESTION Who was the successor for the state of Maine (2) ? ### CONTEXT CREATE TABLE table_225099_3 (successor VARCHAR, state__class_ VARCHAR) ### ANSWER SELECT successor FROM table_225099_3 WHERE state__class_ = "Maine (2)"</s>
{ "answer": "SELECT successor FROM table_225099_3 WHERE state__class_ = \"Maine (2)\"", "context": "CREATE TABLE table_225099_3 (successor VARCHAR, state__class_ VARCHAR)", "question": "Who was the successor for the state of Maine (2) ?" }
### QUESTION Show the names of the buildings that have more than one company offices. ### CONTEXT CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR) ### ANSWER SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1</s>
{ "answer": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1", "context": "CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)", "question": "Show the names of the buildings that have more than one company offices." }
### QUESTION In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack? ### CONTEXT CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR) ### ANSWER SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack"</s>
{ "answer": "SELECT MIN(year) FROM table_22514845_4 WHERE reporters = \"Howard Cosell and Jack Whitaker\" AND s_analyst = \"Bill Hartack\"", "context": "CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR)", "question": "In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?" }
### QUESTION Who is the race caller when jim mckay and al michaels were s hosts in the year 1987? ### CONTEXT CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR) ### ANSWER SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 1987</s>
{ "answer": "SELECT race_caller FROM table_22514845_4 WHERE s_host = \"Jim McKay and Al Michaels\" AND year = 1987", "context": "CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR)", "question": "Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?" }
### QUESTION Please show each industry and the corresponding number of companies in that industry. ### CONTEXT CREATE TABLE Companies (Industry VARCHAR) ### ANSWER SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry</s>
{ "answer": "SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry", "context": "CREATE TABLE Companies (Industry VARCHAR)", "question": "Please show each industry and the corresponding number of companies in that industry." }
### QUESTION Show the name of the building that has the most company offices. ### CONTEXT CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR) ### ANSWER SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)", "question": "Show the name of the building that has the most company offices." }
### QUESTION Name the race caller for jim mckay and howard cosell and eddie arcaro ### CONTEXT CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_analyst VARCHAR, trophy_presentation VARCHAR, reporters VARCHAR) ### ANSWER SELECT race_caller FROM table_22514845_5 WHERE trophy_presentation = "Jim McKay and Howard Cosell" AND reporters = "Howard Cosell" AND s_analyst = "Eddie Arcaro"</s>
{ "answer": "SELECT race_caller FROM table_22514845_5 WHERE trophy_presentation = \"Jim McKay and Howard Cosell\" AND reporters = \"Howard Cosell\" AND s_analyst = \"Eddie Arcaro\"", "context": "CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_analyst VARCHAR, trophy_presentation VARCHAR, reporters VARCHAR)", "question": "Name the race caller for jim mckay and howard cosell and eddie arcaro" }
### QUESTION What is the power output for class 5? ### CONTEXT CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR) ### ANSWER SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5</s>
{ "answer": "SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5", "context": "CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR)", "question": "What is the power output for class 5?" }
### QUESTION Show the prices of the products named "Dining" or "Trading Policy". ### CONTEXT CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR) ### ANSWER SELECT Product_Price FROM Products WHERE Product_Name = "Dining" OR Product_Name = "Trading Policy"</s>
{ "answer": "SELECT Product_Price FROM Products WHERE Product_Name = \"Dining\" OR Product_Name = \"Trading Policy\"", "context": "CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR)", "question": "Show the prices of the products named \"Dining\" or \"Trading Policy\"." }
### QUESTION Show the product type codes that have at least two products. ### CONTEXT CREATE TABLE Products (Product_Type_Code VARCHAR) ### ANSWER SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*) >= 2", "context": "CREATE TABLE Products (Product_Type_Code VARCHAR)", "question": "Show the product type codes that have at least two products." }
### QUESTION Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000. ### CONTEXT CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Price INTEGER) ### ANSWER SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000</s>
{ "answer": "SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000", "context": "CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Price INTEGER)", "question": "Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000." }
### QUESTION Show the names of products that are in at least two events. ### CONTEXT CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR) ### ANSWER SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2", "context": "CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)", "question": "Show the names of products that are in at least two events." }
### QUESTION Name the total number of reason for change for not filled this congress ### CONTEXT CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR) ### ANSWER SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress"</s>
{ "answer": "SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = \"Not filled this congress\"", "context": "CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)", "question": "Name the total number of reason for change for not filled this congress" }
### QUESTION List the names of products that are not in any event. ### CONTEXT CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_Name VARCHAR, Product_ID VARCHAR) ### ANSWER SELECT Product_Name FROM Products WHERE NOT Product_ID IN (SELECT Product_ID FROM Products_in_Events)</s>
{ "answer": "SELECT Product_Name FROM Products WHERE NOT Product_ID IN (SELECT Product_ID FROM Products_in_Events)", "context": "CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_Name VARCHAR, Product_ID VARCHAR)", "question": "List the names of products that are not in any event." }
### QUESTION Show the names of products that are in at least two events in ascending alphabetical order of product name. ### CONTEXT CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR) ### ANSWER SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name</s>
{ "answer": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name", "context": "CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)", "question": "Show the names of products that are in at least two events in ascending alphabetical order of product name." }
### QUESTION What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9? ### CONTEXT CREATE TABLE table_name_26 (final INTEGER, all_around VARCHAR, place VARCHAR, nation VARCHAR) ### ANSWER SELECT SUM(final) FROM table_name_26 WHERE place > 2 AND nation = "finland" AND all_around > 18.9</s>
{ "answer": "SELECT SUM(final) FROM table_name_26 WHERE place > 2 AND nation = \"finland\" AND all_around > 18.9", "context": "CREATE TABLE table_name_26 (final INTEGER, all_around VARCHAR, place VARCHAR, nation VARCHAR)", "question": "What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9?" }
### QUESTION What is the place of player sergio garcía, who has £77,500? ### CONTEXT CREATE TABLE table_name_45 (place VARCHAR, money___£__ VARCHAR, player VARCHAR) ### ANSWER SELECT place FROM table_name_45 WHERE money___£__ = "77,500" AND player = "sergio garcía"</s>
{ "answer": "SELECT place FROM table_name_45 WHERE money___£__ = \"77,500\" AND player = \"sergio garcía\"", "context": "CREATE TABLE table_name_45 (place VARCHAR, money___£__ VARCHAR, player VARCHAR)", "question": "What is the place of player sergio garcía, who has £77,500?" }
### QUESTION When the # is 4, what is the pop./ km²? ### CONTEXT CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR) ### ANSWER SELECT pop__km² FROM table_2252745_1 WHERE _number = 4</s>
{ "answer": "SELECT pop__km² FROM table_2252745_1 WHERE _number = 4", "context": "CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR)", "question": "When the # is 4, what is the pop./ km²?" }
### QUESTION Show distinct types of artworks that are nominated in festivals in 2007. ### CONTEXT CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR); CREATE TABLE artwork (Type VARCHAR, Artwork_ID VARCHAR) ### ANSWER SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007</s>
{ "answer": "SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007", "context": "CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR); CREATE TABLE artwork (Type VARCHAR, Artwork_ID VARCHAR)", "question": "Show distinct types of artworks that are nominated in festivals in 2007." }
### QUESTION Show the names of artworks in ascending order of the year they are nominated in. ### CONTEXT CREATE TABLE artwork (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR) ### ANSWER SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year</s>
{ "answer": "SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year", "context": "CREATE TABLE artwork (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR)", "question": "Show the names of artworks in ascending order of the year they are nominated in." }
### QUESTION Show the names of festivals that have nominated artworks of type "Program Talent Show". ### CONTEXT CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR) ### ANSWER SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = "Program Talent Show"</s>
{ "answer": "SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = \"Program Talent Show\"", "context": "CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)", "question": "Show the names of festivals that have nominated artworks of type \"Program Talent Show\"." }
### QUESTION Show the ids and names of festivals that have at least two nominations for artworks. ### CONTEXT CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR) ### ANSWER SELECT T1.Festival_ID, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T1.Festival_ID, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2", "context": "CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)", "question": "Show the ids and names of festivals that have at least two nominations for artworks." }
### QUESTION What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)? ### CONTEXT CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR) ### ANSWER SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)"</s>
{ "answer": "SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = \"Hong Kong 207/6 (47.1 overs)\"", "context": "CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR)", "question": "What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)?" }
### QUESTION If the runner-up is [[|]] 151/8 (50.0 overs), what were the results? ### CONTEXT CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR) ### ANSWER SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)"</s>
{ "answer": "SELECT result FROM table_22577693_1 WHERE runner_up = \"[[|]] 151/8 (50.0 overs)\"", "context": "CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR)", "question": "If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?" }
### QUESTION Show the id, name of each festival and the number of artworks it has nominated. ### CONTEXT CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR) ### ANSWER SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID</s>
{ "answer": "SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID", "context": "CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)", "question": "Show the id, name of each festival and the number of artworks it has nominated." }
### QUESTION What is Event, when Meet is "World Championships", and when Time is "20.51"? ### CONTEXT CREATE TABLE table_name_41 (event VARCHAR, meet VARCHAR, time VARCHAR) ### ANSWER SELECT event FROM table_name_41 WHERE meet = "world championships" AND time = "20.51"</s>
{ "answer": "SELECT event FROM table_name_41 WHERE meet = \"world championships\" AND time = \"20.51\"", "context": "CREATE TABLE table_name_41 (event VARCHAR, meet VARCHAR, time VARCHAR)", "question": "What is Event, when Meet is \"World Championships\", and when Time is \"20.51\"?" }
### QUESTION For each nomination, show the name of the artwork and name of the festival where it is nominated. ### CONTEXT CREATE TABLE artwork (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR) ### ANSWER SELECT T2.Name, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID</s>
{ "answer": "SELECT T2.Name, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID", "context": "CREATE TABLE artwork (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)", "question": "For each nomination, show the name of the artwork and name of the festival where it is nominated." }
### QUESTION In which year are there festivals both inside the 'United States' and outside the 'United States'? ### CONTEXT CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR) ### ANSWER SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States'</s>
{ "answer": "SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States'", "context": "CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR)", "question": "In which year are there festivals both inside the 'United States' and outside the 'United States'?" }
### QUESTION Who is the written by when mark worthington is the director? ### CONTEXT CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR) ### ANSWER SELECT written_by FROM table_22570439_1 WHERE directed_by = "Mark Worthington"</s>
{ "answer": "SELECT written_by FROM table_22570439_1 WHERE directed_by = \"Mark Worthington\"", "context": "CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR)", "question": "Who is the written by when mark worthington is the director?" }
### QUESTION What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money? ### CONTEXT CREATE TABLE table_name_36 (release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR) ### ANSWER SELECT release_date FROM table_name_36 WHERE version = "1.0" AND category = "utilities" AND developer = "microsoft" AND title = "msn money"</s>
{ "answer": "SELECT release_date FROM table_name_36 WHERE version = \"1.0\" AND category = \"utilities\" AND developer = \"microsoft\" AND title = \"msn money\"", "context": "CREATE TABLE table_name_36 (release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR)", "question": "What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?" }
### QUESTION What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder? ### CONTEXT CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR) ### ANSWER SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microsoft" AND title = "chord finder"</s>
{ "answer": "SELECT release_date FROM table_name_86 WHERE category = \"utilities\" AND developer = \"microsoft\" AND title = \"chord finder\"", "context": "CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR)", "question": "What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?" }
### QUESTION Who called the race in 1978? ### CONTEXT CREATE TABLE table_22583466_5 (race_caller VARCHAR, year VARCHAR) ### ANSWER SELECT race_caller FROM table_22583466_5 WHERE year = 1978</s>
{ "answer": "SELECT race_caller FROM table_22583466_5 WHERE year = 1978", "context": "CREATE TABLE table_22583466_5 (race_caller VARCHAR, year VARCHAR)", "question": "Who called the race in 1978?" }
### QUESTION Show the name and phone for customers with a mailshot with outcome code 'No Response'. ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR) ### ANSWER SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'</s>
{ "answer": "SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'", "context": "CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR)", "question": "Show the name and phone for customers with a mailshot with outcome code 'No Response'." }
### QUESTION Show the names of customers who have at least 2 mailshots with outcome code 'Order'. ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) ### ANSWER SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)", "question": "Show the names of customers who have at least 2 mailshots with outcome code 'Order'." }
### QUESTION Show the names of customers who have the most mailshots. ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) ### ANSWER SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)", "question": "Show the names of customers who have the most mailshots." }
### QUESTION What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome. ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR) ### ANSWER SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'</s>
{ "answer": "SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'", "context": "CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR)", "question": "What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome." }
### QUESTION What is the most current year signed for separation of † and a separation year of 1997? ### CONTEXT CREATE TABLE table_name_79 (year_signed INTEGER, reason_for_separation VARCHAR, year_separated VARCHAR) ### ANSWER SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = "†" AND year_separated = "1997"</s>
{ "answer": "SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = \"†\" AND year_separated = \"1997\"", "context": "CREATE TABLE table_name_79 (year_signed INTEGER, reason_for_separation VARCHAR, year_separated VARCHAR)", "question": "What is the most current year signed for separation of † and a separation year of 1997?" }
### QUESTION Name the winning score for pga championship ### CONTEXT CREATE TABLE table_225880_1 (winning_score VARCHAR, championship VARCHAR) ### ANSWER SELECT winning_score FROM table_225880_1 WHERE championship = "PGA championship"</s>
{ "answer": "SELECT winning_score FROM table_225880_1 WHERE championship = \"PGA championship\"", "context": "CREATE TABLE table_225880_1 (winning_score VARCHAR, championship VARCHAR)", "question": "Name the winning score for pga championship" }
### QUESTION What are the distinct address type codes for all customer addresses? ### CONTEXT CREATE TABLE customer_addresses (address_type_code VARCHAR) ### ANSWER SELECT DISTINCT address_type_code FROM customer_addresses</s>
{ "answer": "SELECT DISTINCT address_type_code FROM customer_addresses", "context": "CREATE TABLE customer_addresses (address_type_code VARCHAR)", "question": "What are the distinct address type codes for all customer addresses?" }
### QUESTION Who were the opponents in the final where the score in the final is 6–4, 7–6 2? ### CONTEXT CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = "6–4, 7–6 2"</s>
{ "answer": "SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = \"6–4, 7–6 2\"", "context": "CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)", "question": "Who were the opponents in the final where the score in the final is 6–4, 7–6 2?" }
### QUESTION Show the names of customers having an order with shipping method FedEx and order status Paid. ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR) ### ANSWER SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid'</s>
{ "answer": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid'", "context": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)", "question": "Show the names of customers having an order with shipping method FedEx and order status Paid." }
### QUESTION Show the premise type and address type code for all customer addresses. ### CONTEXT CREATE TABLE premises (premises_type VARCHAR, premise_id VARCHAR); CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR) ### ANSWER SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id</s>
{ "answer": "SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id", "context": "CREATE TABLE premises (premises_type VARCHAR, premise_id VARCHAR); CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR)", "question": "Show the premise type and address type code for all customer addresses." }
### QUESTION Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations? ### CONTEXT CREATE TABLE table_name_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR) ### ANSWER SELECT award_ceremony FROM table_name_87 WHERE nominee = "sarah travis" AND category = "best orchestrations"</s>
{ "answer": "SELECT award_ceremony FROM table_name_87 WHERE nominee = \"sarah travis\" AND category = \"best orchestrations\"", "context": "CREATE TABLE table_name_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR)", "question": "Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?" }
### QUESTION What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7–6 2 , 6–1? ### CONTEXT CREATE TABLE table_22597626_17 (year INTEGER, opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT MIN(year) FROM table_22597626_17 WHERE opponents_in_the_final = "Bahrami Leconte" AND score_in_the_final = "7–6 2 , 6–1"</s>
{ "answer": "SELECT MIN(year) FROM table_22597626_17 WHERE opponents_in_the_final = \"Bahrami Leconte\" AND score_in_the_final = \"7–6 2 , 6–1\"", "context": "CREATE TABLE table_22597626_17 (year INTEGER, opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)", "question": "What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7–6 2 , 6–1?" }
### QUESTION What is the number of departments in Division "AS"? ### CONTEXT CREATE TABLE DEPARTMENT (Division VARCHAR) ### ANSWER SELECT COUNT(*) FROM DEPARTMENT WHERE Division = "AS"</s>
{ "answer": "SELECT COUNT(*) FROM DEPARTMENT WHERE Division = \"AS\"", "context": "CREATE TABLE DEPARTMENT (Division VARCHAR)", "question": "What is the number of departments in Division \"AS\"?" }
### QUESTION On what day did the team play the Indianapolis Colts? ### CONTEXT CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR) ### ANSWER SELECT date FROM table_name_26 WHERE opponent = "indianapolis colts"</s>
{ "answer": "SELECT date FROM table_name_26 WHERE opponent = \"indianapolis colts\"", "context": "CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR)", "question": "On what day did the team play the Indianapolis Colts?" }
### QUESTION If the race time is 2:00:33, what is the average speed? ### CONTEXT CREATE TABLE table_2260452_1 (average_speed__mph_ VARCHAR, race_time VARCHAR) ### ANSWER SELECT average_speed__mph_ FROM table_2260452_1 WHERE race_time = "2:00:33"</s>
{ "answer": "SELECT average_speed__mph_ FROM table_2260452_1 WHERE race_time = \"2:00:33\"", "context": "CREATE TABLE table_2260452_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)", "question": "If the race time is 2:00:33, what is the average speed?" }
### QUESTION How many heights are listed for Jesse Holley in the WR position? ### CONTEXT CREATE TABLE table_22603701_1 (height VARCHAR, position VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(height) FROM table_22603701_1 WHERE position = "WR" AND name = "Jesse Holley"</s>
{ "answer": "SELECT COUNT(height) FROM table_22603701_1 WHERE position = \"WR\" AND name = \"Jesse Holley\"", "context": "CREATE TABLE table_22603701_1 (height VARCHAR, position VARCHAR, name VARCHAR)", "question": "How many heights are listed for Jesse Holley in the WR position? " }
### QUESTION WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST? ### CONTEXT CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR) ### ANSWER SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist"</s>
{ "answer": "SELECT europe FROM table_name_68 WHERE head_coach = \"vainauskas , sakalauskas\" AND regional_competitions = \"nebl finalist\"", "context": "CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR)", "question": "WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?" }
### QUESTION With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version? ### CONTEXT CREATE TABLE table_2263152_1 (version VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR) ### ANSWER SELECT version FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website"</s>
{ "answer": "SELECT version FROM table_2263152_1 WHERE security_issues = \"98-004\" AND distribution_mechanism = \"Microsoft website\"", "context": "CREATE TABLE table_2263152_1 (version VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR)", "question": "With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version?" }
### QUESTION If the distribution mechanism is the Microsoft website and the security issues id 98-004, what are all of the features? ### CONTEXT CREATE TABLE table_2263152_1 (features VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR) ### ANSWER SELECT features FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website"</s>
{ "answer": "SELECT features FROM table_2263152_1 WHERE security_issues = \"98-004\" AND distribution_mechanism = \"Microsoft website\"", "context": "CREATE TABLE table_2263152_1 (features VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR)", "question": "If the distribution mechanism is the Microsoft website and the security issues id 98-004, what are all of the features?" }
### QUESTION If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version? ### CONTEXT CREATE TABLE table_2263152_1 (version VARCHAR, features VARCHAR, distribution_mechanism VARCHAR) ### ANSWER SELECT version FROM table_2263152_1 WHERE features = "Service release" AND distribution_mechanism = "Windows NT 4.0 Option Pack Microsoft Office 97"</s>
{ "answer": "SELECT version FROM table_2263152_1 WHERE features = \"Service release\" AND distribution_mechanism = \"Windows NT 4.0 Option Pack Microsoft Office 97\"", "context": "CREATE TABLE table_2263152_1 (version VARCHAR, features VARCHAR, distribution_mechanism VARCHAR)", "question": "If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version?" }
### QUESTION Find the name of the department that has no students minored in? ### CONTEXT CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR) ### ANSWER SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO</s>
{ "answer": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", "context": "CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR)", "question": "Find the name of the department that has no students minored in?" }
### QUESTION Find the name of the department that has the fewest members. ### CONTEXT CREATE TABLE MEMBER_OF (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR) ### ANSWER SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) LIMIT 1</s>
{ "answer": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE MEMBER_OF (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR)", "question": "Find the name of the department that has the fewest members." }
### QUESTION What are the first and last names of the instructors who teach the top 3 number of courses? ### CONTEXT CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR) ### ANSWER SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3</s>
{ "answer": "SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3", "context": "CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR)", "question": "What are the first and last names of the instructors who teach the top 3 number of courses?" }
### QUESTION Which building does the instructor who teaches the most number of courses live in? ### CONTEXT CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Building VARCHAR, FacID VARCHAR) ### ANSWER SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Building VARCHAR, FacID VARCHAR)", "question": "Which building does the instructor who teaches the most number of courses live in?" }
### QUESTION What are the name of courses that have at least five enrollments? ### CONTEXT CREATE TABLE ENROLLED_IN (CID VARCHAR); CREATE TABLE COURSE (CName VARCHAR, CID VARCHAR) ### ANSWER SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5</s>
{ "answer": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5", "context": "CREATE TABLE ENROLLED_IN (CID VARCHAR); CREATE TABLE COURSE (CName VARCHAR, CID VARCHAR)", "question": "What are the name of courses that have at least five enrollments?" }
### QUESTION How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006? ### CONTEXT CREATE TABLE table_name_9 (Id VARCHAR) ### ANSWER SELECT COUNT(2010) FROM table_name_9 WHERE 2007 > 4.6 AND 2006 = 8.2</s>
{ "answer": "SELECT COUNT(2010) FROM table_name_9 WHERE 2007 > 4.6 AND 2006 = 8.2", "context": "CREATE TABLE table_name_9 (Id VARCHAR)", "question": "How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006?" }
### QUESTION Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE. ### CONTEXT CREATE TABLE COURSE (DNO VARCHAR, CName VARCHAR); CREATE TABLE DEPARTMENT (Dname VARCHAR, Room VARCHAR, DNO VARCHAR) ### ANSWER SELECT T2.Dname, T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE"</s>
{ "answer": "SELECT T2.Dname, T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", "context": "CREATE TABLE COURSE (DNO VARCHAR, CName VARCHAR); CREATE TABLE DEPARTMENT (Dname VARCHAR, Room VARCHAR, DNO VARCHAR)", "question": "Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE." }
### QUESTION Find the student first and last names and grade points of all enrollments. ### CONTEXT CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR) ### ANSWER SELECT T3.Fname, T3.LName, T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID</s>
{ "answer": "SELECT T3.Fname, T3.LName, T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", "context": "CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)", "question": "Find the student first and last names and grade points of all enrollments." }
### QUESTION Find the distinct student first names of all students that have grade point at least 3.8 in one course. ### CONTEXT CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR) ### ANSWER SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8</s>
{ "answer": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8", "context": "CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)", "question": "Find the distinct student first names of all students that have grade point at least 3.8 in one course." }
### QUESTION How many games were played on May 11? ### CONTEXT CREATE TABLE table_22654073_13 (game VARCHAR, date VARCHAR) ### ANSWER SELECT COUNT(game) FROM table_22654073_13 WHERE date = "May 11"</s>
{ "answer": "SELECT COUNT(game) FROM table_22654073_13 WHERE date = \"May 11\"", "context": "CREATE TABLE table_22654073_13 (game VARCHAR, date VARCHAR)", "question": "How many games were played on May 11?" }
### QUESTION What are the first names and last names of the students that minor in the department with DNO 140. ### CONTEXT CREATE TABLE STUDENT (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE MINOR_IN (StuID VARCHAR, DNO VARCHAR) ### ANSWER SELECT T2.Fname, T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140</s>
{ "answer": "SELECT T2.Fname, T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140", "context": "CREATE TABLE STUDENT (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE MINOR_IN (StuID VARCHAR, DNO VARCHAR)", "question": "What are the first names and last names of the students that minor in the department with DNO 140." }