question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Season has a Home of 0–1?
CREATE TABLE table_name_24 (season VARCHAR, home VARCHAR)
SELECT season FROM table_name_24 WHERE home = "0–1"
Who won mixed doubles in the 2002 season?
CREATE TABLE table_name_42 (mixed_doubles VARCHAR, season VARCHAR)
SELECT mixed_doubles FROM table_name_42 WHERE season = 2002
Who had the decision goal when the date was 1?
CREATE TABLE table_name_73 (decision VARCHAR, date VARCHAR)
SELECT decision FROM table_name_73 WHERE date = 1
What was the least amount of wins when he had 10 poles?
CREATE TABLE table_24584486_1 (wins INTEGER, poles VARCHAR)
SELECT MIN(wins) FROM table_24584486_1 WHERE poles = 10
Does the model e5504 have a turbo boost?
CREATE TABLE table_269920_17 (turbo_boost VARCHAR, model VARCHAR)
SELECT turbo_boost FROM table_269920_17 WHERE model = "E5504"
What NHL team picked Ryan Meade for the draft?
CREATE TABLE table_2781227_7 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_2781227_7 WHERE player = "Ryan Meade"
Name the high points for pepsi center 18,611
CREATE TABLE table_17355408_5 (high_points VARCHAR, location_attendance VARCHAR)
SELECT high_points FROM table_17355408_5 WHERE location_attendance = "Pepsi Center 18,611"
What is the best time for a rusport driver with a qual 2 time of 1:10.166?
CREATE TABLE table_name_58 (best INTEGER, team VARCHAR, qual_2 VARCHAR)
SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166"
What was the total in Brooklyn when Manhattan was 3,139?
CREATE TABLE table_1108394_6 (brooklyn VARCHAR, manhattan VARCHAR)
SELECT brooklyn FROM table_1108394_6 WHERE manhattan = "3,139"
Name the place of action for the marine corps and corporal rank
CREATE TABLE table_name_45 (place_of_action VARCHAR, service VARCHAR, rank VARCHAR)
SELECT place_of_action FROM table_name_45 WHERE service = "marine corps" AND rank = "corporal"
What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7?
CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR)
SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50
What is the smallest amount of points had a lost number of 2 when the position was less than 1?
CREATE TABLE table_name_67 (points INTEGER, lost VARCHAR, position VARCHAR)
SELECT MIN(points) FROM table_name_67 WHERE lost = 2 AND position < 1
Who was the opponent in the game that was attended by 42,000 people?
CREATE TABLE table_name_19 (opponent_number VARCHAR, attendance VARCHAR)
SELECT opponent_number FROM table_name_19 WHERE attendance = "42,000"
what is the original air date for production code 216?
CREATE TABLE table_24018430_3 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_24018430_3 WHERE production_code = 216
Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?
CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR)
SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = "greg proops" AND performer_3 = "ryan stiles" AND date = "25 august 1995"
What is the Record in Week 2?
CREATE TABLE table_name_50 (record VARCHAR, week VARCHAR)
SELECT record FROM table_name_50 WHERE week = 2
What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?
CREATE TABLE table_2668401_17 (party VARCHAR, district VARCHAR, result VARCHAR, first_elected VARCHAR)
SELECT party FROM table_2668401_17 WHERE result = "Re-elected" AND first_elected = "1797" AND district = "Virginia 5"
What surface has indian wells as the championship, with winner as the outcome?
CREATE TABLE table_name_63 (surface VARCHAR, championship VARCHAR, outcome VARCHAR)
SELECT surface FROM table_name_63 WHERE championship = "indian wells" AND outcome = "winner"
What was the first year of the Lithuanian National Badminton Championships?
CREATE TABLE table_15001753_1 (year INTEGER)
SELECT MIN(year) FROM table_15001753_1
What is the highest score in those games where the average is 9.88?
CREATE TABLE table_28547332_4 (highest_score INTEGER, average VARCHAR)
SELECT MIN(highest_score) FROM table_28547332_4 WHERE average = "9.88"
How many dollars is listed under Sydney when the distance is 10km?
CREATE TABLE table_2923917_4 (sydney VARCHAR, distance VARCHAR)
SELECT sydney FROM table_2923917_4 WHERE distance = "10km"
What is the name of the ship sunk on 5 May 1943 from the United Kingdom sunk by an u-266 with 0 casualties?
CREATE TABLE table_name_23 (name VARCHAR, casualties VARCHAR, sunk_by… VARCHAR, date VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_23 WHERE date = "5 may 1943" AND nationality = "united kingdom" AND sunk_by… = "u-266" AND casualties = "0"
Who was the leading scorer on 9 January 2008?
CREATE TABLE table_name_99 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_99 WHERE date = "9 january 2008"
What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts?
CREATE TABLE table_name_17 (wins INTEGER, starts VARCHAR, top_10 VARCHAR, winnings VARCHAR)
SELECT AVG(wins) FROM table_name_17 WHERE top_10 < 5 AND winnings = "$39,190" AND starts < 2
What is the L2 cache for the processor with iris pro graphics 5200 and frequency of 2.6 ghz?
CREATE TABLE table_name_96 (l2_cache VARCHAR, gpu_model VARCHAR, frequency VARCHAR)
SELECT l2_cache FROM table_name_96 WHERE gpu_model = "iris pro graphics 5200" AND frequency = "2.6 ghz"
What is the name of the newspaper with the website liderinformativo.com ?
CREATE TABLE table_name_17 (name VARCHAR, website VARCHAR)
SELECT name FROM table_name_17 WHERE website = "liderinformativo.com"
Which side has Ludovico Carracci listed as the identification?
CREATE TABLE table_name_74 (side VARCHAR, identification VARCHAR)
SELECT side FROM table_name_74 WHERE identification = "ludovico carracci"
What college had a LB in the draft?
CREATE TABLE table_10812403_4 (college VARCHAR, position VARCHAR)
SELECT college FROM table_10812403_4 WHERE position = "LB"
what is the latitude in the township where wate is 0.288
CREATE TABLE table_18600760_19 (latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT latitude FROM table_18600760_19 WHERE water__sqmi_ = "0.288"
What was the record for the Chargers on Week 10?
CREATE TABLE table_name_84 (record VARCHAR, week VARCHAR)
SELECT record FROM table_name_84 WHERE week = 10
How many losses have points against less than 15?
CREATE TABLE table_name_1 (lost VARCHAR, against INTEGER)
SELECT COUNT(lost) FROM table_name_1 WHERE against < 15
What was the score of the Browns game against the San Francisco 49ers?
CREATE TABLE table_name_7 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_7 WHERE opponent = "san francisco 49ers"
What is Surface, when Date is less than 1979, and when Opponent in the Final is "Bill Scanlon"?
CREATE TABLE table_name_45 (surface VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_45 WHERE date < 1979 AND opponent_in_the_final = "bill scanlon"
What's spain's highest total?
CREATE TABLE table_name_34 (total INTEGER, country VARCHAR)
SELECT MAX(total) FROM table_name_34 WHERE country = "spain"
How many times did Saxby Chambliss have a lead margin of 21?
CREATE TABLE table_16751596_16 (republican VARCHAR, lead_margin VARCHAR)
SELECT COUNT(republican) AS :_saxby_chambliss FROM table_16751596_16 WHERE lead_margin = 21
Which highest rank belongs to the palestinian territories?
CREATE TABLE table_name_85 (rank INTEGER, country VARCHAR)
SELECT MAX(rank) FROM table_name_85 WHERE country = "palestinian territories"
On what date did James II take a consort?
CREATE TABLE table_name_16 (became_consort VARCHAR, spouse VARCHAR)
SELECT became_consort FROM table_name_16 WHERE spouse = "james ii"
How many Ratings did the 2013 Year have?
CREATE TABLE table_name_23 (ratings VARCHAR, year VARCHAR)
SELECT ratings FROM table_name_23 WHERE year = 2013
What are the competitions that occurred before 2006 in SVK Nitra?
CREATE TABLE table_name_10 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_10 WHERE year < 2006 AND venue = "svk nitra"
Which Pick has a Round larger than 1, a School/Club Team of alcorn state, and a Position of defensive back?
CREATE TABLE table_name_88 (pick INTEGER, position VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT SUM(pick) FROM table_name_88 WHERE round > 1 AND school_club_team = "alcorn state" AND position = "defensive back"
Name the least number for production code 3x6266
CREATE TABLE table_29329432_1 (no INTEGER, production_code VARCHAR)
SELECT MIN(no) FROM table_29329432_1 WHERE production_code = "3X6266"
On what surface was the score 6–2, 6–1?
CREATE TABLE table_name_46 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_46 WHERE score = "6–2, 6–1"
What is the barrell profile that goes with the gas piston carbine?
CREATE TABLE table_12834315_5 (barrel_profile VARCHAR, name VARCHAR)
SELECT barrel_profile FROM table_12834315_5 WHERE name = "Gas Piston Carbine"
On what Date is the match played on Clay Surface with a Score in the final of 6–2, 7–5?
CREATE TABLE table_name_32 (date VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT date FROM table_name_32 WHERE surface = "clay" AND score_in_the_final = "6–2, 7–5"
What was the place for the celebrity whose aggregate was 35?
CREATE TABLE table_25931938_1 (place VARCHAR, aggregate VARCHAR)
SELECT place FROM table_25931938_1 WHERE aggregate = 35
What is every year born for height of 1.88?
CREATE TABLE table_23670057_7 (year_born VARCHAR, height__m_ VARCHAR)
SELECT year_born FROM table_23670057_7 WHERE height__m_ = "1.88"
What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 kmΒ²?
CREATE TABLE table_name_38 (population___2011_census__ INTEGER, land_area__kmΒ²_ INTEGER)
SELECT MIN(population___2011_census__) FROM table_name_38 WHERE land_area__kmΒ²_ > 908 OFFSET 607.67
What's the number of the game played on June 22?
CREATE TABLE table_19778010_5 (game INTEGER, date VARCHAR)
SELECT MAX(game) FROM table_19778010_5 WHERE date = "June 22"
what is the league when the fa cup is qr4 and the fa trophy is qf?
CREATE TABLE table_name_46 (league VARCHAR, fa_cup VARCHAR, fa_trophy VARCHAR)
SELECT league FROM table_name_46 WHERE fa_cup = "qr4" AND fa_trophy = "qf"
Which venue was melbourne the away team of?
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_56 WHERE away_team = "melbourne"
What is the least number of assists among players ranked 2?
CREATE TABLE table_name_53 (assists INTEGER, rank VARCHAR)
SELECT MIN(assists) FROM table_name_53 WHERE rank = 2
What car number had 24 points?
CREATE TABLE table_name_13 (car_no VARCHAR, points VARCHAR)
SELECT car_no FROM table_name_13 WHERE points = "24"
How many asian rank have 1 as a mideast rank?
CREATE TABLE table_2248784_4 (rank_asia VARCHAR, rank_mideast VARCHAR)
SELECT COUNT(rank_asia) FROM table_2248784_4 WHERE rank_mideast = 1
How much Money is requested by BassToneSlap?
CREATE TABLE table_name_10 (money_requested__Β£_ VARCHAR, company_or_product_name VARCHAR)
SELECT money_requested__Β£_ FROM table_name_10 WHERE company_or_product_name = "basstoneslap"
What did the home team score when playing at Western Oval?
CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_41 WHERE venue = "western oval"
What are the dimensions in inches of the board released before 2004, that started in 1941?
CREATE TABLE table_name_76 (board__inches_ VARCHAR, release VARCHAR, start VARCHAR)
SELECT board__inches_ FROM table_name_76 WHERE release < 2004 AND start = "1941"
What was the to par for place t8 and a score of 71-66-66-71=274?
CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_70 WHERE place = "t8" AND score = 71 - 66 - 66 - 71 = 274
Who is the away team for tie no 11?
CREATE TABLE table_24887326_6 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_24887326_6 WHERE tie_no = 11
Who wrote episode 6 in season 3?
CREATE TABLE table_2602958_4 (writer_s_ VARCHAR, _number VARCHAR)
SELECT writer_s_ FROM table_2602958_4 WHERE _number = 6
Who was the home team at Kardinia Park?
CREATE TABLE table_name_78 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_78 WHERE venue = "kardinia park"
How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed?
CREATE TABLE table_1341690_9 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_9 WHERE candidates = "Sam M. Gibbons (D) Unopposed"
Which Score has January larger than 18 and a Record of 35–15–1?
CREATE TABLE table_name_79 (score VARCHAR, january VARCHAR, record VARCHAR)
SELECT score FROM table_name_79 WHERE january > 18 AND record = "35–15–1"
Which position did the drafted player affiliated with UCLA play?
CREATE TABLE table_name_85 (position VARCHAR, affiliation VARCHAR)
SELECT position FROM table_name_85 WHERE affiliation = "ucla"
What is the date of the Euro '64 qualifying game?
CREATE TABLE table_name_64 (date VARCHAR, type_of_game VARCHAR)
SELECT date FROM table_name_64 WHERE type_of_game = "euro '64 qualifying"
What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s?
CREATE TABLE table_name_5 (production VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT production FROM table_name_5 WHERE engine = "2.7l" AND acceleration_0_100km_h__0_62mph_ = "8.5 s"
What is the smallest crowd that Footscray had as the away team?
CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_49 WHERE away_team = "footscray"
What is the average number of events the Masters tournament, which has more than 0 top-25, has?
CREATE TABLE table_name_84 (events INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT AVG(events) FROM table_name_84 WHERE tournament = "masters tournament" AND top_25 > 0
How many season numbers are there for the episodes written by Art Everett?
CREATE TABLE table_2226817_6 (no_in_season VARCHAR, written_by VARCHAR)
SELECT COUNT(no_in_season) FROM table_2226817_6 WHERE written_by = "Art Everett"
What was the score when the Blue Jays had a record of 39-20?
CREATE TABLE table_name_56 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_56 WHERE record = "39-20"
What is the average points when the drawn is less than 0?
CREATE TABLE table_name_68 (points INTEGER, drawn INTEGER)
SELECT AVG(points) FROM table_name_68 WHERE drawn < 0
What is the channel code and contact number of the customer contact channel that was active for the longest time?
CREATE TABLE customer_contact_channels (channel_code VARCHAR, contact_number VARCHAR, active_to_date VARCHAR, active_from_date VARCHAR)
SELECT channel_code, contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)
What finish time started at 32?
CREATE TABLE table_name_9 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_9 WHERE start = "32"
How many floors did the building at the Jewellery quarter have?
CREATE TABLE table_name_66 (floors VARCHAR, location VARCHAR)
SELECT floors FROM table_name_66 WHERE location = "jewellery quarter"
What is Tie No, when Away Team is "Millwall"?
CREATE TABLE table_name_71 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_71 WHERE away_team = "millwall"
What is the type of station for ESPN International Sports?
CREATE TABLE table_name_74 (type VARCHAR, name VARCHAR)
SELECT type FROM table_name_74 WHERE name = "espn international sports"
What is the Result of the game on November 24, 1946?
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_78 WHERE date = "november 24, 1946"
Which Location Attendance has a Record of 11–34?
CREATE TABLE table_name_27 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_27 WHERE record = "11–34"
How many submissions are there?
CREATE TABLE submission (Id VARCHAR)
SELECT COUNT(*) FROM submission
How many positions did player Ben Harpur play?
CREATE TABLE table_11803648_22 (position VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_11803648_22 WHERE player = "Ben Harpur"
find id of the tv channels that from the countries where have more than two tv channels.
CREATE TABLE tv_channel (id VARCHAR, country VARCHAR)
SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2
How many new pageants does Aruba have?
CREATE TABLE table_14308895_2 (new_pageant VARCHAR, country_territory VARCHAR)
SELECT COUNT(new_pageant) FROM table_14308895_2 WHERE country_territory = "Aruba"
What was the land area in sqmi that has a latitude of 48.763937?
CREATE TABLE table_18600760_3 (land___sqmi__ VARCHAR, latitude VARCHAR)
SELECT land___sqmi__ FROM table_18600760_3 WHERE latitude = "48.763937"
What is the Lifespan when the Representative is Theodore F. Kluttz?
CREATE TABLE table_name_96 (lifespan VARCHAR, representative VARCHAR)
SELECT lifespan FROM table_name_96 WHERE representative = "theodore f. kluttz"
What is the average episode # located in Tanzania and whose # in season is larger than 5?
CREATE TABLE table_name_65 (episode__number INTEGER, location VARCHAR, _number_in_season VARCHAR)
SELECT AVG(episode__number) FROM table_name_65 WHERE location = "tanzania" AND _number_in_season > 5
Which Team has a Previous team of san diego rockets, and a Position of f?
CREATE TABLE table_name_71 (team VARCHAR, previous_team VARCHAR, pos VARCHAR)
SELECT team FROM table_name_71 WHERE previous_team = "san diego rockets" AND pos = "f"
Who ran under the Republican ticket when Frank H. Hiscock ran under the Progressive ticket?
CREATE TABLE table_name_49 (republican_ticket VARCHAR, progressive_ticket VARCHAR)
SELECT republican_ticket FROM table_name_49 WHERE progressive_ticket = "frank h. hiscock"
Tell me the block A for antonio thomas of kondo (13:24)
CREATE TABLE table_name_85 (block_a VARCHAR, antonio_thomas VARCHAR)
SELECT block_a FROM table_name_85 WHERE antonio_thomas = "kondo (13:24)"
How many teams are #2 on the list?
CREATE TABLE table_15313204_1 (records VARCHAR, _number VARCHAR)
SELECT COUNT(records) FROM table_15313204_1 WHERE _number = 2
What is the Name when the License is gpl and the Current Version is 1.72?
CREATE TABLE table_name_35 (name VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT name FROM table_name_35 WHERE license = "gpl" AND current_version = "1.72"
In early 1873, Owen sound had what works number?
CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, name VARCHAR)
SELECT works_number FROM table_name_39 WHERE date = "early 1873" AND name = "owen sound"
What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?
CREATE TABLE table_name_84 (circuit VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT circuit FROM table_name_84 WHERE pole_position = "jack brabham" AND fastest_lap = "graham hill"
Name the minimum 11-12 enrollment for washington school
CREATE TABLE table_17641314_3 (school VARCHAR)
SELECT MIN(11 AS _12_enrollment) FROM table_17641314_3 WHERE school = "Washington"
How many are the total winners if 7 won the Men's Open?
CREATE TABLE table_182298_5 (total VARCHAR, mens_open VARCHAR)
SELECT total FROM table_182298_5 WHERE mens_open = 7
List episode directed and produced by Karen Selway?
CREATE TABLE table_24725951_1 (episode VARCHAR, directed_and_produced_by VARCHAR)
SELECT episode FROM table_24725951_1 WHERE directed_and_produced_by = "Karen Selway"
What is the Score that has a Result of 2–1 on 5 july 2007?
CREATE TABLE table_name_47 (score VARCHAR, result VARCHAR, date VARCHAR)
SELECT score FROM table_name_47 WHERE result = "2–1" AND date = "5 july 2007"
Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955?
CREATE TABLE table_name_15 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_15 WHERE engine = "offenhauser l4" AND year < 1955 AND chassis = "kurtis kraft kk500a" AND points = 9
Name the decease spouse for carol deluise
CREATE TABLE table_24143253_1 (deceased_spouse VARCHAR, name VARCHAR)
SELECT deceased_spouse FROM table_24143253_1 WHERE name = "Carol DeLuise"
Who is the player for Zimbabwe?
CREATE TABLE table_name_45 (player VARCHAR, country VARCHAR)
SELECT player FROM table_name_45 WHERE country = "zimbabwe"
Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round?
CREATE TABLE table_name_82 (opponents VARCHAR, progress VARCHAR, score VARCHAR, team VARCHAR)
SELECT opponents FROM table_name_82 WHERE score = "1–2" AND team = "arsenal" AND progress = "first round"
How many rounds did Pierre Bland have a pick larger than 148?
CREATE TABLE table_name_13 (round VARCHAR, pick VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_13 WHERE pick > 148 AND player = "pierre bland"