answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT country FROM table_name_19 WHERE total < 148 AND player = "gary player"
What is Country, when Total is less than 148, and when Player is "Gary Player"?
CREATE TABLE table_name_19 (country VARCHAR, total VARCHAR, player VARCHAR)
SELECT runs FROM table_name_80 WHERE econ = "3.63"
Tell me the runs for econ of 3.63
CREATE TABLE table_name_80 (runs VARCHAR, econ VARCHAR)
SELECT score FROM table_name_2 WHERE attendance = "50,200"
What was the score of the game attended by 50,200?
CREATE TABLE table_name_2 (score VARCHAR, attendance VARCHAR)
SELECT winning_score FROM table_name_27 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "robert-jan derksen"
What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?
CREATE TABLE table_name_27 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT no_7 FROM table_name_16 WHERE no_5 = "olivia" AND no_2 = "emma"
Who was number 7 when Olivia was number 5 and Emma was number 2?
CREATE TABLE table_name_16 (no_7 VARCHAR, no_5 VARCHAR, no_2 VARCHAR)
SELECT service FROM table_name_95 WHERE language = "hindi" AND genre = "general" AND network = "zee tv"
Which service has a hindi language, general genre and zee tv network?
CREATE TABLE table_name_95 (service VARCHAR, network VARCHAR, language VARCHAR, genre VARCHAR)
SELECT digital_analog_signal FROM table_name_71 WHERE available_interface = "pci express" AND retail_name = "all-in-wonder x600 pro"
What is the Digital/analog signal with an Available interface with pci express, with Retail name with all-in-wonder x600 pro?
CREATE TABLE table_name_71 (digital_analog_signal VARCHAR, available_interface VARCHAR, retail_name VARCHAR)
SELECT runner_s__up FROM table_name_65 WHERE winning_score = −3(71 - 74 - 66 - 66 = 277)
Who is the runner(s)-up for a winning score of −3 (71-74-66-66=277)?
CREATE TABLE table_name_65 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT COUNT(high_assists) FROM table_17325580_6 WHERE date = "December 13"
How many high assist are on the date December 13?
CREATE TABLE table_17325580_6 (high_assists VARCHAR, date VARCHAR)
SELECT teams_that_have_been_eliminated FROM table_23995075_2 WHERE teams_started = "11"
How many teams eliminated when 11 teams started?
CREATE TABLE table_23995075_2 (teams_that_have_been_eliminated VARCHAR, teams_started VARCHAR)
SELECT AVG(top_10) FROM table_name_42 WHERE wins < 1 AND top_25 = 5 AND cuts_made < 10
Tell me the average top 10 for cuts made less than 10, wins less than 1 and top 25 of 5
CREATE TABLE table_name_42 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR, top_25 VARCHAR)
SELECT team FROM table_name_39 WHERE machine = "nsr250" AND points = 8
What is the Team with a Machine that is nsr250 and has Points of 8?
CREATE TABLE table_name_39 (team VARCHAR, machine VARCHAR, points VARCHAR)
SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015
Show all church names except for those that had a wedding in year 2015.
CREATE TABLE church (name VARCHAR); CREATE TABLE wedding (church_id VARCHAR, year VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR)
SELECT week FROM table_name_34 WHERE opponent = "pittsburgh steelers"
Tell me the week for pittsburgh steelers opponent
CREATE TABLE table_name_34 (week VARCHAR, opponent VARCHAR)
SELECT segment_c FROM table_name_58 WHERE segment_b = "refrigerators"
Which segment c's segment b is refrigerators?
CREATE TABLE table_name_58 (segment_c VARCHAR, segment_b VARCHAR)
SELECT race_time FROM table_2196127_1 WHERE driver = "Jeff Gordon"
What was the race time for Jeff Gordon?
CREATE TABLE table_2196127_1 (race_time VARCHAR, driver VARCHAR)
SELECT anand FROM table_name_67 WHERE game = "8"
What was Anand's score in game 8?
CREATE TABLE table_name_67 (anand VARCHAR, game VARCHAR)
SELECT away FROM table_name_71 WHERE home = "toronto downtown dingos"
What away has toronto downtown dingos as the home?
CREATE TABLE table_name_71 (away VARCHAR, home VARCHAR)
SELECT SUM(laps) FROM table_name_7 WHERE grid < 11 AND driver = "jean-pierre jarier"
I want the sum of Laps with Grid less than 11 for jean-pierre jarier
CREATE TABLE table_name_7 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT Birth AS name FROM table_name_45 WHERE start_of_reign < 1986 AND name = "angelarios angelarij"
What is Angelarios Angelarij with a Start of Reign date before 1986 Birth Name?
CREATE TABLE table_name_45 (Birth VARCHAR, start_of_reign VARCHAR, name VARCHAR)
SELECT COUNT(points) FROM table_name_34 WHERE chassis = "porsche 718" AND year < 1964
how many points are there for a Chassis of porsche 718, and a Year smaller than 1964?
CREATE TABLE table_name_34 (points VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT value FROM table_name_90 WHERE other = "muoy roy"
What number value has the Other transliteration of muoy roy?
CREATE TABLE table_name_90 (value VARCHAR, other VARCHAR)
SELECT time FROM table_name_81 WHERE home_team = "essendon"
What is the time of the Essendon home team game?
CREATE TABLE table_name_81 (time VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_47 WHERE opponent = "houston oilers"
What is the attendance when the opponent was the Houston Oilers?
CREATE TABLE table_name_47 (attendance VARCHAR, opponent VARCHAR)
SELECT stadium FROM table_name_65 WHERE club = "fc seoul"
Which stadium has FC Seoul?
CREATE TABLE table_name_65 (stadium VARCHAR, club VARCHAR)
SELECT MAX(goals) FROM table_name_9 WHERE name = "curtis davies" AND ends > 2012
What is the greatest goals for Curtis Davies if ends is greater than 2012?
CREATE TABLE table_name_9 (goals INTEGER, name VARCHAR, ends VARCHAR)
SELECT tournament FROM table_name_70 WHERE opponent = "magnus larsson"
What was the tournament that had byron black playing against magnus larsson?
CREATE TABLE table_name_70 (tournament VARCHAR, opponent VARCHAR)
SELECT high_points FROM table_name_61 WHERE date = "march 27"
Who had the highest points on March 27?
CREATE TABLE table_name_61 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(player) FROM table_11677691_2 WHERE college = "Oregon"
HOW MANY PLAYERS PLAY FOR OREGON?
CREATE TABLE table_11677691_2 (player VARCHAR, college VARCHAR)
SELECT COUNT(race_name) FROM table_1140116_6 WHERE circuit = "Dessau"
How many races take place in Dessau circuit?
CREATE TABLE table_1140116_6 (race_name VARCHAR, circuit VARCHAR)
SELECT score FROM table_name_84 WHERE home = "philadelphia"
What is the score when Philadelphia is at home?
CREATE TABLE table_name_84 (score VARCHAR, home VARCHAR)
SELECT COUNT(result) FROM table_29026564_9 WHERE score = "6–7 (2–7) , 6–2, 7–6 (7–3)"
How many different results were there for the scores 6–7 (2–7) , 6–2, 7–6 (7–3)?
CREATE TABLE table_29026564_9 (result VARCHAR, score VARCHAR)
SELECT control FROM table_2076608_3 WHERE founded = "1818"
What is the control type which was founded in 1818?
CREATE TABLE table_2076608_3 (control VARCHAR, founded VARCHAR)
SELECT 250 AS cc_winner FROM table_15299235_1 WHERE round = 9
in round 9 who was the 250cc winner?
CREATE TABLE table_15299235_1 (round VARCHAR)
SELECT MAX(average) FROM table_19210674_1 WHERE chinese_title = "古靈精探B"
What was the maximum average of the episode with a Chinese title 古靈精探b?
CREATE TABLE table_19210674_1 (average INTEGER, chinese_title VARCHAR)
SELECT COUNT(stories) FROM table_name_85 WHERE completed = 2008 AND rank = "16"
How many stories were done in 2008 with a 16 rank?
CREATE TABLE table_name_85 (stories VARCHAR, completed VARCHAR, rank VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_6 WHERE company = "Berkshire Hathaway"
What are the profits in billions for Berkshire Hathaway?
CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, company VARCHAR)
SELECT method FROM table_name_70 WHERE record = "11-10"
Which method has a record of 11-10?
CREATE TABLE table_name_70 (method VARCHAR, record VARCHAR)
SELECT nba_draft FROM table_name_57 WHERE school = "huntington high school"
Which NBA draft has a School of huntington high school?
CREATE TABLE table_name_57 (nba_draft VARCHAR, school VARCHAR)
SELECT high_assists FROM table_17121262_9 WHERE date = "March 18"
Who had the highest assists on March 18?
CREATE TABLE table_17121262_9 (high_assists VARCHAR, date VARCHAR)
SELECT no_10 FROM table_name_45 WHERE no_1 = "noah" AND no_9 = "carter"
What is No. 10, when No. 1 is Noah, and when No. 9 is Carter?
CREATE TABLE table_name_45 (no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR)
SELECT date FROM table_24949975_1 WHERE stadium = "Tallaght stadium" AND result = "0–1"
What is the date for the game at the tallaght stadium and result was 0–1?
CREATE TABLE table_24949975_1 (date VARCHAR, stadium VARCHAR, result VARCHAR)
SELECT MIN(block) FROM table_name_79 WHERE director = "graeme harper"
What is the lowest block for director Graeme Harper?
CREATE TABLE table_name_79 (block INTEGER, director VARCHAR)
SELECT high_points FROM table_name_5 WHERE game = 5
What is High Points, when Game is "5"?
CREATE TABLE table_name_5 (high_points VARCHAR, game VARCHAR)
SELECT MAX(match) FROM table_name_38 WHERE date = "august 3, 2007"
What match number took place on August 3, 2007?
CREATE TABLE table_name_38 (match INTEGER, date VARCHAR)
SELECT height__m_ FROM table_23670057_6 WHERE year_born = 1981
Name the height for the player born in 1981
CREATE TABLE table_23670057_6 (height__m_ VARCHAR, year_born VARCHAR)
SELECT COUNT(metres) FROM table_name_51 WHERE feet < 196
What is the sum of Metres wiht a Feet that's smaller than 196?
CREATE TABLE table_name_51 (metres VARCHAR, feet INTEGER)
SELECT AVG(new_council) FROM table_name_57 WHERE election_result < 0
What is the average new council number when the election result is smaller than 0?
CREATE TABLE table_name_57 (new_council INTEGER, election_result INTEGER)
SELECT MIN(game) FROM table_27712702_11 WHERE date = "March 27"
What was the game number on march 27?
CREATE TABLE table_27712702_11 (game INTEGER, date VARCHAR)
SELECT date FROM table_name_28 WHERE home = "rockets"
What date was the game played against the home team Rockets?
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
SELECT COUNT(segment_b) FROM table_15187735_16 WHERE segment_a = "Filigree Glass"
How many segment b's when segment a is filigree glass
CREATE TABLE table_15187735_16 (segment_b VARCHAR, segment_a VARCHAR)
SELECT MIN(total) FROM table_name_95 WHERE nation = "japan" AND rank > 3
What is the smallest total from Japan with a rank larger than 3?
CREATE TABLE table_name_95 (total INTEGER, nation VARCHAR, rank VARCHAR)
SELECT MAX(gold) FROM table_name_1 WHERE total < 171 AND nation = "united states" AND bronze < 9
The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals?
CREATE TABLE table_name_1 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
SELECT AVG(lane) FROM table_name_59 WHERE heat > 12 AND rank = 38 AND time > 22.67
What lane had a heat after 12, a rank of 38 and a time larger than 22.67?
CREATE TABLE table_name_59 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR)
SELECT order_item_id FROM order_items WHERE product_id = 11
Find the ids of all the order items whose product id is 11.
CREATE TABLE order_items (order_item_id VARCHAR, product_id VARCHAR)
SELECT AVG(silver) FROM table_name_35 WHERE total < 7 AND bronze > 1
Total smaller than 7, and a Bronze larger than 1 is what amount of average silver?
CREATE TABLE table_name_35 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 0
What is the average for the agricultural panel that has a National University of Ireland less than 0?
CREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER)
SELECT title FROM table_26701861_1 WHERE director = "Pamela Fryman" AND production_code = "2ALH07"
what is the title of the episode with the director pamela fryman and the production code 2alh07?
CREATE TABLE table_26701861_1 (title VARCHAR, director VARCHAR, production_code VARCHAR)
SELECT position FROM table_name_41 WHERE club_province = "newport gwent dragons" AND caps < 87 AND player = "ceri sweeney"
What position does ceri sweeney with under 87 caps of the newport gwent dragons play?
CREATE TABLE table_name_41 (position VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR)
SELECT title FROM table_2866514_1 WHERE directed_by = "Whitney Ransick"
What are the titles of episodes directed by whitney ransick?
CREATE TABLE table_2866514_1 (title VARCHAR, directed_by VARCHAR)
SELECT COUNT(rank) FROM table_name_16 WHERE games > 125 AND player = "david gonzalvez"
How many players played over 125 games and were named david gonzalvez?
CREATE TABLE table_name_16 (rank VARCHAR, games VARCHAR, player VARCHAR)
SELECT top_elevation__feet_ FROM table_25762852_1 WHERE name = "Steamboat"
If the name is Steamboat, what is the top elevation?
CREATE TABLE table_25762852_1 (top_elevation__feet_ VARCHAR, name VARCHAR)
SELECT COUNT(opponent) FROM table_29163303_4 WHERE score = "6–4, 3–6, [11–13]"
How many times has the score been 6–4, 3–6, [11–13]?
CREATE TABLE table_29163303_4 (opponent VARCHAR, score VARCHAR)
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "KAWA" AND T2.lastname = "GORDON"
How many students does KAWA GORDON teaches?
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT position FROM table_21321804_1 WHERE cfl_team = "Edmonton Eskimos" AND college = "Weber State"
Which position is cfl team edmonton eskimos for weber state college?
CREATE TABLE table_21321804_1 (position VARCHAR, cfl_team VARCHAR, college VARCHAR)
SELECT opponent FROM table_name_66 WHERE record = "28–45"
Who was the opponent at the game when the record was 28–45?
CREATE TABLE table_name_66 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(season) FROM table_name_26 WHERE player = "rohan ricketts"
Which seaosn had a player of rohan ricketts?
CREATE TABLE table_name_26 (season VARCHAR, player VARCHAR)
SELECT rowers FROM table_name_70 WHERE time = "6:24.61"
What is the names of the rowers that the time was 6:24.61?
CREATE TABLE table_name_70 (rowers VARCHAR, time VARCHAR)
SELECT height_feet___m FROM table_name_68 WHERE floors < 34 AND name = "the tides"
What is the height of the Tides with less than 34 floors?
CREATE TABLE table_name_68 (height_feet___m VARCHAR, floors VARCHAR, name VARCHAR)
SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"
Which term had a Democratic representative from district 7?
CREATE TABLE table_name_22 (term VARCHAR, district VARCHAR, party VARCHAR)
SELECT place FROM table_name_78 WHERE points_jury = "34 (7,8,9,10)"
Which Place has a Points Jury of 34 (7,8,9,10)?
CREATE TABLE table_name_78 (place VARCHAR, points_jury VARCHAR)
SELECT MAX(date_founded) FROM table_name_6 WHERE county_or_counties = "elk county"
what is the most recent date founded in elk county?
CREATE TABLE table_name_6 (date_founded INTEGER, county_or_counties VARCHAR)
SELECT name FROM table_name_48 WHERE title = "queen regnant"
What is the name of the queen regnant?
CREATE TABLE table_name_48 (name VARCHAR, title VARCHAR)
SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1
What is the name of the player with the largest number of votes?
CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR)
SELECT MAX(point_finishes__non_podium_) FROM table_2822193_1 WHERE series = "V8Supercar"
What's the most amount of point finishes for v8supercar?
CREATE TABLE table_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR)
SELECT COUNT(effective_exhaust_velocity__m_s_) FROM table_15944_5 WHERE scenario = "Space shuttle vacuum"
What is the effective exhaust velocity in a Space Shuttle Vacuum?
CREATE TABLE table_15944_5 (effective_exhaust_velocity__m_s_ VARCHAR, scenario VARCHAR)
SELECT result FROM table_name_12 WHERE lane = 3
What was the result for Lane 3?
CREATE TABLE table_name_12 (result VARCHAR, lane VARCHAR)
SELECT MIN(game) FROM table_name_14 WHERE points < 92
Which Game is the lowest one that has Points smaller than 92?
CREATE TABLE table_name_14 (game INTEGER, points INTEGER)
SELECT date FROM table_name_50 WHERE venue = "sabina park"
What dates had matches at the venue Sabina Park?
CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR)
SELECT AVG(round) FROM table_name_61 WHERE player = "dave pulkkinen" AND draft > 1969
What is the average round of player dave pulkkinen, who had a draft after 1969?
CREATE TABLE table_name_61 (round INTEGER, player VARCHAR, draft VARCHAR)
SELECT kerry_percentage FROM table_1756284_1 WHERE kerry_number = 199060
When Kerry# was 199060, what was the percentage?
CREATE TABLE table_1756284_1 (kerry_percentage VARCHAR, kerry_number VARCHAR)
SELECT notes FROM table_1181375_1 WHERE number_range = "17"
what's the notes where number range is 17
CREATE TABLE table_1181375_1 (notes VARCHAR, number_range VARCHAR)
SELECT DISTINCT main_industry FROM company
Show all main industry for all companies.
CREATE TABLE company (main_industry VARCHAR)
SELECT position FROM table_name_28 WHERE weight > 220 AND player = "travis knight"
What is Postion, when Weight is greater than 220, and when Player is "Travis Knight"?
CREATE TABLE table_name_28 (position VARCHAR, weight VARCHAR, player VARCHAR)
SELECT place FROM table_name_77 WHERE country = "united states" AND player = "john daly"
Where is john daly of united states from?
CREATE TABLE table_name_77 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_5 WHERE round = 6
What is Nationality, when Round is 6?
CREATE TABLE table_name_5 (nationality VARCHAR, round VARCHAR)
SELECT home FROM table_name_83 WHERE geust = "fc thun (asl)"
What is the home of fc thun (asl) geust?
CREATE TABLE table_name_83 (home VARCHAR, geust VARCHAR)
SELECT division_southwest FROM table_17881033_1 WHERE division_south = "Kožuf" AND division_east = "Osogovo"
what is the division southwest when division south was kožuf and division east was osogovo
CREATE TABLE table_17881033_1 (division_southwest VARCHAR, division_south VARCHAR, division_east VARCHAR)
SELECT home_team FROM table_name_59 WHERE away_team = "geelong"
What team played Geelong at their away game?
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
SELECT senior_us_senator FROM table_21531764_2 WHERE governor = "D. Patrick"
Who was the senior US senator in the state whose governor was D. Patrick?
CREATE TABLE table_21531764_2 (senior_us_senator VARCHAR, governor VARCHAR)
SELECT club FROM table_name_53 WHERE round = 1 AND home = "0-2"
What club has a home score of 0-2 in Round 1?
CREATE TABLE table_name_53 (club VARCHAR, round VARCHAR, home VARCHAR)
SELECT COUNT(district) FROM table_1341568_34 WHERE party = "Democratic" AND elected = 1974
In how many districts was the democratic incumbent elected in 1974?
CREATE TABLE table_1341568_34 (district VARCHAR, party VARCHAR, elected VARCHAR)
SELECT COUNT(points) AS defending FROM table_23501776_16 WHERE new_points = 1075
Name the number of points defending for 1075
CREATE TABLE table_23501776_16 (points VARCHAR, new_points VARCHAR)
SELECT date FROM table_name_94 WHERE record = "4-3-0"
What date is the record 4-3-0?
CREATE TABLE table_name_94 (date VARCHAR, record VARCHAR)
SELECT 2008 FROM table_name_37 WHERE "2013" = "2013"
What 2008 has 2013 for the year 2013?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT price FROM table_29778616_1 WHERE manufacturer = "LETech"
What is the price for the manufacturer LETech?
CREATE TABLE table_29778616_1 (price VARCHAR, manufacturer VARCHAR)
SELECT total_casualties FROM table_name_47 WHERE total_deaths = 12 AND military_deaths > 1
What is the total number of casualties when there are 12 total deaths and more than 1 military death?
CREATE TABLE table_name_47 (total_casualties VARCHAR, total_deaths VARCHAR, military_deaths VARCHAR)
SELECT official_name FROM table_171361_1 WHERE area_km_2 = "30.75"
What is the name of the community with an area of 30.75 sq. km.?
CREATE TABLE table_171361_1 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT T1.department_name, T2.city, T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id
display the department name, city, and state province for each department.
CREATE TABLE locations (city VARCHAR, state_province VARCHAR, location_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, location_id VARCHAR)
SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = "109 mpg-e"
What vehicle has an epa highway fuel economy of 109 mpg-e?
CREATE TABLE table_20549371_3 (vehicle VARCHAR, epa_rated_highway_fuel_economy VARCHAR)