output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT club FROM table_name_40 WHERE goals > 0 AND season = "2011"
CREATE TABLE table_name_40 (club VARCHAR, goals VARCHAR, season VARCHAR), What club had over 0 goals in 2011?
SELECT team FROM table_name_27 WHERE make = "dodge"
CREATE TABLE table_name_27 (team VARCHAR, make VARCHAR), What team drove a Dodge vehicle?
SELECT pos FROM table_name_31 WHERE driver = "stacy compton"
CREATE TABLE table_name_31 (pos VARCHAR, driver VARCHAR), What was Stacy Compton's position?
SELECT AVG(pos) FROM table_name_82 WHERE car__number = 59
CREATE TABLE table_name_82 (pos INTEGER, car__number VARCHAR), What was the average position of car number 59?
SELECT loss FROM table_name_51 WHERE date = "april 25"
CREATE TABLE table_name_51 (loss VARCHAR, date VARCHAR), How much was the loss of April 25?
SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 2
CREATE TABLE table_name_76 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR), What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2?
SELECT AVG(total) FROM table_name_3 WHERE rank > 1 AND bronze > 8
CREATE TABLE table_name_3 (total INTEGER, rank VARCHAR, bronze VARCHAR), What is the average Total with a Rank greater than 1, and a Bronze larger than 8?
SELECT MIN(silver) FROM table_name_7 WHERE nation = "vietnam"
CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR), What is the smallest silver from Vietnam?
SELECT MAX(silver) FROM table_name_34 WHERE nation = "malaysia" AND total < 23
CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, total VARCHAR), What is the largest silver from Malaysia with a Total smaller than 23?
SELECT MAX(bronze) FROM table_name_86 WHERE rank = 2 AND gold < 8
CREATE TABLE table_name_86 (bronze INTEGER, rank VARCHAR, gold VARCHAR), What is the largest bronze with a Rank of 2, and a Gold smaller than 8?
SELECT COUNT(rank) FROM table_name_1 WHERE bronze < 8 AND total < 7 AND gold < 1
CREATE TABLE table_name_1 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR), How many ranks have a Bronze smaller than 8, and a Total smaller than 7, and a Gold smaller than 1?
SELECT capital FROM table_name_75 WHERE voivodeship_or_city = "nowogródzkie"
CREATE TABLE table_name_75 (capital VARCHAR, voivodeship_or_city VARCHAR), Voivodeship or city of nowogródzkie has what capital?
SELECT area__1930__in_1, 000 AS skm_2 FROM table_name_72 WHERE capital = "brześć nad bugiem"
CREATE TABLE table_name_72 (area__1930__in_1 VARCHAR, capital VARCHAR), Capital of brześć nad bugiem has what area (1930) in 1000skm?
SELECT population__1931__in_1, 000 AS s FROM table_name_88 WHERE capital = "brześć nad bugiem"
CREATE TABLE table_name_88 (population__1931__in_1 VARCHAR, capital VARCHAR), Capital of brześć nad bugiem has what population (1931) in 1,000s?
SELECT poles FROM table_name_94 WHERE wins > 0 AND podiums < 17 AND fastest_laps = 0
CREATE TABLE table_name_94 (poles VARCHAR, fastest_laps VARCHAR, wins VARCHAR, podiums VARCHAR), Which Poles has a Wins larger than 0, and a Podiums smaller than 17?
SELECT MAX(poles) FROM table_name_74 WHERE fastest_laps = 0 AND races = 17 AND wins > 0 AND podiums < 2
CREATE TABLE table_name_74 (poles INTEGER, podiums VARCHAR, wins VARCHAR, fastest_laps VARCHAR, races VARCHAR), which Poles has a Fastest Laps of 0, and a Races of 17, and a Wins larger than 0, and a Podiums smaller than 2?
SELECT SUM(fastest_laps) FROM table_name_81 WHERE poles = 4 AND races > 178
CREATE TABLE table_name_81 (fastest_laps INTEGER, poles VARCHAR, races VARCHAR), How many Fastest Laps have Poles of 4, and Races larger than 178?
SELECT MAX(fastest_laps) FROM table_name_65 WHERE season = "2009" AND poles < 0
CREATE TABLE table_name_65 (fastest_laps INTEGER, season VARCHAR, poles VARCHAR), Which the Fastest Lap has a Season of 2009 and Poles smaller than 0?
SELECT AVG(fastest_laps) FROM table_name_8 WHERE poles = 0 AND season = "2002" AND podiums < 0
CREATE TABLE table_name_8 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, season VARCHAR), Which the Fastest Laps that have Poles of 0, and a Season of 2002, and a Podiums smaller than 0?
SELECT variant FROM table_name_68 WHERE launch_site = "white sands"
CREATE TABLE table_name_68 (variant VARCHAR, launch_site VARCHAR), What Variant has a Launch site that is white sands?
SELECT score FROM table_name_85 WHERE year = 1990
CREATE TABLE table_name_85 (score VARCHAR, year VARCHAR), what was the score in 1990
SELECT AVG(rank) FROM table_name_40 WHERE year = 1950
CREATE TABLE table_name_40 (rank INTEGER, year VARCHAR), In 1950 what is the average rank?
SELECT name FROM table_name_47 WHERE rank < 6 AND height_feet___m = "617 / 188"
CREATE TABLE table_name_47 (name VARCHAR, rank VARCHAR, height_feet___m VARCHAR), What is the building's name that is 617 / 188 in height and ranked less than 6?
SELECT COUNT(round) FROM table_name_1 WHERE time = "6:21"
CREATE TABLE table_name_1 (round VARCHAR, time VARCHAR), What is the number of rounds that took place for the fight that lasted 6:21?
SELECT AVG(year_of_most_recent_appearance) FROM table_name_27 WHERE year_of_first_appearance > 1976 AND corps_name = "boston crusaders"
CREATE TABLE table_name_27 (year_of_most_recent_appearance INTEGER, year_of_first_appearance VARCHAR, corps_name VARCHAR), What is the average year of the most recent appearance of the Boston Crusaders, who had their first appearance after 1976?
SELECT COUNT(year_of_most_recent_appearance) FROM table_name_95 WHERE corps_name = "suncoast sound" AND number_of_finals_appearances > 7
CREATE TABLE table_name_95 (year_of_most_recent_appearance VARCHAR, corps_name VARCHAR, number_of_finals_appearances VARCHAR), What is the year of most recent appearance of the Suncoast sound, who had more than 7 finals appearances?
SELECT COUNT(year_of_first_appearance) FROM table_name_38 WHERE corps_name = "black knights" AND number_of_finals_appearances < 1
CREATE TABLE table_name_38 (year_of_first_appearance VARCHAR, corps_name VARCHAR, number_of_finals_appearances VARCHAR), What is the year of the first appearance of the Black Knights, who had less than 1 finals appearances?
SELECT COUNT(pick__number) FROM table_name_37 WHERE college = "west virginia" AND overall < 203
CREATE TABLE table_name_37 (pick__number VARCHAR, college VARCHAR, overall VARCHAR), What is the Pick # of the player with an Overall less than 203 from West Virginia?
SELECT AVG(round) FROM table_name_93 WHERE college = "florida" AND overall < 166
CREATE TABLE table_name_93 (round INTEGER, college VARCHAR, overall VARCHAR), In what Round was the draft pick from Florida with an Overall less than 166?
SELECT MAX(silver) FROM table_name_38 WHERE bronze = 1 AND gold < 4
CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, gold VARCHAR), What is the highest number of silver when there is 1 bronze and less than 4 golds?
SELECT bronze FROM table_name_69 WHERE silver < 3 AND total = 7
CREATE TABLE table_name_69 (bronze VARCHAR, silver VARCHAR, total VARCHAR), How many bronze medals are there when there are fewer than 3 silver medals and 7 medals total?
SELECT team FROM table_name_73 WHERE rank = 3
CREATE TABLE table_name_73 (team VARCHAR, rank VARCHAR), What team has rank 3?
SELECT playing_for FROM table_name_27 WHERE _number_100 > 36 AND score = "122"
CREATE TABLE table_name_27 (playing_for VARCHAR, _number_100 VARCHAR, score VARCHAR), Which Playing For has a # 100 larger than 36, and a Score of 122?
SELECT MAX(_number_100) FROM table_name_87 WHERE season = "1991" AND against = "surrey"
CREATE TABLE table_name_87 (_number_100 INTEGER, season VARCHAR, against VARCHAR), Which # 100 has a Season of 1991, and an Against of surrey?
SELECT SUM(_number_100) FROM table_name_33 WHERE season = "1990" AND against = "warwickshire"
CREATE TABLE table_name_33 (_number_100 INTEGER, season VARCHAR, against VARCHAR), Which sum of # 100 has a Season of 1990, and an Against of warwickshire?
SELECT against FROM table_name_98 WHERE season = "1987/88" AND _number_100 > 13 AND score = "139"
CREATE TABLE table_name_98 (against VARCHAR, score VARCHAR, season VARCHAR, _number_100 VARCHAR), Which Against has a Season of 1987/88, and a # 100 larger than 13, and a Score of 139?
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE wins > 37
CREATE TABLE table_name_90 (earnings___ INTEGER, wins INTEGER), What is the highest earnings for the golfer who has more than 37 wins?
SELECT webcast FROM table_name_2 WHERE format = "tejano" AND callsign = "kbdr"
CREATE TABLE table_name_2 (webcast VARCHAR, format VARCHAR, callsign VARCHAR), What Tejano webcast has a callsign of KBDR?
SELECT MAX(frequency) FROM table_name_4 WHERE callsign = "kbdr"
CREATE TABLE table_name_4 (frequency INTEGER, callsign VARCHAR), What's the highest frequency of the KBDR callsign?
SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3
CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR), What's the website for the Listen Live webcast on the 99.3 frequency?
SELECT webcast FROM table_name_46 WHERE website = "digital1073.com"
CREATE TABLE table_name_46 (webcast VARCHAR, website VARCHAR), Which Webcast has the digital1073.com website?
SELECT date FROM table_name_14 WHERE tournament = "at&t pebble beach national pro-am" AND margin_of_victory = "1 stroke" AND to_par = "–11"
CREATE TABLE table_name_14 (date VARCHAR, to_par VARCHAR, tournament VARCHAR, margin_of_victory VARCHAR), Which Date has a Tournament of at&t pebble beach national pro-am, and a Margin of victory of 1 stroke, and a To par of –11?
SELECT tournament FROM table_name_39 WHERE margin_of_victory = "1 stroke" AND date = "oct 7, 1990"
CREATE TABLE table_name_39 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR), Which Tournament has a Margin of victory of 1 stroke, and a Date of oct 7, 1990?
SELECT date FROM table_name_31 WHERE winning_score = 69 - 68 - 68 - 70 = 275
CREATE TABLE table_name_31 (date VARCHAR, winning_score VARCHAR), Which Date has a Winning score of 69-68-68-70=275?
SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261
CREATE TABLE table_name_22 (to_par VARCHAR, winning_score VARCHAR), Which To par has a Winning score of 64-68-66-63=261?
SELECT winning_score FROM table_name_67 WHERE tournament = "walt disney world/oldsmobile classic"
CREATE TABLE table_name_67 (winning_score VARCHAR, tournament VARCHAR), Which Winning score has a Tournament of walt disney world/oldsmobile classic?
SELECT COUNT(silver) FROM table_name_91 WHERE gold < 0
CREATE TABLE table_name_91 (silver VARCHAR, gold INTEGER), What is the number in total of silver with a gold smaller than 0?
SELECT SUM(gold) FROM table_name_98 WHERE rank = "3" AND silver > 7
CREATE TABLE table_name_98 (gold INTEGER, rank VARCHAR, silver VARCHAR), What is the sum of gold with a rank that is 3 and a silver larger than 7?
SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 17
CREATE TABLE table_name_54 (total INTEGER, nation VARCHAR, gold VARCHAR), What is the average total with a nation of thailand with a gold smaller than 17?
SELECT AVG(gold) FROM table_name_17 WHERE bronze < 5 AND rank = "8"
CREATE TABLE table_name_17 (gold INTEGER, bronze VARCHAR, rank VARCHAR), What is the average gold with a bronze smaller than 5 with a rank of 8?
SELECT MIN(launch) FROM table_name_58 WHERE origin = "beijing"
CREATE TABLE table_name_58 (launch INTEGER, origin VARCHAR), What is the earliest launch that was from Beijing?
SELECT name FROM table_name_19 WHERE hanzi = "深圳卫视"
CREATE TABLE table_name_19 (name VARCHAR, hanzi VARCHAR), With a Hanzi of 深圳卫视, what is the name?
SELECT owner FROM table_name_30 WHERE launch > 1997 AND hanzi = "厦门卫视"
CREATE TABLE table_name_30 (owner VARCHAR, launch VARCHAR, hanzi VARCHAR), Who is the owner of the object launched after 1997 and a Hanzi of 厦门卫视?
SELECT MAX(week) FROM table_name_91 WHERE date = "november 18, 1951"
CREATE TABLE table_name_91 (week INTEGER, date VARCHAR), What was the latest week that had a game on November 18, 1951?
SELECT opponent FROM table_name_18 WHERE date = "november 11, 1951"
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR), Who was the opponent on November 11, 1951?
SELECT COUNT(attendance) FROM table_name_13 WHERE result = "w 31-21" AND week < 9
CREATE TABLE table_name_13 (attendance VARCHAR, result VARCHAR, week VARCHAR), What was the total attendance with a result of W 31-21 before week 9?
SELECT lifespan FROM table_name_37 WHERE majors > 1 AND name = "fuzzy zoeller"
CREATE TABLE table_name_37 (lifespan VARCHAR, majors VARCHAR, name VARCHAR), What lifespan has a majors greater than 1, and fuzzy zoeller as the name?
SELECT visitor FROM table_name_15 WHERE date = "november 27"
CREATE TABLE table_name_15 (visitor VARCHAR, date VARCHAR), what visitor came on november 27
SELECT visitor FROM table_name_33 WHERE home = "chicago"
CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR), what team was the visitor in the chicago game
SELECT record FROM table_name_40 WHERE home = "chicago"
CREATE TABLE table_name_40 (record VARCHAR, home VARCHAR), what game was in chicago
SELECT player FROM table_name_24 WHERE date = "may 10, 1999"
CREATE TABLE table_name_24 (player VARCHAR, date VARCHAR), Which player is associated with the date May 10, 1999?
SELECT player FROM table_name_93 WHERE date = "july 6, 1949"
CREATE TABLE table_name_93 (player VARCHAR, date VARCHAR), Which player is associated with the date July 6, 1949?
SELECT date FROM table_name_40 WHERE player = "wilbert robinson"
CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR), Which date is associated with the player Wilbert Robinson?
SELECT player FROM table_name_63 WHERE date = "june 14, 1969"
CREATE TABLE table_name_63 (player VARCHAR, date VARCHAR), Which player is associated with the date June 14, 1969?
SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946"
CREATE TABLE table_name_79 (rbis INTEGER, team VARCHAR, date VARCHAR), When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs?
SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-3"
CREATE TABLE table_name_77 (game INTEGER, record VARCHAR), What is the sum of games for a record of 33-13-3?
SELECT SUM(january) FROM table_name_36 WHERE record = "27-12-3" AND game < 42
CREATE TABLE table_name_36 (january INTEGER, record VARCHAR, game VARCHAR), What was the sum of January values with a record of 27-12-3 for a game less than 42?
SELECT COUNT(january) FROM table_name_30 WHERE opponent = "philadelphia flyers"
CREATE TABLE table_name_30 (january VARCHAR, opponent VARCHAR), What is the number in January for Philadelphia Flyers as opponents?
SELECT MIN(game) FROM table_name_48 WHERE record = "32-12-3"
CREATE TABLE table_name_48 (game INTEGER, record VARCHAR), What is the lowest game for a record of 32-12-3?
SELECT MIN(attendance) FROM table_name_95 WHERE record = "50-36"
CREATE TABLE table_name_95 (attendance INTEGER, record VARCHAR), What was the lowest attendance at the game with a record of 50-36?
SELECT opponent FROM table_name_74 WHERE loss = "westbrook (2-2)"
CREATE TABLE table_name_74 (opponent VARCHAR, loss VARCHAR), Who was the opponent at the game that had a loss of Westbrook (2-2)?
SELECT COUNT(sales) FROM table_name_31 WHERE album_title = "scouting for girls"
CREATE TABLE table_name_31 (sales VARCHAR, album_title VARCHAR), How many copies of scouting for girls were sold?
SELECT agg FROM table_name_2 WHERE team_2 = "dynamo moscow"
CREATE TABLE table_name_2 (agg VARCHAR, team_2 VARCHAR), What is the agg of team 2 Dynamo Moscow?
SELECT 1 AS st_leg FROM table_name_27 WHERE team_2 = "portol drac palma mallorca"
CREATE TABLE table_name_27 (team_2 VARCHAR), What is the 1st leg for team 2 Portol Drac Palma Mallorca?
SELECT guest FROM table_name_16 WHERE venue = "stadion prljanije"
CREATE TABLE table_name_16 (guest VARCHAR, venue VARCHAR), Who was the guest at Stadion Prljanije?
SELECT guest FROM table_name_98 WHERE attendance = 3
CREATE TABLE table_name_98 (guest VARCHAR, attendance VARCHAR), Who was the guest when attendance was 3?
SELECT venue FROM table_name_24 WHERE home = "fk crvena stijena"
CREATE TABLE table_name_24 (venue VARCHAR, home VARCHAR), In what venue did FK Crvena Stijena play at home?
SELECT SUM(attendance) FROM table_name_80 WHERE score = "2:0"
CREATE TABLE table_name_80 (attendance INTEGER, score VARCHAR), What is the sum of attendance when the score was 2:0?
SELECT attendance FROM table_name_82 WHERE score = "0:1"
CREATE TABLE table_name_82 (attendance VARCHAR, score VARCHAR), How many were in attendance with a score of 0:1?
SELECT home FROM table_name_88 WHERE score = "2:2"
CREATE TABLE table_name_88 (home VARCHAR, score VARCHAR), Who was at home when the score was 2:2?
SELECT score FROM table_name_16 WHERE opponent = "@ blue jays" AND date = "june 7"
CREATE TABLE table_name_16 (score VARCHAR, opponent VARCHAR, date VARCHAR), What Score has an Opponent of @ Blue Jays with a Date of June 7?
SELECT time FROM table_name_72 WHERE loss = "okajima (1-2)"
CREATE TABLE table_name_72 (time VARCHAR, loss VARCHAR), What Time is listed for the Loss of Okajima (1-2)?
SELECT loss FROM table_name_56 WHERE date = "june 2"
CREATE TABLE table_name_56 (loss VARCHAR, date VARCHAR), What Loss is recorded for the Date June 2?
SELECT COUNT(win__percentage) FROM table_name_78 WHERE appearances = 4 AND losses > 3
CREATE TABLE table_name_78 (win__percentage VARCHAR, appearances VARCHAR, losses VARCHAR), What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3?
SELECT MIN(appearances) FROM table_name_30 WHERE win__percentage = 0.706
CREATE TABLE table_name_30 (appearances INTEGER, win__percentage VARCHAR), What's listed as the lowest Appearances with a Win % of 0.706?
SELECT MIN(losses) FROM table_name_60 WHERE wins = 1 AND team = "dallas stars" AND win__percentage < 0.25
CREATE TABLE table_name_60 (losses INTEGER, win__percentage VARCHAR, wins VARCHAR, team VARCHAR), What's the lowest Losses recorded wiht a Wins of 1, Team of Dallas Stars, and a Win % that's smaller than 0.25?
SELECT district FROM table_name_52 WHERE incumbent = "benjamin eggleston"
CREATE TABLE table_name_52 (district VARCHAR, incumbent VARCHAR), What district has benjamin eggleston for incumbent?
SELECT party FROM table_name_11 WHERE incumbent = "tobias a. plants"
CREATE TABLE table_name_11 (party VARCHAR, incumbent VARCHAR), Which party is tobias a. plants the incumbent?
SELECT district FROM table_name_89 WHERE result = "retired republican hold" AND incumbent = "rufus p. spalding"
CREATE TABLE table_name_89 (district VARCHAR, result VARCHAR, incumbent VARCHAR), wWhich district has a retired republican hold with an incumbent of rufus p. spalding?
SELECT district FROM table_name_67 WHERE result = "retired republican hold" AND incumbent = "rufus p. spalding"
CREATE TABLE table_name_67 (district VARCHAR, result VARCHAR, incumbent VARCHAR), Which district has a retired republican hold and an incumbent of rufus p. spalding?
SELECT tournament FROM table_name_25 WHERE 2012 = "a" AND 2011 = "2r"
CREATE TABLE table_name_25 (tournament VARCHAR), Which tournament had a 2012 of a and a 2011 of 2r?
SELECT 2009 FROM table_name_72 WHERE 2010 = "wta premier 5 tournaments"
CREATE TABLE table_name_72 (Id VARCHAR), Which 2009's 2010 featured the wta premier 5 tournaments?
SELECT 2011 FROM table_name_24 WHERE tournament = "indian wells"
CREATE TABLE table_name_24 (tournament VARCHAR), Which 2011's tournament was Indian Wells?
SELECT 2010 FROM table_name_2 WHERE tournament = "olympic games"
CREATE TABLE table_name_2 (tournament VARCHAR), Which 2010 stat featured the tournament of the Olympic Games?
SELECT date FROM table_name_5 WHERE attendance = "15,105"
CREATE TABLE table_name_5 (date VARCHAR, attendance VARCHAR), When did the Indians play a game with 15,105 people in attendance?
SELECT opponent FROM table_name_89 WHERE date = "april 23"
CREATE TABLE table_name_89 (opponent VARCHAR, date VARCHAR), Who did the Indians play on April 23?
SELECT MIN(laps) FROM table_name_86 WHERE rider = "marco simoncelli" AND grid > 11
CREATE TABLE table_name_86 (laps INTEGER, rider VARCHAR, grid VARCHAR), What is the lowest number of laps for Marco Simoncelli on a grid higher than 11?
SELECT rider FROM table_name_67 WHERE laps < 20 AND grid > 23
CREATE TABLE table_name_67 (rider VARCHAR, laps VARCHAR, grid VARCHAR), Who is the rider who did less than 20 laps on a grid number greater than 23?
SELECT MIN(grid) FROM table_name_74 WHERE manufacturer = "ktm" AND laps > 20
CREATE TABLE table_name_74 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR), What is the lowest grid number that had a rider with KTM as the manufacturer who did more than 20 laps?
SELECT tournament FROM table_name_46 WHERE date = "22 october 2012"
CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR), What is the tournament on 22 October 2012?