question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What year made has a Quantity made of 4?
CREATE TABLE table_name_63 (year_made VARCHAR, quantity_made VARCHAR)
SELECT year_made FROM table_name_63 WHERE quantity_made = "4"
What is the lowest minutes a goalkeeper with 13 games played has?
CREATE TABLE table_name_25 (minutes INTEGER, games_played VARCHAR)
SELECT MIN(minutes) FROM table_name_25 WHERE games_played = 13
Who is the player from Aurillac?
CREATE TABLE table_name_49 (player VARCHAR, club_province VARCHAR)
SELECT player FROM table_name_49 WHERE club_province = "aurillac"
How many times was the score 6–7(5), 6–2, 6–3?
CREATE TABLE table_1920271_2 (opponents VARCHAR, score VARCHAR)
SELECT COUNT(opponents) FROM table_1920271_2 WHERE score = "6–7(5), 6–2, 6–3"
Which country has a GDP (nominal) of $29.9 billion?
CREATE TABLE table_name_20 (country VARCHAR, gdp__nominal_ VARCHAR)
SELECT country FROM table_name_20 WHERE gdp__nominal_ = "$29.9 billion"
What is the Date of the game with a Record of 2-3?
CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_86 WHERE record = "2-3"
What is Rank, when Silver is less than 6, when Bronze is greater than 4, and when Total is 10?
CREATE TABLE table_name_29 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT rank FROM table_name_29 WHERE silver < 6 AND bronze > 4 AND total = 10
When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there?
CREATE TABLE table_23537091_1 (early_chalcolithic VARCHAR, ubaid_period_in_mesopotamia VARCHAR)
SELECT COUNT(early_chalcolithic) FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Second Intermediate Period of Egypt"
What defending forces have a population of 650?
CREATE TABLE table_name_22 (defending_forces VARCHAR, population VARCHAR)
SELECT defending_forces FROM table_name_22 WHERE population = "650"
What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997?
CREATE TABLE table_name_99 (preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR)
SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997
What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??
CREATE TABLE table_name_47 (term_start VARCHAR, title VARCHAR, order VARCHAR)
SELECT term_start FROM table_name_47 WHERE title = "minister for agriculture, fisheries and forestry" AND order = "25"
How many cuts made when the top-5 is greater than 1?
CREATE TABLE table_name_31 (cuts_made INTEGER, top_5 INTEGER)
SELECT AVG(cuts_made) FROM table_name_31 WHERE top_5 > 1
What was the highest number of goals when 2428 minutes were played?
CREATE TABLE table_name_91 (goals INTEGER, minutes VARCHAR)
SELECT MAX(goals) FROM table_name_91 WHERE minutes = 2428
What was the record on 12 march 2008?
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_63 WHERE date = "12 march 2008"
What is the record at Columbia for the team overall record of MU, 3-1?
CREATE TABLE table_16201038_5 (at_columbia VARCHAR, overall_record VARCHAR)
SELECT at_columbia FROM table_16201038_5 WHERE overall_record = "MU, 3-1"
Which teams had the 1st position and entered 1 race?
CREATE TABLE table_name_42 (team VARCHAR, races VARCHAR, position VARCHAR)
SELECT team FROM table_name_42 WHERE races = "1" AND position = "1st"
what is the operator of trains arriving at 13.39
CREATE TABLE table_18333678_2 (operator VARCHAR, arrival VARCHAR)
SELECT operator FROM table_18333678_2 WHERE arrival = "13.39"
What is the location and attendance on October 18?
CREATE TABLE table_27713030_3 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_27713030_3 WHERE date = "October 18"
What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?
CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_32 WHERE to_par = "+1" AND country = "united states" AND score = 71 - 70 = 141
What was the percentage of firefox was chrome was 23.90%
CREATE TABLE table_name_95 (firefox VARCHAR, chrome VARCHAR)
SELECT firefox FROM table_name_95 WHERE chrome = "23.90%"
Which category does drama league award belong to?
CREATE TABLE table_name_91 (category VARCHAR, award VARCHAR)
SELECT category FROM table_name_91 WHERE award = "drama league award"
What country has to par E with Mark O'Meara?
CREATE TABLE table_name_44 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT country FROM table_name_44 WHERE to_par = "e" AND player = "mark o'meara"
What is Date of Appointment, when Outgoing Manager is "Hakan Kutlu"?
CREATE TABLE table_name_42 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_appointment FROM table_name_42 WHERE outgoing_manager = "hakan kutlu"
How many weeks have pittsburgh steelers as the opponent?
CREATE TABLE table_name_89 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_89 WHERE opponent = "pittsburgh steelers"
On what date do others have 5% with an SZDSZ of 5%?
CREATE TABLE table_name_14 (date VARCHAR, others VARCHAR, szdsz VARCHAR)
SELECT date FROM table_name_14 WHERE others = "5%" AND szdsz = "5%"
When was the Hopperstad Stavkyrkje built?
CREATE TABLE table_name_83 (year_built VARCHAR, church_name VARCHAR)
SELECT year_built FROM table_name_83 WHERE church_name = "hopperstad stavkyrkje"
Which races did Paul Greifzu win?
CREATE TABLE table_1140116_6 (race_name VARCHAR, winning_driver VARCHAR)
SELECT race_name FROM table_1140116_6 WHERE winning_driver = "Paul Greifzu"
what is the number of teams where the record is 0-1
CREATE TABLE table_26173058_2 (amman VARCHAR, wehdat VARCHAR)
SELECT COUNT(amman) FROM table_26173058_2 WHERE wehdat = "0-1"
Which Date has a Home of pittsburgh, and a Record of 3–6–5?
CREATE TABLE table_name_22 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_22 WHERE home = "pittsburgh" AND record = "3–6–5"
who is the player from arizona state?
CREATE TABLE table_name_81 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_81 WHERE college = "arizona state"
What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup?
CREATE TABLE table_name_72 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_72 WHERE team__number1 = "2007 uefa intertoto cup"
What is the country named feeney with a bbc sport start source?
CREATE TABLE table_name_16 (country VARCHAR, start_source VARCHAR, name VARCHAR)
SELECT country FROM table_name_16 WHERE start_source = "bbc sport" AND name = "feeney"
List all of the ids for left-footed players with a height between 180cm and 190cm.
CREATE TABLE Player_Attributes (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR); CREATE TABLE Player (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR)
SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = "left"
What year was the most recent US Open championship?
CREATE TABLE table_1514559_1 (year INTEGER, championship VARCHAR)
SELECT MAX(year) FROM table_1514559_1 WHERE championship = "US Open"
Who had the high assists in the game less than 19?
CREATE TABLE table_name_5 (high_assists VARCHAR, game INTEGER)
SELECT high_assists FROM table_name_5 WHERE game < 19
What was the actual title of the show that had an issue number less than 508, was written by Desmond Devlin, and for which Tom Richmond was the artist?
CREATE TABLE table_name_15 (actual_title VARCHAR, writer VARCHAR, artist VARCHAR, issue VARCHAR)
SELECT actual_title FROM table_name_15 WHERE artist = "tom richmond" AND issue < 508 AND writer = "desmond devlin"
What is the sum of the games before January 19 with a 27-6-6 record?
CREATE TABLE table_name_11 (game INTEGER, january VARCHAR, record VARCHAR)
SELECT SUM(game) FROM table_name_11 WHERE january < 19 AND record = "27-6-6"
Who directed # (season #) is 1 ( 2 )?
CREATE TABLE table_28210383_1 (directed_by VARCHAR, _number__season__number_ VARCHAR)
SELECT directed_by FROM table_28210383_1 WHERE _number__season__number_ = "1 ( 2 )"
What is the average year that Idris Elba was nominated for or won an award?
CREATE TABLE table_name_19 (year INTEGER, actor VARCHAR)
SELECT AVG(year) FROM table_name_19 WHERE actor = "idris elba"
What is Fuzzy Zoeller's To par?
CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_29 WHERE player = "fuzzy zoeller"
What club did the championship player come from who had 10 goals?
CREATE TABLE table_28286776_12 (club_s_ VARCHAR, goal_s_ VARCHAR)
SELECT club_s_ FROM table_28286776_12 WHERE goal_s_ = 10
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192"
Which Opponent has a Round larger than 1, and an Event of king of the cage 31?
CREATE TABLE table_name_3 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_3 WHERE round > 1 AND event = "king of the cage 31"
What is the Record of the game on June 24?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_23 WHERE date = "june 24"
Which years did the Tampa Bay Storm win the Championships?
CREATE TABLE table_name_71 (championships__years_ VARCHAR, club VARCHAR)
SELECT championships__years_ FROM table_name_71 WHERE club = "tampa bay storm"
Who is/are the Composer(s), when the Arranger(s) is Banana Boat, and when the Length is 4:25?
CREATE TABLE table_name_44 (composer_s_ VARCHAR, arranger_s_ VARCHAR, length VARCHAR)
SELECT composer_s_ FROM table_name_44 WHERE arranger_s_ = "banana boat" AND length = "4:25"
Show names of musicals and the number of actors who have appeared in the musicals.
CREATE TABLE actor (Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR)
SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID
What is the lowest number of people in attendance when the record was 9–26?
CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR)
SELECT MIN(attendance) FROM table_name_7 WHERE record = "9–26"
What is the channel when the analogue terrestrial channel shows n/a, and the internet is itv.com, with a position larger than 6, and digital terrestrial channel is 6 27 (+1)?
CREATE TABLE table_name_10 (channel VARCHAR, digital_terrestrial_channel VARCHAR, position VARCHAR, analogue_terrestrial_channel VARCHAR, internet VARCHAR)
SELECT channel FROM table_name_10 WHERE analogue_terrestrial_channel = "n/a" AND internet = "itv.com" AND position > 6 AND digital_terrestrial_channel = "6 27 (+1)"
What was the result of the week 16 game?
CREATE TABLE table_name_49 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_49 WHERE week = 16
What is the M60A3 that has 40 rounds as Leclerc?
CREATE TABLE table_name_28 (m60a3_patton VARCHAR, leclerc VARCHAR)
SELECT m60a3_patton FROM table_name_28 WHERE leclerc = "40 rounds"
Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?
CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR)
SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 0
Which country has less than 4 votes?
CREATE TABLE table_name_99 (state VARCHAR, council_votes INTEGER)
SELECT state FROM table_name_99 WHERE council_votes < 4
Which titles have 18.73 u.s. viewers.
CREATE TABLE table_1130632_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT title FROM table_1130632_1 WHERE us_viewers__million_ = "18.73"
Which First used has a Quantity of 26?
CREATE TABLE table_name_84 (first_used VARCHAR, quantity VARCHAR)
SELECT first_used FROM table_name_84 WHERE quantity = 26
What is Player, when Country is United States, and when Score is 73-76-72-66=287?
CREATE TABLE table_name_6 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_6 WHERE country = "united states" AND score = 73 - 76 - 72 - 66 = 287
Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine?
CREATE TABLE table_name_21 (engine VARCHAR, displacement VARCHAR, power VARCHAR)
SELECT engine FROM table_name_21 WHERE displacement = "4.4l (4423cc/269in³)" AND power = "220kw (299hp) @ 4000"
What is the average age for all person?
CREATE TABLE Person (age INTEGER)
SELECT AVG(age) FROM Person
What is the lowest number of field goals for a player with 3 touchdowns?
CREATE TABLE table_name_84 (field_goals INTEGER, touchdowns VARCHAR)
SELECT MIN(field_goals) FROM table_name_84 WHERE touchdowns = 3
Tell me the report for 30 july
CREATE TABLE table_name_86 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_86 WHERE date = "30 july"
Which Season 1 has a Season 7 of david chilton?
CREATE TABLE table_name_5 (season_1 VARCHAR, season_7 VARCHAR)
SELECT season_1 FROM table_name_5 WHERE season_7 = "david chilton"
What is the average number of against with 11 wins and less than 0 draws?
CREATE TABLE table_name_31 (against INTEGER, wins VARCHAR, draws VARCHAR)
SELECT AVG(against) FROM table_name_31 WHERE wins = 11 AND draws < 0
What is the mean huc example code when the example name's lower snake, there are 6 digits, and less than 3 levels?
CREATE TABLE table_name_35 (example_code__huc_ INTEGER, level VARCHAR, example_name VARCHAR, digits VARCHAR)
SELECT AVG(example_code__huc_) FROM table_name_35 WHERE example_name = "lower snake" AND digits = 6 AND level < 3
What is the highest number won with a difference of 1?
CREATE TABLE table_15331868_1 (won INTEGER, difference VARCHAR)
SELECT MAX(won) FROM table_15331868_1 WHERE difference = "1"
Name the popultion density being manthai west
CREATE TABLE table_24574438_1 (population_density___km_2__ VARCHAR, ds_division VARCHAR)
SELECT population_density___km_2__ FROM table_24574438_1 WHERE ds_division = "Manthai West"
What all turbines have a capacity of 30 and have a Somerset location?
CREATE TABLE table_26387382_1 (turbines VARCHAR, location__county_ VARCHAR, capacity__mw_ VARCHAR)
SELECT turbines FROM table_26387382_1 WHERE location__county_ = "Somerset" AND capacity__mw_ = "30"
What rank is the team that has a player named Isco Alarcón?
CREATE TABLE table_name_34 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_34 WHERE player = "isco alarcón"
Find the names of all reviewers who have contributed three or more ratings.
CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (rID VARCHAR)
SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3
How many longitudes have a diameter of 224.0?
CREATE TABLE table_16768245_2 (longitude VARCHAR, diameter VARCHAR)
SELECT COUNT(longitude) FROM table_16768245_2 WHERE diameter = "224.0"
How many customers have an active value of 1?
CREATE TABLE customer (active VARCHAR)
SELECT COUNT(*) FROM customer WHERE active = '1'
Name the date for the venue of brunswick street oval
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_59 WHERE venue = "brunswick street oval"
Name the name for doncaster newbury
CREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR)
SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Doncaster Newbury"
what's the country with health being 91.4
CREATE TABLE table_145439_1 (country VARCHAR, health VARCHAR)
SELECT country FROM table_145439_1 WHERE health = "91.4"
From what series is Peck Up Your Troubles?
CREATE TABLE table_name_66 (series VARCHAR, title VARCHAR)
SELECT series FROM table_name_66 WHERE title = "peck up your troubles"
What is the least amount of wins earlier than 1964 with more than 7 points?
CREATE TABLE table_name_49 (wins INTEGER, year VARCHAR, points VARCHAR)
SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7
Which province has an elevation of 4550?
CREATE TABLE table_2251578_4 (province VARCHAR, elevation__m_ VARCHAR)
SELECT province FROM table_2251578_4 WHERE elevation__m_ = 4550
What is the brand name associated with the model 4x0?
CREATE TABLE table_24099628_1 (brand_name VARCHAR, model__list_ VARCHAR)
SELECT brand_name FROM table_24099628_1 WHERE model__list_ = "4x0"
When final is the open cup what is the league?
CREATE TABLE table_1986692_1 (league VARCHAR, open_cup VARCHAR)
SELECT league FROM table_1986692_1 WHERE open_cup = "Final"
Name the Place with a Score of 72-68=140?
CREATE TABLE table_name_83 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_83 WHERE score = 72 - 68 = 140
List the writers who have written more than one book.
CREATE TABLE book (Writer VARCHAR)
SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1
Show all product sizes.
CREATE TABLE Products (product_size VARCHAR)
SELECT DISTINCT product_size FROM Products
How many ranks have $1,084,439,099 as the worldwide gross?
CREATE TABLE table_name_91 (rank INTEGER, worldwide_gross VARCHAR)
SELECT SUM(rank) FROM table_name_91 WHERE worldwide_gross = "$1,084,439,099"
What is the Record with a Leading scorer with maurice williams (25), and a Date with 27 january 2008?
CREATE TABLE table_name_38 (record VARCHAR, leading_scorer VARCHAR, date VARCHAR)
SELECT record FROM table_name_38 WHERE leading_scorer = "maurice williams (25)" AND date = "27 january 2008"
What is Record, when Date is "March 1"?
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_89 WHERE date = "march 1"
Who was the opponent at the game when the record was 4-5?
CREATE TABLE table_name_69 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_69 WHERE record = "4-5"
What is the Player for Orlando in 1989–1991?
CREATE TABLE table_name_77 (player VARCHAR, years_in_orlando VARCHAR)
SELECT player FROM table_name_77 WHERE years_in_orlando = "1989–1991"
How many UCI points did Rabobank score?
CREATE TABLE table_name_88 (uci_points VARCHAR, team VARCHAR)
SELECT uci_points FROM table_name_88 WHERE team = "rabobank"
What is the high rebounds of game 68?
CREATE TABLE table_name_46 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_name_46 WHERE game = 68
What is the highest lost that has 6 for points?
CREATE TABLE table_name_63 (lost INTEGER, points VARCHAR)
SELECT MAX(lost) FROM table_name_63 WHERE points = 6
What is the score with a place of t6 for the player k.j. choi?
CREATE TABLE table_name_83 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_83 WHERE place = "t6" AND player = "k.j. choi"
How many "series" were in the 12th "position?
CREATE TABLE table_26473176_1 (series VARCHAR, position VARCHAR)
SELECT COUNT(series) FROM table_26473176_1 WHERE position = "12th"
what is the highest place when the national final is 4th and the points is less than 139?
CREATE TABLE table_name_37 (place INTEGER, national_final VARCHAR, points VARCHAR)
SELECT MAX(place) FROM table_name_37 WHERE national_final = "4th" AND points < 139
Which episode was #1 in the order?
CREATE TABLE table_27987623_3 (episode VARCHAR, order VARCHAR)
SELECT episode FROM table_27987623_3 WHERE order = 1
How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?
CREATE TABLE table_18173916_6 (friday VARCHAR, wednesday VARCHAR)
SELECT COUNT(friday) FROM table_18173916_6 WHERE wednesday = "210 Kirby's Epic Yarn"
What municipality where the human development index in the year 2000 was 0.7827?
CREATE TABLE table_1480455_1 (municipality VARCHAR, human_development_index__2000_ VARCHAR)
SELECT municipality FROM table_1480455_1 WHERE human_development_index__2000_ = "0.7827"
What is First Member, when Election is "1871 by-election"?
CREATE TABLE table_name_95 (first_member VARCHAR, election VARCHAR)
SELECT first_member FROM table_name_95 WHERE election = "1871 by-election"
Who were all the candidates when the results were re-elected, first elected was 1832 and the party was jacksonian?
CREATE TABLE table_2668199_2 (candidates VARCHAR, party VARCHAR, result VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_2668199_2 WHERE result = "Re-elected" AND first_elected = "1832" AND party = "Jacksonian"
What is the greatest number of losses a team that played fewer than 25 games in 2010 had?
CREATE TABLE table_name_87 (losses INTEGER, games VARCHAR, season VARCHAR)
SELECT MAX(losses) FROM table_name_87 WHERE games < 25 AND season = "2010"
Who is the player when the economy is 6.14?
CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR)
SELECT player FROM table_28846752_9 WHERE economy = "6.14"
When 6606 is the sail number what is the type of yacht?
CREATE TABLE table_1858574_2 (yacht VARCHAR, sail_number VARCHAR)
SELECT yacht AS Type FROM table_1858574_2 WHERE sail_number = "6606"