answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(roll) FROM table_name_40 WHERE decile > 6 AND name = "broomfield school"
CREATE TABLE table_name_40 (roll INTEGER, decile VARCHAR, name VARCHAR)
What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?
SELECT name FROM table_name_97 WHERE roll = 270
CREATE TABLE table_name_97 (name VARCHAR, roll VARCHAR)
Which name has a Roll of 270?
SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008"
CREATE TABLE table_name_52 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR)
Who directed the episode written by Dan Serafin and aired on July 23, 2008?
SELECT title FROM table_name_65 WHERE original_airdate = "february 2, 2008"
CREATE TABLE table_name_65 (title VARCHAR, original_airdate VARCHAR)
What is the title of the episode originally aired on February 2, 2008?
SELECT money_requested__£_ FROM table_name_2 WHERE entrepreneur_s_ = "james seddon"
CREATE TABLE table_name_2 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
How much money did James Seddon request?
SELECT entrepreneur_s_ FROM table_name_28 WHERE first_aired = "24 august 2006"
CREATE TABLE table_name_28 (entrepreneur_s_ VARCHAR, first_aired VARCHAR)
Which Entrepreneur(s) first aired on 24 August 2006?
SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum"
CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR)
Which Entrepreneur(s) have mixalbum?
SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = "ian chamings"
CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
How much money did Ian Chamings request?
SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe"
CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR)
Which Investing Dragon(s) requested 100,000 in money and has autosafe?
SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge"
CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR)
How tall is the Anqing Bridge which opened prior to 2011?
SELECT location FROM table_name_18 WHERE type = "cable-stayed" AND opened = 2005 AND name = "badong bridge"
CREATE TABLE table_name_18 (location VARCHAR, name VARCHAR, type VARCHAR, opened VARCHAR)
Where did the cable-stayed Badong Bridge open in 2005?
SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang"
CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR)
Name the average year for janaprakal chandruang
SELECT literature FROM table_name_72 WHERE performing_arts = "pradit prasarttong"
CREATE TABLE table_name_72 (literature VARCHAR, performing_arts VARCHAR)
Name the literature for pradit prasarttong
SELECT MIN(year) FROM table_name_43 WHERE runner_up = "fabrice soulier"
CREATE TABLE table_name_43 (year INTEGER, runner_up VARCHAR)
What was the first year Fabrice Soulier was a runner-up?
SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011
CREATE TABLE table_name_21 (entrants VARCHAR, year VARCHAR)
How many entrants were there in 2011?
SELECT rank FROM table_name_95 WHERE laps = 1059
CREATE TABLE table_name_95 (rank VARCHAR, laps VARCHAR)
What was the rank of Bobby Grim when he finished 1059 laps?
SELECT rd, _time FROM table_name_43 WHERE res = "win" AND type = "tko" AND opponent = "carlos molina"
CREATE TABLE table_name_43 (rd VARCHAR, _time VARCHAR, opponent VARCHAR, res VARCHAR, type VARCHAR)
What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?
SELECT record FROM table_name_21 WHERE date = "2009-07-18"
CREATE TABLE table_name_21 (record VARCHAR, date VARCHAR)
What is the record of the match on 2009-07-18?
SELECT type FROM table_name_79 WHERE res = "win" AND opponent = "michael gomez"
CREATE TABLE table_name_79 (type VARCHAR, res VARCHAR, opponent VARCHAR)
What is the type of the match with a win result and Michael Gomez as the opponent?
SELECT goals FROM table_name_66 WHERE caps = 48
CREATE TABLE table_name_66 (goals VARCHAR, caps VARCHAR)
What were the goals when the caps were set at 48?
SELECT caps FROM table_name_22 WHERE player = "mile sterjovski"
CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR)
How many caps did the player Mile Sterjovski have?
SELECT goals FROM table_name_59 WHERE player = "mile sterjovski"
CREATE TABLE table_name_59 (goals VARCHAR, player VARCHAR)
What are the goals of Mile Sterjovski as a player?
SELECT COUNT(caps) FROM table_name_32 WHERE player = "mitchell duke"
CREATE TABLE table_name_32 (caps VARCHAR, player VARCHAR)
How many caps did Mitchell Duke have overall?
SELECT opponent FROM table_name_83 WHERE date = "16 february 2003"
CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR)
Which opponent has a Date of 16 february 2003?
SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city"
CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
Which date has an A venue with an Opponent of stoke city?
SELECT opponent FROM table_name_51 WHERE round = "r5"
CREATE TABLE table_name_51 (opponent VARCHAR, round VARCHAR)
Which opponent has a Round of r5?
SELECT scorers FROM table_name_41 WHERE venue = "a" AND opponent = "arsenal"
CREATE TABLE table_name_41 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR)
Which Scorers have a Venue of A, and an Opponent of arsenal?
SELECT opponent FROM table_name_22 WHERE round = "qf replay"
CREATE TABLE table_name_22 (opponent VARCHAR, round VARCHAR)
Which Opponent has a Round of qf replay?
SELECT loss FROM table_name_84 WHERE date = "april 6"
CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR)
Who took the loss on the April 6 game?
SELECT record FROM table_name_75 WHERE date = "april 15"
CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR)
What was the record after the April 15 game?
SELECT opponent FROM table_name_38 WHERE record = "10-13"
CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR)
Who was the opponent that led to a 10-13 record?
SELECT record FROM table_name_14 WHERE date = "april 6"
CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR)
What is the record after the April 6 game?
SELECT score FROM table_name_73 WHERE date = "april 12"
CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR)
What was the score for the April 12 game?
SELECT MAX(wins) FROM table_name_85 WHERE goals_for = 18 AND losses < 5
CREATE TABLE table_name_85 (wins INTEGER, goals_for VARCHAR, losses VARCHAR)
What team has the most wins with at least 18 goals and less than 5 losses?
SELECT COUNT(losses) FROM table_name_12 WHERE team = "cornwall hc" AND goals_for > 18
CREATE TABLE table_name_12 (losses VARCHAR, team VARCHAR, goals_for VARCHAR)
How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?
SELECT MAX(number_in_series) FROM table_name_19 WHERE production_code = "50021–50025"
CREATE TABLE table_name_19 (number_in_series INTEGER, production_code VARCHAR)
What is the series number that has a production code of 50021–50025?
SELECT county_team FROM table_name_88 WHERE player = "jimmy finn"
CREATE TABLE table_name_88 (county_team VARCHAR, player VARCHAR)
Which county team has jimmy finn as the player?
SELECT COUNT(team_number) FROM table_name_93 WHERE player = "john keane"
CREATE TABLE table_name_93 (team_number VARCHAR, player VARCHAR)
How many team numbers have john keane as the player?
SELECT position FROM table_name_15 WHERE player = "john keane"
CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR)
Which position has john keane as the player?
SELECT loss FROM table_name_61 WHERE record = "27-17"
CREATE TABLE table_name_61 (loss VARCHAR, record VARCHAR)
What was the loss of the game when the record was 27-17?
SELECT MIN(goals_against) FROM table_name_48 WHERE wins < 16 AND draws > 14
CREATE TABLE table_name_48 (goals_against INTEGER, wins VARCHAR, draws VARCHAR)
What are the smallest goals with wins smaller than 16, and a Draws larger than 14?
SELECT AVG(wins) FROM table_name_86 WHERE points = "42-2" AND goals_against = 67 AND played < 44
CREATE TABLE table_name_86 (wins INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR)
What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44?
SELECT AVG(wins) FROM table_name_59 WHERE club = "barcelona atlètic" AND goals_for > 56
CREATE TABLE table_name_59 (wins INTEGER, club VARCHAR, goals_for VARCHAR)
Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?
SELECT MIN(position) FROM table_name_63 WHERE goals_against < 78 AND points = "42-2" AND wins > 15
CREATE TABLE table_name_63 (position INTEGER, wins VARCHAR, goals_against VARCHAR, points VARCHAR)
Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15?
SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53
CREATE TABLE table_name_6 (played INTEGER, position VARCHAR, goals_against VARCHAR)
Which lowest played has a Position of 2, and Goals against larger than 53?
SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44
CREATE TABLE table_name_99 (goal_difference INTEGER, played INTEGER)
How many goal differences have Played larger than 44?
SELECT MIN(year) FROM table_name_72 WHERE venue = "vienna, austria"
CREATE TABLE table_name_72 (year INTEGER, venue VARCHAR)
What year was the race in Vienna, Austria?
SELECT extra FROM table_name_80 WHERE year = 2002 AND result = "8th"
CREATE TABLE table_name_80 (extra VARCHAR, year VARCHAR, result VARCHAR)
What event (Extra) in 2002 did the competitor compete in and place 8th?
SELECT venue FROM table_name_29 WHERE tournament = "olympic games"
CREATE TABLE table_name_29 (venue VARCHAR, tournament VARCHAR)
Where was the Olympic Games held?
SELECT try_bonus FROM table_name_82 WHERE points_for = "418"
CREATE TABLE table_name_82 (try_bonus VARCHAR, points_for VARCHAR)
That is the value for Try bonus when the value for Points is 418?
SELECT club FROM table_name_44 WHERE played = "22" AND tries_for = "41"
CREATE TABLE table_name_44 (club VARCHAR, played VARCHAR, tries_for VARCHAR)
What is the Club, when the value for Played is 22, and when the value for Tries is 41?
SELECT drawn FROM table_name_12 WHERE losing_bonus = "6"
CREATE TABLE table_name_12 (drawn VARCHAR, losing_bonus VARCHAR)
What is the value for Drawn, when the value for Losing bonus is 6?
SELECT lost FROM table_name_35 WHERE try_bonus = "2" AND losing_bonus = "4"
CREATE TABLE table_name_35 (lost VARCHAR, try_bonus VARCHAR, losing_bonus VARCHAR)
What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?
SELECT losing_bonus FROM table_name_61 WHERE points = "43"
CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR)
What is the Losing bonus, when the value for Points is 43?
SELECT club FROM table_name_8 WHERE lost = "9" AND tries_for = "55"
CREATE TABLE table_name_8 (club VARCHAR, lost VARCHAR, tries_for VARCHAR)
What is the Club, when the value for Lost is 9, and when the value for Tries is 55?
SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37
CREATE TABLE table_name_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR)
What is the largest draw with 37 games from England?
SELECT COUNT(drawn) FROM table_name_2 WHERE cambridge_united_career = "2008–2009" AND lost < 13
CREATE TABLE table_name_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR)
How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?
SELECT record FROM table_name_66 WHERE score = "1–0"
CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR)
What was the record at the game when the score was 1–0?
SELECT score FROM table_name_92 WHERE record = "19–13–3"
CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR)
What was the score of the game when the record was 19–13–3?
SELECT visitor FROM table_name_16 WHERE score = "1–3"
CREATE TABLE table_name_16 (visitor VARCHAR, score VARCHAR)
Who was the visiting team when the score was 1–3?
SELECT home FROM table_name_52 WHERE record = "20–13–3"
CREATE TABLE table_name_52 (home VARCHAR, record VARCHAR)
Who was the home team when there was a record of 20–13–3?
SELECT date FROM table_name_60 WHERE record = "18–10–2"
CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR)
What was the date of the game with the record of 18–10–2?
SELECT AVG(attendance) FROM table_name_30 WHERE visitor = "minnesota"
CREATE TABLE table_name_30 (attendance INTEGER, visitor VARCHAR)
Visitor of minnesota has what average attendance?
SELECT visitor FROM table_name_9 WHERE date = "december 29"
CREATE TABLE table_name_9 (visitor VARCHAR, date VARCHAR)
Date of december 29 has what visitor?
SELECT attendance FROM table_name_61 WHERE score = "2 – 3"
CREATE TABLE table_name_61 (attendance VARCHAR, score VARCHAR)
Score of 2 – 3 has what attendance?
SELECT MIN(attendance) FROM table_name_35 WHERE record = "48-51"
CREATE TABLE table_name_35 (attendance INTEGER, record VARCHAR)
With a record of 48-51 for the team, the lowest 2005 attendance was listed as how many?
SELECT MIN(attendance) FROM table_name_36 WHERE loss = "obermueller (1-2)"
CREATE TABLE table_name_36 (attendance INTEGER, loss VARCHAR)
What would be the lowest Attendance that also showed a loss of Obermueller (1-2)?
SELECT stadium FROM table_name_61 WHERE date = "october 31"
CREATE TABLE table_name_61 (stadium VARCHAR, date VARCHAR)
What was the stadium for the game held on October 31?
SELECT COUNT(week) FROM table_name_81 WHERE stadium = "cleveland browns stadium"
CREATE TABLE table_name_81 (week VARCHAR, stadium VARCHAR)
How many weeks in total were games played at Cleveland Browns Stadium?
SELECT surface FROM table_name_97 WHERE date = "23 october 2011"
CREATE TABLE table_name_97 (surface VARCHAR, date VARCHAR)
What was the surface on 23 October 2011?
SELECT coach FROM table_name_27 WHERE losses = 15
CREATE TABLE table_name_27 (coach VARCHAR, losses VARCHAR)
Which Notre Dame coach lost 15 games?
SELECT AVG(losses) FROM table_name_43 WHERE years = "1904"
CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR)
How many losses did Notre Dame have in 1904?
SELECT pct FROM table_name_86 WHERE years = "1905"
CREATE TABLE table_name_86 (pct VARCHAR, years VARCHAR)
What was the winning percent of Notre Dame in 1905?
SELECT home_captain FROM table_name_22 WHERE venue = "edgbaston"
CREATE TABLE table_name_22 (home_captain VARCHAR, venue VARCHAR)
Who is the home captain that played at Edgbaston?
SELECT home_captain FROM table_name_41 WHERE venue = "edgbaston"
CREATE TABLE table_name_41 (home_captain VARCHAR, venue VARCHAR)
Who is the home captain that played at Edgbaston?
SELECT result FROM table_name_24 WHERE home_captain = "graham gooch" AND date = "3,4,5,6,7 june 1993"
CREATE TABLE table_name_24 (result VARCHAR, home_captain VARCHAR, date VARCHAR)
For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result?
SELECT venue FROM table_name_32 WHERE date = "3,4,5,6,7 june 1993"
CREATE TABLE table_name_32 (venue VARCHAR, date VARCHAR)
What was the venue for the matches played on the dates 3,4,5,6,7 June 1993?
SELECT away_captain FROM table_name_81 WHERE venue = "trent bridge"
CREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR)
Who was the away captain for matches played at Trent Bridge?
SELECT rank FROM table_name_32 WHERE club_clubs = "hawthorn"
CREATE TABLE table_name_32 (rank VARCHAR, club_clubs VARCHAR)
Which rank is Hawthorn?
SELECT first_performance FROM table_name_74 WHERE status = "past" AND style = "ballet, tap"
CREATE TABLE table_name_74 (first_performance VARCHAR, status VARCHAR, style VARCHAR)
What is the First Performance when the status is past and the style was ballet, tap?
SELECT last_performance FROM table_name_16 WHERE status = "current cast" AND name = "noah parets"
CREATE TABLE table_name_16 (last_performance VARCHAR, status VARCHAR, name VARCHAR)
What was the Last Performance when the status is current cast, and a Name of noah parets?
SELECT style FROM table_name_31 WHERE name = "giuseppe bausilio"
CREATE TABLE table_name_31 (style VARCHAR, name VARCHAR)
What is the style for Giuseppe Bausilio?
SELECT opponent FROM table_name_56 WHERE event = "jungle fight 6"
CREATE TABLE table_name_56 (opponent VARCHAR, event VARCHAR)
Which opponent has the event Jungle Fight 6?
SELECT method FROM table_name_24 WHERE event = "jungle fight 2"
CREATE TABLE table_name_24 (method VARCHAR, event VARCHAR)
Which is the method under the event Jungle Fight 2?
SELECT COUNT(points) FROM table_name_71 WHERE draw = 4
CREATE TABLE table_name_71 (points VARCHAR, draw VARCHAR)
What is the total number of points when draw is 4?
SELECT SUM(goals_scored) FROM table_name_44 WHERE draw < 8 AND points = 19 AND goals_conceded > 26
CREATE TABLE table_name_44 (goals_scored INTEGER, goals_conceded VARCHAR, draw VARCHAR, points VARCHAR)
what is the goals scored when draw is less than 8, points is 19 and goals conceded is more than 26?
SELECT SUM(points) FROM table_name_15 WHERE goals_conceded < 24 AND place < 6 AND goals_scored < 26
CREATE TABLE table_name_15 (points INTEGER, goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR)
what is the points when the goals conceded is less than 24, place is less than 6 and goals scored is less than 26?
SELECT SUM(place) FROM table_name_12 WHERE lost < 12 AND points < 19
CREATE TABLE table_name_12 (place INTEGER, lost VARCHAR, points VARCHAR)
what is the place when losses is less than 12 and points is less than 19?
SELECT AVG(place) FROM table_name_13 WHERE lost > 12
CREATE TABLE table_name_13 (place INTEGER, lost INTEGER)
what is the average place when lost is more than 12?
SELECT SUM(year) FROM table_name_94 WHERE seats = "48 of 120" AND _percentage_votes > 34.18
CREATE TABLE table_name_94 (year INTEGER, seats VARCHAR, _percentage_votes VARCHAR)
In what Year were there 48 of 120 Seats and a % votes larger than 34.18?
SELECT seats FROM table_name_26 WHERE year > 1993 AND _percentage_votes = 38.72
CREATE TABLE table_name_26 (seats VARCHAR, year VARCHAR, _percentage_votes VARCHAR)
After 1993, what is the Seats with a % votes of 38.72?
SELECT MAX(isolation__km_) FROM table_name_61 WHERE elevation__m_ < 1320 AND municipality = "hinnøya"
CREATE TABLE table_name_61 (isolation__km_ INTEGER, elevation__m_ VARCHAR, municipality VARCHAR)
What is the highest Isolation (km) when the elevation was smaller than 1320, and a Municipality of hinnøya?
SELECT AVG(isolation__km_) FROM table_name_83 WHERE municipality = "sunndal" AND elevation__m_ > 1850
CREATE TABLE table_name_83 (isolation__km_ INTEGER, municipality VARCHAR, elevation__m_ VARCHAR)
What is the average Isolation in the municipality of Sunndal at an elevation of more than 1850?
SELECT MAX(elevation__m_) FROM table_name_83 WHERE peak = "daurmål" AND isolation__km_ > 4
CREATE TABLE table_name_83 (elevation__m_ INTEGER, peak VARCHAR, isolation__km_ VARCHAR)
What is the highest elevation for the peak daurmål, and an Isolation (km) larger than 4?
SELECT county FROM table_name_64 WHERE elevation__m_ < 1833 AND isolation__km_ > 18 AND peak = "store lenangstind"
CREATE TABLE table_name_64 (county VARCHAR, peak VARCHAR, elevation__m_ VARCHAR, isolation__km_ VARCHAR)
What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind?
SELECT county FROM table_name_9 WHERE prominence__m_ < 1292 AND isolation__km_ = 14
CREATE TABLE table_name_9 (county VARCHAR, prominence__m_ VARCHAR, isolation__km_ VARCHAR)
What country has a prominence less than 1292 and an Isolation (km) of 14?
SELECT SUM(lane) FROM table_name_20 WHERE name = "george bovell"
CREATE TABLE table_name_20 (lane INTEGER, name VARCHAR)
Which lane did George Bovell swim in?
SELECT AVG(top_25) FROM table_name_79 WHERE cuts_made = 16 AND events < 23
CREATE TABLE table_name_79 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR)
What is the average of the top-25 with 16 cuts and less than 23 events?
SELECT MAX(top_25) FROM table_name_17 WHERE top_10 > 9 AND events < 29
CREATE TABLE table_name_17 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR)
What is the highest top-25 with more than 9 top-10 but less than 29 events?
SELECT AVG(overall) FROM table_name_60 WHERE name = "brad scioli" AND pick__number > 5
CREATE TABLE table_name_60 (overall INTEGER, name VARCHAR, pick__number VARCHAR)
What's the Overall average that has brad scioli, and a Pick # larger than 5?