question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which league has 12 goals?
CREATE TABLE table_name_66 (league VARCHAR, goals VARCHAR)
SELECT league FROM table_name_66 WHERE goals = 12
Which league has less than 15 apps and 0 goals with sparta prague?
CREATE TABLE table_name_41 (league VARCHAR, club VARCHAR, apps VARCHAR, goals VARCHAR)
SELECT league FROM table_name_41 WHERE apps < 15 AND goals = 0 AND club = "sparta prague"
How many runners up for the team that won in 1993?
CREATE TABLE table_name_66 (runners_up INTEGER, years_won VARCHAR)
SELECT MIN(runners_up) FROM table_name_66 WHERE years_won = "1993"
How many runners up for the team with under 1 win and a Years runner-up of 1985 , 1996?
CREATE TABLE table_name_9 (runners_up VARCHAR, winners VARCHAR, years_runner_up VARCHAR)
SELECT runners_up FROM table_name_9 WHERE winners < 1 AND years_runner_up = "1985 , 1996"
On what circuit was the iii Reims Grand Prix held?
CREATE TABLE table_name_43 (circuit VARCHAR, race_name VARCHAR)
SELECT circuit FROM table_name_43 WHERE race_name = "iii reims grand prix"
On what circuit was the i mexican grand prix held?
CREATE TABLE table_name_5 (circuit VARCHAR, race_name VARCHAR)
SELECT circuit FROM table_name_5 WHERE race_name = "i mexican grand prix"
What is the largest start for a player with 14 conv, 10 tries and more than 22 pens?
CREATE TABLE table_name_29 (start INTEGER, pens VARCHAR, conv VARCHAR, tries VARCHAR)
SELECT MAX(start) FROM table_name_29 WHERE conv = 14 AND tries = 10 AND pens > 22
What is the total of tries for a player with conv smaller than 45, 19 starts and pens fewer than 22?
CREATE TABLE table_name_83 (tries VARCHAR, pens VARCHAR, conv VARCHAR, start VARCHAR)
SELECT COUNT(tries) FROM table_name_83 WHERE conv < 45 AND start = 19 AND pens < 22
When the united states has 22 wins and a rank greater than 2, what is the total earnings?
CREATE TABLE table_name_82 (earnings__ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR)
SELECT SUM(earnings__) AS $__ FROM table_name_82 WHERE country = "united states" AND wins = 22 AND rank > 2
What is the smallest rank for new zealand?
CREATE TABLE table_name_23 (rank INTEGER, country VARCHAR)
SELECT MIN(rank) FROM table_name_23 WHERE country = "new zealand"
What is Richmond's away team score versus Geelong?
CREATE TABLE table_name_96 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_96 WHERE away_team = "richmond"
When the share of votes equals 21.8%, what's the sum of the total amount of seats?
CREATE TABLE table_name_61 (total_seats INTEGER, share_of_votes VARCHAR)
SELECT SUM(total_seats) FROM table_name_61 WHERE share_of_votes = "21.8%"
If the total number of seats is under 144, and the seats won is 32, which election is this?
CREATE TABLE table_name_37 (election VARCHAR, total_seats VARCHAR, seats VARCHAR)
SELECT election FROM table_name_37 WHERE total_seats < 144 AND seats = 32
When the share of votes is 33.9%, what's the highest total amount of seats?
CREATE TABLE table_name_4 (total_seats INTEGER, share_of_votes VARCHAR)
SELECT MAX(total_seats) FROM table_name_4 WHERE share_of_votes = "33.9%"
What was the home team's score when North Melbourne was the away team?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_39 WHERE away_team = "north melbourne"
Who was the away team when Geelong was the home team?
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_41 WHERE home_team = "geelong"
What is the score of away team, North Melbourne?
CREATE TABLE table_name_37 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_37 WHERE away_team = "north melbourne"
What is the fewest number of attendees at Kardinia Park?
CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_36 WHERE venue = "kardinia park"
What is the home team score when the away team was fitzroy?
CREATE TABLE table_name_93 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_93 WHERE away_team = "fitzroy"
Who was the home team at the game with a decision of Mason and a visiting team of Dallas?
CREATE TABLE table_name_96 (home VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_96 WHERE decision = "mason" AND visitor = "dallas"
Name the highest laps for time/retired of engine and grid of 5
CREATE TABLE table_name_37 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_37 WHERE time_retired = "engine" AND grid = 5
Name the highest laps for maserati and +6 laps for grid more than 11
CREATE TABLE table_name_33 (laps INTEGER, grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)
SELECT MAX(laps) FROM table_name_33 WHERE constructor = "maserati" AND time_retired = "+6 laps" AND grid > 11
Tell me the time/retired for grid 4
CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_41 WHERE grid = 4
Tell me the driver for 58 laps
CREATE TABLE table_name_18 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_18 WHERE laps = 58
What is the score of the home team aginst Essendon?
CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_89 WHERE away_team = "essendon"
When is the Geelong game?
CREATE TABLE table_name_26 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_26 WHERE home_team = "geelong"
Which Original Broadway production has a First US National Tour of roger bart?
CREATE TABLE table_name_52 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR)
SELECT original_broadway_production FROM table_name_52 WHERE first_us_national_tour = "roger bart"
Which Original Broadway production has a Role of dr. victor von frankenstein?
CREATE TABLE table_name_1 (original_broadway_production VARCHAR, role VARCHAR)
SELECT original_broadway_production FROM table_name_1 WHERE role = "dr. victor von frankenstein"
Which Role has a First US National Tour of roger bart?
CREATE TABLE table_name_19 (role VARCHAR, first_us_national_tour VARCHAR)
SELECT role FROM table_name_19 WHERE first_us_national_tour = "roger bart"
Which Original Italian production has a First US National Tour of joanna glushak?
CREATE TABLE table_name_4 (original_italian_production VARCHAR, first_us_national_tour VARCHAR)
SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak"
At what venue was the game played where the away team was South Melbourne
CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_49 WHERE away_team = "south melbourne"
Who directed the eula goodnight movie after 1949?
CREATE TABLE table_name_97 (director VARCHAR, year VARCHAR, role VARCHAR)
SELECT director FROM table_name_97 WHERE year > 1949 AND role = "eula goodnight"
What role does she play before 1942 with dorothy arzner directing?
CREATE TABLE table_name_97 (role VARCHAR, year VARCHAR, director VARCHAR)
SELECT role FROM table_name_97 WHERE year < 1942 AND director = "dorothy arzner"
What drama role does she play in 1973?
CREATE TABLE table_name_57 (role VARCHAR, genre VARCHAR, year VARCHAR)
SELECT role FROM table_name_57 WHERE genre = "drama" AND year = 1973
What is the date of the 1986 FIFA World Cup?
CREATE TABLE table_name_19 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_19 WHERE competition = "1986 fifa world cup"
Name the least floor exercise for parallel bars more than 9.687 and pommel horse less than 8.45
CREATE TABLE table_name_58 (floor_exercise INTEGER, pommel_horse VARCHAR, parallel_bars VARCHAR)
SELECT MIN(floor_exercise) FROM table_name_58 WHERE pommel_horse < 8.45 AND parallel_bars > 9.687
Name the total number of pommel horses for vault of 9.475 and rank more than 16
CREATE TABLE table_name_65 (pommel_horse VARCHAR, rank VARCHAR, vault VARCHAR)
SELECT COUNT(pommel_horse) FROM table_name_65 WHERE rank > 16 AND vault = 9.475
When lake oval is the venue, what's the score of the home team?
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_4 WHERE venue = "lake oval"
Who did the cubs play on june 3?
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_60 WHERE date = "june 3"
Tell me the place of action for sergeant rank and 5th company, 2nd marines unit
CREATE TABLE table_name_80 (place_of_action VARCHAR, rank VARCHAR, unit VARCHAR)
SELECT place_of_action FROM table_name_80 WHERE rank = "sergeant" AND unit = "5th company, 2nd marines"
Name the service for 7th marines rank of sergeant
CREATE TABLE table_name_20 (service VARCHAR, unit VARCHAR, rank VARCHAR)
SELECT service FROM table_name_20 WHERE unit = "7th marines" AND rank = "sergeant"
How far is the olbia to sassari route?
CREATE TABLE table_name_99 (distance VARCHAR, course VARCHAR)
SELECT distance FROM table_name_99 WHERE course = "olbia to sassari"
What day is miami the venue with 38 goals?
CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR, goal VARCHAR)
SELECT date FROM table_name_67 WHERE venue = "miami" AND goal = 38
What competition has 41 goals?
CREATE TABLE table_name_63 (competition VARCHAR, goal VARCHAR)
SELECT competition FROM table_name_63 WHERE goal = 41
What day has 34 goals?
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_76 WHERE goal = 34
What driver had under 22 laps and a Time/Retired of ignition?
CREATE TABLE table_name_93 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_93 WHERE laps < 22 AND time_retired = "ignition"
What is the highest number of laps for chris amon?
CREATE TABLE table_name_51 (laps INTEGER, driver VARCHAR)
SELECT MAX(laps) FROM table_name_51 WHERE driver = "chris amon"
What is the crowd with Away team of hawthorn?
CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_94 WHERE away_team = "hawthorn"
What away team score has carlton home team?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_85 WHERE home_team = "carlton"
What is the away team score at vfl park?
CREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_19 WHERE venue = "vfl park"
When did St Kilda play a home game?
CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_91 WHERE home_team = "st kilda"
When was the game played at Moorabbin Oval?
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_59 WHERE venue = "moorabbin oval"
Tell me the name for kelston with roll less than 322
CREATE TABLE table_name_27 (name VARCHAR, area VARCHAR, roll VARCHAR)
SELECT name FROM table_name_27 WHERE area = "kelston" AND roll < 322
Who was the opponent on September 8?
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "september 8"
I want the Grand Final Date for season 1988
CREATE TABLE table_name_40 (grand_finaldate VARCHAR, season VARCHAR)
SELECT grand_finaldate FROM table_name_40 WHERE season = 1988
What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?
CREATE TABLE table_name_72 (stadium VARCHAR, location VARCHAR)
SELECT stadium FROM table_name_72 WHERE location = "carrick-on-shannon"
What is the Gaelic Football Stadium at McHale Park's ranking in total capacity?
CREATE TABLE table_name_30 (rank VARCHAR, stadium VARCHAR)
SELECT COUNT(rank) FROM table_name_30 WHERE stadium = "mchale park"
Which Away team score has a Crowd larger than 6,000?
CREATE TABLE table_name_21 (away_team VARCHAR, crowd INTEGER)
SELECT away_team AS score FROM table_name_21 WHERE crowd > 6 OFFSET 000
Which average Crowd has a Home team of south melbourne?
CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_72 WHERE home_team = "south melbourne"
On what date was the Record of 43–35?
CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_25 WHERE record = "43–35"
What record occurred on April 3?
CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_17 WHERE date = "april 3"
Who led the score on April 9?
CREATE TABLE table_name_54 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_54 WHERE date = "april 9"
What is the record for the game that shows the Rose Garden 20,126 as attendance?
CREATE TABLE table_name_96 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_96 WHERE attendance = "rose garden 20,126"
What is the record for the game when the Dallas Mavericks was the home team?
CREATE TABLE table_name_24 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_24 WHERE home = "dallas mavericks"
What is the record that has the Rose Garden 20,126 as the attendance?
CREATE TABLE table_name_44 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_44 WHERE attendance = "rose garden 20,126"
What was the score when 43,746 attended?
CREATE TABLE table_name_50 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_50 WHERE attendance = "43,746"
What was the score when the record 56-46 was met?
CREATE TABLE table_name_7 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_7 WHERE record = "56-46"
What did Richmond score as the home team?
CREATE TABLE table_name_43 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE home_team = "richmond"
Which model has a 2521 cm displacement and b5254 t2 engine?
CREATE TABLE table_name_45 (model_name VARCHAR, displacement__cm³_ VARCHAR, engine_code VARCHAR)
SELECT model_name FROM table_name_45 WHERE displacement__cm³_ = 2521 AND engine_code = "b5254 t2"
Which engine has a 2435 cm displacement and is named 2.4 (2001-2007)?
CREATE TABLE table_name_84 (engine_code VARCHAR, displacement__cm³_ VARCHAR, model_name VARCHAR)
SELECT engine_code FROM table_name_84 WHERE displacement__cm³_ = 2435 AND model_name = "2.4 (2001-2007)"
What was the venue for the game on 10-09-2012?
CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_71 WHERE date = "10-09-2012"
Which competition was played on 13-11-2012?
CREATE TABLE table_name_22 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_22 WHERE date = "13-11-2012"
Which opponent is friendly and played on 15-08-2012?
CREATE TABLE table_name_38 (opponent VARCHAR, competition VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_38 WHERE competition = "friendly" AND date = "15-08-2012"
What is the result of game played on 10-05-2012?
CREATE TABLE table_name_23 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_23 WHERE date = "10-05-2012"
What opponent played on 07-09-2012?
CREATE TABLE table_name_26 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_26 WHERE date = "07-09-2012"
What is the location of the game that was friendly and resulted in 2-3?
CREATE TABLE table_name_6 (venue VARCHAR, competition VARCHAR, result VARCHAR)
SELECT venue FROM table_name_6 WHERE competition = "friendly" AND result = "2-3"
What was the home team score for the game played at Western Oval?
CREATE TABLE table_name_75 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_75 WHERE venue = "western oval"
What was the crowd number when the home team was Carlton?
CREATE TABLE table_name_23 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_23 WHERE home_team = "carlton"
What is the largest capacity for the stadium for Treviso club?
CREATE TABLE table_name_44 (capacity INTEGER, club VARCHAR)
SELECT MAX(capacity) FROM table_name_44 WHERE club = "treviso"
Is there Loci in the Cinderella software?
CREATE TABLE table_name_77 (loci VARCHAR, software VARCHAR)
SELECT loci FROM table_name_77 WHERE software = "cinderella"
Are the there macros in the Tabula software?
CREATE TABLE table_name_65 (macros VARCHAR, software VARCHAR)
SELECT macros FROM table_name_65 WHERE software = "tabula"
Are there proofs in the Tabulae software?
CREATE TABLE table_name_88 (proofs VARCHAR, software VARCHAR)
SELECT proofs FROM table_name_88 WHERE software = "tabulae"
What is the year total for teams with under 37 games tied, over 33 games, and 15 losses?
CREATE TABLE table_name_7 (years INTEGER, lost VARCHAR, tied VARCHAR, total_games VARCHAR)
SELECT SUM(years) FROM table_name_7 WHERE tied < 37 AND total_games > 33 AND lost = 15
What is the low loss total for teams with under 3 years and a less than 0.625% winning percentage?
CREATE TABLE table_name_44 (lost INTEGER, pct VARCHAR, years VARCHAR)
SELECT MIN(lost) FROM table_name_44 WHERE pct < 0.625 AND years < 3
How many CLASS P14 trains were made?
CREATE TABLE table_name_2 (quantity_made VARCHAR, class VARCHAR)
SELECT quantity_made FROM table_name_2 WHERE class = "p14"
In what year(s) were the CLASS T14 trains withdrawn from service?
CREATE TABLE table_name_86 (year_s__withdrawn VARCHAR, class VARCHAR)
SELECT year_s__withdrawn FROM table_name_86 WHERE class = "t14"
What year was the 4-6-0 Wheel model train from 1908 withdrawn?
CREATE TABLE table_name_61 (year_s__withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR)
SELECT year_s__withdrawn FROM table_name_61 WHERE wheel_arrangement = "4-6-0" AND year_made = "1908"
What was the away team at collingwood?
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_95 WHERE home_team = "collingwood"
What is the home team at windy hill?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "windy hill"
What is the greatest capacity when the largest number in attendance is 6,192?
CREATE TABLE table_name_91 (capacity INTEGER, highest INTEGER)
SELECT MAX(capacity) FROM table_name_91 WHERE highest > 6 OFFSET 192
What is the highest average number in attendance when the most in attendance is 5,078?
CREATE TABLE table_name_87 (average INTEGER, highest VARCHAR)
SELECT MAX(average) FROM table_name_87 WHERE highest = 5 OFFSET 078
What is the route that has a rank higher than 63, and Separation Summit as its mountain pass?
CREATE TABLE table_name_33 (route INTEGER, rank VARCHAR, mountain_pass VARCHAR)
SELECT SUM(route) FROM table_name_33 WHERE rank > 63 AND mountain_pass = "separation summit"
Which player plays for Illinois?
CREATE TABLE table_name_1 (player VARCHAR, school_club_team_country VARCHAR)
SELECT player FROM table_name_1 WHERE school_club_team_country = "illinois"
Which player played for the Rockets in 2002-03?
CREATE TABLE table_name_41 (player VARCHAR, years_for_rockets VARCHAR)
SELECT player FROM table_name_41 WHERE years_for_rockets = "2002-03"
What is the height in feet of number 10?
CREATE TABLE table_name_77 (height_in_ft VARCHAR, no_s_ VARCHAR)
SELECT height_in_ft FROM table_name_77 WHERE no_s_ = "10"
What is the height in feet of the Illinois player?
CREATE TABLE table_name_11 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT height_in_ft FROM table_name_11 WHERE school_club_team_country = "illinois"
Tell me the time/retired for Laps larger than 63 and has a grid of 20
CREATE TABLE table_name_97 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = 20
I want the sum of Laps for wolfgang von trips, and a grid larger than 5
CREATE TABLE table_name_5 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_5 WHERE driver = "wolfgang von trips" AND grid > 5
When fitzroy what was the home team score?
CREATE TABLE table_name_85 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_85 WHERE home_team = "fitzroy"
When st kilda played as the Away team which date was that?
CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_10 WHERE away_team = "st kilda"