text
stringlengths
146
1.06k
source
dict
### QUESTION How many engineers did each staff contact? List both the contact staff name and number of engineers contacted. ### CONTEXT CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR) ### ANSWER SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name
{ "answer": "SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name", "context": "CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR)", "question": "How many engineers did each staff contact? List both the contact staff name and number of engineers contacted." }
### QUESTION Name the Company which has a Price in USD of free / negotiable? ### CONTEXT CREATE TABLE table_name_69 (company VARCHAR, price_in_usd VARCHAR) ### ANSWER SELECT company FROM table_name_69 WHERE price_in_usd = "free / negotiable"
{ "answer": "SELECT company FROM table_name_69 WHERE price_in_usd = \"free / negotiable\"", "context": "CREATE TABLE table_name_69 (company VARCHAR, price_in_usd VARCHAR)", "question": "Name the Company which has a Price in USD of free / negotiable?" }
### QUESTION what was the attendance for a home venue and a w 3-0 result? ### CONTEXT CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR) ### ANSWER SELECT AVG(attendance) FROM table_name_34 WHERE venue = "home" AND result = "w 3-0"
{ "answer": "SELECT AVG(attendance) FROM table_name_34 WHERE venue = \"home\" AND result = \"w 3-0\"", "context": "CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR)", "question": "what was the attendance for a home venue and a w 3-0 result?" }
### QUESTION Find the list of attribute data types possessed by more than 3 attribute definitions. ### CONTEXT CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR) ### ANSWER SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3
{ "answer": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3", "context": "CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR)", "question": "Find the list of attribute data types possessed by more than 3 attribute definitions." }
### QUESTION what's the record where location attendance is keyarena 13,627 ### CONTEXT CREATE TABLE table_11964154_9 (record VARCHAR, location_attendance VARCHAR) ### ANSWER SELECT record FROM table_11964154_9 WHERE location_attendance = "KeyArena 13,627"
{ "answer": "SELECT record FROM table_11964154_9 WHERE location_attendance = \"KeyArena 13,627\"", "context": "CREATE TABLE table_11964154_9 (record VARCHAR, location_attendance VARCHAR)", "question": " what's the record where location attendance is keyarena 13,627" }
### QUESTION What school year is vaucluse public school? ### CONTEXT CREATE TABLE table_name_10 (years VARCHAR, school VARCHAR) ### ANSWER SELECT years FROM table_name_10 WHERE school = "vaucluse public school"
{ "answer": "SELECT years FROM table_name_10 WHERE school = \"vaucluse public school\"", "context": "CREATE TABLE table_name_10 (years VARCHAR, school VARCHAR)", "question": "What school year is vaucluse public school?" }
### QUESTION Name the number of production code for 5.08 ### CONTEXT CREATE TABLE table_18569389_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### ANSWER SELECT COUNT(production_code) FROM table_18569389_1 WHERE us_viewers__million_ = "5.08"
{ "answer": "SELECT COUNT(production_code) FROM table_18569389_1 WHERE us_viewers__million_ = \"5.08\"", "context": "CREATE TABLE table_18569389_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)", "question": "Name the number of production code for 5.08" }
### QUESTION Name the date for when the home/away is away and the opponent is bayhawks ### CONTEXT CREATE TABLE table_name_81 (date VARCHAR, home_away VARCHAR, opponent VARCHAR) ### ANSWER SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks"
{ "answer": "SELECT date FROM table_name_81 WHERE home_away = \"away\" AND opponent = \"bayhawks\"", "context": "CREATE TABLE table_name_81 (date VARCHAR, home_away VARCHAR, opponent VARCHAR)", "question": "Name the date for when the home/away is away and the opponent is bayhawks" }
### QUESTION What is the characteristic name used by most number of the products? ### CONTEXT CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### ANSWER SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "question": "What is the characteristic name used by most number of the products?" }
### QUESTION Which Year is the highest that has a Team of walker racing, and Wins larger than 1? ### CONTEXT CREATE TABLE table_name_58 (year INTEGER, team VARCHAR, wins VARCHAR) ### ANSWER SELECT MAX(year) FROM table_name_58 WHERE team = "walker racing" AND wins > 1
{ "answer": "SELECT MAX(year) FROM table_name_58 WHERE team = \"walker racing\" AND wins > 1", "context": "CREATE TABLE table_name_58 (year INTEGER, team VARCHAR, wins VARCHAR)", "question": "Which Year is the highest that has a Team of walker racing, and Wins larger than 1?" }
### QUESTION who is the player when the country is united states and the score is 71-73=144? ### CONTEXT CREATE TABLE table_name_93 (player VARCHAR, country VARCHAR, score VARCHAR) ### ANSWER SELECT player FROM table_name_93 WHERE country = "united states" AND score = 71 - 73 = 144
{ "answer": "SELECT player FROM table_name_93 WHERE country = \"united states\" AND score = 71 - 73 = 144", "context": "CREATE TABLE table_name_93 (player VARCHAR, country VARCHAR, score VARCHAR)", "question": "who is the player when the country is united states and the score is 71-73=144?" }
### QUESTION How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439? ### CONTEXT CREATE TABLE table_name_78 (percentage_of_marine_area__foreez_ VARCHAR, ecozone VARCHAR, area__km²__exclusive_economic_zone VARCHAR) ### ANSWER SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = "atlantic marine" AND area__km²__exclusive_economic_zone < 996 OFFSET 439
{ "answer": "SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = \"atlantic marine\" AND area__km²__exclusive_economic_zone < 996 OFFSET 439", "context": "CREATE TABLE table_name_78 (percentage_of_marine_area__foreez_ VARCHAR, ecozone VARCHAR, area__km²__exclusive_economic_zone VARCHAR)", "question": "How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?" }
### QUESTION Find names and times of trains that run through stations for the local authority Chiltern. ### CONTEXT CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR) ### ANSWER SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern"
{ "answer": "SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = \"Chiltern\"", "context": "CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR)", "question": "Find names and times of trains that run through stations for the local authority Chiltern." }
### QUESTION What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports? ### CONTEXT CREATE TABLE table_name_79 (republican VARCHAR, lead_margin VARCHAR, poll_source VARCHAR) ### ANSWER SELECT republican AS :_jeff_beatty FROM table_name_79 WHERE lead_margin = 25 AND poll_source = "rasmussen reports"
{ "answer": "SELECT republican AS :_jeff_beatty FROM table_name_79 WHERE lead_margin = 25 AND poll_source = \"rasmussen reports\"", "context": "CREATE TABLE table_name_79 (republican VARCHAR, lead_margin VARCHAR, poll_source VARCHAR)", "question": "What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports?" }
### QUESTION What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club? ### CONTEXT CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR) ### ANSWER SELECT 1 AS st_leg FROM table_name_52 WHERE competition = "uefa champions league" AND club = "skonto riga"
{ "answer": "SELECT 1 AS st_leg FROM table_name_52 WHERE competition = \"uefa champions league\" AND club = \"skonto riga\"", "context": "CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR)", "question": "What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club?" }
### QUESTION When was the institution of Kansas city Kansas community college founded? ### CONTEXT CREATE TABLE table_12434380_1 (founded VARCHAR, institution VARCHAR) ### ANSWER SELECT COUNT(founded) FROM table_12434380_1 WHERE institution = "Kansas City Kansas Community College"
{ "answer": "SELECT COUNT(founded) FROM table_12434380_1 WHERE institution = \"Kansas City Kansas Community College\"", "context": "CREATE TABLE table_12434380_1 (founded VARCHAR, institution VARCHAR)", "question": "When was the institution of Kansas city Kansas community college founded?" }
### 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
{ "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." }
### QUESTION What's the sum of years when the Artist of the queen were less than 1? ### CONTEXT CREATE TABLE table_name_59 (year VARCHAR, artist VARCHAR, weeks_at_number_one VARCHAR) ### ANSWER SELECT COUNT(year) FROM table_name_59 WHERE artist = "queen" AND weeks_at_number_one < 1
{ "answer": "SELECT COUNT(year) FROM table_name_59 WHERE artist = \"queen\" AND weeks_at_number_one < 1", "context": "CREATE TABLE table_name_59 (year VARCHAR, artist VARCHAR, weeks_at_number_one VARCHAR)", "question": "What's the sum of years when the Artist of the queen were less than 1?" }
### QUESTION What are the famous title of the artists associated with volumes with more than 2 weeks on top? ### CONTEXT CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER) ### ANSWER SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2
{ "answer": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2", "context": "CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER)", "question": "What are the famous title of the artists associated with volumes with more than 2 weeks on top?" }
### QUESTION Which city has most number of arriving flights? ### CONTEXT CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR) ### ANSWER SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR)", "question": "Which city has most number of arriving flights?" }
### QUESTION WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572? ### CONTEXT CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR) ### ANSWER SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = "rural" AND population__2007_ = 2572
{ "answer": "SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = \"rural\" AND population__2007_ = 2572", "context": "CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR)", "question": "WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572?" }
### 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
{ "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 What is the Malayalam word for punarvasu ಪುನರ್ವಸು in Kannada? ### CONTEXT CREATE TABLE table_1408397_3 (malayalam_മലയാളം VARCHAR, kannada_ಕನ್ನಡ VARCHAR) ### ANSWER SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE kannada_ಕನ್ನಡ = "Punarvasu ಪುನರ್ವಸು"
{ "answer": "SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE kannada_ಕನ್ನಡ = \"Punarvasu ಪುನರ್ವಸು\"", "context": "CREATE TABLE table_1408397_3 (malayalam_മലയാളം VARCHAR, kannada_ಕನ್ನಡ VARCHAR)", "question": "What is the Malayalam word for punarvasu ಪುನರ್ವಸು in Kannada?" }
### QUESTION What is the place when the player is Bob Gilder and the money was $20,903? ### CONTEXT CREATE TABLE table_name_88 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) ### ANSWER SELECT place FROM table_name_88 WHERE money___$__ = "20,903" AND player = "bob gilder"
{ "answer": "SELECT place FROM table_name_88 WHERE money___$__ = \"20,903\" AND player = \"bob gilder\"", "context": "CREATE TABLE table_name_88 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)", "question": "What is the place when the player is Bob Gilder and the money was $20,903?" }
### QUESTION How many apartments do not have any facility? ### CONTEXT CREATE TABLE Apartment_Facilities (apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM Apartments WHERE NOT apt_id IN (SELECT apt_id FROM Apartment_Facilities)
{ "answer": "SELECT COUNT(*) FROM Apartments WHERE NOT apt_id IN (SELECT apt_id FROM Apartment_Facilities)", "context": "CREATE TABLE Apartment_Facilities (apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)", "question": "How many apartments do not have any facility?" }
### QUESTION Name the most goals for 1972 – 1975, 1976 – 1982 ### CONTEXT CREATE TABLE table_24565004_19 (goals¹ INTEGER, period VARCHAR) ### ANSWER SELECT MAX(goals¹) FROM table_24565004_19 WHERE period = "1972 – 1975, 1976 – 1982"
{ "answer": "SELECT MAX(goals¹) FROM table_24565004_19 WHERE period = \"1972 – 1975, 1976 – 1982\"", "context": "CREATE TABLE table_24565004_19 (goals¹ INTEGER, period VARCHAR)", "question": "Name the most goals for 1972 – 1975, 1976 – 1982" }
### QUESTION When Bubbles of no, and a Category of miscellaneous, and a Type of propertychange, what was the Cancelable? ### CONTEXT CREATE TABLE table_name_97 (cancelable VARCHAR, type VARCHAR, bubbles VARCHAR, category VARCHAR) ### ANSWER SELECT cancelable FROM table_name_97 WHERE bubbles = "no" AND category = "miscellaneous" AND type = "propertychange"
{ "answer": "SELECT cancelable FROM table_name_97 WHERE bubbles = \"no\" AND category = \"miscellaneous\" AND type = \"propertychange\"", "context": "CREATE TABLE table_name_97 (cancelable VARCHAR, type VARCHAR, bubbles VARCHAR, category VARCHAR)", "question": "When Bubbles of no, and a Category of miscellaneous, and a Type of propertychange, what was the Cancelable?" }
### QUESTION What is the Best score if the Maidens is 547 and Overs is 2755.1? ### CONTEXT CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR) ### ANSWER SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = "2755.1"
{ "answer": "SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = \"2755.1\"", "context": "CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR)", "question": "What is the Best score if the Maidens is 547 and Overs is 2755.1?" }
### QUESTION What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date? ### CONTEXT CREATE TABLE table_name_34 (socket VARCHAR, release_date VARCHAR, order_part_number VARCHAR) ### ANSWER SELECT socket FROM table_name_34 WHERE release_date = "september 10, 2009" AND order_part_number = "amm300dbo22gq"
{ "answer": "SELECT socket FROM table_name_34 WHERE release_date = \"september 10, 2009\" AND order_part_number = \"amm300dbo22gq\"", "context": "CREATE TABLE table_name_34 (socket VARCHAR, release_date VARCHAR, order_part_number VARCHAR)", "question": "What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date?" }
### QUESTION What is the total number of national titles for the team with doane tigers as the mascot? ### CONTEXT CREATE TABLE table_name_2 (national_titles VARCHAR, mascot VARCHAR) ### ANSWER SELECT COUNT(national_titles) FROM table_name_2 WHERE mascot = "doane tigers"
{ "answer": "SELECT COUNT(national_titles) FROM table_name_2 WHERE mascot = \"doane tigers\"", "context": "CREATE TABLE table_name_2 (national_titles VARCHAR, mascot VARCHAR)", "question": "What is the total number of national titles for the team with doane tigers as the mascot?" }
### QUESTION What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)? ### CONTEXT CREATE TABLE table_17156199_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ### ANSWER SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = "শ্যামল ছায়া (Shyamol Chhaya)"
{ "answer": "SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = \"শ্যামল ছায়া (Shyamol Chhaya)\"", "context": "CREATE TABLE table_17156199_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)", "question": "What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)?" }
### QUESTION What date has a Decision of osgood, and a Score of 3 – 4? ### CONTEXT CREATE TABLE table_name_63 (date VARCHAR, decision VARCHAR, score VARCHAR) ### ANSWER SELECT date FROM table_name_63 WHERE decision = "osgood" AND score = "3 – 4"
{ "answer": "SELECT date FROM table_name_63 WHERE decision = \"osgood\" AND score = \"3 – 4\"", "context": "CREATE TABLE table_name_63 (date VARCHAR, decision VARCHAR, score VARCHAR)", "question": "What date has a Decision of osgood, and a Score of 3 – 4?" }
### QUESTION Which Coach has a Most Improved of rory thompson? ### CONTEXT CREATE TABLE table_name_75 (coach VARCHAR, most_improved VARCHAR) ### ANSWER SELECT coach FROM table_name_75 WHERE most_improved = "rory thompson"
{ "answer": "SELECT coach FROM table_name_75 WHERE most_improved = \"rory thompson\"", "context": "CREATE TABLE table_name_75 (coach VARCHAR, most_improved VARCHAR)", "question": "Which Coach has a Most Improved of rory thompson?" }
### QUESTION Which Home team faced the Away team, Hawthorn? ### CONTEXT CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR) ### ANSWER SELECT home_team FROM table_name_9 WHERE away_team = "hawthorn"
{ "answer": "SELECT home_team FROM table_name_9 WHERE away_team = \"hawthorn\"", "context": "CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR)", "question": "Which Home team faced the Away team, Hawthorn?" }
### QUESTION Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency? ### CONTEXT CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR) ### ANSWER SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = "prolonged" AND condition = "factor v deficiency"
{ "answer": "SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = \"prolonged\" AND condition = \"factor v deficiency\"", "context": "CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR)", "question": "Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency?" }
### 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
{ "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." }
### QUESTION List the problem id and log id which are assigned to the staff named Rylan Homenick. ### CONTEXT CREATE TABLE problem_log (problem_id VARCHAR, problem_log_id VARCHAR, assigned_to_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR) ### ANSWER SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
{ "answer": "SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"", "context": "CREATE TABLE problem_log (problem_id VARCHAR, problem_log_id VARCHAR, assigned_to_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)", "question": "List the problem id and log id which are assigned to the staff named Rylan Homenick." }
### QUESTION Which Played has a Position of 3, and a Points smaller than 15? ### CONTEXT CREATE TABLE table_name_85 (played VARCHAR, position VARCHAR, points VARCHAR) ### ANSWER SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15
{ "answer": "SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15", "context": "CREATE TABLE table_name_85 (played VARCHAR, position VARCHAR, points VARCHAR)", "question": "Which Played has a Position of 3, and a Points smaller than 15?" }
### QUESTION What are the titles of papers published by "Jeremy Gibbons"? ### CONTEXT CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR) ### ANSWER SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Jeremy" AND t1.lname = "Gibbons"
{ "answer": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Jeremy\" AND t1.lname = \"Gibbons\"", "context": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)", "question": "What are the titles of papers published by \"Jeremy Gibbons\"?" }
### QUESTION How many years had a 100 m hurdles event at the world championships in Osaka, Japan? ### CONTEXT CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR) ### ANSWER SELECT SUM(year) FROM table_name_96 WHERE event = "100 m hurdles" AND competition = "world championships" AND venue = "osaka, japan"
{ "answer": "SELECT SUM(year) FROM table_name_96 WHERE event = \"100 m hurdles\" AND competition = \"world championships\" AND venue = \"osaka, japan\"", "context": "CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR)", "question": "How many years had a 100 m hurdles event at the world championships in Osaka, Japan?" }
### QUESTION Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds? ### CONTEXT CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER); CREATE TABLE drivers (driverid VARCHAR, nationality VARCHAR) ### ANSWER SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000
{ "answer": "SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000", "context": "CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER); CREATE TABLE drivers (driverid VARCHAR, nationality VARCHAR)", "question": "Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?" }
### QUESTION What was the date for the Sepang International circuit, round 3? ### CONTEXT CREATE TABLE table_name_40 (date VARCHAR, circuit VARCHAR, round VARCHAR) ### ANSWER SELECT date FROM table_name_40 WHERE circuit = "sepang international circuit" AND round = "3"
{ "answer": "SELECT date FROM table_name_40 WHERE circuit = \"sepang international circuit\" AND round = \"3\"", "context": "CREATE TABLE table_name_40 (date VARCHAR, circuit VARCHAR, round VARCHAR)", "question": "What was the date for the Sepang International circuit, round 3?" }
### QUESTION What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo? ### CONTEXT CREATE TABLE table_name_40 (cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR) ### ANSWER SELECT cardinalatial_title FROM table_name_40 WHERE elevated = "december 18, 1182" AND place_of_birth = "lucca" AND elector = "pandolfo"
{ "answer": "SELECT cardinalatial_title FROM table_name_40 WHERE elevated = \"december 18, 1182\" AND place_of_birth = \"lucca\" AND elector = \"pandolfo\"", "context": "CREATE TABLE table_name_40 (cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR)", "question": "What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?" }
### QUESTION Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015. ### CONTEXT CREATE TABLE stadium (name VARCHAR, location VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, Year VARCHAR) ### ANSWER SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015
{ "answer": "SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", "context": "CREATE TABLE stadium (name VARCHAR, location VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, Year VARCHAR)", "question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015." }
### QUESTION What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172? ### CONTEXT CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR) ### ANSWER SELECT SUM(shirt_no) FROM table_name_11 WHERE position = "setter" AND nationality = "italy" AND height > 172
{ "answer": "SELECT SUM(shirt_no) FROM table_name_11 WHERE position = \"setter\" AND nationality = \"italy\" AND height > 172", "context": "CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR)", "question": "What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172?" }
### QUESTION What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California? ### CONTEXT CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR) ### ANSWER SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = "90 g/mi (56 g/km)" AND california__san_francisco_ = "110 g/mi (68 g/km)"
{ "answer": "SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = \"90 g/mi (56 g/km)\" AND california__san_francisco_ = \"110 g/mi (68 g/km)\"", "context": "CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR)", "question": "What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?" }
### QUESTION What are the actual delivery dates of orders with quantity 1? ### CONTEXT CREATE TABLE Customer_Orders (Actual_Delivery_Date VARCHAR, Order_ID VARCHAR); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Order_Quantity VARCHAR) ### ANSWER SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1
{ "answer": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1", "context": "CREATE TABLE Customer_Orders (Actual_Delivery_Date VARCHAR, Order_ID VARCHAR); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Order_Quantity VARCHAR)", "question": "What are the actual delivery dates of orders with quantity 1?" }
### QUESTION Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the entrant of Federal Engineering? ### CONTEXT CREATE TABLE table_name_82 (year INTEGER, entrant VARCHAR, engine VARCHAR, chassis VARCHAR) ### ANSWER SELECT MAX(year) FROM table_name_82 WHERE engine = "offenhauser l4" AND chassis = "kurtis kraft 500c" AND entrant = "federal engineering"
{ "answer": "SELECT MAX(year) FROM table_name_82 WHERE engine = \"offenhauser l4\" AND chassis = \"kurtis kraft 500c\" AND entrant = \"federal engineering\"", "context": "CREATE TABLE table_name_82 (year INTEGER, entrant VARCHAR, engine VARCHAR, chassis VARCHAR)", "question": "Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the entrant of Federal Engineering?" }
### QUESTION Please show the date of ceremony of the volumes that last more than 2 weeks on top. ### CONTEXT CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Volume VARCHAR); CREATE TABLE volume (Volume_ID VARCHAR, Weeks_on_Top INTEGER) ### ANSWER SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2
{ "answer": "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2", "context": "CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Volume VARCHAR); CREATE TABLE volume (Volume_ID VARCHAR, Weeks_on_Top INTEGER)", "question": "Please show the date of ceremony of the volumes that last more than 2 weeks on top." }
### QUESTION How many Laps have a Grid smaller than 5, and a Time/Retired of retirement? ### CONTEXT CREATE TABLE table_name_97 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) ### ANSWER SELECT SUM(laps) FROM table_name_97 WHERE grid < 5 AND time_retired = "retirement"
{ "answer": "SELECT SUM(laps) FROM table_name_97 WHERE grid < 5 AND time_retired = \"retirement\"", "context": "CREATE TABLE table_name_97 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)", "question": "How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?" }
### QUESTION What is the total of attendance at Venue h when Auxerre were playing? ### CONTEXT CREATE TABLE table_name_14 (attendance INTEGER, venue VARCHAR, opponent VARCHAR) ### ANSWER SELECT SUM(attendance) FROM table_name_14 WHERE venue = "h" AND opponent = "auxerre"
{ "answer": "SELECT SUM(attendance) FROM table_name_14 WHERE venue = \"h\" AND opponent = \"auxerre\"", "context": "CREATE TABLE table_name_14 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)", "question": "What is the total of attendance at Venue h when Auxerre were playing?" }
### QUESTION What event was Sun Yue the alternate and wang bingyu(3rd) the skip? ### CONTEXT CREATE TABLE table_name_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR) ### ANSWER SELECT event FROM table_name_75 WHERE alternate = "sun yue" AND skip = "wang bingyu(3rd)"
{ "answer": "SELECT event FROM table_name_75 WHERE alternate = \"sun yue\" AND skip = \"wang bingyu(3rd)\"", "context": "CREATE TABLE table_name_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR)", "question": "What event was Sun Yue the alternate and wang bingyu(3rd) the skip?" }
### QUESTION What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte? ### CONTEXT CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR) ### ANSWER SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte")
{ "answer": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Lysanne\" AND T4.staff_last_name = \"Turcotte\")", "context": "CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)", "question": "What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?" }
### QUESTION What is Stop No., when Destination is [2778] Claisebrook Station Platforms? ### CONTEXT CREATE TABLE table_name_25 (stop_no VARCHAR, destination VARCHAR) ### ANSWER SELECT stop_no FROM table_name_25 WHERE destination = "[2778] claisebrook station platforms"
{ "answer": "SELECT stop_no FROM table_name_25 WHERE destination = \"[2778] claisebrook station platforms\"", "context": "CREATE TABLE table_name_25 (stop_no VARCHAR, destination VARCHAR)", "question": "What is Stop No., when Destination is [2778] Claisebrook Station Platforms?" }
### QUESTION who danced 11 and finished at more than a 2.0 ### CONTEXT CREATE TABLE table_1354805_6 (couple VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR) ### ANSWER SELECT couple FROM table_1354805_6 WHERE number_of_dances = 11 AND competition_finish > 2.0
{ "answer": "SELECT couple FROM table_1354805_6 WHERE number_of_dances = 11 AND competition_finish > 2.0", "context": "CREATE TABLE table_1354805_6 (couple VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)", "question": "who danced 11 and finished at more than a 2.0" }
### QUESTION What is the highest value for 1970, when the value for 1960 is less than 61.9, when the value for 1980 is less than 3.8, when the value for 1990 is 3.3, and when the value for 2000 is greater than 3.2? ### CONTEXT CREATE TABLE table_name_81 (Id VARCHAR) ### ANSWER SELECT MAX(1970) FROM table_name_81 WHERE 1960 < 61.9 AND 1980 < 3.8 AND 1990 = 3.3 AND 2000 > 3.2
{ "answer": "SELECT MAX(1970) FROM table_name_81 WHERE 1960 < 61.9 AND 1980 < 3.8 AND 1990 = 3.3 AND 2000 > 3.2", "context": "CREATE TABLE table_name_81 (Id VARCHAR)", "question": "What is the highest value for 1970, when the value for 1960 is less than 61.9, when the value for 1980 is less than 3.8, when the value for 1990 is 3.3, and when the value for 2000 is greater than 3.2?" }
### QUESTION Which Population is the highest one that has a Density (inhabitants/km 2) larger than 2805.8, and a Rank of 1st, and an Altitude (mslm) smaller than 122? ### CONTEXT CREATE TABLE table_name_99 (population INTEGER, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR, rank VARCHAR) ### ANSWER SELECT MAX(population) FROM table_name_99 WHERE density__inhabitants_km_2__ > 2805.8 AND rank = "1st" AND altitude__mslm_ < 122
{ "answer": "SELECT MAX(population) FROM table_name_99 WHERE density__inhabitants_km_2__ > 2805.8 AND rank = \"1st\" AND altitude__mslm_ < 122", "context": "CREATE TABLE table_name_99 (population INTEGER, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)", "question": "Which Population is the highest one that has a Density (inhabitants/km 2) larger than 2805.8, and a Rank of 1st, and an Altitude (mslm) smaller than 122?" }
### QUESTION Who was the contestant eliminated on episode 8 of RW: Key West season? ### CONTEXT CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR) ### ANSWER SELECT player FROM table_18974269_1 WHERE original_season = "RW: Key West" AND eliminated = "Episode 8"
{ "answer": "SELECT player FROM table_18974269_1 WHERE original_season = \"RW: Key West\" AND eliminated = \"Episode 8\"", "context": "CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR)", "question": "Who was the contestant eliminated on episode 8 of RW: Key West season?" }
### QUESTION What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75? ### CONTEXT CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR) ### ANSWER SELECT SUM(total) FROM table_name_40 WHERE gymnast = "robert stanescu ( rou )" AND b_score > 8.75
{ "answer": "SELECT SUM(total) FROM table_name_40 WHERE gymnast = \"robert stanescu ( rou )\" AND b_score > 8.75", "context": "CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR)", "question": "What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?" }
### QUESTION Which Intra-molecular structure has a Comparative of no, and a Name of mitarget? ### CONTEXT CREATE TABLE table_name_76 (intra_molecular_structure VARCHAR, comparative VARCHAR, name VARCHAR) ### ANSWER SELECT intra_molecular_structure FROM table_name_76 WHERE comparative = "no" AND name = "mitarget"
{ "answer": "SELECT intra_molecular_structure FROM table_name_76 WHERE comparative = \"no\" AND name = \"mitarget\"", "context": "CREATE TABLE table_name_76 (intra_molecular_structure VARCHAR, comparative VARCHAR, name VARCHAR)", "question": "Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?" }
### QUESTION Scunthorpe United as the home team has what tie number? ### CONTEXT CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR) ### ANSWER SELECT tie_no FROM table_name_52 WHERE home_team = "scunthorpe united"
{ "answer": "SELECT tie_no FROM table_name_52 WHERE home_team = \"scunthorpe united\"", "context": "CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)", "question": "Scunthorpe United as the home team has what tie number?" }
### QUESTION What's the year that Hagerstown joined? ### CONTEXT CREATE TABLE table_name_66 (year_joined VARCHAR, school VARCHAR) ### ANSWER SELECT year_joined FROM table_name_66 WHERE school = "hagerstown"
{ "answer": "SELECT year_joined FROM table_name_66 WHERE school = \"hagerstown\"", "context": "CREATE TABLE table_name_66 (year_joined VARCHAR, school VARCHAR)", "question": "What's the year that Hagerstown joined?" }
### QUESTION Find the name of accounts whose checking balance is below the average checking balance. ### CONTEXT CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### ANSWER SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)
{ "answer": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)", "context": "CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)", "question": "Find the name of accounts whose checking balance is below the average checking balance." }
### QUESTION What year did J. Jones, trearddur bay build a boat with a current status of tbsc? ### CONTEXT CREATE TABLE table_name_54 (year_built VARCHAR, current_status VARCHAR, boat_builder VARCHAR) ### ANSWER SELECT year_built FROM table_name_54 WHERE current_status = "tbsc" AND boat_builder = "j. jones, trearddur bay"
{ "answer": "SELECT year_built FROM table_name_54 WHERE current_status = \"tbsc\" AND boat_builder = \"j. jones, trearddur bay\"", "context": "CREATE TABLE table_name_54 (year_built VARCHAR, current_status VARCHAR, boat_builder VARCHAR)", "question": "What year did J. Jones, trearddur bay build a boat with a current status of tbsc?" }
### QUESTION Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13? ### CONTEXT CREATE TABLE table_name_16 (react INTEGER, time VARCHAR, rank VARCHAR, nationality VARCHAR) ### ANSWER SELECT AVG(react) FROM table_name_16 WHERE rank < 4 AND nationality = "trinidad and tobago" AND time > 45.13
{ "answer": "SELECT AVG(react) FROM table_name_16 WHERE rank < 4 AND nationality = \"trinidad and tobago\" AND time > 45.13", "context": "CREATE TABLE table_name_16 (react INTEGER, time VARCHAR, rank VARCHAR, nationality VARCHAR)", "question": "Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13?" }
### QUESTION Which Presentation of Credentials is listed for the Appointed by Benjamin Harrison? ### CONTEXT CREATE TABLE table_name_55 (presentation_of_credentials VARCHAR, appointed_by VARCHAR) ### ANSWER SELECT presentation_of_credentials FROM table_name_55 WHERE appointed_by = "benjamin harrison"
{ "answer": "SELECT presentation_of_credentials FROM table_name_55 WHERE appointed_by = \"benjamin harrison\"", "context": "CREATE TABLE table_name_55 (presentation_of_credentials VARCHAR, appointed_by VARCHAR)", "question": "Which Presentation of Credentials is listed for the Appointed by Benjamin Harrison?" }
### QUESTION What is the average value for Pick #, when Position is Linebacker, when Player is Bob Bruenig, and when Round is less than 3? ### CONTEXT CREATE TABLE table_name_87 (pick__number INTEGER, round VARCHAR, position VARCHAR, player VARCHAR) ### ANSWER SELECT AVG(pick__number) FROM table_name_87 WHERE position = "linebacker" AND player = "bob bruenig" AND round < 3
{ "answer": "SELECT AVG(pick__number) FROM table_name_87 WHERE position = \"linebacker\" AND player = \"bob bruenig\" AND round < 3", "context": "CREATE TABLE table_name_87 (pick__number INTEGER, round VARCHAR, position VARCHAR, player VARCHAR)", "question": "What is the average value for Pick #, when Position is Linebacker, when Player is Bob Bruenig, and when Round is less than 3?" }
### QUESTION How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4? ### CONTEXT CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR) ### ANSWER SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = "February 24, 2010"
{ "answer": "SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = \"February 24, 2010\"", "context": "CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR)", "question": "How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?" }
### QUESTION What was the margin of victory when the winning score was −14 (63-67-73-67=270)? ### CONTEXT CREATE TABLE table_name_2 (margin_of_victory VARCHAR, winning_score VARCHAR) ### ANSWER SELECT margin_of_victory FROM table_name_2 WHERE winning_score = −14(63 - 67 - 73 - 67 = 270)
{ "answer": "SELECT margin_of_victory FROM table_name_2 WHERE winning_score = −14(63 - 67 - 73 - 67 = 270)", "context": "CREATE TABLE table_name_2 (margin_of_victory VARCHAR, winning_score VARCHAR)", "question": "What was the margin of victory when the winning score was −14 (63-67-73-67=270)?" }
### QUESTION What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th? ### CONTEXT CREATE TABLE table_name_41 (attendance VARCHAR, runner_up VARCHAR, title VARCHAR) ### ANSWER SELECT attendance FROM table_name_41 WHERE runner_up = "suntory sungoliath" AND title = "46th"
{ "answer": "SELECT attendance FROM table_name_41 WHERE runner_up = \"suntory sungoliath\" AND title = \"46th\"", "context": "CREATE TABLE table_name_41 (attendance VARCHAR, runner_up VARCHAR, title VARCHAR)", "question": "What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th?" }
### QUESTION what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012? ### CONTEXT CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) ### ANSWER SELECT score FROM table_name_32 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012"
{ "answer": "SELECT score FROM table_name_32 WHERE venue = \"stade général seyni kountché, niamey\" AND competition = \"friendly\" AND date = \"9 october 2012\"", "context": "CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)", "question": "what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?" }
### QUESTION What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP? ### CONTEXT CREATE TABLE table_name_58 (influence INTEGER, inhabitants_per_mep VARCHAR, population_millions VARCHAR, meps VARCHAR) ### ANSWER SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059
{ "answer": "SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059", "context": "CREATE TABLE table_name_58 (influence INTEGER, inhabitants_per_mep VARCHAR, population_millions VARCHAR, meps VARCHAR)", "question": "What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?" }
### QUESTION What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0? ### CONTEXT CREATE TABLE table_name_17 (national_university_of_ireland VARCHAR, industrial_and_commercial_panel VARCHAR, cultural_and_educational_panel VARCHAR) ### ANSWER SELECT COUNT(national_university_of_ireland) FROM table_name_17 WHERE industrial_and_commercial_panel < 1 AND cultural_and_educational_panel > 0
{ "answer": "SELECT COUNT(national_university_of_ireland) FROM table_name_17 WHERE industrial_and_commercial_panel < 1 AND cultural_and_educational_panel > 0", "context": "CREATE TABLE table_name_17 (national_university_of_ireland VARCHAR, industrial_and_commercial_panel VARCHAR, cultural_and_educational_panel VARCHAR)", "question": "What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?" }
### QUESTION What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84? ### CONTEXT CREATE TABLE table_name_71 (jersey__number INTEGER, name VARCHAR, weight__kg_ VARCHAR) ### ANSWER SELECT AVG(jersey__number) FROM table_name_71 WHERE name = "steve griffith" AND weight__kg_ < 84
{ "answer": "SELECT AVG(jersey__number) FROM table_name_71 WHERE name = \"steve griffith\" AND weight__kg_ < 84", "context": "CREATE TABLE table_name_71 (jersey__number INTEGER, name VARCHAR, weight__kg_ VARCHAR)", "question": "What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?" }
### QUESTION Which city does staff with first name as Janessa and last name as Sawayn live? ### CONTEXT CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR) ### ANSWER SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
{ "answer": "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"", "context": "CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)", "question": "Which city does staff with first name as Janessa and last name as Sawayn live?" }
### QUESTION Tell me the total number of years for wins less than 2 and class of 50cc with points of 15 ### CONTEXT CREATE TABLE table_name_4 (year VARCHAR, points VARCHAR, wins VARCHAR, class VARCHAR) ### ANSWER SELECT COUNT(year) FROM table_name_4 WHERE wins < 2 AND class = "50cc" AND points = 15
{ "answer": "SELECT COUNT(year) FROM table_name_4 WHERE wins < 2 AND class = \"50cc\" AND points = 15", "context": "CREATE TABLE table_name_4 (year VARCHAR, points VARCHAR, wins VARCHAR, class VARCHAR)", "question": "Tell me the total number of years for wins less than 2 and class of 50cc with points of 15" }
### QUESTION Where is the headquarter located for the Annapolis Valley Regional School Board? ### CONTEXT CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR) ### ANSWER SELECT headquarters FROM table_21514460_1 WHERE school_district = "Annapolis Valley Regional School Board"
{ "answer": "SELECT headquarters FROM table_21514460_1 WHERE school_district = \"Annapolis Valley Regional School Board\"", "context": "CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR)", "question": "Where is the headquarter located for the Annapolis Valley Regional School Board?" }
### QUESTION what are the names of the channels that broadcast in both morning and night? ### CONTEXT CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR) ### ANSWER SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'
{ "answer": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'", "context": "CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR)", "question": "what are the names of the channels that broadcast in both morning and night?" }
### QUESTION How many opponents led to an exactly 7-0 record? ### CONTEXT CREATE TABLE table_21034801_1 (opponent VARCHAR, record VARCHAR) ### ANSWER SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = "7-0"
{ "answer": "SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = \"7-0\"", "context": "CREATE TABLE table_21034801_1 (opponent VARCHAR, record VARCHAR)", "question": "How many opponents led to an exactly 7-0 record?" }
### QUESTION How many games were played where the height of the player is 1.92m? ### CONTEXT CREATE TABLE table_26847237_2 (games VARCHAR, height VARCHAR) ### ANSWER SELECT COUNT(games) FROM table_26847237_2 WHERE height = "1.92m"
{ "answer": "SELECT COUNT(games) FROM table_26847237_2 WHERE height = \"1.92m\"", "context": "CREATE TABLE table_26847237_2 (games VARCHAR, height VARCHAR)", "question": "How many games were played where the height of the player is 1.92m?" }
### QUESTION What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7? ### CONTEXT CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR) ### ANSWER SELECT COUNT(total) FROM table_name_2 WHERE year_won < 2002 AND player = "bob tway" AND to_par > 7
{ "answer": "SELECT COUNT(total) FROM table_name_2 WHERE year_won < 2002 AND player = \"bob tway\" AND to_par > 7", "context": "CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR)", "question": "What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7?" }
### QUESTION What is the highest total medals winter athlete Clara Hughes has? ### CONTEXT CREATE TABLE table_name_41 (total INTEGER, type VARCHAR, athlete VARCHAR) ### ANSWER SELECT MAX(total) FROM table_name_41 WHERE type = "winter" AND athlete = "clara hughes"
{ "answer": "SELECT MAX(total) FROM table_name_41 WHERE type = \"winter\" AND athlete = \"clara hughes\"", "context": "CREATE TABLE table_name_41 (total INTEGER, type VARCHAR, athlete VARCHAR)", "question": "What is the highest total medals winter athlete Clara Hughes has?" }
### QUESTION What was the main date of the round with 20 fixtures? ### CONTEXT CREATE TABLE table_name_81 (main_date VARCHAR, number_of_fixtures VARCHAR) ### ANSWER SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20
{ "answer": "SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20", "context": "CREATE TABLE table_name_81 (main_date VARCHAR, number_of_fixtures VARCHAR)", "question": "What was the main date of the round with 20 fixtures?" }
### QUESTION Name the original air date for production code 1l16 ### CONTEXT CREATE TABLE table_25604014_9 (original_air_date VARCHAR, production_code VARCHAR) ### ANSWER SELECT original_air_date FROM table_25604014_9 WHERE production_code = "1L16"
{ "answer": "SELECT original_air_date FROM table_25604014_9 WHERE production_code = \"1L16\"", "context": "CREATE TABLE table_25604014_9 (original_air_date VARCHAR, production_code VARCHAR)", "question": "Name the original air date for production code 1l16" }
### QUESTION What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury? ### CONTEXT CREATE TABLE table_name_80 (attendance INTEGER, away_fans VARCHAR, opponent VARCHAR) ### ANSWER SELECT MIN(attendance) FROM table_name_80 WHERE away_fans < 151 AND opponent = "bury"
{ "answer": "SELECT MIN(attendance) FROM table_name_80 WHERE away_fans < 151 AND opponent = \"bury\"", "context": "CREATE TABLE table_name_80 (attendance INTEGER, away_fans VARCHAR, opponent VARCHAR)", "question": "What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury?" }
### QUESTION Name the viewers for the episode directed by tony phelan ### CONTEXT CREATE TABLE table_19501664_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) ### ANSWER SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = "Tony Phelan"
{ "answer": "SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = \"Tony Phelan\"", "context": "CREATE TABLE table_19501664_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)", "question": "Name the viewers for the episode directed by tony phelan" }
### QUESTION Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)? ### CONTEXT CREATE TABLE table_2362486_1 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)"
{ "answer": "SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = \"6–4, 2–6, 6–4, 7–6(3)\"", "context": "CREATE TABLE table_2362486_1 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)", "question": "Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)?" }
### QUESTION What is the title of the episode with the original air date of february 6, 1997? ### CONTEXT CREATE TABLE table_11951237_3 (title VARCHAR, original_air_date VARCHAR) ### ANSWER SELECT title FROM table_11951237_3 WHERE original_air_date = "February 6, 1997"
{ "answer": "SELECT title FROM table_11951237_3 WHERE original_air_date = \"February 6, 1997\"", "context": "CREATE TABLE table_11951237_3 (title VARCHAR, original_air_date VARCHAR)", "question": "What is the title of the episode with the original air date of february 6, 1997?" }
### QUESTION What is the average total with 1 FA cup and more than 0 FA trophies? ### CONTEXT CREATE TABLE table_name_61 (total INTEGER, fa_cup VARCHAR, fa_trophy VARCHAR) ### ANSWER SELECT AVG(total) FROM table_name_61 WHERE fa_cup = 1 AND fa_trophy > 0
{ "answer": "SELECT AVG(total) FROM table_name_61 WHERE fa_cup = 1 AND fa_trophy > 0", "context": "CREATE TABLE table_name_61 (total INTEGER, fa_cup VARCHAR, fa_trophy VARCHAR)", "question": "What is the average total with 1 FA cup and more than 0 FA trophies?" }
### QUESTION Which Payment has a Type of 2d, and a Release date of january 2003? ### CONTEXT CREATE TABLE table_name_31 (payment VARCHAR, type VARCHAR, release_date VARCHAR) ### ANSWER SELECT payment FROM table_name_31 WHERE type = "2d" AND release_date = "january 2003"
{ "answer": "SELECT payment FROM table_name_31 WHERE type = \"2d\" AND release_date = \"january 2003\"", "context": "CREATE TABLE table_name_31 (payment VARCHAR, type VARCHAR, release_date VARCHAR)", "question": "Which Payment has a Type of 2d, and a Release date of january 2003?" }
### QUESTION When the United States had a total score of 274 what was the average year? ### CONTEXT CREATE TABLE table_name_67 (year INTEGER, total_score VARCHAR, country VARCHAR) ### ANSWER SELECT AVG(year) FROM table_name_67 WHERE total_score = "274" AND country = "united states"
{ "answer": "SELECT AVG(year) FROM table_name_67 WHERE total_score = \"274\" AND country = \"united states\"", "context": "CREATE TABLE table_name_67 (year INTEGER, total_score VARCHAR, country VARCHAR)", "question": "When the United States had a total score of 274 what was the average year?" }
### QUESTION What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses? ### CONTEXT CREATE TABLE table_name_29 (draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR) ### ANSWER SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = "warrnambool" AND losses < 2
{ "answer": "SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = \"warrnambool\" AND losses < 2", "context": "CREATE TABLE table_name_29 (draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR)", "question": "What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?" }
### QUESTION Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994? ### CONTEXT CREATE TABLE table_name_93 (opponent_in_the_final VARCHAR, tournament VARCHAR, date VARCHAR) ### ANSWER SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = "taipei, taiwan" AND date = "november 14, 1994"
{ "answer": "SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = \"taipei, taiwan\" AND date = \"november 14, 1994\"", "context": "CREATE TABLE table_name_93 (opponent_in_the_final VARCHAR, tournament VARCHAR, date VARCHAR)", "question": "Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994?" }
### QUESTION How many Silver medals did the Nation with a Rank of less than 1 receive? ### CONTEXT CREATE TABLE table_name_37 (silver INTEGER, rank INTEGER) ### ANSWER SELECT AVG(silver) FROM table_name_37 WHERE rank < 1
{ "answer": "SELECT AVG(silver) FROM table_name_37 WHERE rank < 1", "context": "CREATE TABLE table_name_37 (silver INTEGER, rank INTEGER)", "question": "How many Silver medals did the Nation with a Rank of less than 1 receive?" }
### QUESTION For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1? ### CONTEXT CREATE TABLE table_name_69 (goals_scored INTEGER, points VARCHAR, place VARCHAR, team VARCHAR) ### ANSWER SELECT AVG(goals_scored) FROM table_name_69 WHERE place > 1 AND team = "once municipal" AND points < 27
{ "answer": "SELECT AVG(goals_scored) FROM table_name_69 WHERE place > 1 AND team = \"once municipal\" AND points < 27", "context": "CREATE TABLE table_name_69 (goals_scored INTEGER, points VARCHAR, place VARCHAR, team VARCHAR)", "question": "For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1?" }
### QUESTION Count the products that have the color description "white" or have the characteristic name "hot". ### CONTEXT CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "white" OR t3.characteristic_name = "hot"
{ "answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"white\" OR t3.characteristic_name = \"hot\"", "context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\"." }
### QUESTION What grand prix was held at Granollers? ### CONTEXT CREATE TABLE table_name_32 (designated_grand_prix VARCHAR, track VARCHAR) ### ANSWER SELECT designated_grand_prix FROM table_name_32 WHERE track = "granollers"
{ "answer": "SELECT designated_grand_prix FROM table_name_32 WHERE track = \"granollers\"", "context": "CREATE TABLE table_name_32 (designated_grand_prix VARCHAR, track VARCHAR)", "question": "What grand prix was held at Granollers?" }
### QUESTION For a country of Spain, place of t6, what is the Money ($)? ### CONTEXT CREATE TABLE table_name_44 (money___$__ VARCHAR, place VARCHAR, country VARCHAR) ### ANSWER SELECT money___$__ FROM table_name_44 WHERE place = "t6" AND country = "spain"
{ "answer": "SELECT money___$__ FROM table_name_44 WHERE place = \"t6\" AND country = \"spain\"", "context": "CREATE TABLE table_name_44 (money___$__ VARCHAR, place VARCHAR, country VARCHAR)", "question": "For a country of Spain, place of t6, what is the Money ($)?" }
### QUESTION What is the playoffs result in years where Open Canada Cup was "N/A" and regular season result was "2nd, New England"? ### CONTEXT CREATE TABLE table_1999350_1 (playoffs VARCHAR, open_canada_cup VARCHAR, regular_season VARCHAR) ### ANSWER SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = "N/A" AND regular_season = "2nd, New England"
{ "answer": "SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = \"N/A\" AND regular_season = \"2nd, New England\"", "context": "CREATE TABLE table_1999350_1 (playoffs VARCHAR, open_canada_cup VARCHAR, regular_season VARCHAR)", "question": "What is the playoffs result in years where Open Canada Cup was \"N/A\" and regular season result was \"2nd, New England\"?" }
### QUESTION What is Ken Walter's lowest pick number with an overall pick number larger than 195? ### CONTEXT CREATE TABLE table_name_28 (pick__number INTEGER, name VARCHAR, overall VARCHAR) ### ANSWER SELECT MIN(pick__number) FROM table_name_28 WHERE name = "ken walter" AND overall > 195
{ "answer": "SELECT MIN(pick__number) FROM table_name_28 WHERE name = \"ken walter\" AND overall > 195", "context": "CREATE TABLE table_name_28 (pick__number INTEGER, name VARCHAR, overall VARCHAR)", "question": "What is Ken Walter's lowest pick number with an overall pick number larger than 195?" }