answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT team__number2 FROM table_name_31 WHERE team__number1 = "deport"
What is the team #2 with Deport as team #1?
CREATE TABLE table_name_31 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "14.1"
What is the seat of the county that has a density of 14.1?
CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR)
SELECT y_ = _2008 FROM table_214479_8 WHERE expression = "Easter Day (Julian calendar)"
what is the y = 2008 when the expression is easter day (julian calendar)?
CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, expression VARCHAR)
SELECT high_assists FROM table_name_78 WHERE date = "march 30"
who had the high assists on march 30?
CREATE TABLE table_name_78 (high_assists VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_23 WHERE date = "october 11, 2013"
What tournament took place on October 11, 2013?
CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR)
SELECT couple FROM table_19744915_18 WHERE rank = 9
When 9 is the rank who are the couple?
CREATE TABLE table_19744915_18 (couple VARCHAR, rank VARCHAR)
SELECT result FROM table_name_89 WHERE opponent_number = "tcu"
What is the result for opponent TCU?
CREATE TABLE table_name_89 (result VARCHAR, opponent_number VARCHAR)
SELECT opponent FROM table_name_97 WHERE record = "38-34-10"
Name the opponent with record of 38-34-10
CREATE TABLE table_name_97 (opponent VARCHAR, record VARCHAR)
SELECT team_2 FROM table_name_86 WHERE score = "2 - 1"
What is Team 2, when Score is 2 - 1?
CREATE TABLE table_name_86 (team_2 VARCHAR, score VARCHAR)
SELECT status FROM table_name_19 WHERE province = "ontario" AND rank = 86
What is the listed Status that has the Province of Ontario and Rank of 86?
CREATE TABLE table_name_19 (status VARCHAR, province VARCHAR, rank VARCHAR)
SELECT club FROM table_name_16 WHERE points_for = "275"
Which club has 275 points?
CREATE TABLE table_name_16 (club VARCHAR, points_for VARCHAR)
SELECT location_attendance FROM table_27882867_4 WHERE game = 3
Name the location attendance for 3 game
CREATE TABLE table_27882867_4 (location_attendance VARCHAR, game VARCHAR)
SELECT provider FROM table_name_10 WHERE up__up_to_kbit_s_ = 1180
who is the provider when up (up to kbit/s) is 1180?
CREATE TABLE table_name_10 (provider VARCHAR, up__up_to_kbit_s_ VARCHAR)
SELECT COUNT(urban_population__2010_) FROM table_16489766_2 WHERE pinyin = "Chángchūn"
What is the total urban population of the city with the pinyin translation chángchūn?
CREATE TABLE table_16489766_2 (urban_population__2010_ VARCHAR, pinyin VARCHAR)
SELECT school_club_team FROM table_name_34 WHERE player = "paul dawkins"
What school did Paul Dawkins play for?
CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR)
SELECT MAX(pick__number) FROM table_10975034_4 WHERE cfl_team = "Calgary Stampeders"
What is the maximum number of picks for the CFL team Calgary Stampeders?
CREATE TABLE table_10975034_4 (pick__number INTEGER, cfl_team VARCHAR)
SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" AND points > 0
Which Entrant has an Engine of climax straight-4, and Points larger than 0?
CREATE TABLE table_name_44 (entrant VARCHAR, engine VARCHAR, points VARCHAR)
SELECT champion FROM table_25563779_4 WHERE third = "Bruno Bonifacio"
If the third name is Bruno Bonifacio, what is the champion?
CREATE TABLE table_25563779_4 (champion VARCHAR, third VARCHAR)
SELECT title FROM table_name_48 WHERE production_number = "1023"
What is the title of the film with a production number of 1023?
CREATE TABLE table_name_48 (title VARCHAR, production_number VARCHAR)
SELECT AVG(crowd) FROM table_name_38 WHERE away_team = "collingwood"
What is the average crowd when the team Collingwood was away?
CREATE TABLE table_name_38 (crowd INTEGER, away_team VARCHAR)
SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)
Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.
CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER)
SELECT MIN(october) FROM table_name_38 WHERE opponent = "washington capitals"
Which October is the lowest one that has an Opponent of washington capitals?
CREATE TABLE table_name_38 (october INTEGER, opponent VARCHAR)
SELECT team FROM table_name_92 WHERE laps = 333
Name the team with Laps of 333
CREATE TABLE table_name_92 (team VARCHAR, laps VARCHAR)
SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7
Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7?
CREATE TABLE table_name_36 (record VARCHAR, november VARCHAR, game VARCHAR, points VARCHAR)
SELECT T1.property_id, COUNT(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id
How many residents does each property have? List property id and resident count.
CREATE TABLE properties (property_id VARCHAR); CREATE TABLE residents (property_id VARCHAR)
SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE standard_stamp_duty = "367"
When the standard stamp duty is 367 what is the percentage over gdp?
CREATE TABLE table_1618358_1 (over_gdp__in__percentage_ VARCHAR, standard_stamp_duty VARCHAR)
SELECT date FROM table_name_27 WHERE format = "sacd (hybrid)"
When was the release that was in SACD (hybrid) format?
CREATE TABLE table_name_27 (date VARCHAR, format VARCHAR)
SELECT winner FROM table_name_48 WHERE home_team = "sioux falls storm" AND year < 2012
who is the winner when the home team is sioux falls storm and the year is earlier than 2012?
CREATE TABLE table_name_48 (winner VARCHAR, home_team VARCHAR, year VARCHAR)
SELECT T1.product_name, SUM(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id
Show the product name and total order quantity for each product.
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, product_id VARCHAR)
SELECT AVG(to_par) FROM table_name_38 WHERE player = "bud holscher"
What is average to par when Bud Holscher is the player?
CREATE TABLE table_name_38 (to_par INTEGER, player VARCHAR)
SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak"
During what Championship was the Opponent Jeff Borowiak?
CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR)
SELECT race FROM table_name_72 WHERE pole_position = "jim clark" AND circuit = "monaco"
At what race does jim clark has a Pole position on the Circuit of monaco?
CREATE TABLE table_name_72 (race VARCHAR, pole_position VARCHAR, circuit VARCHAR)
SELECT MIN(episodes) FROM table_1949994_8
What was the minimum number of episodes in any of the series?
CREATE TABLE table_1949994_8 (episodes INTEGER)
SELECT AVG(fixtures) FROM table_name_3 WHERE clubs_involved = 4
When 4 clubs are involved, what is the average number of fixtures?
CREATE TABLE table_name_3 (fixtures INTEGER, clubs_involved VARCHAR)
SELECT COUNT(DISTINCT Nationality) FROM conductor
How many different nationalities do conductors have?
CREATE TABLE conductor (Nationality VARCHAR)
SELECT year_s__won FROM table_name_57 WHERE total = 147
Which Year(s) won has a Total of 147?
CREATE TABLE table_name_57 (year_s__won VARCHAR, total VARCHAR)
SELECT MAX(heat) FROM table_name_91 WHERE country = "united kingdom" AND react < 0.232
what is the heat when the country is united kingdom and react is less than 0.232?
CREATE TABLE table_name_91 (heat INTEGER, country VARCHAR, react VARCHAR)
SELECT COUNT(league) AS Cup FROM table_name_88 WHERE club = "yeovil town" AND league < 16
How many league cups have yeovil town as the club, with a league less than 16?
CREATE TABLE table_name_88 (league VARCHAR, club VARCHAR)
SELECT date FROM table_11960944_6 WHERE game = 57
What date was game 57 held on?
CREATE TABLE table_11960944_6 (date VARCHAR, game VARCHAR)
SELECT score FROM table_15869204_6 WHERE game = 31
WHAT WAS THE SCORE FOR GAME 31?
CREATE TABLE table_15869204_6 (score VARCHAR, game VARCHAR)
SELECT attendance FROM table_name_12 WHERE opponents = "cambridge united"
What's the attendance when the opponents are cambridge united?
CREATE TABLE table_name_12 (attendance VARCHAR, opponents VARCHAR)
SELECT max_pressure FROM table_name_99 WHERE muzzle_energy = "468ft•lbf (634 j)"
What is the max pressure for the 468ft•lbf (634 j) muzzle energy?
CREATE TABLE table_name_99 (max_pressure VARCHAR, muzzle_energy VARCHAR)
SELECT position FROM table_name_35 WHERE name = "senyi n'diaye"
What is Senyi N'Diaye's Position?
CREATE TABLE table_name_35 (position VARCHAR, name VARCHAR)
SELECT COUNT(designation) FROM table_17384764_1 WHERE experience = "20 years"
How many faculty members have 20 years of experience?
CREATE TABLE table_17384764_1 (designation VARCHAR, experience VARCHAR)
SELECT school FROM table_name_44 WHERE enrollment = 887
Which school has enrollment of 887?
CREATE TABLE table_name_44 (school VARCHAR, enrollment VARCHAR)
SELECT score FROM table_name_9 WHERE comp = "og"
What is the Score of the Shooter with a Comp of OG?
CREATE TABLE table_name_9 (score VARCHAR, comp VARCHAR)
SELECT COUNT(opponents) FROM table_1920271_2 WHERE score = "6–7(5), 6–2, 6–3"
How many times was the score 6–7(5), 6–2, 6–3?
CREATE TABLE table_1920271_2 (opponents VARCHAR, score VARCHAR)
SELECT date FROM table_17335602_1 WHERE tournament = "McDonald's LPGA Championship"
When was the mcdonald's lpga championship?
CREATE TABLE table_17335602_1 (date VARCHAR, tournament VARCHAR)
SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2009 = "6.02"
how many countiers had 2009 remittances of 6.02?
CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2009 VARCHAR)
SELECT SUM(grid) FROM table_name_16 WHERE laps > 50
What is the grid sum with more than 50 laps?
CREATE TABLE table_name_16 (grid INTEGER, laps INTEGER)
SELECT away_team FROM table_name_27 WHERE tie_no = "19"
In Tie #19, what was the name of the away team?
CREATE TABLE table_name_27 (away_team VARCHAR, tie_no VARCHAR)
SELECT winners_from_previous_round FROM table_1281200_1 WHERE clubs_involved = 8
Clubs involved is 8, what number would you find from winners from previous round?
CREATE TABLE table_1281200_1 (winners_from_previous_round VARCHAR, clubs_involved VARCHAR)
SELECT rnd FROM table_13657749_2 WHERE gto_winning_team = "Mike Keyser"
What is GTO Winning Team Mike Keyser's RND number?
CREATE TABLE table_13657749_2 (rnd VARCHAR, gto_winning_team VARCHAR)
SELECT score FROM table_name_83 WHERE december = 11
What is the score for the Dec 11 game?
CREATE TABLE table_name_83 (score VARCHAR, december VARCHAR)
SELECT COUNT(platform) FROM table_28178595_2 WHERE character = "Nanaly Fletch"
How many platforms have nanaly fletch as the character?
CREATE TABLE table_28178595_2 (platform VARCHAR, character VARCHAR)
SELECT hindi FROM table_name_37 WHERE tamil = "vyazhan"
WHAT HINDI HAS Tamil of vyazhan?
CREATE TABLE table_name_37 (hindi VARCHAR, tamil VARCHAR)
SELECT team FROM table_name_21 WHERE driver = "toshihiro kaneishi"
Name the team for toshihiro kaneishi
CREATE TABLE table_name_21 (team VARCHAR, driver VARCHAR)
SELECT transfer_fee FROM table_name_1 WHERE transfer_window = "winter"
What was the transfer fee when winter was the transfer window?
CREATE TABLE table_name_1 (transfer_fee VARCHAR, transfer_window VARCHAR)
SELECT final FROM table_name_78 WHERE athlete = "rouhollah hosseini"
What was the final for rouhollah hosseini?
CREATE TABLE table_name_78 (final VARCHAR, athlete VARCHAR)
SELECT COUNT(publisher) FROM table_1217448_1 WHERE cover_date = "May 1939"
what is the total number of publisher where cover date is may 1939
CREATE TABLE table_1217448_1 (publisher VARCHAR, cover_date VARCHAR)
SELECT length FROM table_name_27 WHERE class = "gts-2" AND date = "october 8"
Name the length for class of gts-2 and date of october 8
CREATE TABLE table_name_27 (length VARCHAR, class VARCHAR, date VARCHAR)
SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve"
Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position?
CREATE TABLE table_name_24 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT week FROM table_name_37 WHERE attendance = "90,138"
Which week's game had an attendance of 90,138?
CREATE TABLE table_name_37 (week VARCHAR, attendance VARCHAR)
SELECT catalogue FROM table_name_77 WHERE recorded = "9/10/67" AND release_date = "1/9/68"
What catalogue was recorded on 9/10/67 and a release date of 1/9/68?
CREATE TABLE table_name_77 (catalogue VARCHAR, recorded VARCHAR, release_date VARCHAR)
SELECT three FROM table_name_83 WHERE four = "william prewett" AND five = "richard ellis" AND seven = "nicholas king" AND date = "5 november 1693"
Name the three for william prewett for four and five being richard ellis with seven being nicholas king on 5 november 1693
CREATE TABLE table_name_83 (three VARCHAR, date VARCHAR, seven VARCHAR, four VARCHAR, five VARCHAR)
SELECT place FROM table_name_99 WHERE area__km_2__ > 34.42
Which place has more area (km 2) than 34.42?
CREATE TABLE table_name_99 (place VARCHAR, area__km_2__ INTEGER)
SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE district___town = "Herzogtum Lauenburg" AND area__ha_ = "123,14"
How many reserves are in Herzogtum Lauenburg with an area of 123,14?
CREATE TABLE table_26013618_1 (nsg_nr VARCHAR, district___town VARCHAR, area__ha_ VARCHAR)
SELECT date FROM table_name_30 WHERE attendance < 6650 AND score = "0:1"
On what date was the game with fewer than 6650 in attendance, that finished 0:1?
CREATE TABLE table_name_30 (date VARCHAR, attendance VARCHAR, score VARCHAR)
SELECT nation FROM table_name_46 WHERE silver = "1" AND gold = "0" AND total = "1"
Which nation has a Silver of 1, a Gold of 0, and a Total of 1?
CREATE TABLE table_name_46 (nation VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(number_of_generators) FROM table_11456251_5 WHERE power_capacity__gw_ = "78.7"
What is the number of generators where the power capicity is 78.7?
CREATE TABLE table_11456251_5 (number_of_generators VARCHAR, power_capacity__gw_ VARCHAR)
SELECT runs FROM table_name_98 WHERE batting_partners = "vijay hazare and gul mohammad"
How many runs did Vijay Hazare and Gul Mohammad score?
CREATE TABLE table_name_98 (runs VARCHAR, batting_partners VARCHAR)
SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler"
Which year is that has a Entrant of belond equa-flow / calif. muffler?
CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR)
SELECT MIN(births) FROM table_28137918_5 WHERE conversions = "26,333"
Name the least births for conversion being 26,333
CREATE TABLE table_28137918_5 (births INTEGER, conversions VARCHAR)
SELECT MAX(total) FROM table_name_29 WHERE gold = 1 AND nation = "czechoslovakia"
Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia?
CREATE TABLE table_name_29 (total INTEGER, gold VARCHAR, nation VARCHAR)
SELECT MAX(round) FROM table_name_19 WHERE player = "tommy norman"
In what Round was Tommy Norman picked?
CREATE TABLE table_name_19 (round INTEGER, player VARCHAR)
SELECT country FROM table_name_93 WHERE notes = "1 vcd" AND release_title = "martial law: substitutes"
Which country had a release of 1 VCD titled Martial Law: Substitutes?
CREATE TABLE table_name_93 (country VARCHAR, notes VARCHAR, release_title VARCHAR)
SELECT datacenter FROM table_name_62 WHERE standard = "no" AND itanium = "yes" AND features = "fault tolerant memory sync"
What is the Datacenter for the Fault Tolerant Memory Sync Feature that has Yes for Itanium and No for Standard?
CREATE TABLE table_name_62 (datacenter VARCHAR, features VARCHAR, standard VARCHAR, itanium VARCHAR)
SELECT stations FROM table_2093995_1 WHERE parking = "Park & Ride Lot"
Which station has park & ride lot parking?
CREATE TABLE table_2093995_1 (stations VARCHAR, parking VARCHAR)
SELECT seasons FROM table_name_49 WHERE total_seasons < 5 AND city = "ottawa, ontario"
What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario?
CREATE TABLE table_name_49 (seasons VARCHAR, total_seasons VARCHAR, city VARCHAR)
SELECT COUNT(directed_by) FROM table_19517621_3 WHERE title = "The Lost Boy"
If the title if the Lost Boy, how many directors were there?
CREATE TABLE table_19517621_3 (directed_by VARCHAR, title VARCHAR)
SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "melbourne"
What was the smallest crowd for a Melbourne away game?
CREATE TABLE table_name_83 (crowd INTEGER, away_team VARCHAR)
SELECT report FROM table_name_29 WHERE winning_driver = "heinrich-joachim von morgen"
Name the Report which has heinrich-joachim von morgen?
CREATE TABLE table_name_29 (report VARCHAR, winning_driver VARCHAR)
SELECT representative FROM table_2841865_2 WHERE congress = "112th"
What name is listed under representative for the 112th congress?
CREATE TABLE table_2841865_2 (representative VARCHAR, congress VARCHAR)
SELECT designated_home FROM table_name_34 WHERE date = "october 28" AND designated_visitors = "new england patriots"
Who was the home team on October 28 when the new england patriots were the visitors?
CREATE TABLE table_name_34 (designated_home VARCHAR, date VARCHAR, designated_visitors VARCHAR)
SELECT COUNT(apps) FROM table_name_69 WHERE national_team = "brazil" AND club = "internazionale"
What is the number of Apps for Internazionale Club of Brazil?
CREATE TABLE table_name_69 (apps VARCHAR, national_team VARCHAR, club VARCHAR)
SELECT title FROM table_25997153_1 WHERE production_code = "3X5362"
What is the title of the episode with the production code 3x5362?
CREATE TABLE table_25997153_1 (title VARCHAR, production_code VARCHAR)
SELECT visitor FROM table_name_82 WHERE record = "10–11–5"
Whose Visitor has a Record of 10–11–5?
CREATE TABLE table_name_82 (visitor VARCHAR, record VARCHAR)
SELECT year FROM table_2331549_1 WHERE third_place = "Michigan State University"
Which years did Michigan state university come in third place?
CREATE TABLE table_2331549_1 (year VARCHAR, third_place VARCHAR)
SELECT COUNT(position) FROM table_11734041_18 WHERE no_s_ = "32"
How many positions had jersey number 32
CREATE TABLE table_11734041_18 (position VARCHAR, no_s_ VARCHAR)
SELECT date FROM table_name_46 WHERE round = "semifinal"
What is the Date that has a Round of semifinal?
CREATE TABLE table_name_46 (date VARCHAR, round VARCHAR)
SELECT ceased_to_be_duchess FROM table_name_5 WHERE became_duchess = "7/8 april 1766"
When did the duchess who became duchess on 7/8 April 1766 cease to be duchess?
CREATE TABLE table_name_5 (ceased_to_be_duchess VARCHAR, became_duchess VARCHAR)
SELECT court_surface FROM table_name_47 WHERE tournament = "paris masters"
what is the court surface when the tournament is paris masters?
CREATE TABLE table_name_47 (court_surface VARCHAR, tournament VARCHAR)
SELECT nation FROM table_name_45 WHERE bronze > 1 AND silver < 3
What nation has more than 1 bronze and less than 3 silver?
CREATE TABLE table_name_45 (nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83
What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?
CREATE TABLE table_name_57 (blank_ends VARCHAR, shot_pct VARCHAR, stolen_ends VARCHAR, skip VARCHAR)
SELECT COUNT(founded) FROM table_name_67 WHERE house_name = "benue"
How many benue houses have been founded?
CREATE TABLE table_name_67 (founded VARCHAR, house_name VARCHAR)
SELECT result FROM table_name_7 WHERE score = "1–0" AND goal = 16
Which Result has a Score of 1–0, and a Goal of 16?
CREATE TABLE table_name_7 (result VARCHAR, score VARCHAR, goal VARCHAR)
SELECT station_name FROM table_name_63 WHERE arrival = "starting station"
What is the Station Name of the Arrival Starting Station?
CREATE TABLE table_name_63 (station_name VARCHAR, arrival VARCHAR)
SELECT MIN(drawn) FROM table_name_94 WHERE name = "sv apfeldorf" AND position > 8
what is the least drawn when the name is sv apfeldorf and the position is more than 8?
CREATE TABLE table_name_94 (drawn INTEGER, name VARCHAR, position VARCHAR)
SELECT SUM(top_25) FROM table_name_21 WHERE tournament = "pga championship" AND top_5 < 1
Name the sum of top-25 for pga championship and top-5 less than 1
CREATE TABLE table_name_21 (top_25 INTEGER, tournament VARCHAR, top_5 VARCHAR)
SELECT producer FROM table_name_99 WHERE location = "poolavadi"
What company is the producer at the poolavadi location
CREATE TABLE table_name_99 (producer VARCHAR, location VARCHAR)