answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_29 WHERE visitor = "nets"
Name the date when the visitor is nets
CREATE TABLE table_name_29 (date VARCHAR, visitor VARCHAR)
SELECT median_family_income FROM table_name_8 WHERE median_household_income = "$38,137"
What is the Median family income when the Median household income is $38,137?
CREATE TABLE table_name_8 (median_family_income VARCHAR, median_household_income VARCHAR)
SELECT MAX(_number) FROM table_16227492_1 WHERE opponent = "New England Blazers"
Name the most number for new england blazers
CREATE TABLE table_16227492_1 (_number INTEGER, opponent VARCHAR)
SELECT code_name FROM table_25005714_3 WHERE model = "Radeon HD 6650M"
What is every code name for the model Radeon HD 6650m?
CREATE TABLE table_25005714_3 (code_name VARCHAR, model VARCHAR)
SELECT nationality FROM table_name_54 WHERE lane = 4 AND time = "1:11.58"
What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58?
CREATE TABLE table_name_54 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT home FROM table_name_13 WHERE record = "4-6-0"
What was the home team with a 4-6-0 record?
CREATE TABLE table_name_13 (home VARCHAR, record VARCHAR)
SELECT 2 AS nd_leg FROM table_name_46 WHERE agg = "4-9"
What was the 2nd leg score of the aggregate score of 4-9?
CREATE TABLE table_name_46 (agg VARCHAR)
SELECT assist_pass FROM table_name_31 WHERE goal = "5"
Which Assist/pass has a Goal of 5?
CREATE TABLE table_name_31 (assist_pass VARCHAR, goal VARCHAR)
SELECT COUNT(total) FROM table_name_90 WHERE player = "oisin mcconville" AND matches < 5
How many total points did Oisin McConville have from his 5 matches?
CREATE TABLE table_name_90 (total VARCHAR, player VARCHAR, matches VARCHAR)
SELECT date FROM table_name_55 WHERE city = "rio de janeiro"
Name the date for rio de janeiro
CREATE TABLE table_name_55 (date VARCHAR, city VARCHAR)
SELECT thumb_stick FROM table_name_37 WHERE basic_shape = "curved" AND backlit = "yes" AND supplier = "genius"
Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?
CREATE TABLE table_name_37 (thumb_stick VARCHAR, supplier VARCHAR, basic_shape VARCHAR, backlit VARCHAR)
SELECT director_s_ FROM table_name_13 WHERE film = "mi-temps"
Which director made Mi-temps?
CREATE TABLE table_name_13 (director_s_ VARCHAR, film VARCHAR)
SELECT COUNT(points) FROM table_name_43 WHERE entrant = "martini racing" AND engine = "alfa romeo flat-12" AND chassis = "brabham bt45" AND year = 1976
How many points does an entrant of Martini Racing, the engine of an Alfa Romeo flat-12 a chassis of brabham bt45, and the year 1976 have?
CREATE TABLE table_name_43 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR, engine VARCHAR)
SELECT format FROM table_name_44 WHERE date = "may 24, 2008"
Which Format has a Date of may 24, 2008?
CREATE TABLE table_name_44 (format VARCHAR, date VARCHAR)
SELECT home FROM table_name_34 WHERE club = "auxerre"
What is the home record for the Auxerre club?
CREATE TABLE table_name_34 (home VARCHAR, club VARCHAR)
SELECT long FROM table_name_78 WHERE car < 30 AND yards = "0"
What is the long for the player with under 30 carries and 0 yards?
CREATE TABLE table_name_78 (long VARCHAR, car VARCHAR, yards VARCHAR)
SELECT translation FROM table_23915_4 WHERE ipa___rio_de_janeiro__ = "ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə"
What is the original of the ipa ( rio de janeiro )translation ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə?
CREATE TABLE table_23915_4 (translation VARCHAR, ipa___rio_de_janeiro__ VARCHAR)
SELECT _number___county FROM table_name_54 WHERE enrollment < 774 AND school = "eastern pekin"
What's the county of Eastern Pekin school with fewer than 774 enrolled?
CREATE TABLE table_name_54 (_number___county VARCHAR, enrollment VARCHAR, school VARCHAR)
SELECT name FROM table_21536557_2 WHERE time__cet_ = "09:03"
Who is every name for time(cet) of 09:03?
CREATE TABLE table_21536557_2 (name VARCHAR, time__cet_ VARCHAR)
SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?
CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR)
SELECT _percentage_won FROM table_name_12 WHERE team = "durham"
What is the % Won of Team of durham
CREATE TABLE table_name_12 (_percentage_won VARCHAR, team VARCHAR)
SELECT candidates FROM table_1342233_6 WHERE incumbent = "Alfred J. Elliott"
who is the the candidates with incumbent being alfred j. elliott
CREATE TABLE table_1342233_6 (candidates VARCHAR, incumbent VARCHAR)
SELECT SUM(pick) FROM table_name_36 WHERE pba_team = "san miguel beermen" AND college = "san sebastian"
What is the sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian?
CREATE TABLE table_name_36 (pick INTEGER, pba_team VARCHAR, college VARCHAR)
SELECT location FROM table_name_69 WHERE mascot = "lakers"
Can you tell me the Location that has the Mascot of lakers?
CREATE TABLE table_name_69 (location VARCHAR, mascot VARCHAR)
SELECT venue FROM table_name_2 WHERE competition = "2010 fifa world cup qualification"
At what venue was the 2010 FIFA World Cup Qualification?
CREATE TABLE table_name_2 (venue VARCHAR, competition VARCHAR)
SELECT COUNT(attendance) FROM table_12125069_2 WHERE date = "May 20"
How many games were on May 20?
CREATE TABLE table_12125069_2 (attendance VARCHAR, date VARCHAR)
SELECT COUnT AS transfer_window FROM table_17596418_4 WHERE moving_from = "Crystal palace"
How many transfer windows coming from Crystal Palace?
CREATE TABLE table_17596418_4 (COUnT VARCHAR, moving_from VARCHAR)
SELECT AVG(goals_against) FROM table_name_55 WHERE played > 42
What is the average goals against when there are more than 42 played?
CREATE TABLE table_name_55 (goals_against INTEGER, played INTEGER)
SELECT written_by FROM table_19417244_2 WHERE no_in_season = 5
who write the episode 5 in no. in season
CREATE TABLE table_19417244_2 (written_by VARCHAR, no_in_season VARCHAR)
SELECT COUNT(to_par) FROM table_name_86 WHERE year_s__won = "1993"
How many to pars were won in 1993?
CREATE TABLE table_name_86 (to_par VARCHAR, year_s__won VARCHAR)
SELECT time__cst_ FROM table_name_75 WHERE nfl_recap = "recap" AND date = "october 19, 2008"
What time (cst) has and NFL recap of recap with october 19, 2008 as the date?
CREATE TABLE table_name_75 (time__cst_ VARCHAR, nfl_recap VARCHAR, date VARCHAR)
SELECT AVG(top_25) FROM table_name_27 WHERE wins > 0
What is the average top-25 value for majors that have more than 0 wins?
CREATE TABLE table_name_27 (top_25 INTEGER, wins INTEGER)
SELECT no_in_series FROM table_23117208_5 WHERE directed_by = "Matthew Penn"
For the episode directed by Matthew Penn, what is the total number in the series?
CREATE TABLE table_23117208_5 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2
How many silver medals when the bronze is more than 2 and having a rank more than 5?
CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT branding FROM table_name_5 WHERE frequency = "1233khz"
What's the branding for frequency 1233khz?
CREATE TABLE table_name_5 (branding VARCHAR, frequency VARCHAR)
SELECT COUNT(location_attendance) FROM table_27537870_3 WHERE record = "2-5-1"
How many times was the sabres record 2-5-1?
CREATE TABLE table_27537870_3 (location_attendance VARCHAR, record VARCHAR)
SELECT label FROM table_name_14 WHERE catalog = "emb 31956"
What is the label for catalog EMB 31956?
CREATE TABLE table_name_14 (label VARCHAR, catalog VARCHAR)
SELECT title FROM table_18481791_3 WHERE us_viewers__in_millions_ = "3.97"
What is the title when u.s. viewers (millions) is 3.97?
CREATE TABLE table_18481791_3 (title VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT SUM(year) FROM table_name_76 WHERE departed_from = "tampa, fl"
From how many years did tampa, FL depart?
CREATE TABLE table_name_76 (year INTEGER, departed_from VARCHAR)
SELECT SUM(grid) FROM table_name_5 WHERE laps < 6
For Laps smaller than 6, what does the Grid add up to?
CREATE TABLE table_name_5 (grid INTEGER, laps INTEGER)
SELECT high_assists FROM table_name_27 WHERE score = "l 107–112 (ot)"
What player had the high assists when the Score was l 107–112 (ot)?
CREATE TABLE table_name_27 (high_assists VARCHAR, score VARCHAR)
SELECT surface FROM table_name_24 WHERE partner = "david martin" AND score = "4–6, 6–7 (4-7)"
On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)?
CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR, score VARCHAR)
SELECT city FROM table_name_97 WHERE year = 1889
What city was in 1889?
CREATE TABLE table_name_97 (city VARCHAR, year VARCHAR)
SELECT COUNT(country) FROM table_229059_2 WHERE champion = "Se Ri Pak (2)"
How many different countries did the champion Se Ri Pak (2) represent?
CREATE TABLE table_229059_2 (country VARCHAR, champion VARCHAR)
SELECT tikhak FROM table_name_77 WHERE yonguk = "wu¹ti¹"
Which Tikhak has a Yonguk of wu¹ti¹?
CREATE TABLE table_name_77 (tikhak VARCHAR, yonguk VARCHAR)
SELECT contestant FROM table_21346767_3 WHERE hometown = "Villa Hermosa"
Name the contestant for villa hermosa
CREATE TABLE table_21346767_3 (contestant VARCHAR, hometown VARCHAR)
SELECT ergative FROM table_name_56 WHERE nominative = "chven-i"
With a nominative of chven-i what is the ergative?
CREATE TABLE table_name_56 (ergative VARCHAR, nominative VARCHAR)
SELECT event FROM table_name_8 WHERE name = "rashid sidek"
What event did Rashid Sidek participate in?
CREATE TABLE table_name_8 (event VARCHAR, name VARCHAR)
SELECT winner FROM table_name_67 WHERE tournament = "indian wells"
Who was the winner in the Indian Wells?
CREATE TABLE table_name_67 (winner VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_28 WHERE country = "united states" AND place = "t9" AND player = "jay hebert"
What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"?
CREATE TABLE table_name_28 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT incumbent FROM table_27487712_1 WHERE elected = 1978
Who was the incumbent for the election in 1978?
CREATE TABLE table_27487712_1 (incumbent VARCHAR, elected VARCHAR)
SELECT stadium FROM table_11206787_5 WHERE team = "Alloa Athletic"
What is the stadium for alloa athletic?
CREATE TABLE table_11206787_5 (stadium VARCHAR, team VARCHAR)
SELECT player FROM table_name_47 WHERE wnba_team = "chicago sky"
Which player was picked for the Chicago Sky?
CREATE TABLE table_name_47 (player VARCHAR, wnba_team VARCHAR)
SELECT network FROM table_name_93 WHERE service = "dish" AND language = "hindi" AND origin_of_programming = "india" AND genre = "general"
Which Hindi network is based in India and uses dish service and shows general programming?
CREATE TABLE table_name_93 (network VARCHAR, genre VARCHAR, origin_of_programming VARCHAR, service VARCHAR, language VARCHAR)
SELECT MIN(slope_length) FROM table_17814458_1 WHERE type = "gondola"
Name the slope length for gondola
CREATE TABLE table_17814458_1 (slope_length INTEGER, type VARCHAR)
SELECT team FROM table_name_58 WHERE qual_2 < 59.612 AND best = 59.14
Which team has a qualifying 2 time under 59.612 and a best of 59.14?
CREATE TABLE table_name_58 (team VARCHAR, qual_2 VARCHAR, best VARCHAR)
SELECT date FROM table_name_85 WHERE score = "1–2"
What is the Date of the Competition with a Score of 1–2?
CREATE TABLE table_name_85 (date VARCHAR, score VARCHAR)
SELECT semifinal_average FROM table_16268026_3 WHERE preliminary_average = "9.084 (1)"
What is the semifinal average where the preliminary average is 9.084 (1) ?
CREATE TABLE table_16268026_3 (semifinal_average VARCHAR, preliminary_average VARCHAR)
SELECT record FROM table_23308178_7 WHERE opponent = "Montreal Canadiens"
what are the previous performance details for games involving the montreal canadiens?
CREATE TABLE table_23308178_7 (record VARCHAR, opponent VARCHAR)
SELECT last_appearance FROM table_name_65 WHERE wins < 1 AND losses = 1 AND school = "oklahoma state"
What is Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State?
CREATE TABLE table_name_65 (last_appearance VARCHAR, school VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT nfl_recap FROM table_name_1 WHERE record = "1–3"
Which NFL Recap had a Record of 1–3?
CREATE TABLE table_name_1 (nfl_recap VARCHAR, record VARCHAR)
SELECT winning_driver FROM table_name_33 WHERE winning_constructor = "mercedes" AND name = "elgin trophy"
Which Winning driver has a Winning constructor of mercedes, and a Name of elgin trophy?
CREATE TABLE table_name_33 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT SUM(top_25) FROM table_name_23 WHERE events < 0
What is the total Top-25 when the events were less than 0?
CREATE TABLE table_name_23 (top_25 INTEGER, events INTEGER)
SELECT result FROM table_26842217_12 WHERE broadcast = "SEC Network"
What was the result in the game broadcast on the SEC Network?
CREATE TABLE table_26842217_12 (result VARCHAR, broadcast VARCHAR)
SELECT high_points FROM table_name_42 WHERE location_attendance = "united center 20,389"
Who had the high points at the United Center 20,389?
CREATE TABLE table_name_42 (high_points VARCHAR, location_attendance VARCHAR)
SELECT _number FROM table_28348757_6 WHERE us_viewers__million_ = "0.79"
what are the numbers of episodes that had 0.79 million US views?
CREATE TABLE table_28348757_6 (_number VARCHAR, us_viewers__million_ VARCHAR)
SELECT broadcast_date FROM table_103084_4 WHERE bbc_one_total_viewing > 11616996.338225884
What date was BBC One total viewing greater then 11616996.338225884?
CREATE TABLE table_103084_4 (broadcast_date VARCHAR, bbc_one_total_viewing INTEGER)
SELECT MIN(class_year) FROM table_22982552_9 WHERE teams = "Buffalo"
What class year was the player who played for Buffalo from?
CREATE TABLE table_22982552_9 (class_year INTEGER, teams VARCHAR)
SELECT output FROM table_name_90 WHERE ir_leds = "no"
What was the output with no IR LEDs?
CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR)
SELECT school_year FROM table_14603212_5 WHERE class_aAA = Argyle
What are the school years where class "AAA" is argyle?
CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAA VARCHAR, Argyle VARCHAR)
SELECT school FROM table_22043925_1 WHERE location = "Adelaide"
What is every school for the Adelaide location?
CREATE TABLE table_22043925_1 (school VARCHAR, location VARCHAR)
SELECT position FROM table_name_81 WHERE round < 8 AND overall = 48
What is the position of the player with a round less than 8 and an overall of 48?
CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT MIN(area___ha__) FROM table_143579_1 WHERE island = "Colonsay"
What is the area of Colonsay Island?
CREATE TABLE table_143579_1 (area___ha__ INTEGER, island VARCHAR)
SELECT opponent FROM table_21350934_2 WHERE attendance = "N/A"
Who is the opponent when the attendance is n/a?
CREATE TABLE table_21350934_2 (opponent VARCHAR, attendance VARCHAR)
SELECT semifinalists FROM table_name_23 WHERE tournament = "stockholm"
Which Semifinalist has a Tournament of stockholm?
CREATE TABLE table_name_23 (semifinalists VARCHAR, tournament VARCHAR)
SELECT COUNT(place) FROM table_name_73 WHERE draw < 4 AND lost < 6
What was the total number of places in which the draw was less than 4 and the amount lost was less than 6?
CREATE TABLE table_name_73 (place VARCHAR, draw VARCHAR, lost VARCHAR)
SELECT common_name FROM table_name_18 WHERE color = "darker colors"
What is the common name for the creature with darker colors?
CREATE TABLE table_name_18 (common_name VARCHAR, color VARCHAR)
SELECT pos FROM table_name_21 WHERE first_round = "35.7"
What position does the player with a first round score of 35.7 play?
CREATE TABLE table_name_21 (pos VARCHAR, first_round VARCHAR)
SELECT pat_robertson FROM table_name_12 WHERE bob_dole = "26%" AND george_hw_bush = "47%"
When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have?
CREATE TABLE table_name_12 (pat_robertson VARCHAR, bob_dole VARCHAR, george_hw_bush VARCHAR)
SELECT COUNT(high_assists) FROM table_23286223_8 WHERE date = "March 4"
How many different players did the most high assists on the March 4 game?
CREATE TABLE table_23286223_8 (high_assists VARCHAR, date VARCHAR)
SELECT silver FROM table_name_15 WHERE year = 1982
Who won silver in 1982?
CREATE TABLE table_name_15 (silver VARCHAR, year VARCHAR)
SELECT station FROM table_name_65 WHERE zone_2010 = "7"
Which Station has a Zone 2010 of 7?
CREATE TABLE table_name_65 (station VARCHAR, zone_2010 VARCHAR)
SELECT date_of_birth FROM table_name_61 WHERE pos = "cb" AND height = "m (ft 4in)"
What is the Date of Birth of the CB Player with a Height of m (ft 4in)?
CREATE TABLE table_name_61 (date_of_birth VARCHAR, pos VARCHAR, height VARCHAR)
SELECT position FROM table_16441561_5 WHERE college = "Laval"
Which positions had players from Laval college
CREATE TABLE table_16441561_5 (position VARCHAR, college VARCHAR)
SELECT COUNT(status) FROM table_1341522_36 WHERE incumbent = "Alex McMillan"
How many districts are respresented by Alex McMillan?
CREATE TABLE table_1341522_36 (status VARCHAR, incumbent VARCHAR)
SELECT date FROM table_21796261_4 WHERE location = "Taylor Field"
When was the game on Taylor Field played?
CREATE TABLE table_21796261_4 (date VARCHAR, location VARCHAR)
SELECT category FROM table_name_54 WHERE for_the_show = "kasautii zindagii kay" AND year = 2006
For 2006 what category has the Show of kasautii zindagii kay?
CREATE TABLE table_name_54 (category VARCHAR, for_the_show VARCHAR, year VARCHAR)
SELECT score FROM table_name_83 WHERE player = "nick faldo"
What is the score for Nick Faldo?
CREATE TABLE table_name_83 (score VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_35 WHERE score = 73 - 70 - 71 - 72 = 286
What is the To par of the Player with a Score of 73-70-71-72=286?
CREATE TABLE table_name_35 (to_par VARCHAR, score VARCHAR)
SELECT MIN(bronze) FROM table_name_71 WHERE gold < 2 AND rank = "29" AND total > 3
What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?
CREATE TABLE table_name_71 (bronze INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT title FROM table_name_37 WHERE name = "gongbo"
What was Gongbo's title?
CREATE TABLE table_name_37 (title VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_38 WHERE competition = "friendly" AND date = "15-08-2012"
Which opponent is friendly and played on 15-08-2012?
CREATE TABLE table_name_38 (opponent VARCHAR, competition VARCHAR, date VARCHAR)
SELECT SUM(horsepowers) FROM table_name_51 WHERE year < 1974 AND tonnage = 4437
How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?
CREATE TABLE table_name_51 (horsepowers INTEGER, year VARCHAR, tonnage VARCHAR)
SELECT school FROM table_21995420_6 WHERE basic_elements = 52
What is every school with basic elements of 52?
CREATE TABLE table_21995420_6 (school VARCHAR, basic_elements VARCHAR)
SELECT SUM(attendance) FROM table_name_69 WHERE record = "5-9-0"
What is the total of attendance with a Record of 5-9-0?
CREATE TABLE table_name_69 (attendance INTEGER, record VARCHAR)
SELECT total_freshwater_withdrawal__km_3__yr_ FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1029(96%)"
In Pakistan, what was the total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 1029(96%)?
CREATE TABLE table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
SELECT current_affiliation FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"
Who currently affiliates in San Francisco - Oakland - San Jose?
CREATE TABLE table_1553485_1 (current_affiliation VARCHAR, city_of_license__market VARCHAR)
SELECT category FROM table_name_4 WHERE nominee = "michael stewart"
Which category was Michael Stewart a nominee in?
CREATE TABLE table_name_4 (category VARCHAR, nominee VARCHAR)
SELECT club FROM table_name_9 WHERE drawn = "0" AND try_bonus = "5"
What is Club, when Drawn is "0", and when Try Bonus is "5"?
CREATE TABLE table_name_9 (club VARCHAR, drawn VARCHAR, try_bonus VARCHAR)
SELECT MAX(game) FROM table_13619027_10
What is the highest game number?
CREATE TABLE table_13619027_10 (game INTEGER)