question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5?
CREATE TABLE table_name_36 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT AVG(bronze) FROM table_name_36 WHERE gold > 1 AND total > 11 AND silver > 5
Name the number of episode for phyllo dough
CREATE TABLE table_15187735_3 (episode VARCHAR, segment_c VARCHAR)
SELECT COUNT(episode) FROM table_15187735_3 WHERE segment_c = "Phyllo Dough"
What is the State with a home venue of suwon sports complex?
CREATE TABLE table_name_43 (state VARCHAR, home_venue VARCHAR)
SELECT state FROM table_name_43 WHERE home_venue = "suwon sports complex"
what is the special edition for the english version of james baskett?
CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR)
SELECT special_edition FROM table_25173505_13 WHERE english_version = "James Baskett"
What driver was the winner when Joakim Bonnier was in the Pole Position?
CREATE TABLE table_name_78 (winning_driver VARCHAR, pole_position VARCHAR)
SELECT winning_driver FROM table_name_78 WHERE pole_position = "joakim bonnier"
Which Date has a Score of 24-7, and a Record of 4-10?
CREATE TABLE table_name_12 (date VARCHAR, score VARCHAR, record VARCHAR)
SELECT date FROM table_name_12 WHERE score = "24-7" AND record = "4-10"
What is the team with grid 9?
CREATE TABLE table_name_10 (team VARCHAR, grid VARCHAR)
SELECT team FROM table_name_10 WHERE grid = 9
What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade?
CREATE TABLE table_12283621_6 (serbian_league_east VARCHAR, serbian_league_belgrade VARCHAR)
SELECT serbian_league_east FROM table_12283621_6 WHERE serbian_league_belgrade = "Kolubara"
What was the greatest number of wins for a team that had 7 losses and more than 0 draws?
CREATE TABLE table_name_17 (wins INTEGER, losses VARCHAR, draws VARCHAR)
SELECT MAX(wins) FROM table_name_17 WHERE losses = 7 AND draws > 0
What year was the the youngest nominee a winner?
CREATE TABLE table_name_35 (year VARCHAR, superlative VARCHAR)
SELECT year FROM table_name_35 WHERE superlative = "youngest nominee"
What college did the player who was drafted by Calgary go to?
CREATE TABLE table_28059992_6 (college VARCHAR, cfl_team VARCHAR)
SELECT college FROM table_28059992_6 WHERE cfl_team = "Calgary"
Who has a religion of United Methodist and a prior background of a Congressional Aide?
CREATE TABLE table_20098199_2 (representative VARCHAR, religion VARCHAR, prior_background VARCHAR)
SELECT representative FROM table_20098199_2 WHERE religion = "United Methodist" AND prior_background = "Congressional aide"
How many people watched the away team of Geelong?
CREATE TABLE table_name_63 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_63 WHERE away_team = "geelong"
What Team has a Pick of 40?
CREATE TABLE table_name_67 (team VARCHAR, pick VARCHAR)
SELECT team FROM table_name_67 WHERE pick = 40
How tall is Ye Fei?
CREATE TABLE table_name_36 (height VARCHAR, players VARCHAR)
SELECT height FROM table_name_36 WHERE players = "ye fei"
How many stumpings did the player Tim Latham have?
CREATE TABLE table_13337302_16 (stumpings INTEGER, player VARCHAR)
SELECT MAX(stumpings) FROM table_13337302_16 WHERE player = "Tim Latham"
What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
CREATE TABLE table_name_41 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR, total_deaths VARCHAR)
SELECT COUNT(military_deaths) FROM table_name_41 WHERE military_and_or_civilian_wounded = "78" AND total_deaths > 27
What is Attendance, when Opponent is Pittsburgh Steelers?
CREATE TABLE table_name_2 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_2 WHERE opponent = "pittsburgh steelers"
Give the most points that features jordan 194 in the Chassis column.
CREATE TABLE table_name_64 (points INTEGER, chassis VARCHAR)
SELECT MAX(points) FROM table_name_64 WHERE chassis = "jordan 194"
What is the Area KM 2 of the place that has a Census ranking of 1,608 of 5,008?
CREATE TABLE table_171236_2 (area_km_2 VARCHAR, census_ranking VARCHAR)
SELECT area_km_2 FROM table_171236_2 WHERE census_ranking = "1,608 of 5,008"
What is Runner(s)-Up when Margin of Victory is 6 Strokes?
CREATE TABLE table_name_87 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT runner_s__up FROM table_name_87 WHERE margin_of_victory = "6 strokes"
When is the winner olympiacos, the venue is georgios karaiskakis stadium and the runner-up is iraklis?
CREATE TABLE table_name_12 (year VARCHAR, runner_up VARCHAR, winner VARCHAR, venue VARCHAR)
SELECT year FROM table_name_12 WHERE winner = "olympiacos" AND venue = "georgios karaiskakis stadium" AND runner_up = "iraklis"
What is the lowest number of laps for kyle petty with under 118 points?
CREATE TABLE table_name_99 (laps INTEGER, points VARCHAR, driver VARCHAR)
SELECT MIN(laps) FROM table_name_99 WHERE points < 118 AND driver = "kyle petty"
what's the bleeding time with partial thromboplastin time being unaffected and condition being liver failure , early
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)
SELECT bleeding_time FROM table_14006_1 WHERE partial_thromboplastin_time = "Unaffected" AND condition = "Liver failure , early"
If the UK air date is February 18, 2013, who was the episode written by?
CREATE TABLE table_25640730_7 (written_by VARCHAR, uk_air_date VARCHAR)
SELECT written_by FROM table_25640730_7 WHERE uk_air_date = "February 18, 2013"
Show location and name for all stadiums with a capacity between 5000 and 10000.
CREATE TABLE stadium (LOCATION VARCHAR, name VARCHAR, capacity INTEGER)
SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000
What was the No. 4 name when Madison was No. 5 and Abigail was No. 9?
CREATE TABLE table_name_83 (no_4 VARCHAR, no_5 VARCHAR, no_9 VARCHAR)
SELECT no_4 FROM table_name_83 WHERE no_5 = "madison" AND no_9 = "abigail"
What is the sum of the bronze medals when there were more than 2 silver medals and a rank larger than 6?
CREATE TABLE table_name_89 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT SUM(bronze) FROM table_name_89 WHERE silver > 2 AND rank > 6
What is the Tonnage of the ship from Canada?
CREATE TABLE table_name_73 (tonnage INTEGER, flag VARCHAR)
SELECT MAX(tonnage) FROM table_name_73 WHERE flag = "canada"
What is the First Issue date of Soul Eater?
CREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR)
SELECT first_issue FROM table_name_85 WHERE title = "soul eater"
What is the venue that Saint Joseph's University hosted at?
CREATE TABLE table_name_38 (venue VARCHAR, host VARCHAR)
SELECT venue FROM table_name_38 WHERE host = "saint joseph's university"
Name the date with a home team of melbourne
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "melbourne"
What is the specification where senior high school is 25mm?
CREATE TABLE table_13555999_1 (specification VARCHAR, senior_high_school__15_18_yrs_ VARCHAR)
SELECT specification FROM table_13555999_1 WHERE senior_high_school__15_18_yrs_ = "25mm"
How many entries are shown for school colors for the location of naga , camarines sur?
CREATE TABLE table_22171978_1 (school_colors VARCHAR, location VARCHAR)
SELECT COUNT(school_colors) FROM table_22171978_1 WHERE location = "Naga , Camarines Sur"
Name the result for thomas h. hall (dr) 53.0% william clarke (f) 47.0%
CREATE TABLE table_2668329_18 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(result) FROM table_2668329_18 WHERE candidates = "Thomas H. Hall (DR) 53.0% William Clarke (F) 47.0%"
Show the order ids and the number of items in each order.
CREATE TABLE Order_items (order_id VARCHAR)
SELECT order_id, COUNT(*) FROM Order_items GROUP BY order_id
How many years had more than 0 points?
CREATE TABLE table_name_68 (year INTEGER, points INTEGER)
SELECT SUM(year) FROM table_name_68 WHERE points > 0
What is glenferrie oval's home team?
CREATE TABLE table_name_59 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_59 WHERE venue = "glenferrie oval"
What's the most jim colbert got paid?
CREATE TABLE table_name_23 (earnings__ INTEGER, player VARCHAR)
SELECT MAX(earnings__) AS $__ FROM table_name_23 WHERE player = "jim colbert"
How many average 100s were there for Tim Bresnan?
CREATE TABLE table_name_51 (player VARCHAR)
SELECT AVG(100 AS s) FROM table_name_51 WHERE player = "tim bresnan"
At what Venue was the Attendance 47,678?
CREATE TABLE table_name_81 (venue VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_81 WHERE attendance = "47,678"
What was the home team's score when North Melbourne was the away team?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_39 WHERE away_team = "north melbourne"
What was the Quantity on Date 1900?
CREATE TABLE table_name_71 (quantity INTEGER, date VARCHAR)
SELECT SUM(quantity) FROM table_name_71 WHERE date = "1900"
Which Game has a March smaller than 12, and a Score of 10–1?
CREATE TABLE table_name_10 (game INTEGER, march VARCHAR, score VARCHAR)
SELECT MIN(game) FROM table_name_10 WHERE march < 12 AND score = "10–1"
What is the station that is transmitted at 20 kw and has a frequency of 48 uhf?
CREATE TABLE table_1601792_4 (television_station VARCHAR, transmitted VARCHAR, frequency VARCHAR)
SELECT television_station FROM table_1601792_4 WHERE transmitted = "20 kW" AND frequency = "48 UHF"
what is the highest fa cup goals when flt goals is more than 0?
CREATE TABLE table_name_96 (fa_cup_goals INTEGER, flt_goals INTEGER)
SELECT MAX(fa_cup_goals) FROM table_name_96 WHERE flt_goals > 0
What was the complement associated with 0 off 3 men killed and 0 off 2 men wounded?
CREATE TABLE table_2596811_12 (complement VARCHAR, killed VARCHAR, wounded VARCHAR)
SELECT complement FROM table_2596811_12 WHERE killed = "0 off 3 men" AND wounded = "0 off 2 men"
Who did the Mariners play when their record was 26–32?
CREATE TABLE table_name_70 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_70 WHERE record = "26–32"
What was the score on october 23?
CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_33 WHERE date = "october 23"
Which season had its last episode air on March 11, 2001?
CREATE TABLE table_name_43 (season VARCHAR, last_air_date VARCHAR)
SELECT season FROM table_name_43 WHERE last_air_date = "march 11, 2001"
What shows for 2010 when 2007 is a and 2004 is 2r?
CREATE TABLE table_name_97 (Id VARCHAR)
SELECT 2010 FROM table_name_97 WHERE 2007 = "a" AND 2004 = "2r"
How many games did team iurbentia bilbao have with rebounds higher than 212?
CREATE TABLE table_name_27 (games INTEGER, team VARCHAR, rebounds VARCHAR)
SELECT SUM(games) FROM table_name_27 WHERE team = "iurbentia bilbao" AND rebounds > 212
Name the try bonus of points against at 430
CREATE TABLE table_12792876_4 (try_bonus VARCHAR, points_against VARCHAR)
SELECT try_bonus FROM table_12792876_4 WHERE points_against = "430"
what is the model where the processor is yorkfield and the brand name is xeon?
CREATE TABLE table_24101118_1 (model__list_ VARCHAR, processor VARCHAR, brand_name VARCHAR)
SELECT model__list_ FROM table_24101118_1 WHERE processor = "Yorkfield" AND brand_name = "Xeon"
What are flight numbers of Airline "United Airlines"?
CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR); CREATE TABLE FLIGHTS (FlightNo VARCHAR, Airline VARCHAR)
SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = "United Airlines"
What is the total credit does each department offer?
CREATE TABLE course (dept_code VARCHAR, crs_credit INTEGER)
SELECT SUM(crs_credit), dept_code FROM course GROUP BY dept_code
What was the event for vinny magalhães?
CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães"
What municipality is the Benson Street station located in?
CREATE TABLE table_name_53 (municipality VARCHAR, station VARCHAR)
SELECT municipality FROM table_name_53 WHERE station = "benson street"
Who is the opponent of the December 18, 1994 game?
CREATE TABLE table_name_90 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_90 WHERE date = "december 18, 1994"
What position did Nell McAndrew finish?
CREATE TABLE table_14345690_2 (finished VARCHAR, celebrity VARCHAR)
SELECT finished FROM table_14345690_2 WHERE celebrity = "Nell McAndrew"
What is the quantity preserved for fleet number(s) 3000–3015?
CREATE TABLE table_name_11 (quantity_preserved VARCHAR, fleet_number_s_ VARCHAR)
SELECT quantity_preserved FROM table_name_11 WHERE fleet_number_s_ = "3000–3015"
What engine type is used in a Space Shuttle Vacuum scenario?
CREATE TABLE table_15944_5 (engine_type VARCHAR, scenario VARCHAR)
SELECT engine_type FROM table_15944_5 WHERE scenario = "Space shuttle vacuum"
What is the grid with 71 laps and the driver, Allan McNish.
CREATE TABLE table_name_55 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_55 WHERE laps = "71" AND driver = "allan mcnish"
What is the episode number of the episode whose production code is 226407?
CREATE TABLE table_27714985_1 (no_s__in_season INTEGER, production_code_s_ VARCHAR)
SELECT MIN(no_s__in_season) FROM table_27714985_1 WHERE production_code_s_ = 226407
Find the name of physicians who are affiliated with both Surgery and Psychiatry departments.
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.departmen...
What is the earliest game against Orlando?
CREATE TABLE table_name_57 (game INTEGER, team VARCHAR)
SELECT MIN(game) FROM table_name_57 WHERE team = "orlando"
What is Winning Score, when Date is 17 Jan 2010?
CREATE TABLE table_name_45 (winning_score VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_45 WHERE date = "17 jan 2010"
How many people live in Norton?
CREATE TABLE table_name_1 (population INTEGER, town VARCHAR)
SELECT SUM(population) FROM table_name_1 WHERE town = "norton"
What is the set 2 with a 25-23 set 1 and a 17-19 set 5?
CREATE TABLE table_name_48 (set_2 VARCHAR, set_1 VARCHAR, set_5 VARCHAR)
SELECT set_2 FROM table_name_48 WHERE set_1 = "25-23" AND set_5 = "17-19"
Name the date with resultof w 35-7
CREATE TABLE table_name_22 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_22 WHERE result = "w 35-7"
What is the ngc number when the object type is lenticular galaxy and the constellation is hydra?
CREATE TABLE table_name_12 (ngc_number INTEGER, object_type VARCHAR, constellation VARCHAR)
SELECT MAX(ngc_number) FROM table_name_12 WHERE object_type = "lenticular galaxy" AND constellation = "hydra"
What is the total amount of money spent by Lucas Mancini?
CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
What is the lowest pick when the School is Stanford University?
CREATE TABLE table_name_96 (pick INTEGER, school VARCHAR)
SELECT MIN(pick) FROM table_name_96 WHERE school = "stanford university"
what title was given to the episode with production code 6ajn08?
CREATE TABLE table_26409328_1 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_26409328_1 WHERE production_code = "6AJN08"
How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals?
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(gold) FROM table_name_79 WHERE bronze = 3 AND rank > 7 AND total < 5
How many members were in the group that sold 65 million albums and singles?
CREATE TABLE table_19439814_1 (members VARCHAR, sold__albums_and_singles_ VARCHAR)
SELECT members FROM table_19439814_1 WHERE sold__albums_and_singles_ = "65 million"
What stage has a start of saint-girons in 1988?
CREATE TABLE table_name_39 (stage VARCHAR, start VARCHAR, year VARCHAR)
SELECT stage FROM table_name_39 WHERE start = "saint-girons" AND year = 1988
What is the smallest draws for Byes less than 4?
CREATE TABLE table_name_80 (draws INTEGER, byes INTEGER)
SELECT MIN(draws) FROM table_name_80 WHERE byes < 4
What is the Television Service offering Cartomanzia?
CREATE TABLE table_name_36 (television_service VARCHAR, content VARCHAR)
SELECT television_service FROM table_name_36 WHERE content = "cartomanzia"
How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?
CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_45 WHERE rank > 1 AND gold = 4
Which 20-29 had a season of 1997?
CREATE TABLE table_name_11 (season VARCHAR)
SELECT 20 AS _29 FROM table_name_11 WHERE season = "1997"
What is the 2000 value if the 1998 value is 1.5?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT 2000 FROM table_name_67 WHERE 1998 = "1.5"
List all opponents in the September 23, 1984 game?
CREATE TABLE table_14863869_1 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_14863869_1 WHERE date = "September 23, 1984"
Where was the game when Police S.A. was the opponent?
CREATE TABLE table_name_78 (location VARCHAR, opponent_team VARCHAR)
SELECT location FROM table_name_78 WHERE opponent_team = "police s.a."
What was the score of the game from July 18?
CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_30 WHERE date = "july 18"
What is Jockey, when Post is 12?
CREATE TABLE table_name_53 (jockey VARCHAR, post VARCHAR)
SELECT jockey FROM table_name_53 WHERE post = 12
What is the lowest weight snatched for a lifter who had a clean and jerk less than 185?
CREATE TABLE table_name_21 (snatch INTEGER, clean_ VARCHAR, _jerk VARCHAR)
SELECT MIN(snatch) FROM table_name_21 WHERE clean_ & _jerk < 185
Tell me the highest overall rank for heat rank more than 4 and lane less than 2
CREATE TABLE table_name_68 (overall_rank INTEGER, heat_rank VARCHAR, lane VARCHAR)
SELECT MAX(overall_rank) FROM table_name_68 WHERE heat_rank > 4 AND lane < 2
Which Semifinal has an Event of team?
CREATE TABLE table_name_47 (semifinal VARCHAR, event VARCHAR)
SELECT semifinal FROM table_name_47 WHERE event = "team"
What position does the player with jersey number 22 play?
CREATE TABLE table_name_65 (position VARCHAR, jersey_number_s_ VARCHAR)
SELECT position FROM table_name_65 WHERE jersey_number_s_ = "22"
What is the goals for/against of the club with 17 points?
CREATE TABLE table_name_94 (goals_for_against VARCHAR, points VARCHAR)
SELECT goals_for_against FROM table_name_94 WHERE points = 17
What is the Time when the Epicenter was Bam?
CREATE TABLE table_name_94 (time VARCHAR, epicenter VARCHAR)
SELECT time FROM table_name_94 WHERE epicenter = "bam"
How many members were added at the nchc (men only) conference?
CREATE TABLE table_27671835_3 (members_added VARCHAR, conference VARCHAR)
SELECT members_added FROM table_27671835_3 WHERE conference = "NCHC (men only)"
How many Pick has a Round smaller than 13, and a Position of fullback?
CREATE TABLE table_name_64 (pick VARCHAR, round VARCHAR, position VARCHAR)
SELECT COUNT(pick) FROM table_name_64 WHERE round < 13 AND position = "fullback"
What was the outcome on August 5, 2007?
CREATE TABLE table_name_59 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_59 WHERE date = "august 5, 2007"
How many points did Costa score in the Macau Grand Prix since 2011?
CREATE TABLE table_name_23 (points VARCHAR, season VARCHAR, series VARCHAR)
SELECT points FROM table_name_23 WHERE season > 2011 AND series = "macau grand prix"
What is the HDTV when documentaries are the content?
CREATE TABLE table_name_84 (hdtv VARCHAR, content VARCHAR)
SELECT hdtv FROM table_name_84 WHERE content = "documentaries"
Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?
CREATE TABLE table_name_7 (season VARCHAR, goals VARCHAR, club VARCHAR, rank VARCHAR)
SELECT season FROM table_name_7 WHERE club = "real madrid" AND rank < 6 AND goals < 121
Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199?
CREATE TABLE table_name_48 (name VARCHAR, out_of VARCHAR, source VARCHAR, rank VARCHAR)
SELECT name FROM table_name_48 WHERE source = "world bank" AND rank < 110 AND out_of < 199
What is the area of the city in the Sargodha district?
CREATE TABLE table_18425346_2 (city_area_km_2__ VARCHAR, district VARCHAR)
SELECT COUNT(city_area_km_2__) FROM table_18425346_2 WHERE district = "Sargodha district"