answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT home_team AS score FROM table_name_18 WHERE venue = "victoria park"
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_95 WHERE home_team = "st kilda"
CREATE TABLE table_name_95 (home_team VARCHAR)
What did st kilda score at home?
SELECT home_team FROM table_name_16 WHERE venue = "western oval"
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
Which team plays home in western oval venue?
SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = "innes ireland"
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 laps FROM table_name_65 WHERE driver = "peter arundell"
CREATE TABLE table_name_65 (laps VARCHAR, driver VARCHAR)
How many laps does peter arundell have?
SELECT driver FROM table_name_38 WHERE grid > 11 AND laps > 52
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 crowd FROM table_name_16 WHERE away_team = "north melbourne"
CREATE TABLE table_name_16 (crowd VARCHAR, away_team VARCHAR)
What is the crowd for away team of north melbourne?
SELECT date FROM table_name_93 WHERE away_team = "essendon"
CREATE TABLE table_name_93 (date VARCHAR, away_team VARCHAR)
What is the date when the away team is essendon?
SELECT visitor FROM table_name_81 WHERE home = "vancouver" AND date = "february 24"
CREATE TABLE table_name_81 (visitor VARCHAR, home VARCHAR, date VARCHAR)
Name the visitor from vancouver on february 24
SELECT description FROM table_name_56 WHERE date = "1962"
CREATE TABLE table_name_56 (description VARCHAR, date VARCHAR)
Which description is dated 1962?
SELECT home_team FROM table_name_53 WHERE venue = "moorabbin oval"
CREATE TABLE table_name_53 (home_team VARCHAR, venue VARCHAR)
Moorabbin oval is home to what team?
SELECT leader_at_the_summit FROM table_name_23 WHERE year = 2005
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 SUM(stage) FROM table_name_73 WHERE category = "1" AND year > 2003
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 venue FROM table_name_40 WHERE home_team = "melbourne"
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
What is the stadium of melbourne?
SELECT record FROM table_name_42 WHERE decision = "backstrom" AND attendance > 18 OFFSET 568
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 MAX(goals) FROM table_name_74 WHERE team = "getafe cf"
CREATE TABLE table_name_74 (goals INTEGER, team VARCHAR)
For Getafe CF, what is the highest number of goals scored?
SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = "ca osasuna" AND average < 1.06
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(goals) FROM table_name_79 WHERE average = 1.58 AND matches < 38
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 ranking FROM table_name_14 WHERE season = "2009"
CREATE TABLE table_name_14 (ranking VARCHAR, season VARCHAR)
Which Ranking has a Season of 2009?
SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.125"
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_85 WHERE coeff = "1.000"
CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR)
Which Champion has a Coeff of 1.000?
SELECT MIN(game) FROM table_name_62 WHERE date = "23 april" AND batting_2nd = "england 5/113 (19)"
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_17 WHERE batting_2nd = "new zealand 6/133 (18)"
CREATE TABLE table_name_17 (game INTEGER, batting_2nd VARCHAR)
what is the game when batting 2nd is new zealand 6/133 (18)?
SELECT MAX(game) FROM table_name_25 WHERE result = "new zealand by 4 wickets"
CREATE TABLE table_name_25 (game INTEGER, result VARCHAR)
what is the game when the result is new zealand by 4 wickets?
SELECT batting_1st FROM table_name_20 WHERE game = 8
CREATE TABLE table_name_20 (batting_1st VARCHAR, game VARCHAR)
who is batting 1st in game 8?
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-11"
CREATE TABLE table_name_18 (playoffs_2 VARCHAR, season VARCHAR)
What is the playoffs 2 result of season 2010-11?
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05"
CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR)
What is the playoffs 1 result of season 2004-05?
SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost"
CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR)
Which Grid did Alain Prost drive on?
SELECT time_retired FROM table_name_44 WHERE driver = "riccardo patrese"
CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
What was Riccardo Patrese's time/retired?
SELECT rounds FROM table_name_15 WHERE chassis = "n180" AND driver = "geoff lees"
CREATE TABLE table_name_15 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR)
How many rounds did geoff lees drive with chassis of n180?
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi"
CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR)
What is the tyres for Didier pironi?
SELECT constructor FROM table_name_25 WHERE driver = "jan lammers" AND rounds = "7-14"
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 engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-6"
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 competition FROM table_name_36 WHERE venue = "seoul" AND result = "4-1"
CREATE TABLE table_name_36 (competition VARCHAR, venue VARCHAR, result VARCHAR)
Which Competition has a Venue of Seoul, and Result of 4-1?
SELECT result FROM table_name_76 WHERE date = "june 12, 1997"
CREATE TABLE table_name_76 (result VARCHAR, date VARCHAR)
What's the Result listed that has a Date of June 12, 1997?
SELECT score FROM table_name_70 WHERE result = "1-0"
CREATE TABLE table_name_70 (score VARCHAR, result VARCHAR)
What's the Score listed that has a Result of 1-0?
SELECT result FROM table_name_14 WHERE competition = "1994 fifa world cup qualification" AND date = "may 15, 1993"
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 competition FROM table_name_75 WHERE result = "3-0" AND venue = "suwon"
CREATE TABLE table_name_75 (competition VARCHAR, result VARCHAR, venue VARCHAR)
Which Competition had a Result of 3-0 and VEnue of Suwon?
SELECT result FROM table_name_66 WHERE competition = "1998 fifa world cup qualification" AND venue = "bangkok"
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 decision FROM table_name_34 WHERE home = "boston"
CREATE TABLE table_name_34 (decision VARCHAR, home VARCHAR)
Who had the decision with boston at home?
SELECT home_team FROM table_name_19 WHERE venue = "mcg"
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)
Who is the home team that played at MCG?
SELECT away_team AS score FROM table_name_27 WHERE home_team = "richmond"
CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR)
What is the score of the away team that played richmond?
SELECT score FROM table_name_5 WHERE opponents = "colin fleming scott lipsky"
CREATE TABLE table_name_5 (score VARCHAR, opponents VARCHAR)
What is the score for the game that Colin Fleming Scott Lipsky played in?
SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann"
CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR)
Which tournament was Dieter Kindlmann a partner?
SELECT MIN(goals) FROM table_name_33 WHERE apps < 22
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 COUNT(division) FROM table_name_54 WHERE season = "2006/07" AND goals > 1
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 AVG(crowd) FROM table_name_1 WHERE venue = "victoria park"
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
What is the average crowd at victoria park?
SELECT away_team AS score FROM table_name_50 WHERE home_team = "north melbourne"
CREATE TABLE table_name_50 (away_team VARCHAR, home_team VARCHAR)
What is the Away team score with north melbourne as home team?
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_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 winner FROM table_name_49 WHERE stage = "3"
CREATE TABLE table_name_49 (winner VARCHAR, stage VARCHAR)
Who was the winner in stage 3?
SELECT state FROM table_name_97 WHERE first_elected = "1914" AND member = "edward jolley"
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_24 WHERE member = "frederick bamford"
CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR)
Which state is frederick bamford a member of?
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe"
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 party FROM table_name_10 WHERE member = "sydney sampson"
CREATE TABLE table_name_10 (party VARCHAR, member VARCHAR)
Which party is sydney sampson a member of?
SELECT position FROM table_name_32 WHERE win__number = 2 AND winner = "doug gibson"
CREATE TABLE table_name_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR)
What position for doug gibson with 2 wins?
SELECT COUNT(rec) FROM table_name_84 WHERE player = "chris watton" AND yards < 1
CREATE TABLE table_name_84 (rec VARCHAR, player VARCHAR, yards VARCHAR)
How many receptions does Chris Watton with yards of less than 1?
SELECT the_american FROM table_name_36 WHERE years < 114 AND tied > 1 AND total_games > 1022
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 away_team FROM table_name_35 WHERE home_team = "melbourne"
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 AS score FROM table_name_13 WHERE away_team = "north melbourne"
CREATE TABLE table_name_13 (away_team VARCHAR)
What is the Away team score for Away team North Melbourne?
SELECT away_team FROM table_name_13 WHERE home_team = "richmond"
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
Which Away team is associated with the Richmond Home team?
SELECT birthdate FROM table_name_63 WHERE defining_characteristics = "pink hair"
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 Real AS name FROM table_name_95 WHERE defining_characteristics = "shortest band member"
CREATE TABLE table_name_95 (Real VARCHAR, defining_characteristics VARCHAR)
Who is the person with the defining characteristic of the shortest band member?
SELECT name FROM table_name_9 WHERE costume_role = "monster"
CREATE TABLE table_name_9 (name VARCHAR, costume_role VARCHAR)
What is the name of the member with a costume Role of monster?
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united"
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 MIN(bronze) FROM table_name_75 WHERE silver < 1 AND rank < 5
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 COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3
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 MAX(total) FROM table_name_92 WHERE bronze = 1 AND silver > 1
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 MIN(total) FROM table_name_75 WHERE 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 agg FROM table_name_45 WHERE team__number2 = "okk beograd"
CREATE TABLE table_name_45 (agg VARCHAR, team__number2 VARCHAR)
What was the aggregate for a team #2 of Okk Beograd?
SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = "chemie halle"
CREATE TABLE table_name_73 (team__number1 VARCHAR)
What was the 2nd leg score for Chemie Halle?
SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne"
CREATE TABLE table_name_50 (away_team VARCHAR)
What was South Melbourne's score as the away team?
SELECT COUNT(crowd) FROM table_name_70 WHERE away_team = "geelong"
CREATE TABLE table_name_70 (crowd VARCHAR, away_team VARCHAR)
What was the attendance when Geelong played as the away team?
SELECT venue FROM table_name_27 WHERE away_team = "footscray"
CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR)
Where did Footscray play as the away team?
SELECT crowd FROM table_name_54 WHERE venue = "arden street oval"
CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR)
What was the attendance when the Arden Street Oval?
SELECT AVG(pick) FROM table_name_76 WHERE player = "marc lewis (lhp)" AND round < 20
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 pick FROM table_name_76 WHERE player = "marc lewis (lhp)"
CREATE TABLE table_name_76 (pick VARCHAR, player VARCHAR)
Which pick's player was Marc Lewis (lhp)?
SELECT MAX(pick) FROM table_name_29 WHERE school = "naperville central high school"
CREATE TABLE table_name_29 (pick INTEGER, school VARCHAR)
Which is the biggest pick for Naperville Central High School?
SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = "new york, new york"
CREATE TABLE table_name_54 (media_market_ranking VARCHAR, metropolitan_area VARCHAR)
What is the media market ranking for new york, new york?
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10"
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 opponent FROM table_name_19 WHERE field = "bishop kearney field"
CREATE TABLE table_name_19 (opponent VARCHAR, field VARCHAR)
Who is the opponent at Bishop Kearney Field?
SELECT date FROM table_name_17 WHERE home_away = "home" AND opponent = "bayhawks"
CREATE TABLE table_name_17 (date VARCHAR, home_away VARCHAR, opponent VARCHAR)
On what date were the opponents the Bayhawks at a home game?
SELECT raion__district__or_city FROM table_name_58 WHERE bessarabian_bulgarians = "8,600"
CREATE TABLE table_name_58 (raion__district__or_city VARCHAR, bessarabian_bulgarians VARCHAR)
What city or Raion (district) has 8,600 Bessarabian Bulgarians?
SELECT moldovans FROM table_name_81 WHERE ukrainians = "14,200"
CREATE TABLE table_name_81 (moldovans VARCHAR, ukrainians VARCHAR)
what is the Moldovans number when there are 14,200 Ukrainians?
SELECT MIN(reported_isn) FROM table_name_28 WHERE citizenship = "russia"
CREATE TABLE table_name_28 (reported_isn INTEGER, citizenship VARCHAR)
Name the lowest reported isn for russia
SELECT AVG(reported_isn) FROM table_name_4 WHERE on_july_2007_press_release = "no" AND citizenship = "kuwait"
CREATE TABLE table_name_4 (reported_isn INTEGER, on_july_2007_press_release VARCHAR, citizenship VARCHAR)
Name the average reported isn for july 2007 for kuwait release of no
SELECT MAX(region) FROM table_name_10 WHERE population = 499
CREATE TABLE table_name_10 (region INTEGER, population VARCHAR)
What is the highest region number with a 499 population?
SELECT series FROM table_name_52 WHERE home = "minnesota" AND date = "april 17"
CREATE TABLE table_name_52 (series VARCHAR, home VARCHAR, date VARCHAR)
What was the series score on april 17 with minnesota at home?
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 14"
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
How many attended the game on april 14?
SELECT home FROM table_name_8 WHERE date = "april 14"
CREATE TABLE table_name_8 (home VARCHAR, date VARCHAR)
Who was at home on april 14?
SELECT away_team FROM table_name_91 WHERE home_team = "melbourne"
CREATE TABLE table_name_91 (away_team VARCHAR, home_team VARCHAR)
What is the name of the away team that played Melbourne?
SELECT date FROM table_name_33 WHERE venue = "punt road oval"
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
What date was the game played at Punt Road Oval?
SELECT home_team FROM table_name_13 WHERE away_team = "hawthorn"
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
What is the name of the home team that played against Hawthorn?
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park"
CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR)
What is the home team score that played at Kardinia Park?
SELECT COUNT(laps) FROM table_name_85 WHERE driver = "rubens barrichello"
CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR)
I want the total number of Laps for Rubens Barrichello
SELECT driver FROM table_name_41 WHERE grid < 19 AND laps > 59 AND time_retired = "+0.294"
CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294
SELECT rider FROM table_name_56 WHERE time = "1:45.52.84" AND rank = 8
CREATE TABLE table_name_56 (rider VARCHAR, time VARCHAR, rank VARCHAR)
What is the name of the rider with a time of 1:45.52.84, and a Rank of 8?
SELECT team FROM table_name_10 WHERE rank < 5 AND time = "1:37.58.38"
CREATE TABLE table_name_10 (team VARCHAR, rank VARCHAR, time VARCHAR)
What is the name of the team with a rank smaller than 5 and a time of 1:37.58.38?
SELECT MAX(rank) FROM table_name_64 WHERE rider = "peter symes"
CREATE TABLE table_name_64 (rank INTEGER, rider VARCHAR)
What is the highest rank for Peter Symes?
SELECT away_team AS score FROM table_name_53 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)
What was the score for the away team at Glenferrie Oval?
SELECT date FROM table_name_63 WHERE away_team = "st kilda"
CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)
When was a game played where the away team is St Kilda?