output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT SUM(games) FROM table_name_23 WHERE goals = 22 AND debut_year < 1935
CREATE TABLE table_name_23 (games INTEGER, goals VARCHAR, debut_year VARCHAR), How many games had 22 goals before 1935?
SELECT AVG(games) FROM table_name_68 WHERE date_of_birth = "17 march 1915" AND debut_year < 1935
CREATE TABLE table_name_68 (games INTEGER, date_of_birth VARCHAR, debut_year VARCHAR), What is the average games a player born on 17 March 1915 and debut before 1935 had?
SELECT MIN(games) FROM table_name_88 WHERE debut_year = 1936 AND player = "jack gaudion"
CREATE TABLE table_name_88 (games INTEGER, debut_year VARCHAR, player VARCHAR), What is the lowest number of games Jack Gaudion, who debut in 1936, played?
SELECT years_at_club FROM table_name_63 WHERE goals = 2 AND date_of_birth = "23 july 1910"
CREATE TABLE table_name_63 (years_at_club VARCHAR, goals VARCHAR, date_of_birth VARCHAR), What is the years at the club of the player with 2 goals and was born on 23 July 1910?
SELECT pos FROM table_name_91 WHERE play_offs = "quarter-final" AND pts = "56"
CREATE TABLE table_name_91 (pos VARCHAR, play_offs VARCHAR, pts VARCHAR), During the play-off quarter-final which team scored position was the team that scored 56 points?
SELECT score FROM table_name_84 WHERE home = "philadelphia"
CREATE TABLE table_name_84 (score VARCHAR, home VARCHAR), What is the score when Philadelphia is at home?
SELECT record FROM table_name_55 WHERE date = "december 4"
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR), What is the record on December 4?
SELECT decision FROM table_name_84 WHERE record = "13–10–4"
CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR), what is the decision when the record is 13–10–4?
SELECT MIN(attendance) FROM table_name_71 WHERE date = "august 26"
CREATE TABLE table_name_71 (attendance INTEGER, date VARCHAR), What is the lowest attendance total on August 26?
SELECT SUM(year) FROM table_name_1 WHERE date = "5 february"
CREATE TABLE table_name_1 (year INTEGER, date VARCHAR), What is the sum of the year for 5 february?
SELECT location FROM table_name_82 WHERE year > 2012
CREATE TABLE table_name_82 (location VARCHAR, year INTEGER), What was the location for a year later than 2012?
SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine"
CREATE TABLE table_name_33 (constructor VARCHAR, laps VARCHAR, driver VARCHAR), who is the constructor when the laps is more than 72 and the driver is eddie irvine?
SELECT record FROM table_name_16 WHERE visitor = "rockets"
CREATE TABLE table_name_16 (record VARCHAR, visitor VARCHAR), What was the record of the game where the Rockets were the visiting team?
SELECT voltage FROM table_name_49 WHERE model_number = "pentium dual-core e2140"
CREATE TABLE table_name_49 (voltage VARCHAR, model_number VARCHAR), What's the voltage for the pentium dual-core e2140?
SELECT part_number_s_ FROM table_name_20 WHERE frequency = "2.4 ghz"
CREATE TABLE table_name_20 (part_number_s_ VARCHAR, frequency VARCHAR), What part number(s) has a frequency of 2.4 ghz?
SELECT release_price___usd__ FROM table_name_98 WHERE part_number_s_ = "hh80557pg0491m"
CREATE TABLE table_name_98 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR), What's the release price (USD) for part number hh80557pg0491m?
SELECT l2_cache FROM table_name_71 WHERE release_date = "august 26, 2007"
CREATE TABLE table_name_71 (l2_cache VARCHAR, release_date VARCHAR), What L2 cache had a release date of august 26, 2007?
SELECT location FROM table_name_10 WHERE pole_position = "tom pryce"
CREATE TABLE table_name_10 (location VARCHAR, pole_position VARCHAR), Where did the team in which Tom Pryce was in Pole Position race?
SELECT fastest_lap FROM table_name_39 WHERE constructor = "ferrari" AND location = "zolder"
CREATE TABLE table_name_39 (fastest_lap VARCHAR, constructor VARCHAR, location VARCHAR), Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?
SELECT tournament FROM table_name_8 WHERE date = "jan 29, 2012"
CREATE TABLE table_name_8 (tournament VARCHAR, date VARCHAR), What tournament was on Jan 29, 2012?
SELECT to_par FROM table_name_25 WHERE winning_score = 69 - 67 - 72 - 64 = 272
CREATE TABLE table_name_25 (to_par VARCHAR, winning_score VARCHAR), What is the to par of the match with a winning score 69-67-72-64=272?
SELECT COUNT(episode_no) FROM table_name_53 WHERE original_airdate = "january 26, 2009" AND production_no < 38
CREATE TABLE table_name_53 (episode_no VARCHAR, original_airdate VARCHAR, production_no VARCHAR), What is the episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38?
SELECT acquired FROM table_name_1 WHERE player = "tom norton"
CREATE TABLE table_name_1 (acquired VARCHAR, player VARCHAR), Who acquired tom norton?
SELECT venue FROM table_name_4 WHERE home_team = "geelong"
CREATE TABLE table_name_4 (venue VARCHAR, home_team VARCHAR), Where did Geelong play as the home team?
SELECT venue FROM table_name_25 WHERE home_team = "north melbourne"
CREATE TABLE table_name_25 (venue VARCHAR, home_team VARCHAR), Where did North Melbourne play as the home team?
SELECT away_team AS score FROM table_name_37 WHERE home_team = "footscray"
CREATE TABLE table_name_37 (away_team VARCHAR, home_team VARCHAR), What did the away team score when playing Footscray?
SELECT record FROM table_name_61 WHERE week < 13 AND date = "october 8, 2000"
CREATE TABLE table_name_61 (record VARCHAR, week VARCHAR, date VARCHAR), What's the record for October 8, 2000 before week 13?
SELECT game_site FROM table_name_52 WHERE result = "bye"
CREATE TABLE table_name_52 (game_site VARCHAR, result VARCHAR), What game site has a result of bye?
SELECT record FROM table_name_80 WHERE week > 16
CREATE TABLE table_name_80 (record VARCHAR, week INTEGER), What's the record after week 16?
SELECT result FROM table_name_39 WHERE game_site = "psinet stadium" AND opponent = "cincinnati bengals"
CREATE TABLE table_name_39 (result VARCHAR, game_site VARCHAR, opponent VARCHAR), What's the result at psinet stadium when the cincinnati bengals are the opponent?
SELECT record FROM table_name_26 WHERE week > 12 AND game_site = "bye"
CREATE TABLE table_name_26 (record VARCHAR, week VARCHAR, game_site VARCHAR), What's the record after week 12 with a game site of bye?
SELECT date FROM table_name_73 WHERE callback_venue = "total tickets to hollywood"
CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR), What day has a callback Venue of total tickets to hollywood? Question
SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = "georgia international convention center"
CREATE TABLE table_name_85 (golden_tickets INTEGER, callback_venue VARCHAR), How many golden tickets for the georgia international convention center?
SELECT class FROM table_name_10 WHERE wa = "0-8-0"
CREATE TABLE table_name_10 (class VARCHAR, wa VARCHAR), What class is associated with a W.A. of 0-8-0?
SELECT opponent FROM table_name_21 WHERE game_site = "indianapolis hoosierdome"
CREATE TABLE table_name_21 (opponent VARCHAR, game_site VARCHAR), Who was the Opponent at the Game Site Indianapolis Hoosierdome?
SELECT away_team AS score FROM table_name_24 WHERE away_team = "st kilda"
CREATE TABLE table_name_24 (away_team VARCHAR), What is the St Kilda Away team score?
SELECT MAX(snatch) FROM table_name_65 WHERE bodyweight = 68.63 AND total__kg_ < 290
CREATE TABLE table_name_65 (snatch INTEGER, bodyweight VARCHAR, total__kg_ VARCHAR), Tell me the highest snatch for 68.63 bodyweight and total kg less than 290
SELECT COUNT(snatch) FROM table_name_62 WHERE clean_ & _jerk > 132.5 AND total__kg_ = 315 AND bodyweight = 68.63
CREATE TABLE table_name_62 (snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR), Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63
SELECT AVG(clean_) & _jerk FROM table_name_10 WHERE snatch = 140 AND total__kg_ < 315
CREATE TABLE table_name_10 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, total__kg_ VARCHAR), Name the average clean and jerk for snatch of 140 and total kg less than 315
SELECT constructor FROM table_name_20 WHERE chassis = "tg181" AND driver = "derek warwick"
CREATE TABLE table_name_20 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR), Who constructed the car that Derek Warwick raced in with a TG181 chassis?
SELECT player FROM table_name_99 WHERE club_province = "direito" AND caps < 21 AND position = "lock"
CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, club_province VARCHAR, caps VARCHAR), Which player has a Club/province of direito, less than 21 caps, and a Position of lock?
SELECT COUNT(caps) FROM table_name_6 WHERE position = "prop" AND player = "rui cordeiro"
CREATE TABLE table_name_6 (caps VARCHAR, position VARCHAR, player VARCHAR), How many caps have a Position of prop, and a Player of rui cordeiro?
SELECT club_province FROM table_name_41 WHERE player = "david penalva"
CREATE TABLE table_name_41 (club_province VARCHAR, player VARCHAR), Which Club/province has a Player of david penalva?
SELECT COUNT(caps) FROM table_name_49 WHERE date_of_birth__age_ = "15 july 1981"
CREATE TABLE table_name_49 (caps VARCHAR, date_of_birth__age_ VARCHAR), How many caps have a Date of Birth (Age) of 15 july 1981?
SELECT player FROM table_name_41 WHERE position = "fly-half" AND caps = 3
CREATE TABLE table_name_41 (player VARCHAR, position VARCHAR, caps VARCHAR), Which player has a Position of fly-half, and a Caps of 3?
SELECT constituency FROM table_name_93 WHERE conservative = "darren millar"
CREATE TABLE table_name_93 (constituency VARCHAR, conservative VARCHAR), What constituency does the Conservative Darren Millar belong to?
SELECT constituency FROM table_name_12 WHERE result = "labour hold" AND liberal_democrats = "elizabeth newton"
CREATE TABLE table_name_12 (constituency VARCHAR, result VARCHAR, liberal_democrats VARCHAR), In what constituency was the result labour hold and Liberal democrat Elizabeth Newton won?
SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270)
CREATE TABLE table_name_21 (runner_s__up VARCHAR, winning_score VARCHAR), Who has the Winning score of –10 (66-71-62-71=270) ?
SELECT runner_s__up FROM table_name_37 WHERE date = "may 24, 1999"
CREATE TABLE table_name_37 (runner_s__up VARCHAR, date VARCHAR), Who is Runner(s)-up that has a Date of may 24, 1999?
SELECT tournament FROM table_name_38 WHERE margin_of_victory = "7 strokes"
CREATE TABLE table_name_38 (tournament VARCHAR, margin_of_victory VARCHAR), Which Tournament has a Margin of victory of 7 strokes
SELECT decision FROM table_name_71 WHERE visitor = "chicago"
CREATE TABLE table_name_71 (decision VARCHAR, visitor VARCHAR), What was the decision of the Kings game when Chicago was the visiting team?
SELECT SUM(round) FROM table_name_38 WHERE position = "nose tackle"
CREATE TABLE table_name_38 (round INTEGER, position VARCHAR), What round was the nose tackle drafted?
SELECT record FROM table_name_36 WHERE home = "buffalo"
CREATE TABLE table_name_36 (record VARCHAR, home VARCHAR), What is the Record when Buffalo is at Home?
SELECT winnings FROM table_name_65 WHERE make = "chevrolet" AND car__number > 29 AND points = 102
CREATE TABLE table_name_65 (winnings VARCHAR, points VARCHAR, make VARCHAR, car__number VARCHAR), What were the winnings for the Chevrolet with a number larger than 29 and scored 102 points?
SELECT make FROM table_name_47 WHERE car__number = 31
CREATE TABLE table_name_47 (make VARCHAR, car__number VARCHAR), What is the make of car 31?
SELECT SUM(car__number) FROM table_name_62 WHERE laps < 369 AND make = "dodge" AND points > 49
CREATE TABLE table_name_62 (car__number INTEGER, points VARCHAR, laps VARCHAR, make VARCHAR), What is the car number that has less than 369 laps for a Dodge with more than 49 points?
SELECT COUNT(ties) FROM table_name_27 WHERE name = "totals" AND lost > 30
CREATE TABLE table_name_27 (ties VARCHAR, name VARCHAR, lost VARCHAR), Tell me the total number of ties for name of totals and lost more than 30
SELECT COUNT(ties) FROM table_name_3 WHERE win__percentage > 0 AND tenure = "2001-2011" AND lost > 16
CREATE TABLE table_name_3 (ties VARCHAR, lost VARCHAR, win__percentage VARCHAR, tenure VARCHAR), I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16
SELECT record FROM table_name_62 WHERE attendance = "28,531"
CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR), What's the record when the attendance was 28,531?
SELECT record FROM table_name_25 WHERE attendance = "41,573"
CREATE TABLE table_name_25 (record VARCHAR, attendance VARCHAR), What's the record when the attendance was 41,573?
SELECT opponent FROM table_name_88 WHERE date = "june 13"
CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR), Who's the opponent for June 13?
SELECT nationality FROM table_name_67 WHERE position = "center" AND player = "joakim andersson"
CREATE TABLE table_name_67 (nationality VARCHAR, position VARCHAR, player VARCHAR), Where does center Joakim Andersson come from?
SELECT position FROM table_name_6 WHERE player = "zack torquato"
CREATE TABLE table_name_6 (position VARCHAR, player VARCHAR), What position does Zack Torquato play?
SELECT MIN(heat) FROM table_name_44 WHERE lane = 4 AND quart > 44.62
CREATE TABLE table_name_44 (heat INTEGER, lane VARCHAR, quart VARCHAR), When a lane of 4 has a QUART greater than 44.62, what is the lowest HEAT?
SELECT date FROM table_name_7 WHERE venue = "arden street oval"
CREATE TABLE table_name_7 (date VARCHAR, venue VARCHAR), When did the game at Arden Street Oval occur?
SELECT away_team AS score FROM table_name_79 WHERE home_team = "north melbourne"
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR), What did the away team score when playing North Melbourne?
SELECT SUM(crowd) FROM table_name_71 WHERE venue = "vfl park"
CREATE TABLE table_name_71 (crowd INTEGER, venue VARCHAR), How many people attended the game at VFL Park?
SELECT away_team AS score FROM table_name_16 WHERE home_team = "fitzroy"
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR), When the home team was fitzroy, what did the away team score?
SELECT fastest_lap FROM table_name_39 WHERE grand_prix = "brazilian grand prix"
CREATE TABLE table_name_39 (fastest_lap VARCHAR, grand_prix VARCHAR), Name the fastest lap for the brazilian grand prix
SELECT pole_position FROM table_name_62 WHERE fastest_lap = "damon hill" AND grand_prix = "japanese grand prix"
CREATE TABLE table_name_62 (pole_position VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR), Name the pole position at the japanese grand prix when the fastest lap is damon hill
SELECT MIN(round) FROM table_name_27 WHERE fastest_lap = "michael schumacher" AND winning_driver = "michael schumacher" AND pole_position = "michael schumacher"
CREATE TABLE table_name_27 (round INTEGER, pole_position VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR), Name the lowest round for when pole position and winning driver is michael schumacher
SELECT COUNT(reg_gp) FROM table_name_62 WHERE player = "nathan barrett" AND rd__number < 8
CREATE TABLE table_name_62 (reg_gp VARCHAR, player VARCHAR, rd__number VARCHAR), How many reg GP for nathan barrett in a round less than 8?
SELECT organization FROM table_name_14 WHERE rank = "68"
CREATE TABLE table_name_14 (organization VARCHAR, rank VARCHAR), What organization ranks 68?
SELECT SUM(year) FROM table_name_79 WHERE index = "happy planet index"
CREATE TABLE table_name_79 (year INTEGER, index VARCHAR), What year is the happy planet index?
SELECT year FROM table_name_79 WHERE organization = "legatum institute"
CREATE TABLE table_name_79 (year VARCHAR, organization VARCHAR), What year for the legatum institute?
SELECT 1 AS st_leg FROM table_name_58 WHERE agg = "alense vivaldi (trentino)"
CREATE TABLE table_name_58 (agg VARCHAR), What 1st leg has Alense Vivaldi (Trentino) as Agg.?
SELECT grid FROM table_name_42 WHERE laps < 90 AND team = "minardi team usa"
CREATE TABLE table_name_42 (grid VARCHAR, laps VARCHAR, team VARCHAR), What is the grid for the Minardi Team USA with laps smaller than 90?
SELECT home_team AS score FROM table_name_60 WHERE home_team = "fitzroy"
CREATE TABLE table_name_60 (home_team VARCHAR), What is Fitzroy's Home team score?
SELECT SUM(crowd) FROM table_name_90 WHERE home_team = "fitzroy"
CREATE TABLE table_name_90 (crowd INTEGER, home_team VARCHAR), What is Fitzroy's Home team Crowd?
SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = "6" AND bronze > 1
CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR), What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal?
SELECT driver FROM table_name_3 WHERE grid = 10
CREATE TABLE table_name_3 (driver VARCHAR, grid VARCHAR), Who drove the grid 10 car?
SELECT driver FROM table_name_25 WHERE laps < 60 AND time_retired = "spun off"
CREATE TABLE table_name_25 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR), Who drive the car that went under 60 laps and spun off?
SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32
CREATE TABLE table_name_90 (yards VARCHAR, in_20 VARCHAR), What number of Yards has 32 as an In 20?
SELECT score FROM table_name_76 WHERE date = "june 12"
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR), What was the score on June 12?
SELECT MAX(attendance) FROM table_name_57 WHERE week > 2 AND date = "october 29, 1961"
CREATE TABLE table_name_57 (attendance INTEGER, week VARCHAR, date VARCHAR), What is the top attendance for weeks past 2 on october 29, 1961?
SELECT MIN(week) FROM table_name_82 WHERE date = "october 15, 1961"
CREATE TABLE table_name_82 (week INTEGER, date VARCHAR), What is the low week from october 15, 1961?
SELECT MIN(attendance) FROM table_name_98 WHERE opponent = "buffalo bills"
CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR), What is the low attendance rate against buffalo bills?
SELECT team FROM table_name_37 WHERE date = "november 28"
CREATE TABLE table_name_37 (team VARCHAR, date VARCHAR), What team played on November 28?
SELECT driver FROM table_name_19 WHERE time_retired = "2:16:38.0"
CREATE TABLE table_name_19 (driver VARCHAR, time_retired VARCHAR), What driver has a Time/Retired of 2:16:38.0?
SELECT time_retired FROM table_name_49 WHERE grid = 18
CREATE TABLE table_name_49 (time_retired VARCHAR, grid VARCHAR), What time/retired for grid 18?
SELECT venue FROM table_name_33 WHERE away_team = "north melbourne"
CREATE TABLE table_name_33 (venue VARCHAR, away_team VARCHAR), What was the Venue of the North Melbourne Away Team?
SELECT date FROM table_name_7 WHERE delta = "0:40"
CREATE TABLE table_name_7 (date VARCHAR, delta VARCHAR), On what Date is Delta 0:40?
SELECT winner FROM table_name_44 WHERE date = "june 2, 2007"
CREATE TABLE table_name_44 (winner VARCHAR, date VARCHAR), Who is the Winner on June 2, 2007?
SELECT home_team AS score FROM table_name_78 WHERE home_team = "essendon"
CREATE TABLE table_name_78 (home_team VARCHAR), What did the home team of essendon score?
SELECT home_team AS score FROM table_name_56 WHERE venue = "lake oval"
CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR), When the venue was lake oval what did the home team score?
SELECT away_team AS score FROM table_name_47 WHERE home_team = "collingwood"
CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR), What did the away team score when they were playing collingwood?
SELECT position FROM table_name_3 WHERE hometown = "fort lauderdale, florida"
CREATE TABLE table_name_3 (position VARCHAR, hometown VARCHAR), What is the position of the player from Fort Lauderdale, Florida?
SELECT position FROM table_name_83 WHERE hometown = "beaumont, texas"
CREATE TABLE table_name_83 (position VARCHAR, hometown VARCHAR), What is the position of the player from Beaumont, Texas?
SELECT position FROM table_name_97 WHERE player = "max redfield"
CREATE TABLE table_name_97 (position VARCHAR, player VARCHAR), What position did Max Redfield play?
SELECT college FROM table_name_58 WHERE school = "liberty county high school"
CREATE TABLE table_name_58 (college VARCHAR, school VARCHAR), What college did the player from Liberty County High School attend?