context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_48 (date VARCHAR, no_built VARCHAR, loco_nos VARCHAR)
On what date were less than 10 built with a locomotive number of 31-35?
SELECT date FROM table_name_48 WHERE no_built < 10 AND loco_nos = "31-35"
CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR)
How many spectators watched when the away team was Collingwood?
SELECT crowd FROM table_name_8 WHERE away_team = "collingwood"
CREATE TABLE table_name_37 (away_team VARCHAR)
What did Essendon score when they were the away team?
SELECT away_team AS score FROM table_name_37 WHERE away_team = "essendon"
CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR)
Who was the home team at Brunswick Street Oval?
SELECT home_team FROM table_name_65 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_7 (away_team VARCHAR)
What was South Melbourne's away team score?
SELECT away_team AS score FROM table_name_7 WHERE away_team = "south melbourne"
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
Who was the away team at Brunswick Street Oval?
SELECT away_team AS score FROM table_name_89 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_37 (height__m_ INTEGER, class VARCHAR, prom__m_ VARCHAR)
Tell me the lowest height for class of hewitt and prom less than 148
SELECT MIN(height__m_) FROM table_name_37 WHERE class = "hewitt" AND prom__m_ < 148
CREATE TABLE table_name_59 (prom__m_ VARCHAR, height__m_ INTEGER)
Tell me the total number of prom for height less than 615
SELECT COUNT(prom__m_) FROM table_name_59 WHERE height__m_ < 615
CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR)
I want to know the peak which is prom less than 147 and height less than 619
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619
CREATE TABLE table_name_26 (peak VARCHAR, prom__m_ INTEGER)
Tell me the peak for prom being less than 147
SELECT peak FROM table_name_26 WHERE prom__m_ < 147
CREATE TABLE table_name_62 (prom__m_ INTEGER, height__m_ VARCHAR, class VARCHAR, peak VARCHAR)
Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615
SELECT MIN(prom__m_) FROM table_name_62 WHERE class = "hewitt" AND peak = "cushat law" AND height__m_ > 615
CREATE TABLE table_name_14 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR, class VARCHAR)
Name the peak for height more than 619 and class of hewitt with prom being 148
SELECT peak FROM table_name_14 WHERE height__m_ > 619 AND class = "hewitt" AND prom__m_ = 148
CREATE TABLE table_name_57 (percentage_democrats VARCHAR, democratic__republican VARCHAR)
What is the percentage democrats with 2/4 democrat/republican?
SELECT percentage_democrats FROM table_name_57 WHERE democratic__republican = "2/4"
CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR)
What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?
SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5"
CREATE TABLE table_name_62 (percentage_republicans VARCHAR, democratic__republican VARCHAR)
What is the percent of republicans with 7/6 democrat/republican?
SELECT percentage_republicans FROM table_name_62 WHERE democratic__republican = "7/6"
CREATE TABLE table_name_94 (democratic_seat_plurality VARCHAR, percentage_democrats VARCHAR)
What is the democratic seat plurality with 29% democrat?
SELECT democratic_seat_plurality FROM table_name_94 WHERE percentage_democrats = "29%"
CREATE TABLE table_name_91 (democratic_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)
What is the democratic seat plurality with partisan order of New Hampshire?
SELECT democratic_seat_plurality FROM table_name_91 WHERE state_ranked_in_partisan_order = "new hampshire"
CREATE TABLE table_name_32 (score VARCHAR, visitor VARCHAR)
What is the score of the game with Pacers as the Visitor?
SELECT score FROM table_name_32 WHERE visitor = "pacers"
CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR)
Who was Home on December 5, 2007?
SELECT home FROM table_name_11 WHERE date = "december 5, 2007"
CREATE TABLE table_name_39 (japanese_orthography VARCHAR, abbreviation VARCHAR)
What is the Japanese orthography for the abbreviation of ndmc?
SELECT japanese_orthography FROM table_name_39 WHERE abbreviation = "ndmc"
CREATE TABLE table_name_31 (english_name VARCHAR, provider_national_government_ VARCHAR, abbreviation VARCHAR)
What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?
SELECT english_name FROM table_name_31 WHERE provider_national_government_ = "ministry of defense" AND abbreviation = "nda bōei-dai(防衛大)"
CREATE TABLE table_name_18 (home_team VARCHAR, venue VARCHAR)
What did the team score when playing at home in victoria park?
SELECT home_team AS score FROM table_name_18 WHERE venue = "victoria park"
CREATE TABLE table_name_95 (home_team VARCHAR)
What did st kilda score at home?
SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda"
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
Which team plays home in western oval venue?
SELECT home_team FROM table_name_16 WHERE venue = "western oval"
CREATE TABLE table_name_10 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?
SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = "innes ireland"
CREATE TABLE table_name_65 (laps VARCHAR, driver VARCHAR)
How many laps does peter arundell have?
SELECT laps FROM table_name_65 WHERE driver = "peter arundell"
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
Which driver has a grid value larger than 11, and drove more than 52 laps?
SELECT driver FROM table_name_38 WHERE grid > 11 AND laps > 52
CREATE TABLE table_name_16 (crowd VARCHAR, away_team VARCHAR)
What is the crowd for away team of north melbourne?
SELECT crowd FROM table_name_16 WHERE away_team = "north melbourne"
CREATE TABLE table_name_93 (date VARCHAR, away_team VARCHAR)
What is the date when the away team is essendon?
SELECT date FROM table_name_93 WHERE away_team = "essendon"
CREATE TABLE table_name_81 (visitor VARCHAR, home VARCHAR, date VARCHAR)
Name the visitor from vancouver on february 24
SELECT visitor FROM table_name_81 WHERE home = "vancouver" AND date = "february 24"
CREATE TABLE table_name_56 (description VARCHAR, date VARCHAR)
Which description is dated 1962?
SELECT description FROM table_name_56 WHERE date = "1962"
CREATE TABLE table_name_53 (home_team VARCHAR, venue VARCHAR)
Moorabbin oval is home to what team?
SELECT home_team FROM table_name_53 WHERE venue = "moorabbin oval"
CREATE TABLE table_name_23 (leader_at_the_summit VARCHAR, year VARCHAR)
Who was the leader at the summit for the race in 2005?
SELECT leader_at_the_summit FROM table_name_23 WHERE year = 2005
CREATE TABLE table_name_73 (stage INTEGER, category VARCHAR, year VARCHAR)
What is the sum of the stages for category 1 races after the year 2003?
SELECT SUM(stage) FROM table_name_73 WHERE category = "1" AND year > 2003
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
What is the stadium of melbourne?
SELECT venue FROM table_name_40 WHERE home_team = "melbourne"
CREATE TABLE table_name_42 (record VARCHAR, decision VARCHAR, attendance VARCHAR)
What was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance?
SELECT record FROM table_name_42 WHERE decision = "backstrom" AND attendance > 18 OFFSET 568
CREATE TABLE table_name_74 (goals INTEGER, team VARCHAR)
For Getafe CF, what is the highest number of goals scored?
SELECT MAX(goals) FROM table_name_74 WHERE team = "getafe cf"
CREATE TABLE table_name_5 (matches INTEGER, average VARCHAR, goals VARCHAR, team VARCHAR)
For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?
SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = "ca osasuna" AND average < 1.06
CREATE TABLE table_name_79 (goals INTEGER, average VARCHAR, matches VARCHAR)
For averages of 1.58 and matches under 38, what is the average number of goals?
SELECT AVG(goals) FROM table_name_79 WHERE average = 1.58 AND matches < 38
CREATE TABLE table_name_14 (ranking VARCHAR, season VARCHAR)
Which Ranking has a Season of 2009?
SELECT ranking FROM table_name_14 WHERE season = "2009"
CREATE TABLE table_name_95 (champions VARCHAR, runner_up VARCHAR, coeff VARCHAR)
Which Champions have a Runner-up of tobol, and a Coeff of 1.125?
SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.125"
CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR)
Which Champion has a Coeff of 1.000?
SELECT champions FROM table_name_85 WHERE coeff = "1.000"
CREATE TABLE table_name_62 (game INTEGER, date VARCHAR, batting_2nd VARCHAR)
what is the game for 23 april when batting 2nd is england 5/113 (19)?
SELECT MIN(game) FROM table_name_62 WHERE date = "23 april" AND batting_2nd = "england 5/113 (19)"
CREATE TABLE table_name_17 (game INTEGER, batting_2nd VARCHAR)
what is the game when batting 2nd is new zealand 6/133 (18)?
SELECT MIN(game) FROM table_name_17 WHERE batting_2nd = "new zealand 6/133 (18)"
CREATE TABLE table_name_25 (game INTEGER, result VARCHAR)
what is the game when the result is new zealand by 4 wickets?
SELECT MAX(game) FROM table_name_25 WHERE result = "new zealand by 4 wickets"
CREATE TABLE table_name_20 (batting_1st VARCHAR, game VARCHAR)
who is batting 1st in game 8?
SELECT batting_1st FROM table_name_20 WHERE game = 8
CREATE TABLE table_name_18 (playoffs_2 VARCHAR, season VARCHAR)
What is the playoffs 2 result of season 2010-11?
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-11"
CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR)
What is the playoffs 1 result of season 2004-05?
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05"
CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR)
Which Grid did Alain Prost drive on?
SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost"
CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
What was Riccardo Patrese's time/retired?
SELECT time_retired FROM table_name_44 WHERE driver = "riccardo patrese"
CREATE TABLE table_name_15 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR)
How many rounds did geoff lees drive with chassis of n180?
SELECT rounds FROM table_name_15 WHERE chassis = "n180" AND driver = "geoff lees"
CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR)
What is the tyres for Didier pironi?
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi"
CREATE TABLE table_name_25 (constructor VARCHAR, driver VARCHAR, rounds VARCHAR)
Who was the constructor of the car that Jan Lammers made 7-14 rounds in?
SELECT constructor FROM table_name_25 WHERE driver = "jan lammers" AND rounds = "7-14"
CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR, driver VARCHAR, tyres VARCHAR, chassis VARCHAR)
What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?
SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-6"
CREATE TABLE table_name_36 (competition VARCHAR, venue VARCHAR, result VARCHAR)
Which Competition has a Venue of Seoul, and Result of 4-1?
SELECT competition FROM table_name_36 WHERE venue = "seoul" AND result = "4-1"
CREATE TABLE table_name_76 (result VARCHAR, date VARCHAR)
What's the Result listed that has a Date of June 12, 1997?
SELECT result FROM table_name_76 WHERE date = "june 12, 1997"
CREATE TABLE table_name_70 (score VARCHAR, result VARCHAR)
What's the Score listed that has a Result of 1-0?
SELECT score FROM table_name_70 WHERE result = "1-0"
CREATE TABLE table_name_14 (result VARCHAR, competition VARCHAR, date VARCHAR)
What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?
SELECT result FROM table_name_14 WHERE competition = "1994 fifa world cup qualification" AND date = "may 15, 1993"
CREATE TABLE table_name_75 (competition VARCHAR, result VARCHAR, venue VARCHAR)
Which Competition had a Result of 3-0 and VEnue of Suwon?
SELECT competition FROM table_name_75 WHERE result = "3-0" AND venue = "suwon"
CREATE TABLE table_name_66 (result VARCHAR, competition VARCHAR, venue VARCHAR)
What's the Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok?
SELECT result FROM table_name_66 WHERE competition = "1998 fifa world cup qualification" AND venue = "bangkok"
CREATE TABLE table_name_34 (decision VARCHAR, home VARCHAR)
Who had the decision with boston at home?
SELECT decision FROM table_name_34 WHERE home = "boston"
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)
Who is the home team that played at MCG?
SELECT home_team FROM table_name_19 WHERE venue = "mcg"
CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR)
What is the score of the away team that played richmond?
SELECT away_team AS score FROM table_name_27 WHERE home_team = "richmond"
CREATE TABLE table_name_5 (score VARCHAR, opponents VARCHAR)
What is the score for the game that Colin Fleming Scott Lipsky played in?
SELECT score FROM table_name_5 WHERE opponents = "colin fleming scott lipsky"
CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR)
Which tournament was Dieter Kindlmann a partner?
SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann"
CREATE TABLE table_name_33 (goals INTEGER, apps INTEGER)
When the Apps were smaller than 22, what's the lowest amount of goals scored in a game?
SELECT MIN(goals) FROM table_name_33 WHERE apps < 22
CREATE TABLE table_name_54 (division VARCHAR, season VARCHAR, goals VARCHAR)
What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal?
SELECT COUNT(division) FROM table_name_54 WHERE season = "2006/07" AND goals > 1
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
What is the average crowd at victoria park?
SELECT AVG(crowd) FROM table_name_1 WHERE venue = "victoria park"
CREATE TABLE table_name_50 (away_team VARCHAR, home_team VARCHAR)
What is the Away team score with north melbourne as home team?
SELECT away_team AS score FROM table_name_50 WHERE home_team = "north melbourne"
CREATE TABLE table_name_12 (general_classification VARCHAR, stage VARCHAR, mountains_classification VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR)
Who had the general classification when the trofeo fast team was Mapei-Bricobi, the points classification went to Mariano Piccoli and the mountains classification went to Marco Pantani in stage 22?
SELECT general_classification FROM table_name_12 WHERE trofeo_fast_team = "mapei-bricobi" AND points_classification = "mariano piccoli" AND mountains_classification = "marco pantani" AND stage = "22"
CREATE TABLE table_name_49 (winner VARCHAR, stage VARCHAR)
Who was the winner in stage 3?
SELECT winner FROM table_name_49 WHERE stage = "3"
CREATE TABLE table_name_97 (state VARCHAR, first_elected VARCHAR, member VARCHAR)
Which state was first elected in 1914, and a Member of edward jolley?
SELECT state FROM table_name_97 WHERE first_elected = "1914" AND member = "edward jolley"
CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR)
Which state is frederick bamford a member of?
SELECT state FROM table_name_24 WHERE member = "frederick bamford"
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)
Which first election for the labor party is James Sharpe a part of?
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe"
CREATE TABLE table_name_10 (party VARCHAR, member VARCHAR)
Which party is sydney sampson a member of?
SELECT party FROM table_name_10 WHERE member = "sydney sampson"
CREATE TABLE table_name_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR)
What position for doug gibson with 2 wins?
SELECT position FROM table_name_32 WHERE win__number = 2 AND winner = "doug gibson"
CREATE TABLE table_name_84 (rec VARCHAR, player VARCHAR, yards VARCHAR)
How many receptions does Chris Watton with yards of less than 1?
SELECT COUNT(rec) FROM table_name_84 WHERE player = "chris watton" AND yards < 1
CREATE TABLE table_name_36 (the_american VARCHAR, total_games VARCHAR, years VARCHAR, tied VARCHAR)
What is the American locations with less than 114 years and more than 1 tied with more than 1022 total games?
SELECT the_american FROM table_name_36 WHERE years < 114 AND tied > 1 AND total_games > 1022
CREATE TABLE table_name_35 (away_team VARCHAR, home_team VARCHAR)
Who was the away team when Melbourne was the home team?
SELECT away_team FROM table_name_35 WHERE home_team = "melbourne"
CREATE TABLE table_name_13 (away_team VARCHAR)
What is the Away team score for Away team North Melbourne?
SELECT away_team AS score FROM table_name_13 WHERE away_team = "north melbourne"
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
Which Away team is associated with the Richmond Home team?
SELECT away_team FROM table_name_13 WHERE home_team = "richmond"
CREATE TABLE table_name_63 (birthdate VARCHAR, defining_characteristics VARCHAR)
What is the birth date of the member with the Defining characteristic of pink hair?
SELECT birthdate FROM table_name_63 WHERE defining_characteristics = "pink hair"
CREATE TABLE table_name_95 (Real VARCHAR, defining_characteristics VARCHAR)
Who is the person with the defining characteristic of the shortest band member?
SELECT Real AS name FROM table_name_95 WHERE defining_characteristics = "shortest band member"
CREATE TABLE table_name_9 (name VARCHAR, costume_role VARCHAR)
What is the name of the member with a costume Role of monster?
SELECT name FROM table_name_9 WHERE costume_role = "monster"
CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
What was the final score for the match played in Venue H and the opponent was Newcastle United?
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united"
CREATE TABLE table_name_75 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5?
SELECT MIN(bronze) FROM table_name_75 WHERE silver < 1 AND rank < 5
CREATE TABLE table_name_29 (bronze VARCHAR, rank VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR)
How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3?
SELECT COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3
CREATE TABLE table_name_92 (total INTEGER, bronze VARCHAR, silver VARCHAR)
What is the largest total for a nation with 1 bronze and more than 1 silver?
SELECT MAX(total) FROM table_name_92 WHERE bronze = 1 AND silver > 1
CREATE TABLE table_name_75 (total INTEGER, silver INTEGER)
What is the smallest total for a nation with more than 1 silver?
SELECT MIN(total) FROM table_name_75 WHERE silver > 1
CREATE TABLE table_name_45 (agg VARCHAR, team__number2 VARCHAR)
What was the aggregate for a team #2 of Okk Beograd?
SELECT agg FROM table_name_45 WHERE team__number2 = "okk beograd"
CREATE TABLE table_name_73 (team__number1 VARCHAR)
What was the 2nd leg score for Chemie Halle?
SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = "chemie halle"
CREATE TABLE table_name_50 (away_team VARCHAR)
What was South Melbourne's score as the away team?
SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne"
CREATE TABLE table_name_70 (crowd VARCHAR, away_team VARCHAR)
What was the attendance when Geelong played as the away team?
SELECT COUNT(crowd) FROM table_name_70 WHERE away_team = "geelong"
CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR)
Where did Footscray play as the away team?
SELECT venue FROM table_name_27 WHERE away_team = "footscray"
CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR)
What was the attendance when the Arden Street Oval?
SELECT crowd FROM table_name_54 WHERE venue = "arden street oval"
CREATE TABLE table_name_76 (pick INTEGER, player VARCHAR, round VARCHAR)
What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20?
SELECT AVG(pick) FROM table_name_76 WHERE player = "marc lewis (lhp)" AND round < 20
CREATE TABLE table_name_76 (pick VARCHAR, player VARCHAR)
Which pick's player was Marc Lewis (lhp)?
SELECT pick FROM table_name_76 WHERE player = "marc lewis (lhp)"
CREATE TABLE table_name_29 (pick INTEGER, school VARCHAR)
Which is the biggest pick for Naperville Central High School?
SELECT MAX(pick) FROM table_name_29 WHERE school = "naperville central high school"
CREATE TABLE table_name_54 (media_market_ranking VARCHAR, metropolitan_area VARCHAR)
What is the media market ranking for new york, new york?
SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = "new york, new york"
CREATE TABLE table_name_49 (home_away VARCHAR, opponent VARCHAR, result VARCHAR)
Is it home or away when opponent is Pride with a W 11-10 result?
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10"