text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
Find the top 3 wineries with the greatest number of wines made of white color grapes.
### CONTEXT
CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR)
### ANSWER
SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3 | {
"answer": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = \"White\" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3",
"context": "CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR)",
"question": "Find the top 3 wineries with the greatest number of wines made of white color grapes."
} |
### QUESTION
The episode with the original air date January 6, 1999, has what production code?
### CONTEXT
CREATE TABLE table_2618152_1 (production_code VARCHAR, original_air_date VARCHAR)
### ANSWER
SELECT production_code FROM table_2618152_1 WHERE original_air_date = "January 6, 1999" | {
"answer": "SELECT production_code FROM table_2618152_1 WHERE original_air_date = \"January 6, 1999\"",
"context": "CREATE TABLE table_2618152_1 (production_code VARCHAR, original_air_date VARCHAR)",
"question": "The episode with the original air date January 6, 1999, has what production code?"
} |
### QUESTION
In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?
### CONTEXT
CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR)
### ANSWER
SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas" | {
"answer": "SELECT year FROM table_name_83 WHERE tournament = \"1st division el salvador\" AND finish = \"champion\" AND team = \"fas\"",
"context": "CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR)",
"question": "In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?"
} |
### QUESTION
How many Seat Orders (Right to Left) have a Series 3 of deborah meaden?
### CONTEXT
CREATE TABLE table_name_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR)
### ANSWER
SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = "deborah meaden" | {
"answer": "SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = \"deborah meaden\"",
"context": "CREATE TABLE table_name_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR)",
"question": "How many Seat Orders (Right to Left) have a Series 3 of deborah meaden?"
} |
### QUESTION
Find the kind of program which most number of students are enrolled in?
### CONTEXT
CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR)
### ANSWER
SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR)",
"question": "Find the kind of program which most number of students are enrolled in?"
} |
### QUESTION
Show all cities where at least one customer lives in but no performer lives in.
### CONTEXT
CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR)
### ANSWER
SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID | {
"answer": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID",
"context": "CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR)",
"question": "Show all cities where at least one customer lives in but no performer lives in."
} |
### QUESTION
Which Network has a Rank larger than 5, a Show of 2012 summer olympics closing ceremony in london?
### CONTEXT
CREATE TABLE table_name_34 (network VARCHAR, rank VARCHAR, show VARCHAR)
### ANSWER
SELECT network FROM table_name_34 WHERE rank > 5 AND show = "2012 summer olympics closing ceremony in london" | {
"answer": "SELECT network FROM table_name_34 WHERE rank > 5 AND show = \"2012 summer olympics closing ceremony in london\"",
"context": "CREATE TABLE table_name_34 (network VARCHAR, rank VARCHAR, show VARCHAR)",
"question": "Which Network has a Rank larger than 5, a Show of 2012 summer olympics closing ceremony in london?"
} |
### QUESTION
How many Opponents have a Result of win, and Nuggets points smaller than 115, and an Opponent of washington?
### CONTEXT
CREATE TABLE table_name_62 (opponents INTEGER, opponent VARCHAR, result VARCHAR, nuggets_points VARCHAR)
### ANSWER
SELECT SUM(opponents) FROM table_name_62 WHERE result = "win" AND nuggets_points < 115 AND opponent = "washington" | {
"answer": "SELECT SUM(opponents) FROM table_name_62 WHERE result = \"win\" AND nuggets_points < 115 AND opponent = \"washington\"",
"context": "CREATE TABLE table_name_62 (opponents INTEGER, opponent VARCHAR, result VARCHAR, nuggets_points VARCHAR)",
"question": "How many Opponents have a Result of win, and Nuggets points smaller than 115, and an Opponent of washington?"
} |
### QUESTION
Which High rebounds has a High points of douglas (23)?
### CONTEXT
CREATE TABLE table_name_23 (high_rebounds VARCHAR, high_points VARCHAR)
### ANSWER
SELECT high_rebounds FROM table_name_23 WHERE high_points = "douglas (23)" | {
"answer": "SELECT high_rebounds FROM table_name_23 WHERE high_points = \"douglas (23)\"",
"context": "CREATE TABLE table_name_23 (high_rebounds VARCHAR, high_points VARCHAR)",
"question": "Which High rebounds has a High points of douglas (23)?"
} |
### QUESTION
Which opponent has unknown attendance, and lost 2-0?
### CONTEXT
CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR)
### ANSWER
SELECT opponent FROM table_name_43 WHERE attendance = "unknown" AND result = "lost 2-0" | {
"answer": "SELECT opponent FROM table_name_43 WHERE attendance = \"unknown\" AND result = \"lost 2-0\"",
"context": "CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR)",
"question": "Which opponent has unknown attendance, and lost 2-0?"
} |
### QUESTION
What is the Place that has a Date of 4 august 2012?
### CONTEXT
CREATE TABLE table_name_13 (place VARCHAR, date VARCHAR)
### ANSWER
SELECT place FROM table_name_13 WHERE date = "4 august 2012" | {
"answer": "SELECT place FROM table_name_13 WHERE date = \"4 august 2012\"",
"context": "CREATE TABLE table_name_13 (place VARCHAR, date VARCHAR)",
"question": "What is the Place that has a Date of 4 august 2012?"
} |
### QUESTION
What is the hometown of the contestant whose background is as a financial consultant?
### CONTEXT
CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR)
### ANSWER
SELECT hometown FROM table_19810459_1 WHERE background = "Financial consultant" | {
"answer": "SELECT hometown FROM table_19810459_1 WHERE background = \"Financial consultant\"",
"context": "CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR)",
"question": "What is the hometown of the contestant whose background is as a financial consultant? "
} |
### QUESTION
Find the name of instructors who are advising more than one student.
### CONTEXT
CREATE TABLE advisor (i_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1 | {
"answer": "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1",
"context": "CREATE TABLE advisor (i_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)",
"question": "Find the name of instructors who are advising more than one student."
} |
### QUESTION
How many losses did Notre Dame have in 1904?
### CONTEXT
CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR)
### ANSWER
SELECT AVG(losses) FROM table_name_43 WHERE years = "1904" | {
"answer": "SELECT AVG(losses) FROM table_name_43 WHERE years = \"1904\"",
"context": "CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR)",
"question": "How many losses did Notre Dame have in 1904?"
} |
### QUESTION
What is the average played for entries with fewer than 65 goals against, points 1 of 19 2, and a position higher than 15?
### CONTEXT
CREATE TABLE table_name_89 (played INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)
### ANSWER
SELECT AVG(played) FROM table_name_89 WHERE position < 15 AND points_1 = "19 2" AND goals_against < 65 | {
"answer": "SELECT AVG(played) FROM table_name_89 WHERE position < 15 AND points_1 = \"19 2\" AND goals_against < 65",
"context": "CREATE TABLE table_name_89 (played INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)",
"question": "What is the average played for entries with fewer than 65 goals against, points 1 of 19 2, and a position higher than 15?"
} |
### QUESTION
Which Result F-A has Opponents of rosenborg?
### CONTEXT
CREATE TABLE table_name_8 (result_f___a VARCHAR, opponents VARCHAR)
### ANSWER
SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg" | {
"answer": "SELECT result_f___a FROM table_name_8 WHERE opponents = \"rosenborg\"",
"context": "CREATE TABLE table_name_8 (result_f___a VARCHAR, opponents VARCHAR)",
"question": "Which Result F-A has Opponents of rosenborg?"
} |
### QUESTION
What is the result of the hypo-meeting before 2010?
### CONTEXT
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, tournament VARCHAR)
### ANSWER
SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = "hypo-meeting" | {
"answer": "SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = \"hypo-meeting\"",
"context": "CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, tournament VARCHAR)",
"question": "What is the result of the hypo-meeting before 2010?"
} |
### QUESTION
Show all the buildings that have at least 10 professors.
### CONTEXT
CREATE TABLE Faculty (building VARCHAR, rank VARCHAR)
### ANSWER
SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING COUNT(*) >= 10 | {
"answer": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING COUNT(*) >= 10",
"context": "CREATE TABLE Faculty (building VARCHAR, rank VARCHAR)",
"question": "Show all the buildings that have at least 10 professors."
} |
### QUESTION
How many episodes are written by Lew Schneider?
### CONTEXT
CREATE TABLE table_25356350_2 (series__number VARCHAR, written_by VARCHAR)
### ANSWER
SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = "Lew Schneider" | {
"answer": "SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = \"Lew Schneider\"",
"context": "CREATE TABLE table_25356350_2 (series__number VARCHAR, written_by VARCHAR)",
"question": "How many episodes are written by Lew Schneider?"
} |
### QUESTION
What was the mls cup playoffs when concacaf champions cup / concacaf champions league was quarter-finals (09-10)?
### CONTEXT
CREATE TABLE table_245695_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___concacaf_champions_league VARCHAR)
### ANSWER
SELECT mls_cup_playoffs FROM table_245695_2 WHERE concacaf_champions_cup___concacaf_champions_league = "Quarter-Finals (09-10)" | {
"answer": "SELECT mls_cup_playoffs FROM table_245695_2 WHERE concacaf_champions_cup___concacaf_champions_league = \"Quarter-Finals (09-10)\"",
"context": "CREATE TABLE table_245695_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___concacaf_champions_league VARCHAR)",
"question": "What was the mls cup playoffs when concacaf champions cup / concacaf champions league was quarter-finals (09-10)?"
} |
### 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 | {
"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
In how many episodes were Vanessa Feltz and Lee Mack the team for Sean?
### CONTEXT
CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR)
### ANSWER
SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = "Vanessa Feltz and Lee Mack" | {
"answer": "SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = \"Vanessa Feltz and Lee Mack\"",
"context": "CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR)",
"question": "In how many episodes were Vanessa Feltz and Lee Mack the team for Sean? "
} |
### QUESTION
How many type classifications are given to the measure with the description, calling convention to revise state constitution?
### CONTEXT
CREATE TABLE table_256286_5 (type VARCHAR, description VARCHAR)
### ANSWER
SELECT COUNT(type) FROM table_256286_5 WHERE description = "Calling Convention to revise State Constitution" | {
"answer": "SELECT COUNT(type) FROM table_256286_5 WHERE description = \"Calling Convention to revise State Constitution\"",
"context": "CREATE TABLE table_256286_5 (type VARCHAR, description VARCHAR)",
"question": "How many type classifications are given to the measure with the description, calling convention to revise state constitution? "
} |
### QUESTION
Name the year for womens doubles being raina tzvetkova emilia dimitrova
### CONTEXT
CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR)
### ANSWER
SELECT year FROM table_14903491_1 WHERE womens_doubles = "Raina Tzvetkova Emilia Dimitrova" | {
"answer": "SELECT year FROM table_14903491_1 WHERE womens_doubles = \"Raina Tzvetkova Emilia Dimitrova\"",
"context": "CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR)",
"question": "Name the year for womens doubles being raina tzvetkova emilia dimitrova"
} |
### QUESTION
What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?
### CONTEXT
CREATE TABLE table_name_89 (place VARCHAR, to_par VARCHAR, score VARCHAR)
### ANSWER
SELECT place FROM table_name_89 WHERE to_par = "–10" AND score = 67 - 67 - 66 = 200 | {
"answer": "SELECT place FROM table_name_89 WHERE to_par = \"–10\" AND score = 67 - 67 - 66 = 200",
"context": "CREATE TABLE table_name_89 (place VARCHAR, to_par VARCHAR, score VARCHAR)",
"question": "What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?"
} |
### QUESTION
Name the number of first elected for john smith
### CONTEXT
CREATE TABLE table_2668387_18 (first_elected VARCHAR, incumbent VARCHAR)
### ANSWER
SELECT COUNT(first_elected) FROM table_2668387_18 WHERE incumbent = "John Smith" | {
"answer": "SELECT COUNT(first_elected) FROM table_2668387_18 WHERE incumbent = \"John Smith\"",
"context": "CREATE TABLE table_2668387_18 (first_elected VARCHAR, incumbent VARCHAR)",
"question": "Name the number of first elected for john smith"
} |
### QUESTION
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?
### CONTEXT
CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR)
### ANSWER
SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith" | {
"answer": "SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = \"frank r. crosswaith\"",
"context": "CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR)",
"question": "Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?"
} |
### QUESTION
What was the association for Indonesian Idol after 2005 with a Nominated Result?
### CONTEXT
CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR)
### ANSWER
SELECT association FROM table_name_39 WHERE nominee = "indonesian idol" AND year > 2005 AND result = "nominated" | {
"answer": "SELECT association FROM table_name_39 WHERE nominee = \"indonesian idol\" AND year > 2005 AND result = \"nominated\"",
"context": "CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR)",
"question": "What was the association for Indonesian Idol after 2005 with a Nominated Result?"
} |
### QUESTION
List the name for storms and the number of affected regions for each storm.
### CONTEXT
CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
### ANSWER
SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | {
"answer": "SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id",
"context": "CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)",
"question": "List the name for storms and the number of affected regions for each storm."
} |
### QUESTION
In what League in Round 6 is the Position Right Wing?
### CONTEXT
CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
### ANSWER
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = "right wing" AND round = "6" | {
"answer": "SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = \"right wing\" AND round = \"6\"",
"context": "CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)",
"question": "In what League in Round 6 is the Position Right Wing?"
} |
### QUESTION
Who was the trainer in 2013?
### CONTEXT
CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR)
### ANSWER
SELECT trainer FROM table_name_71 WHERE year = 2013 | {
"answer": "SELECT trainer FROM table_name_71 WHERE year = 2013",
"context": "CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR)",
"question": "Who was the trainer in 2013?"
} |
### QUESTION
What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?
### CONTEXT
CREATE TABLE table_name_55 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, constellation VARCHAR)
### ANSWER
SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = "dorado" AND declination___j2000__ = "°12′43″" | {
"answer": "SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = \"dorado\" AND declination___j2000__ = \"°12′43″\"",
"context": "CREATE TABLE table_name_55 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, constellation VARCHAR)",
"question": "What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?"
} |
### QUESTION
What kind of IATA has an Airport of hamburg airport?
### CONTEXT
CREATE TABLE table_name_5 (iata VARCHAR, airport VARCHAR)
### ANSWER
SELECT iata FROM table_name_5 WHERE airport = "hamburg airport" | {
"answer": "SELECT iata FROM table_name_5 WHERE airport = \"hamburg airport\"",
"context": "CREATE TABLE table_name_5 (iata VARCHAR, airport VARCHAR)",
"question": "What kind of IATA has an Airport of hamburg airport?"
} |
### QUESTION
What is the 2011 when the Tournament was the grand slam tournaments?
### CONTEXT
CREATE TABLE table_name_63 (tournament VARCHAR)
### ANSWER
SELECT 2011 FROM table_name_63 WHERE tournament = "grand slam tournaments" | {
"answer": "SELECT 2011 FROM table_name_63 WHERE tournament = \"grand slam tournaments\"",
"context": "CREATE TABLE table_name_63 (tournament VARCHAR)",
"question": "What is the 2011 when the Tournament was the grand slam tournaments?"
} |
### QUESTION
What is the run 2 of athlete Maria Orlova from Russia?
### CONTEXT
CREATE TABLE table_name_24 (run_2 INTEGER, country VARCHAR, athlete VARCHAR)
### ANSWER
SELECT SUM(run_2) FROM table_name_24 WHERE country = "russia" AND athlete = "maria orlova" | {
"answer": "SELECT SUM(run_2) FROM table_name_24 WHERE country = \"russia\" AND athlete = \"maria orlova\"",
"context": "CREATE TABLE table_name_24 (run_2 INTEGER, country VARCHAR, athlete VARCHAR)",
"question": "What is the run 2 of athlete Maria Orlova from Russia?"
} |
### QUESTION
How may times did a player that attended Iowa state appear on the all time roster?
### CONTEXT
CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, school_club_team_country VARCHAR)
### ANSWER
SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = "Iowa State" | {
"answer": "SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = \"Iowa State\"",
"context": "CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, school_club_team_country VARCHAR)",
"question": "How may times did a player that attended Iowa state appear on the all time roster?"
} |
### QUESTION
If the Home team was st kilda, what was the score of the Away team they played?
### CONTEXT
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
### ANSWER
SELECT away_team AS score FROM table_name_16 WHERE home_team = "st kilda" | {
"answer": "SELECT away_team AS score FROM table_name_16 WHERE home_team = \"st kilda\"",
"context": "CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)",
"question": "If the Home team was st kilda, what was the score of the Away team they played?"
} |
### QUESTION
What is the free sotware with the latest stable date version of 1.1?
### CONTEXT
CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)
### ANSWER
SELECT software FROM table_name_78 WHERE cost___usd__ = "free" AND latest_stable_date__version_ = "1.1" | {
"answer": "SELECT software FROM table_name_78 WHERE cost___usd__ = \"free\" AND latest_stable_date__version_ = \"1.1\"",
"context": "CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)",
"question": "What is the free sotware with the latest stable date version of 1.1?"
} |
### QUESTION
How many judges were there for the eliminated couple?
### CONTEXT
CREATE TABLE table_26375386_23 (judges VARCHAR, result VARCHAR)
### ANSWER
SELECT judges FROM table_26375386_23 WHERE result = "Eliminated" | {
"answer": "SELECT judges FROM table_26375386_23 WHERE result = \"Eliminated\"",
"context": "CREATE TABLE table_26375386_23 (judges VARCHAR, result VARCHAR)",
"question": "How many judges were there for the eliminated couple? "
} |
### QUESTION
What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital?
### CONTEXT
CREATE TABLE table_name_74 (general_classification_yellow_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR)
### ANSWER
SELECT general_classification_yellow_jersey FROM table_name_74 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND team_classification = "lampre-fondital" | {
"answer": "SELECT general_classification_yellow_jersey FROM table_name_74 WHERE mountains_classification_green_jersey = \"murilo antonio fischer\" AND team_classification = \"lampre-fondital\"",
"context": "CREATE TABLE table_name_74 (general_classification_yellow_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR)",
"question": "What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital?"
} |
### QUESTION
How many rounds is the fight against Michael Chavez?
### CONTEXT
CREATE TABLE table_name_46 (round INTEGER, opponent VARCHAR)
### ANSWER
SELECT AVG(round) FROM table_name_46 WHERE opponent = "michael chavez" | {
"answer": "SELECT AVG(round) FROM table_name_46 WHERE opponent = \"michael chavez\"",
"context": "CREATE TABLE table_name_46 (round INTEGER, opponent VARCHAR)",
"question": "How many rounds is the fight against Michael Chavez?"
} |
### QUESTION
What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service?
### CONTEXT
CREATE TABLE table_name_23 (language VARCHAR, television_service VARCHAR, hdtv VARCHAR, package_option VARCHAR)
### ANSWER
SELECT language FROM table_name_23 WHERE hdtv = "no" AND package_option = "sky famiglia" AND television_service = "national geographic channel" | {
"answer": "SELECT language FROM table_name_23 WHERE hdtv = \"no\" AND package_option = \"sky famiglia\" AND television_service = \"national geographic channel\"",
"context": "CREATE TABLE table_name_23 (language VARCHAR, television_service VARCHAR, hdtv VARCHAR, package_option VARCHAR)",
"question": "What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service?"
} |
### QUESTION
How many Laps have a Driver of satrio hermanto?
### CONTEXT
CREATE TABLE table_name_76 (laps INTEGER, driver VARCHAR)
### ANSWER
SELECT SUM(laps) FROM table_name_76 WHERE driver = "satrio hermanto" | {
"answer": "SELECT SUM(laps) FROM table_name_76 WHERE driver = \"satrio hermanto\"",
"context": "CREATE TABLE table_name_76 (laps INTEGER, driver VARCHAR)",
"question": "How many Laps have a Driver of satrio hermanto?"
} |
### QUESTION
How many stations are transmitted on frequency 7 uhf?
### CONTEXT
CREATE TABLE table_1601792_4 (transmitted VARCHAR, frequency VARCHAR)
### ANSWER
SELECT COUNT(transmitted) FROM table_1601792_4 WHERE frequency = "7 UHF" | {
"answer": "SELECT COUNT(transmitted) FROM table_1601792_4 WHERE frequency = \"7 UHF\"",
"context": "CREATE TABLE table_1601792_4 (transmitted VARCHAR, frequency VARCHAR)",
"question": "How many stations are transmitted on frequency 7 uhf?"
} |
### QUESTION
Name the past habitual for गर्छस् garchas 'you (will) do'
### CONTEXT
CREATE TABLE table_16337329_5 (past_habitual VARCHAR, probable_future VARCHAR)
### ANSWER
SELECT past_habitual FROM table_16337329_5 WHERE probable_future = "गर्छस् garchas 'you (will) do'" | {
"answer": "SELECT past_habitual FROM table_16337329_5 WHERE probable_future = \"गर्छस् garchas 'you (will) do'\"",
"context": "CREATE TABLE table_16337329_5 (past_habitual VARCHAR, probable_future VARCHAR)",
"question": "Name the past habitual for गर्छस् garchas 'you (will) do'"
} |
### QUESTION
What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary?
### CONTEXT
CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR)
### ANSWER
SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = "mary murphy" AND style = "contemporary" | {
"answer": "SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = \"mary murphy\" AND style = \"contemporary\"",
"context": "CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR)",
"question": "What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary?"
} |
### QUESTION
What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus?
### CONTEXT
CREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR)
### ANSWER
SELECT AVG(year) FROM table_name_17 WHERE engine = "cosworth straight-4" AND entrant = "ron harris / team lotus" | {
"answer": "SELECT AVG(year) FROM table_name_17 WHERE engine = \"cosworth straight-4\" AND entrant = \"ron harris / team lotus\"",
"context": "CREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR)",
"question": "What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus?"
} |
### QUESTION
On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?
### CONTEXT
CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR)
### ANSWER
SELECT chart_peak FROM table_name_46 WHERE release_date = "6/17/61" AND track > 20 AND writer_s_ = "woody harris" | {
"answer": "SELECT chart_peak FROM table_name_46 WHERE release_date = \"6/17/61\" AND track > 20 AND writer_s_ = \"woody harris\"",
"context": "CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR)",
"question": "On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?"
} |
### QUESTION
What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.
### CONTEXT
CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR, FDA_approved VARCHAR)
### ANSWER
SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC | {
"answer": "SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC",
"context": "CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR, FDA_approved VARCHAR)",
"question": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with."
} |
### QUESTION
Which episode had bbc ranking and canle ranking of n/a?
### CONTEXT
CREATE TABLE table_24399615_10 (episode_no VARCHAR, bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)
### ANSWER
SELECT COUNT(episode_no) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = "N/A" AND cable_rank = "N/A" | {
"answer": "SELECT COUNT(episode_no) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = \"N/A\" AND cable_rank = \"N/A\"",
"context": "CREATE TABLE table_24399615_10 (episode_no VARCHAR, bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)",
"question": "Which episode had bbc ranking and canle ranking of n/a?"
} |
### QUESTION
Name the venue for friendly competition october 16, 2012
### CONTEXT
CREATE TABLE table_name_89 (venue VARCHAR, competition VARCHAR, date VARCHAR)
### ANSWER
SELECT venue FROM table_name_89 WHERE competition = "friendly" AND date = "october 16, 2012" | {
"answer": "SELECT venue FROM table_name_89 WHERE competition = \"friendly\" AND date = \"october 16, 2012\"",
"context": "CREATE TABLE table_name_89 (venue VARCHAR, competition VARCHAR, date VARCHAR)",
"question": "Name the venue for friendly competition october 16, 2012"
} |
### QUESTION
What is HDTV, when Language is English, and when Television Service is MTV Dance?
### CONTEXT
CREATE TABLE table_name_82 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR)
### ANSWER
SELECT hdtv FROM table_name_82 WHERE language = "english" AND television_service = "mtv dance" | {
"answer": "SELECT hdtv FROM table_name_82 WHERE language = \"english\" AND television_service = \"mtv dance\"",
"context": "CREATE TABLE table_name_82 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR)",
"question": "What is HDTV, when Language is English, and when Television Service is MTV Dance?"
} |
### QUESTION
Find the number of students who is older than 20 in each dorm.
### CONTEXT
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, age INTEGER)
### ANSWER
SELECT COUNT(*), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name | {
"answer": "SELECT COUNT(*), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name",
"context": "CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, age INTEGER)",
"question": "Find the number of students who is older than 20 in each dorm."
} |
### QUESTION
Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?
### CONTEXT
CREATE TABLE table_name_12 (big__ INTEGER, total VARCHAR, micro__10ha_ VARCHAR, department VARCHAR)
### ANSWER
SELECT MAX(big__) > 500 AS ha_ FROM table_name_12 WHERE micro__10ha_ > 940 AND department = "potosí" AND total < 16 OFFSET 240 | {
"answer": "SELECT MAX(big__) > 500 AS ha_ FROM table_name_12 WHERE micro__10ha_ > 940 AND department = \"potosí\" AND total < 16 OFFSET 240",
"context": "CREATE TABLE table_name_12 (big__ INTEGER, total VARCHAR, micro__10ha_ VARCHAR, department VARCHAR)",
"question": "Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?"
} |
### QUESTION
What is the number of distinct continents where Chinese is spoken?
### CONTEXT
CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Chinese" | {
"answer": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"",
"context": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)",
"question": "What is the number of distinct continents where Chinese is spoken?"
} |
### QUESTION
Please show the team that has the most number of technicians.
### CONTEXT
CREATE TABLE technician (Team VARCHAR)
### ANSWER
SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE technician (Team VARCHAR)",
"question": "Please show the team that has the most number of technicians."
} |
### QUESTION
What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.
### CONTEXT
CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR)
### ANSWER
SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | {
"answer": "SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'",
"context": "CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR)",
"question": "What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision."
} |
### QUESTION
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?
### CONTEXT
CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)
### ANSWER
SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4" | {
"answer": "SELECT points_classification FROM table_name_7 WHERE general_classification = \"bernard hinault\" AND trofeo_fast_team = \"bianchi\" AND winner = \"urs freuler\" AND stage = \"4\"",
"context": "CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)",
"question": "Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?"
} |
### QUESTION
What position does the player from the Miami University (CCHA) club team play?
### CONTEXT
CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR)
### ANSWER
SELECT position FROM table_name_20 WHERE club_team = "miami university (ccha)" | {
"answer": "SELECT position FROM table_name_20 WHERE club_team = \"miami university (ccha)\"",
"context": "CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR)",
"question": "What position does the player from the Miami University (CCHA) club team play?"
} |
### QUESTION
Find the busiest source airport that runs most number of routes in China.
### CONTEXT
CREATE TABLE routes (src_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)
### ANSWER
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE routes (src_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)",
"question": "Find the busiest source airport that runs most number of routes in China."
} |
### QUESTION
When massachusetts 6th is the district what is the reason for vacancy?
### CONTEXT
CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, district VARCHAR)
### ANSWER
SELECT reason_for_vacancy FROM table_2417445_4 WHERE district = "Massachusetts 6th" | {
"answer": "SELECT reason_for_vacancy FROM table_2417445_4 WHERE district = \"Massachusetts 6th\"",
"context": "CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, district VARCHAR)",
"question": "When massachusetts 6th is the district what is the reason for vacancy?"
} |
### QUESTION
What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?
### CONTEXT
CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR)
### ANSWER
SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5" | {
"answer": "SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = \"-3\" AND democratic__republican = \"2/5\"",
"context": "CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR)",
"question": "What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?"
} |
### QUESTION
who is the the candidates with district being mississippi 4
### CONTEXT
CREATE TABLE table_1342379_23 (candidates VARCHAR, district VARCHAR)
### ANSWER
SELECT candidates FROM table_1342379_23 WHERE district = "Mississippi 4" | {
"answer": "SELECT candidates FROM table_1342379_23 WHERE district = \"Mississippi 4\"",
"context": "CREATE TABLE table_1342379_23 (candidates VARCHAR, district VARCHAR)",
"question": "who is the the candidates with district being mississippi 4"
} |
### QUESTION
What is every value for average on previous season if the competition is league two?
### CONTEXT
CREATE TABLE table_2970978_1 (___ave_on_prev_season VARCHAR, competition VARCHAR)
### ANSWER
SELECT ___ave_on_prev_season FROM table_2970978_1 WHERE competition = "League Two" | {
"answer": "SELECT ___ave_on_prev_season FROM table_2970978_1 WHERE competition = \"League Two\"",
"context": "CREATE TABLE table_2970978_1 (___ave_on_prev_season VARCHAR, competition VARCHAR)",
"question": "What is every value for average on previous season if the competition is league two?"
} |
### QUESTION
What is the timeslot for the episode that aired April 28, 2009?
### CONTEXT
CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR)
### ANSWER
SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009" | {
"answer": "SELECT timeslot FROM table_name_26 WHERE air_date = \"april 28, 2009\"",
"context": "CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR)",
"question": "What is the timeslot for the episode that aired April 28, 2009?"
} |
### QUESTION
Find the name of the swimmer who has at least 2 records.
### CONTEXT
CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)
### ANSWER
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING COUNT(*) >= 2 | {
"answer": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING COUNT(*) >= 2",
"context": "CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)",
"question": "Find the name of the swimmer who has at least 2 records."
} |
### QUESTION
What is the number of graduates in "San Francisco State University" in year 2004?
### CONTEXT
CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)
### ANSWER
SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Francisco State University" | {
"answer": "SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"",
"context": "CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)",
"question": "What is the number of graduates in \"San Francisco State University\" in year 2004?"
} |
### QUESTION
What pick was used to select a Defensive End in round 8?
### CONTEXT
CREATE TABLE table_name_70 (pick INTEGER, position VARCHAR, round VARCHAR)
### ANSWER
SELECT SUM(pick) FROM table_name_70 WHERE position = "defensive end" AND round = 8 | {
"answer": "SELECT SUM(pick) FROM table_name_70 WHERE position = \"defensive end\" AND round = 8",
"context": "CREATE TABLE table_name_70 (pick INTEGER, position VARCHAR, round VARCHAR)",
"question": "What pick was used to select a Defensive End in round 8?"
} |
### QUESTION
Find the details of all the distinct customers who have orders with status "On Road".
### CONTEXT
CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)
### ANSWER
SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" | {
"answer": "SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"",
"context": "CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)",
"question": "Find the details of all the distinct customers who have orders with status \"On Road\"."
} |
### QUESTION
What is the name of the stadium which held the most events?
### CONTEXT
CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR)
### ANSWER
SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR)",
"question": "What is the name of the stadium which held the most events?"
} |
### QUESTION
What is the sum of the Billboard 200 Peak scores after the Year 1971?
### CONTEXT
CREATE TABLE table_name_38 (billboard_200_peak INTEGER, year INTEGER)
### ANSWER
SELECT SUM(billboard_200_peak) FROM table_name_38 WHERE year > 1971 | {
"answer": "SELECT SUM(billboard_200_peak) FROM table_name_38 WHERE year > 1971",
"context": "CREATE TABLE table_name_38 (billboard_200_peak INTEGER, year INTEGER)",
"question": "What is the sum of the Billboard 200 Peak scores after the Year 1971?"
} |
### QUESTION
What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?
### CONTEXT
CREATE TABLE Electoral_Register (electoral_register_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR)
### ANSWER
SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax' | {
"answer": "SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax'",
"context": "CREATE TABLE Electoral_Register (electoral_register_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR)",
"question": "What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?"
} |
### QUESTION
What is Justin Leonard with a To par of –7's Score?
### CONTEXT
CREATE TABLE table_name_32 (score VARCHAR, to_par VARCHAR, player VARCHAR)
### ANSWER
SELECT score FROM table_name_32 WHERE to_par = "–7" AND player = "justin leonard" | {
"answer": "SELECT score FROM table_name_32 WHERE to_par = \"–7\" AND player = \"justin leonard\"",
"context": "CREATE TABLE table_name_32 (score VARCHAR, to_par VARCHAR, player VARCHAR)",
"question": "What is Justin Leonard with a To par of –7's Score?"
} |
### QUESTION
What is the length of the Panther Chameleon?
### CONTEXT
CREATE TABLE table_name_15 (length__female_ VARCHAR, common_name VARCHAR)
### ANSWER
SELECT length__female_ FROM table_name_15 WHERE common_name = "panther chameleon" | {
"answer": "SELECT length__female_ FROM table_name_15 WHERE common_name = \"panther chameleon\"",
"context": "CREATE TABLE table_name_15 (length__female_ VARCHAR, common_name VARCHAR)",
"question": "What is the length of the Panther Chameleon?"
} |
### QUESTION
What is the name of the plaza where the told for heavy vehicles with 2 axles is r20.50?
### CONTEXT
CREATE TABLE table_1211545_2 (name VARCHAR, heavy_vehicle__2_axles_ VARCHAR)
### ANSWER
SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = "R20.50" | {
"answer": "SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = \"R20.50\"",
"context": "CREATE TABLE table_1211545_2 (name VARCHAR, heavy_vehicle__2_axles_ VARCHAR)",
"question": "What is the name of the plaza where the told for heavy vehicles with 2 axles is r20.50?"
} |
### QUESTION
What are the total number of matches smaller than 2 with a tally of 1-19?
### CONTEXT
CREATE TABLE table_name_84 (total VARCHAR, tally VARCHAR, matches VARCHAR)
### ANSWER
SELECT COUNT(total) FROM table_name_84 WHERE tally = "1-19" AND matches < 2 | {
"answer": "SELECT COUNT(total) FROM table_name_84 WHERE tally = \"1-19\" AND matches < 2",
"context": "CREATE TABLE table_name_84 (total VARCHAR, tally VARCHAR, matches VARCHAR)",
"question": "What are the total number of matches smaller than 2 with a tally of 1-19?"
} |
### QUESTION
List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.
### CONTEXT
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
### ANSWER
SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' | {
"answer": "SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'",
"context": "CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)",
"question": "List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes."
} |
### QUESTION
When Richmond had a total count of 2,293, what was the total count of Brooklyn?
### CONTEXT
CREATE TABLE table_name_53 (brooklyn VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)
### ANSWER
SELECT brooklyn FROM table_name_53 WHERE richmond_[staten_is] = "2,293" | {
"answer": "SELECT brooklyn FROM table_name_53 WHERE richmond_[staten_is] = \"2,293\"",
"context": "CREATE TABLE table_name_53 (brooklyn VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)",
"question": "When Richmond had a total count of 2,293, what was the total count of Brooklyn?"
} |
### QUESTION
What is the Population density that has a Change (%) higher than 10.4, and a Population (2011) less than 8574, in the County of Queens?
### CONTEXT
CREATE TABLE table_name_63 (population_density INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, county VARCHAR)
### ANSWER
SELECT AVG(population_density) FROM table_name_63 WHERE change___percentage_ > 10.4 AND county = "queens" AND population__2011_ < 8574 | {
"answer": "SELECT AVG(population_density) FROM table_name_63 WHERE change___percentage_ > 10.4 AND county = \"queens\" AND population__2011_ < 8574",
"context": "CREATE TABLE table_name_63 (population_density INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, county VARCHAR)",
"question": "What is the Population density that has a Change (%) higher than 10.4, and a Population (2011) less than 8574, in the County of Queens?"
} |
### QUESTION
What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?
### CONTEXT
CREATE TABLE table_name_42 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)
### ANSWER
SELECT MAX(laps) FROM table_name_42 WHERE constructor = "tyrrell - yamaha" AND time_retired = "+ 1 lap" | {
"answer": "SELECT MAX(laps) FROM table_name_42 WHERE constructor = \"tyrrell - yamaha\" AND time_retired = \"+ 1 lap\"",
"context": "CREATE TABLE table_name_42 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)",
"question": "What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?"
} |
### QUESTION
What is the lowest metal total when the Bronze metals are larger than 0, the Gold medals are smaller than 1, and the nation is Switzerland?
### CONTEXT
CREATE TABLE table_name_18 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
### ANSWER
SELECT MIN(total) FROM table_name_18 WHERE bronze > 0 AND nation = "switzerland" AND gold < 1 | {
"answer": "SELECT MIN(total) FROM table_name_18 WHERE bronze > 0 AND nation = \"switzerland\" AND gold < 1",
"context": "CREATE TABLE table_name_18 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)",
"question": "What is the lowest metal total when the Bronze metals are larger than 0, the Gold medals are smaller than 1, and the nation is Switzerland?"
} |
### QUESTION
What issue was the spoofed title Ho-Hum land?
### CONTEXT
CREATE TABLE table_name_75 (issue INTEGER, spoofed_title VARCHAR)
### ANSWER
SELECT SUM(issue) FROM table_name_75 WHERE spoofed_title = "ho-hum land" | {
"answer": "SELECT SUM(issue) FROM table_name_75 WHERE spoofed_title = \"ho-hum land\"",
"context": "CREATE TABLE table_name_75 (issue INTEGER, spoofed_title VARCHAR)",
"question": "What issue was the spoofed title Ho-Hum land?"
} |
### QUESTION
what is the venue when the home team is melbourne?
### CONTEXT
CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)
### ANSWER
SELECT venue FROM table_name_67 WHERE home_team = "melbourne" | {
"answer": "SELECT venue FROM table_name_67 WHERE home_team = \"melbourne\"",
"context": "CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)",
"question": "what is the venue when the home team is melbourne?"
} |
### QUESTION
List the states which have between 2 to 4 staffs living there.
### CONTEXT
CREATE TABLE Addresses (state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR)
### ANSWER
SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4 | {
"answer": "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4",
"context": "CREATE TABLE Addresses (state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR)",
"question": "List the states which have between 2 to 4 staffs living there."
} |
### QUESTION
What is the lowest game number when the team is Houston?
### CONTEXT
CREATE TABLE table_17326036_7 (game INTEGER, team VARCHAR)
### ANSWER
SELECT MIN(game) FROM table_17326036_7 WHERE team = "Houston" | {
"answer": "SELECT MIN(game) FROM table_17326036_7 WHERE team = \"Houston\"",
"context": "CREATE TABLE table_17326036_7 (game INTEGER, team VARCHAR)",
"question": "What is the lowest game number when the team is Houston? "
} |
### QUESTION
What digital channel corresponds to virtual channel 23.2?
### CONTEXT
CREATE TABLE table_2857352_3 (digital_channel VARCHAR, virtual_channel VARCHAR)
### ANSWER
SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = "23.2" | {
"answer": "SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = \"23.2\"",
"context": "CREATE TABLE table_2857352_3 (digital_channel VARCHAR, virtual_channel VARCHAR)",
"question": "What digital channel corresponds to virtual channel 23.2?"
} |
### QUESTION
What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?
### CONTEXT
CREATE TABLE table_name_72 (Id VARCHAR)
### ANSWER
SELECT 1997 FROM table_name_72 WHERE 1999 = "1r" AND 1992 = "qf" AND 1995 = "1r" | {
"answer": "SELECT 1997 FROM table_name_72 WHERE 1999 = \"1r\" AND 1992 = \"qf\" AND 1995 = \"1r\"",
"context": "CREATE TABLE table_name_72 (Id VARCHAR)",
"question": "What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?"
} |
### QUESTION
Who was against the opponents, mădălina gojnea monica niculescu?
### CONTEXT
CREATE TABLE table_name_94 (against VARCHAR, opponents VARCHAR)
### ANSWER
SELECT against FROM table_name_94 WHERE opponents = "mădălina gojnea monica niculescu" | {
"answer": "SELECT against FROM table_name_94 WHERE opponents = \"mădălina gojnea monica niculescu\"",
"context": "CREATE TABLE table_name_94 (against VARCHAR, opponents VARCHAR)",
"question": "Who was against the opponents, mădălina gojnea monica niculescu?"
} |
### QUESTION
What is Score, when Outcome is "winner", when Partnering is "Nicole Sewell", and when Opponent in Final is "Victoria Davies / Kate Warne-Holland"?
### CONTEXT
CREATE TABLE table_name_50 (score VARCHAR, opponent_in_final VARCHAR, outcome VARCHAR, partnering VARCHAR)
### ANSWER
SELECT score FROM table_name_50 WHERE outcome = "winner" AND partnering = "nicole sewell" AND opponent_in_final = "victoria davies / kate warne-holland" | {
"answer": "SELECT score FROM table_name_50 WHERE outcome = \"winner\" AND partnering = \"nicole sewell\" AND opponent_in_final = \"victoria davies / kate warne-holland\"",
"context": "CREATE TABLE table_name_50 (score VARCHAR, opponent_in_final VARCHAR, outcome VARCHAR, partnering VARCHAR)",
"question": "What is Score, when Outcome is \"winner\", when Partnering is \"Nicole Sewell\", and when Opponent in Final is \"Victoria Davies / Kate Warne-Holland\"?"
} |
### QUESTION
What is Position in Table, when Replaced by is "José Pekerman"?
### CONTEXT
CREATE TABLE table_name_43 (position_in_table VARCHAR, replaced_by VARCHAR)
### ANSWER
SELECT position_in_table FROM table_name_43 WHERE replaced_by = "josé pekerman" | {
"answer": "SELECT position_in_table FROM table_name_43 WHERE replaced_by = \"josé pekerman\"",
"context": "CREATE TABLE table_name_43 (position_in_table VARCHAR, replaced_by VARCHAR)",
"question": "What is Position in Table, when Replaced by is \"José Pekerman\"?"
} |
### QUESTION
What years did Marienhof run, which featured Leonore Capell and lasted 10 years?
### CONTEXT
CREATE TABLE table_name_88 (years VARCHAR, actor VARCHAR, soap_opera VARCHAR, duration VARCHAR)
### ANSWER
SELECT years FROM table_name_88 WHERE soap_opera = "marienhof" AND duration = "10 years" AND actor = "leonore capell" | {
"answer": "SELECT years FROM table_name_88 WHERE soap_opera = \"marienhof\" AND duration = \"10 years\" AND actor = \"leonore capell\"",
"context": "CREATE TABLE table_name_88 (years VARCHAR, actor VARCHAR, soap_opera VARCHAR, duration VARCHAR)",
"question": "What years did Marienhof run, which featured Leonore Capell and lasted 10 years?"
} |
### QUESTION
What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi?
### CONTEXT
CREATE TABLE table_23292220_8 (first_broadcast VARCHAR, jasons_team VARCHAR)
### ANSWER
SELECT first_broadcast FROM table_23292220_8 WHERE jasons_team = "Rhod Gilbert and Shappi Khorsandi" | {
"answer": "SELECT first_broadcast FROM table_23292220_8 WHERE jasons_team = \"Rhod Gilbert and Shappi Khorsandi\"",
"context": "CREATE TABLE table_23292220_8 (first_broadcast VARCHAR, jasons_team VARCHAR)",
"question": "What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi?"
} |
### QUESTION
Who is every young rider classification if combativity award is Yannick Talabardon?
### CONTEXT
CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, combativity_award VARCHAR)
### ANSWER
SELECT young_rider_classification FROM table_25999087_2 WHERE combativity_award = "Yannick Talabardon" | {
"answer": "SELECT young_rider_classification FROM table_25999087_2 WHERE combativity_award = \"Yannick Talabardon\"",
"context": "CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, combativity_award VARCHAR)",
"question": "Who is every young rider classification if combativity award is Yannick Talabardon?"
} |
### QUESTION
What is Nationality, and when College is Illinois State?
### CONTEXT
CREATE TABLE table_name_2 (nationality VARCHAR, college VARCHAR)
### ANSWER
SELECT nationality FROM table_name_2 WHERE college = "illinois state" | {
"answer": "SELECT nationality FROM table_name_2 WHERE college = \"illinois state\"",
"context": "CREATE TABLE table_name_2 (nationality VARCHAR, college VARCHAR)",
"question": "What is Nationality, and when College is Illinois State?"
} |
### QUESTION
WHAT IS THE PLAYER WITH T7 PLACE, FOR ENGLAND?
### CONTEXT
CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, country VARCHAR)
### ANSWER
SELECT player FROM table_name_92 WHERE place = "t7" AND country = "england" | {
"answer": "SELECT player FROM table_name_92 WHERE place = \"t7\" AND country = \"england\"",
"context": "CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, country VARCHAR)",
"question": "WHAT IS THE PLAYER WITH T7 PLACE, FOR ENGLAND?"
} |
### QUESTION
When is the first season there were 14.57 million U.S viewers?
### CONTEXT
CREATE TABLE table_11664625_2 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
### ANSWER
SELECT MIN(no_in_season) FROM table_11664625_2 WHERE us_viewers__millions_ = "14.57" | {
"answer": "SELECT MIN(no_in_season) FROM table_11664625_2 WHERE us_viewers__millions_ = \"14.57\"",
"context": "CREATE TABLE table_11664625_2 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)",
"question": "When is the first season there were 14.57 million U.S viewers?"
} |
### QUESTION
What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?
### CONTEXT
CREATE TABLE table_name_67 (stage VARCHAR, general_classification VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)
### ANSWER
SELECT stage FROM table_name_67 WHERE points_classification = "danilo di luca" AND mountains_classification = "josé rujano" AND general_classification = "danilo di luca" | {
"answer": "SELECT stage FROM table_name_67 WHERE points_classification = \"danilo di luca\" AND mountains_classification = \"josé rujano\" AND general_classification = \"danilo di luca\"",
"context": "CREATE TABLE table_name_67 (stage VARCHAR, general_classification VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)",
"question": "What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?"
} |
### QUESTION
What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?
### CONTEXT
CREATE TABLE table_name_50 (percentage_of_marine_area__foreez_ INTEGER, ecozone VARCHAR, percentage_of_total_area__foreez_ VARCHAR)
### ANSWER
SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = "pacific marine" AND percentage_of_total_area__foreez_ > 3.1 | {
"answer": "SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = \"pacific marine\" AND percentage_of_total_area__foreez_ > 3.1",
"context": "CREATE TABLE table_name_50 (percentage_of_marine_area__foreez_ INTEGER, ecozone VARCHAR, percentage_of_total_area__foreez_ VARCHAR)",
"question": "What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?"
} |
### QUESTION
What's the lowest number of draws when the wins are less than 15, and against is 1228?
### CONTEXT
CREATE TABLE table_name_98 (draws INTEGER, wins VARCHAR, against VARCHAR)
### ANSWER
SELECT MIN(draws) FROM table_name_98 WHERE wins < 15 AND against = 1228 | {
"answer": "SELECT MIN(draws) FROM table_name_98 WHERE wins < 15 AND against = 1228",
"context": "CREATE TABLE table_name_98 (draws INTEGER, wins VARCHAR, against VARCHAR)",
"question": "What's the lowest number of draws when the wins are less than 15, and against is 1228?"
} |
### QUESTION
What is the release date of the mm series, which has the title tom thumb in trouble?
### CONTEXT
CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR)
### ANSWER
SELECT release_date FROM table_name_40 WHERE series = "mm" AND title = "tom thumb in trouble" | {
"answer": "SELECT release_date FROM table_name_40 WHERE series = \"mm\" AND title = \"tom thumb in trouble\"",
"context": "CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR)",
"question": "What is the release date of the mm series, which has the title tom thumb in trouble?"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.