output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT gender FROM table_name_49 WHERE local_board = "albert–eden" AND roll > 232 AND decile = "5"
CREATE TABLE table_name_49 (gender VARCHAR, decile VARCHAR, local_board VARCHAR, roll VARCHAR), What gender has a local board of albert–eden with a roll of more than 232 and Decile of 5?
SELECT status FROM table_name_11 WHERE stories > 44 AND city = "mexico city" AND building = "torre reforma"
CREATE TABLE table_name_11 (status VARCHAR, building VARCHAR, stories VARCHAR, city VARCHAR), What is the status of the torre reforma building that is over 44 stories in mexico city?
SELECT height FROM table_name_82 WHERE stories = 52
CREATE TABLE table_name_82 (height VARCHAR, stories VARCHAR), How tall is the 52 story building?
SELECT COUNT(stories) FROM table_name_99 WHERE building = "torre reforma"
CREATE TABLE table_name_99 (stories VARCHAR, building VARCHAR), How many stories is the torre reforma building?
SELECT nationality FROM table_name_7 WHERE games = "551" AND player = "mike gatting"
CREATE TABLE table_name_7 (nationality VARCHAR, games VARCHAR, player VARCHAR), What is the Nationality of Mike Gatting, who played 551 games?
SELECT nationality FROM table_name_37 WHERE games = "505"
CREATE TABLE table_name_37 (nationality VARCHAR, games VARCHAR), What is the nationality of the player who played 505 games?
SELECT rank FROM table_name_47 WHERE player = "wasim akram"
CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR), What is Wasim Akram's rank?
SELECT nationality FROM table_name_87 WHERE player = "graham gooch"
CREATE TABLE table_name_87 (nationality VARCHAR, player VARCHAR), What is Graham Gooch's nationality?
SELECT MAX(average_attendance) FROM table_name_94 WHERE season = "2009"
CREATE TABLE table_name_94 (average_attendance INTEGER, season VARCHAR), What was the highest average attendance in the 2009 season?
SELECT total_attendance FROM table_name_80 WHERE average_attendance < 4850 AND sport = "rink hockey"
CREATE TABLE table_name_80 (total_attendance VARCHAR, average_attendance VARCHAR, sport VARCHAR), What's the total attendance in rink hockey when the average attendance was smaller than 4850?
SELECT average_attendance FROM table_name_75 WHERE total_attendance = "2268508"
CREATE TABLE table_name_75 (average_attendance VARCHAR, total_attendance VARCHAR), What's the average attendance of the league with a total attendance of 2268508?
SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = "england" AND games < 5
CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR), Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?
SELECT MIN(pts_game) FROM table_name_98 WHERE games > 6
CREATE TABLE table_name_98 (pts_game INTEGER, games INTEGER), Can you tell me the lowest Pts/game that has the Games larger than 6?
SELECT MIN(pts_game) FROM table_name_59 WHERE name = "philippa tuttiett" AND points > 6
CREATE TABLE table_name_59 (pts_game INTEGER, name VARCHAR, points VARCHAR), Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points larger then 6?
SELECT MIN(games) FROM table_name_96 WHERE pts_game > 1.4 AND points = 20 AND name = "susan day"
CREATE TABLE table_name_96 (games INTEGER, name VARCHAR, pts_game VARCHAR, points VARCHAR), Can you tell me the lowest Games that has the Pts/game larger than 1.4 and the Points of 20, and the Name of susan day?
SELECT MIN(production_code) FROM table_name_14 WHERE series__number = 10
CREATE TABLE table_name_14 (production_code INTEGER, series__number VARCHAR), What was the lowest production code value in series #10?
SELECT absorb__nm_ FROM table_name_40 WHERE color = "orange"
CREATE TABLE table_name_40 (absorb__nm_ VARCHAR, color VARCHAR), What is the Absorbtion (in nanometers) of the color Orange?
SELECT absorb__nm_ FROM table_name_59 WHERE color = "violet" AND emit__nm_ = "432"
CREATE TABLE table_name_59 (absorb__nm_ VARCHAR, color VARCHAR, emit__nm_ VARCHAR), What is the Absorbtion (in nanometers) of the color Violet with an emission of 432 nm?
SELECT emit__nm_ FROM table_name_6 WHERE absorb__nm_ = "593"
CREATE TABLE table_name_6 (emit__nm_ VARCHAR, absorb__nm_ VARCHAR), Which Emission (in nanometers) has an absorbtion of 593 nm?
SELECT emit__nm_ FROM table_name_86 WHERE mass__g_mol_ = "1078"
CREATE TABLE table_name_86 (emit__nm_ VARCHAR, mass__g_mol_ VARCHAR), Which Emission (in nanometers) that has a molar mass of 1078 g/mol?
SELECT ε__m__1_cm__1__ FROM table_name_79 WHERE mass__g_mol_ = "1008"
CREATE TABLE table_name_79 (ε__m__1_cm__1__ VARCHAR, mass__g_mol_ VARCHAR), Which ε (M -1 cm -1) has a molar mass of 1008 g/mol?
SELECT away_team FROM table_name_87 WHERE home_team = "fitzroy"
CREATE TABLE table_name_87 (away_team VARCHAR, home_team VARCHAR), What was the away team that played against Fitzroy?
SELECT date FROM table_name_66 WHERE home_team = "essendon"
CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR), On what date was the Essendon home match?
SELECT date FROM table_name_49 WHERE competition = "friendly"
CREATE TABLE table_name_49 (date VARCHAR, competition VARCHAR), On what Date did the friendly Competition take place?
SELECT attendance FROM table_name_92 WHERE game_site = "hoosier dome"
CREATE TABLE table_name_92 (attendance VARCHAR, game_site VARCHAR), What was the Attendance of the Game at Hoosier Dome?
SELECT result FROM table_name_29 WHERE game_site = "the meadowlands" AND date = "1991-09-01"
CREATE TABLE table_name_29 (result VARCHAR, game_site VARCHAR, date VARCHAR), What was the Result of the Game at the Meadowlands on 1991-09-01?
SELECT attendance FROM table_name_70 WHERE week = 17
CREATE TABLE table_name_70 (attendance VARCHAR, week VARCHAR), What was the Attendance in Week 17?
SELECT opponent FROM table_name_52 WHERE date = "1991-10-13"
CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR), Which Opponent was played on 1991-10-13?
SELECT number FROM table_name_77 WHERE position = "k"
CREATE TABLE table_name_77 (number VARCHAR, position VARCHAR), What is the number for the player that has a k position?
SELECT venue FROM table_name_53 WHERE score = "4-0" AND competition = "friendly"
CREATE TABLE table_name_53 (venue VARCHAR, score VARCHAR, competition VARCHAR), What is the venue for the friendly competition and score of 4-0?
SELECT score FROM table_name_18 WHERE date = "7 may 2000"
CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR), Name the score for 7 may 2000
SELECT date FROM table_name_91 WHERE competition = "uncaf nations cup 2009"
CREATE TABLE table_name_91 (date VARCHAR, competition VARCHAR), Name the date of the uncaf nations cup 2009
SELECT date FROM table_name_49 WHERE attendance > 19 OFFSET 600
CREATE TABLE table_name_49 (date VARCHAR, attendance INTEGER), What date were there more than 19,600 people in attendance?
SELECT crowd FROM table_name_12 WHERE home_team = "st kilda"
CREATE TABLE table_name_12 (crowd VARCHAR, home_team VARCHAR), During st kilda's home game, what was the number of people in the crowd?
SELECT time_retired FROM table_name_89 WHERE constructor = "source:"
CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR), What's the time/retired for constructor source:?
SELECT laps FROM table_name_71 WHERE driver = "luca badoer"
CREATE TABLE table_name_71 (laps VARCHAR, driver VARCHAR), How many laps does luca badoer have?
SELECT time_retired FROM table_name_98 WHERE grid = "14"
CREATE TABLE table_name_98 (time_retired VARCHAR, grid VARCHAR), What's the time/retired for a grid of 14?
SELECT laps FROM table_name_67 WHERE time_retired = "+1 lap" AND driver = "jean-christophe boullion"
CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR), How many laps does jean-christophe boullion have with a time/retired of +1 lap?
SELECT laps FROM table_name_51 WHERE driver = "roberto moreno"
CREATE TABLE table_name_51 (laps VARCHAR, driver VARCHAR), How many laps does roberto moreno have?
SELECT grid FROM table_name_93 WHERE laps = "2"
CREATE TABLE table_name_93 (grid VARCHAR, laps VARCHAR), What grid has 2 laps?
SELECT date FROM table_name_6 WHERE venue = "windy hill"
CREATE TABLE table_name_6 (date VARCHAR, venue VARCHAR), On what date was a game played at Windy Hill?
SELECT venue FROM table_name_52 WHERE away_team = "south melbourne"
CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR), Where does South Melbourne play?
SELECT venue FROM table_name_10 WHERE away_team = "richmond"
CREATE TABLE table_name_10 (venue VARCHAR, away_team VARCHAR), Where did Richmond play?
SELECT home_team FROM table_name_90 WHERE venue = "western oval"
CREATE TABLE table_name_90 (home_team VARCHAR, venue VARCHAR), Which Team plays at Western Oval?
SELECT AVG(crowd) FROM table_name_92 WHERE home_team = "collingwood"
CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR), What is the average crowd attendance for Collingwood?
SELECT outcome FROM table_name_97 WHERE opponent_in_final = "alizé cornet janette husárová"
CREATE TABLE table_name_97 (outcome VARCHAR, opponent_in_final VARCHAR), Name the outcome for alizé cornet janette husárová being opponent in final
SELECT outcome FROM table_name_56 WHERE opponent_in_final = "nina bratchikova kathrin wörle"
CREATE TABLE table_name_56 (outcome VARCHAR, opponent_in_final VARCHAR), Name the outcome that had an opponent in final of nina bratchikova kathrin wörle
SELECT partner FROM table_name_94 WHERE date = "14 april 2013"
CREATE TABLE table_name_94 (partner VARCHAR, date VARCHAR), Which partner was on 14 april 2013?
SELECT grid FROM table_name_58 WHERE laps < 80 AND driver = "bruce mclaren"
CREATE TABLE table_name_58 (grid VARCHAR, laps VARCHAR, driver VARCHAR), When laps are less than 80 and Bruce mclaren is the driver, what is the grid?
SELECT driver FROM table_name_27 WHERE grid > 19
CREATE TABLE table_name_27 (driver VARCHAR, grid INTEGER), What driver has a grid greater than 19?
SELECT laps FROM table_name_87 WHERE constructor = "brm" AND driver = "richard attwood"
CREATE TABLE table_name_87 (laps VARCHAR, constructor VARCHAR, driver VARCHAR), When the driver richard attwood has a constructor of brm, what is the number of laps?
SELECT AVG(grid) FROM table_name_55 WHERE laps < 3
CREATE TABLE table_name_55 (grid INTEGER, laps INTEGER), What is the average grid for the competitiors who had laps smaller than 3?
SELECT AVG(grid) FROM table_name_79 WHERE time_retired = "+17.276" AND laps > 22
CREATE TABLE table_name_79 (grid INTEGER, time_retired VARCHAR, laps VARCHAR), What is the average grid for competitors who had more than 22 laps and time/retired of +17.276?
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+28.108" AND grid > 11
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR, grid VARCHAR), What was the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108?
SELECT away_team FROM table_name_17 WHERE venue = "princes park"
CREATE TABLE table_name_17 (away_team VARCHAR, venue VARCHAR), What was the away team that played at Princes Park?
SELECT away_team FROM table_name_97 WHERE venue = "princes park"
CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR), What was the away team that played at Princes Park?
SELECT venue FROM table_name_59 WHERE away_team = "essendon"
CREATE TABLE table_name_59 (venue VARCHAR, away_team VARCHAR), In what venue was the hosted away team Essendon?
SELECT home_team FROM table_name_86 WHERE venue = "mcg"
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR), Who was the home team at MCG?
SELECT final_score FROM table_name_74 WHERE date = "december 27"
CREATE TABLE table_name_74 (final_score VARCHAR, date VARCHAR), I want to know the final score for december 27
SELECT final_score FROM table_name_96 WHERE date = "january 9" AND host_team = "cincinnati bengals"
CREATE TABLE table_name_96 (final_score VARCHAR, date VARCHAR, host_team VARCHAR), Tell me the final score for january 9 for cincinnati bengals
SELECT host_team FROM table_name_57 WHERE stadium = "giants stadium" AND visiting_team = "cincinnati bengals"
CREATE TABLE table_name_57 (host_team VARCHAR, stadium VARCHAR, visiting_team VARCHAR), Tell me the host team for giants stadium and visiting of cincinnati bengals
SELECT date FROM table_name_16 WHERE visiting_team = "pittsburgh steelers"
CREATE TABLE table_name_16 (date VARCHAR, visiting_team VARCHAR), Tell me the date for pittsburgh steelers
SELECT visiting_team FROM table_name_59 WHERE date = "october 4"
CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR), Tell me the visiting team for october 4
SELECT stadium FROM table_name_32 WHERE visiting_team = "tennessee titans"
CREATE TABLE table_name_32 (stadium VARCHAR, visiting_team VARCHAR), I want to know the stadium for tennessee titans visiting
SELECT MAX(grid) FROM table_name_44 WHERE laps < 39 AND driver = "juan manuel fangio"
CREATE TABLE table_name_44 (grid INTEGER, laps VARCHAR, driver VARCHAR), When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?
SELECT constructor FROM table_name_84 WHERE laps > 17 AND grid < 7 AND time_retired = "+ 1:35.6"
CREATE TABLE table_name_84 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR), When grid is less than 7, laps are greater than 17, and time/retired is + 1:35.6, who is the constructor?
SELECT MIN(grid) FROM table_name_29 WHERE driver = "prince bira"
CREATE TABLE table_name_29 (grid INTEGER, driver VARCHAR), What was the smallest grid for Prince bira?
SELECT COUNT(losses) FROM table_name_52 WHERE goals_for = 22 AND games_played > 8
CREATE TABLE table_name_52 (losses VARCHAR, goals_for VARCHAR, games_played VARCHAR), How many losses did the team with 22 goals for andmore than 8 games played have?
SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 8
CREATE TABLE table_name_21 (ties INTEGER, games_played VARCHAR, wins VARCHAR, goals_against VARCHAR), For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties?
SELECT goals_against FROM table_name_36 WHERE wins = 7
CREATE TABLE table_name_36 (goals_against VARCHAR, wins VARCHAR), For teams with 7 wins, what is the number of goals against?
SELECT MAX(wins) FROM table_name_73 WHERE goals_against = 37 AND ties > 0
CREATE TABLE table_name_73 (wins INTEGER, goals_against VARCHAR, ties VARCHAR), For teams with more than 0 ties and goals against of 37, how many wins were tallied?
SELECT year FROM table_name_35 WHERE superlative = "youngest nominee"
CREATE TABLE table_name_35 (year VARCHAR, superlative VARCHAR), What year was the the youngest nominee a winner?
SELECT actor FROM table_name_22 WHERE year = "1978"
CREATE TABLE table_name_22 (actor VARCHAR, year VARCHAR), What actor won in 1978?
SELECT notes FROM table_name_99 WHERE year = "1981"
CREATE TABLE table_name_99 (notes VARCHAR, year VARCHAR), What are the notes in 1981?
SELECT year FROM table_name_13 WHERE superlative = "oldest winner"
CREATE TABLE table_name_13 (year VARCHAR, superlative VARCHAR), In what year had the oldest winner?
SELECT year FROM table_name_73 WHERE actor = "richard farnsworth"
CREATE TABLE table_name_73 (year VARCHAR, actor VARCHAR), What year did actor Richard Farnsworth get nominated for an award?
SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 4
CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR), Tell me the time/retired for Laps of 42 and Grids of 4
SELECT driver FROM table_name_59 WHERE laps = 10
CREATE TABLE table_name_59 (driver VARCHAR, laps VARCHAR), I want the driver that has Laps of 10
SELECT position FROM table_name_56 WHERE club_province = "perpignan"
CREATE TABLE table_name_56 (position VARCHAR, club_province VARCHAR), What is the position of Perpignan?
SELECT player FROM table_name_74 WHERE caps > 12 AND club_province = "toulouse"
CREATE TABLE table_name_74 (player VARCHAR, caps VARCHAR, club_province VARCHAR), Which player has a cap larger than 12 and Clubs of Toulouse?
SELECT date_of_birth__age_ FROM table_name_85 WHERE caps = 32
CREATE TABLE table_name_85 (date_of_birth__age_ VARCHAR, caps VARCHAR), What is the birthday of caps of 32?
SELECT result FROM table_name_20 WHERE score = "0-2"
CREATE TABLE table_name_20 (result VARCHAR, score VARCHAR), What is the result when the score is 0-2?
SELECT COUNT(goal) FROM table_name_61 WHERE competition = "euro 2012 q" AND score = "3-0"
CREATE TABLE table_name_61 (goal VARCHAR, competition VARCHAR, score VARCHAR), How many goals when the score is 3-0 in the euro 2012 q?
SELECT driver FROM table_name_59 WHERE grid = 9
CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR), I want the driver for grid of 9
SELECT school FROM table_name_94 WHERE position = "quarterback"
CREATE TABLE table_name_94 (school VARCHAR, position VARCHAR), Which school has a quarterback?
SELECT COUNT(round) FROM table_name_92 WHERE pick = "242"
CREATE TABLE table_name_92 (round VARCHAR, pick VARCHAR), In which round is pick number 242?
SELECT COUNT(round) FROM table_name_16 WHERE player = "tom morris"
CREATE TABLE table_name_16 (round VARCHAR, player VARCHAR), Which round was Tom Morris picked in?
SELECT pick FROM table_name_38 WHERE school = "clemson"
CREATE TABLE table_name_38 (pick VARCHAR, school VARCHAR), What pick did Clemson choose?
SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"
CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR), When Tujunga is moderate, what is La Crescenta-Montrose?
SELECT la_cañada_flintridge FROM table_name_58 WHERE tujunga = "7%"
CREATE TABLE table_name_58 (la_cañada_flintridge VARCHAR, tujunga VARCHAR), What is the percentage of La Canada Flintridge when Tujunga is 7%?
SELECT la_crescenta__montrose FROM table_name_25 WHERE pasadena = "10%"
CREATE TABLE table_name_25 (la_crescenta__montrose VARCHAR, pasadena VARCHAR), When Pasadena is at 10%, what is La Crescenta-Montrose?
SELECT tujunga FROM table_name_85 WHERE la_crescenta__montrose = "66%"
CREATE TABLE table_name_85 (tujunga VARCHAR, la_crescenta__montrose VARCHAR), When La Crescenta-Montrose has 66%, what is Tujunga?
SELECT tujunga FROM table_name_39 WHERE pasadena = "134,941"
CREATE TABLE table_name_39 (tujunga VARCHAR, pasadena VARCHAR), What is the figure for Tujunga when Pasadena is 134,941?
SELECT la_cañada_flintridge FROM table_name_65 WHERE pasadena = "34"
CREATE TABLE table_name_65 (la_cañada_flintridge VARCHAR, pasadena VARCHAR), What is the figure for La Canada Flintridge when Pasadena is 34?
SELECT member_senator FROM table_name_4 WHERE first_elected = 2002 AND district > 41
CREATE TABLE table_name_4 (member_senator VARCHAR, first_elected VARCHAR, district VARCHAR), Who was firest elected in 2002 in a district larger than 41?
SELECT district FROM table_name_26 WHERE member_senator = "ulysses currie"
CREATE TABLE table_name_26 (district VARCHAR, member_senator VARCHAR), What district for ulysses currie?
SELECT venue FROM table_name_75 WHERE away_team = "geelong"
CREATE TABLE table_name_75 (venue VARCHAR, away_team VARCHAR), Where did Geelong play as the away team?
SELECT home_team AS score FROM table_name_94 WHERE home_team = "hawthorn"
CREATE TABLE table_name_94 (home_team VARCHAR), What was Hawthorn's score as the home team?
SELECT away_team FROM table_name_18 WHERE home_team = "south melbourne"
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR), Who was South Melbourne's away opponents?
SELECT MAX(year) FROM table_name_58 WHERE runner_s__up = "steve stricker"
CREATE TABLE table_name_58 (year INTEGER, runner_s__up VARCHAR), In which year is the highest for runner-up Steve Stricker?