answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(year) FROM table_name_93 WHERE game = "portal"
What year was Portal?
CREATE TABLE table_name_93 (year INTEGER, game VARCHAR)
SELECT mountain_peak FROM table_name_87 WHERE region = "baja california" AND location = "28.1301°n 115.2206°w"
Which Mountain Peak has a Region of baja california, and a Location of 28.1301°n 115.2206°w?
CREATE TABLE table_name_87 (mountain_peak VARCHAR, region VARCHAR, location VARCHAR)
SELECT cerclis_id FROM table_name_74 WHERE proposed = "12/30/1982" AND partially_deleted = "05/01/2003"
what is the cerclis ID when the site was proposed on 12/30/1982 and was partially deleted on 05/01/2003?
CREATE TABLE table_name_74 (cerclis_id VARCHAR, proposed VARCHAR, partially_deleted VARCHAR)
SELECT COUNT(year) FROM table_name_1 WHERE uk_peak_position = "10"
How many years had a film that peaked at #10 in the UK?
CREATE TABLE table_name_1 (year VARCHAR, uk_peak_position VARCHAR)
SELECT gdp_adjusted__$_billions_ FROM table_1610496_3 WHERE gdp_per_capita_nominal__$_ = 2874
What is the adjusted GDP when the nominal GDP per capita is 2874?
CREATE TABLE table_1610496_3 (gdp_adjusted__$_billions_ VARCHAR, gdp_per_capita_nominal__$_ VARCHAR)
SELECT written_by FROM table_10413597_5 WHERE setting = "Winter 1541/February 13, 1542"
Who wrote the episode that was set in winter 1541/february 13, 1542?
CREATE TABLE table_10413597_5 (written_by VARCHAR, setting VARCHAR)
SELECT record FROM table_name_45 WHERE score = "105-72"
What was the record for the game that had a score of 105-72?
CREATE TABLE table_name_45 (record VARCHAR, score VARCHAR)
SELECT date FROM table_name_78 WHERE record = "19–16"
Record of 19–16 occurred on what date?
CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR)
SELECT 1990 AS _91 FROM table_name_34 WHERE average = 1.035
Which 1990-91 has an average number of 1.035?
CREATE TABLE table_name_34 (average VARCHAR)
SELECT COUNT(elected) FROM table_13618584_2 WHERE incumbent = "Onzlee Ware"
How many times was incumbent onzlee ware elected?
CREATE TABLE table_13618584_2 (elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(extra_points) FROM table_name_4 WHERE touchdowns > 2 AND field_goals > 0
How many Extra points have Touchdowns larger than 2, and Field goals larger than 0?
CREATE TABLE table_name_4 (extra_points VARCHAR, touchdowns VARCHAR, field_goals VARCHAR)
SELECT written_by FROM table_29273243_1 WHERE no_in_season = 11
Who wrote episode number 11?
CREATE TABLE table_29273243_1 (written_by VARCHAR, no_in_season VARCHAR)
SELECT english_title FROM table_name_89 WHERE year = 2001
What is the English title of the film from 2001?
CREATE TABLE table_name_89 (english_title VARCHAR, year VARCHAR)
SELECT first_public_release FROM table_name_25 WHERE name = "rational software modeler"
Which First public release has a Name of rational software modeler?
CREATE TABLE table_name_25 (first_public_release VARCHAR, name VARCHAR)
SELECT date FROM table_name_10 WHERE opponent = "north carolina"
What was the date of the game against North Carolina?
CREATE TABLE table_name_10 (date VARCHAR, opponent VARCHAR)
SELECT position FROM table_name_54 WHERE school_country = "arkansas"
What position does the player from arkansas play?
CREATE TABLE table_name_54 (position VARCHAR, school_country VARCHAR)
SELECT railway_number_s_ FROM table_name_47 WHERE year_s__of_manufacture = "1905–1906"
What are the railway number(s) for year(s) of manufacture of 1905–1906?
CREATE TABLE table_name_47 (railway_number_s_ VARCHAR, year_s__of_manufacture VARCHAR)
SELECT tournament FROM table_name_9 WHERE partner = "erika sema"
Which tournament had a partner of Erika Sema?
CREATE TABLE table_name_9 (tournament VARCHAR, partner VARCHAR)
SELECT area__km²_ FROM table_255602_1 WHERE population__2010_ = 38062
What is the area where population in 2010 is 38062?
CREATE TABLE table_255602_1 (area__km²_ VARCHAR, population__2010_ VARCHAR)
SELECT venue FROM table_name_55 WHERE attendance > 6 OFFSET 938
What is the Venue with an Attendance that is larger than 6,938?
CREATE TABLE table_name_55 (venue VARCHAR, attendance INTEGER)
SELECT COUNT(year) FROM table_name_78 WHERE group = "sitges film festival"
What is the number of years that Kim was nominated at the Sitges Film Festival?
CREATE TABLE table_name_78 (year VARCHAR, group VARCHAR)
SELECT opponent FROM table_name_83 WHERE record = "0-3"
Which Opponent has a Record of 0-3?
CREATE TABLE table_name_83 (opponent VARCHAR, record VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE country = "England" AND name = "Paul Casey"
What is the winning span in the country of England with the name of paul casey?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, country VARCHAR, name VARCHAR)
SELECT position FROM table_name_40 WHERE event = "60 m" AND venue = "budapest , hungary"
What is Position, when Event is 60 m, and when Venue is Budapest , Hungary?
CREATE TABLE table_name_40 (position VARCHAR, event VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_47 WHERE week = 2
What was week 2's opponent?
CREATE TABLE table_name_47 (opponent VARCHAR, week VARCHAR)
SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = "28"
what is the position when the year [A} is after 2011 and the pick is 28?
CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)
SELECT eliminated FROM table_25016824_2 WHERE immunity = "Kent (Jürgen)"
Who was eliminated when immunity went to kent (jürgen)?
CREATE TABLE table_25016824_2 (eliminated VARCHAR, immunity VARCHAR)
SELECT school_club_team FROM table_name_55 WHERE position = "forward-center" AND player = "amal mccaskill"
Amal McCaskill who plays forward-center played for what school/club team?
CREATE TABLE table_name_55 (school_club_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5
What is the greatest B score when the A score was less than 6.5?
CREATE TABLE table_name_4 (b_score INTEGER, a_score INTEGER)
SELECT result FROM table_1342218_17 WHERE district = "Kentucky 2"
What was the result in the voting district Kentucky 2?
CREATE TABLE table_1342218_17 (result VARCHAR, district VARCHAR)
SELECT MIN(opp_points) FROM table_23184448_3 WHERE record = "6-2"
How many points did the opposing team get in the game with 6-2 record?
CREATE TABLE table_23184448_3 (opp_points INTEGER, record VARCHAR)
SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000
Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.
CREATE TABLE institution (TYPE VARCHAR, founded VARCHAR, enrollment VARCHAR)
SELECT MIN(earnings__) AS $__ FROM table_name_38 WHERE rank < 2
Who has the lowest earnings that has a rank smaller than 2?
CREATE TABLE table_name_38 (earnings__ INTEGER, rank INTEGER)
SELECT COUNT(position) FROM table_20872722_1 WHERE round = 3
How many positions have round 3?
CREATE TABLE table_20872722_1 (position VARCHAR, round VARCHAR)
SELECT week_15__final__dec_3 FROM table_name_69 WHERE week_12_nov_13 = "washington (9-1)"
What was Week 15 when Week 12 was Washington (9-1)?
CREATE TABLE table_name_69 (week_15__final__dec_3 VARCHAR, week_12_nov_13 VARCHAR)
SELECT final_venue FROM table_28601467_1 WHERE host_nation_s_ = "England" AND runner_up = "[[|]] 4 points" AND winner = "[[|]] 6 points"
What was the final venue whene England hasted the competition and the runner-up record is [[|]] 4 points and the winner record is [[|]] 6 points?
CREATE TABLE table_28601467_1 (final_venue VARCHAR, winner VARCHAR, host_nation_s_ VARCHAR, runner_up VARCHAR)
SELECT 2 AS nd__m_ FROM table_14407512_24 WHERE name = "Gregor Schlierenzauer"
Name the 2nd m for gregor schlierenzauer
CREATE TABLE table_14407512_24 (name VARCHAR)
SELECT AVG(appearances) FROM table_name_50 WHERE club = "fc igea virtus" AND goals = 1
How many appearances with fc igea virtus and 1 goal?
CREATE TABLE table_name_50 (appearances INTEGER, club VARCHAR, goals VARCHAR)
SELECT record FROM table_27539535_7 WHERE february = 1
What was the team's rcord on february 1?
CREATE TABLE table_27539535_7 (record VARCHAR, february VARCHAR)
SELECT MIN(series__number) FROM table_19852975_4 WHERE writer_s_ = "Max Ehrlich"
Writer Max Ehrlich, what is the minimum series number?
CREATE TABLE table_19852975_4 (series__number INTEGER, writer_s_ VARCHAR)
SELECT mongolian FROM table_name_78 WHERE tamil_தமிழ் = "pūrāṭam பூராடம்"
Which Mongolian has a Tamil தமிழ் of pūrāṭam பூராடம்?
CREATE TABLE table_name_78 (mongolian VARCHAR, tamil_தமிழ் VARCHAR)
SELECT score1 FROM table_name_20 WHERE competition_or_tour = "major league soccer all-star game"
What is the score 1 for the major league soccer all-star game?
CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR)
SELECT finnish_name FROM table_198175_2 WHERE english_name = "Province of Viborg and Nyslott"
What is every Finnish name for the English name of Province of Viborg and Nyslott?
CREATE TABLE table_198175_2 (finnish_name VARCHAR, english_name VARCHAR)
SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC
Please list the years of film market estimations when the market is in country "Japan" in descending order.
CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR)
SELECT condition FROM table_name_75 WHERE prothrombin_time = "unaffected" AND bleeding_time = "prolonged" AND partial_thromboplastin_time = "unaffected" AND platelet_count = "decreased or unaffected"
I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected
CREATE TABLE table_name_75 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT MIN(top_10) FROM table_2626564_2 WHERE position = "8th"
How many top 10's did Pearson have the year he was in 8th position?
CREATE TABLE table_2626564_2 (top_10 INTEGER, position VARCHAR)
SELECT MIN(overall) FROM table_name_57 WHERE downhill = "1" AND season < 1992
What is the lowest overall score prior to 1992 with a downhill score of 1?
CREATE TABLE table_name_57 (overall INTEGER, downhill VARCHAR, season VARCHAR)
SELECT avg FROM table_name_76 WHERE player = "domenik hixon"
What is Domenik Hixon's average rush?
CREATE TABLE table_name_76 (avg VARCHAR, player VARCHAR)
SELECT MIN(no_in_series) FROM table_19897294_8
Name the least number in series
CREATE TABLE table_19897294_8 (no_in_series INTEGER)
SELECT AVG(l_100km_combined) FROM table_name_81 WHERE l_100km_urban__cold_ = 13.9 AND mpg_uk_combined > 28.5 AND mpg_uk_extra_urban < 38.7
What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?
CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR)
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10"
Is it home or away when opponent is Pride with a W 11-10 result?
CREATE TABLE table_name_49 (home_away VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT driver FROM table_name_25 WHERE laps < 60 AND time_retired = "spun off"
Who drive the car that went under 60 laps and spun off?
CREATE TABLE table_name_25 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT MIN(rank) FROM table_name_90 WHERE floors < 62 AND name = "etihad tower 5"
What is the rank of Etihad Tower 5, with less than 62 floors?
CREATE TABLE table_name_90 (rank INTEGER, floors VARCHAR, name VARCHAR)
SELECT MIN(total) FROM table_name_45 WHERE to_par = "e"
what total was the lowest and had a to par of e?
CREATE TABLE table_name_45 (total INTEGER, to_par VARCHAR)
SELECT COUNT(opponent) FROM table_21197135_1 WHERE record = "6-0"
How many opponents were there when the record was 6-0?
CREATE TABLE table_21197135_1 (opponent VARCHAR, record VARCHAR)
SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = "shingo kunieda satoshi saida"
What was the score when the Shingo Kunieda Satoshi Saida were the opponents?
CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR)
SELECT COUNT(number) FROM table_1997759_1 WHERE registration = "F-BVFF"
how many number is located at registration f-bvff?
CREATE TABLE table_1997759_1 (number VARCHAR, registration VARCHAR)
SELECT MAX(pick) FROM table_name_60 WHERE school = "auburn"
What is the highest pick for a player from auburn?
CREATE TABLE table_name_60 (pick INTEGER, school VARCHAR)
SELECT international_competition FROM table_18042409_1 WHERE national_lacrosse_league = "Toronto Rock"
List all the international lacrosse league competitions for Toronto Rock.
CREATE TABLE table_18042409_1 (international_competition VARCHAR, national_lacrosse_league VARCHAR)
SELECT COUNT(total) FROM table_2803106_1 WHERE tonioli = "9" AND horwood = "6"
How many times did tonioli score a 9 when horwood scored a 6?
CREATE TABLE table_2803106_1 (total VARCHAR, tonioli VARCHAR, horwood VARCHAR)
SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = "Joki"
What are the results for the film titled 'Joki'?
CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)
SELECT number FROM table_name_33 WHERE language = "other"
What Number has a Language listed as other?
CREATE TABLE table_name_33 (number VARCHAR, language VARCHAR)
SELECT played FROM table_name_2 WHERE position = "11th" AND points = "8"
What's the value for played when points is 8 and position is 11th?
CREATE TABLE table_name_2 (played VARCHAR, position VARCHAR, points VARCHAR)
SELECT school_club_team_country FROM table_name_27 WHERE years_for_rockets = "1967-68"
Who is the school, club, team or country that the Rockets played for 1967-68?
CREATE TABLE table_name_27 (school_club_team_country VARCHAR, years_for_rockets VARCHAR)
SELECT MAX(pages_per_minute__color_) FROM table_16409745_1 WHERE product = "Xerox Travel Scanner 100"
What is the maximum pages per minute for the Xerox Travel Scanner 100?
CREATE TABLE table_16409745_1 (pages_per_minute__color_ INTEGER, product VARCHAR)
SELECT nationality FROM table_name_25 WHERE goals = 50 AND ranking = 3
What is the nationality of the person with 50 goals and rank 3?
CREATE TABLE table_name_25 (nationality VARCHAR, goals VARCHAR, ranking VARCHAR)
SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = "lyon"
What is the 1st leg with Team 2 Lyon?
CREATE TABLE table_name_98 (team_2 VARCHAR)
SELECT COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
Find the number of routes operated by American Airlines.
CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)
SELECT AVG(played) FROM table_name_43 WHERE position > 16
What is the number played by the team in place greater than 16?
CREATE TABLE table_name_43 (played INTEGER, position INTEGER)
SELECT valvetrain FROM table_name_94 WHERE "engine_model" = "engine_model"
What is the valvetrain with an engine model that is engine model?
CREATE TABLE table_name_94 (valvetrain VARCHAR)
SELECT head_coach FROM table_name_53 WHERE location = "mudgeeraba"
Who is the head coach of the team located in Mudgeeraba?
CREATE TABLE table_name_53 (head_coach VARCHAR, location VARCHAR)
SELECT MIN(episode) FROM table_15187735_18 WHERE segment_d = "Fibre Cement Siding"
Name the least episode for fibre cement siding
CREATE TABLE table_15187735_18 (episode INTEGER, segment_d VARCHAR)
SELECT outgoing_manager FROM table_17275810_7 WHERE team = "Mantova"
Name the outgoing manager for mantova
CREATE TABLE table_17275810_7 (outgoing_manager VARCHAR, team VARCHAR)
SELECT commissioned FROM table_name_8 WHERE pennant_number = "q144"
On what date was the ship with a Pennant number of Q144 commissioned?
CREATE TABLE table_name_8 (commissioned VARCHAR, pennant_number VARCHAR)
SELECT SUM(top_division_titles) FROM table_name_66 WHERE number_of_seasons_in_liga_mx > 42 AND club = "guadalajara"
How many top division titles does Club Guadalajara have, with more than 42 seasons in Liga MX?
CREATE TABLE table_name_66 (top_division_titles INTEGER, number_of_seasons_in_liga_mx VARCHAR, club VARCHAR)
SELECT location FROM table_name_75 WHERE event = "200m backstroke"
What is the location of the 200m backstroke?
CREATE TABLE table_name_75 (location VARCHAR, event VARCHAR)
SELECT result FROM table_name_95 WHERE game = "game 3"
What was the result of Game 3 of this searson?
CREATE TABLE table_name_95 (result VARCHAR, game VARCHAR)
SELECT to_par FROM table_name_69 WHERE score < 71 AND place = "t6"
With a score smaller than 71 along with a place of t6, what is the To par score?
CREATE TABLE table_name_69 (to_par VARCHAR, score VARCHAR, place VARCHAR)
SELECT team FROM table_name_5 WHERE circuit = "winton motor raceway"
Which team won at winton motor raceway?
CREATE TABLE table_name_5 (team VARCHAR, circuit VARCHAR)
SELECT lost FROM table_name_7 WHERE points = "47"
How many losses did the club with 47 points have ?
CREATE TABLE table_name_7 (lost VARCHAR, points VARCHAR)
SELECT score FROM table_name_81 WHERE year = "2006-2007"
What is the score during the 2006-2007 year?
CREATE TABLE table_name_81 (score VARCHAR, year VARCHAR)
SELECT percent_of_slovenes_1991 FROM table_name_76 WHERE village__slovenian_ = "rut"
What was Rut's Slovenes percentage in 1991?
CREATE TABLE table_name_76 (percent_of_slovenes_1991 VARCHAR, village__slovenian_ VARCHAR)
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Arthur Albert"
If Arthur Albert is the director, what is the maximum series number?
CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR)
SELECT date FROM table_name_45 WHERE time = "29.816"
What day had a time of 29.816?
CREATE TABLE table_name_45 (date VARCHAR, time VARCHAR)
SELECT AVG(round) FROM table_name_78 WHERE opponent = "sam sotello"
How many rounds did the match last with Sam Sotello as the opponent?
CREATE TABLE table_name_78 (round INTEGER, opponent VARCHAR)
SELECT score FROM table_name_29 WHERE golden_point_s__scorer = "adam reynolds"
What is the Score of Golden Point(s) scorer Adam Reynolds?
CREATE TABLE table_name_29 (score VARCHAR, golden_point_s__scorer VARCHAR)
SELECT name FROM table_name_59 WHERE overall > 132 AND round = 12
What is Name, when Overall is greater than 132, and when Round is 12?
CREATE TABLE table_name_59 (name VARCHAR, overall VARCHAR, round VARCHAR)
SELECT MAX(district) FROM table_26758262_1 WHERE location_of_court = "Tolland"
What district is the court located in Tolland?
CREATE TABLE table_26758262_1 (district INTEGER, location_of_court VARCHAR)
SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = "20.7"
How many years did he have an average start of 20.7?
CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR)
SELECT height FROM table_name_15 WHERE weight = "kg (lb)" AND club = "sainte-foy" AND pos = "cf"
What is the Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf?
CREATE TABLE table_name_15 (height VARCHAR, pos VARCHAR, weight VARCHAR, club VARCHAR)
SELECT date FROM table_name_47 WHERE winning_driver = "graham hill" AND circuit = "nürburgring"
What is the date of the circuit of nürburgring, which had Graham Hill as the winning driver?
CREATE TABLE table_name_47 (date VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT to_par FROM table_name_49 WHERE winning_score = 71 - 69 - 71 - 70 = 281
What is the to par value for the game with a winning score of 71-69-71-70=281?
CREATE TABLE table_name_49 (to_par VARCHAR, winning_score VARCHAR)
SELECT chassis FROM table_name_83 WHERE year < 1956 AND engine = "gordini straight-4" AND points = 3
Before 1956, what Chassis has Gordini Straight-4 engine with 3 points?
CREATE TABLE table_name_83 (chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT COUNT(total) FROM table_21249915_1 WHERE department = "La Paz"
How many total catagories are there for La Paz?
CREATE TABLE table_21249915_1 (total VARCHAR, department VARCHAR)
SELECT location_attendance FROM table_name_16 WHERE team = "orlando"
What is Location Attendance, when Team is "Orlando"?
CREATE TABLE table_name_16 (location_attendance VARCHAR, team VARCHAR)
SELECT home FROM table_name_69 WHERE away = "1-5"
What home has 1-5 as the away?
CREATE TABLE table_name_69 (home VARCHAR, away VARCHAR)
SELECT COUNT(player) FROM table_13312864_1 WHERE weight = 95
How many players weight 95?
CREATE TABLE table_13312864_1 (player VARCHAR, weight VARCHAR)
SELECT name FROM table_name_88 WHERE location = "tanzania" AND novelty = "gen nov"
What is Name, when Location is Tanzania, and when Novelty is Gen Nov?
CREATE TABLE table_name_88 (name VARCHAR, location VARCHAR, novelty VARCHAR)
SELECT COUNT(season) FROM table_2669287_1 WHERE rank = "#50"
How many seasons was the rank equal to #50?
CREATE TABLE table_2669287_1 (season VARCHAR, rank VARCHAR)
SELECT MAX(rank) FROM table_name_58 WHERE heat > 7
Which Rank has a Heat larger than 7?
CREATE TABLE table_name_58 (rank INTEGER, heat INTEGER)