answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT office FROM table_name_88 WHERE democratic_ticket = "herbert h. lehman"
CREATE TABLE table_name_88 (office VARCHAR, democratic_ticket VARCHAR)
Which Office has a Democratic ticket of herbert h. lehman?
SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = "charles m. carlson"
CREATE TABLE table_name_89 (socialist_ticket VARCHAR, socialist_labor_ticket VARCHAR)
Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?
SELECT bowl_game FROM table_name_47 WHERE season > 2008 AND location = "new orleans, louisiana"
CREATE TABLE table_name_47 (bowl_game VARCHAR, season VARCHAR, location VARCHAR)
Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location?
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl"
CREATE TABLE table_name_81 (result VARCHAR, bowl_game VARCHAR)
What result has 1947 sun bowl as the bowl game?
SELECT result FROM table_name_47 WHERE opponent = "texas longhorns"
CREATE TABLE table_name_47 (result VARCHAR, opponent VARCHAR)
What result has texas longhorns as the opponent?
SELECT location FROM table_name_60 WHERE attendance = "51,212"
CREATE TABLE table_name_60 (location VARCHAR, attendance VARCHAR)
What location has 51,212 as the attendance?
SELECT pictorials FROM table_name_40 WHERE date = "5-01"
CREATE TABLE table_name_40 (pictorials VARCHAR, date VARCHAR)
Which Pictorials is on 5-01?
SELECT cover_model FROM table_name_56 WHERE pictorials = "brande roderick-pmoy, naked news"
CREATE TABLE table_name_56 (cover_model VARCHAR, pictorials VARCHAR)
Which Cover model has a Pictorials of brande roderick-pmoy, naked news?
SELECT cover_model FROM table_name_77 WHERE centerfold_model = "jennifer walcott"
CREATE TABLE table_name_77 (cover_model VARCHAR, centerfold_model VARCHAR)
which Cover model has a Centerfold model of jennifer walcott?
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina"
CREATE TABLE table_name_81 (centerfold_model VARCHAR, cover_model VARCHAR)
Which Centerfold model has a Cover model of irina voronina?
SELECT centerfold_model FROM table_name_54 WHERE date = "3-01"
CREATE TABLE table_name_54 (centerfold_model VARCHAR, date VARCHAR)
Which Centerfold model has a Date of 3-01?
SELECT score FROM table_name_66 WHERE date = "15 aug" AND time = "17:30"
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR, time VARCHAR)
What is the score on 15 Aug with a 17:30 time?
SELECT COUNT(round) FROM table_name_93 WHERE opponent = "paul sutherland"
CREATE TABLE table_name_93 (round VARCHAR, opponent VARCHAR)
What is the total number of round values that had opponents named Paul Sutherland?
SELECT opponent FROM table_name_94 WHERE record = "10-6"
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
Which opponent led to a record of 10-6?
SELECT method FROM table_name_61 WHERE record = "9-4"
CREATE TABLE table_name_61 (method VARCHAR, record VARCHAR)
Which method led to a record of 9-4?
SELECT song FROM table_name_68 WHERE index = "m6"
CREATE TABLE table_name_68 (song VARCHAR, index VARCHAR)
What song had an index of m6?
SELECT song FROM table_name_25 WHERE score = 6.5 + 6.0 + 6.0 + 5.5 = 24.0
CREATE TABLE table_name_25 (song VARCHAR, score VARCHAR)
For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?
SELECT MIN(points) FROM table_name_76 WHERE against = 23 AND played < 8
CREATE TABLE table_name_76 (points INTEGER, against VARCHAR, played VARCHAR)
When the played number is less than 8 and against is 23, what is the least amount of points?
SELECT AVG(against) FROM table_name_58 WHERE position < 5 AND team = "corinthians"
CREATE TABLE table_name_58 (against INTEGER, position VARCHAR, team VARCHAR)
When the corinthians have a position of less than 5, what is the average against?
SELECT COUNT(position) FROM table_name_63 WHERE points < 6
CREATE TABLE table_name_63 (position VARCHAR, points INTEGER)
What position has less than 6 Points?
SELECT COUNT(against) FROM table_name_3 WHERE difference = "10" AND played > 8
CREATE TABLE table_name_3 (against VARCHAR, difference VARCHAR, played VARCHAR)
What is the number of against when the difference is 10 and played is greater than 8?
SELECT stake AS President FROM table_name_77 WHERE organized = "april 18, 1965"
CREATE TABLE table_name_77 (stake VARCHAR, organized VARCHAR)
What was the stake president when the organized date is April 18, 1965?
SELECT award FROM table_name_58 WHERE category = "mercury prize"
CREATE TABLE table_name_58 (award VARCHAR, category VARCHAR)
What is the name of the award given for the category Mercury Prize?
SELECT COUNT(year) FROM table_name_47 WHERE award = "mercury prize"
CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR)
How many years has the Mercury Prize award been given?
SELECT COUNT(year) FROM table_name_71 WHERE award = "mercury prize"
CREATE TABLE table_name_71 (year VARCHAR, award VARCHAR)
For how many years has the Mercury Prize been awarded?
SELECT result FROM table_name_50 WHERE year < 2009 AND award = "mercury prize"
CREATE TABLE table_name_50 (result VARCHAR, year VARCHAR, award VARCHAR)
In what year, prior to 2009, was the Mercury Prize awarded?
SELECT MIN(points) FROM table_name_80 WHERE against = 50 AND played < 20
CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR)
What is the lowest Points when against is 50, and there are less than 20 played?
SELECT AVG(position) FROM table_name_19 WHERE against < 57 AND team = "juventus"
CREATE TABLE table_name_19 (position INTEGER, against VARCHAR, team VARCHAR)
What is the average Position with less than 57 against and the team is Juventus?
SELECT MAX(position) FROM table_name_23 WHERE against < 41 AND lost > 7
CREATE TABLE table_name_23 (position INTEGER, against VARCHAR, lost VARCHAR)
What is the highest Position when the against is less than 41, and lost is more than 7?
SELECT AVG(lost) FROM table_name_42 WHERE against = 57
CREATE TABLE table_name_42 (lost INTEGER, against VARCHAR)
What is the average Lost when there are 57 against?
SELECT MIN(lost) FROM table_name_46 WHERE team = "são paulo railway" AND points > 21
CREATE TABLE table_name_46 (lost INTEGER, team VARCHAR, points VARCHAR)
What is the lowest Lost for são paulo railway, Points more than 21?
SELECT unit FROM table_name_29 WHERE location = "mongolia"
CREATE TABLE table_name_29 (unit VARCHAR, location VARCHAR)
What unit is in Mongolia?
SELECT unit FROM table_name_94 WHERE location = "argentina"
CREATE TABLE table_name_94 (unit VARCHAR, location VARCHAR)
What unit is in Argentina?
SELECT name FROM table_name_8 WHERE location = "china"
CREATE TABLE table_name_8 (name VARCHAR, location VARCHAR)
What name is located in China?
SELECT unit FROM table_name_53 WHERE location = "china" AND authors = "zhou zhang"
CREATE TABLE table_name_53 (unit VARCHAR, location VARCHAR, authors VARCHAR)
What unit is located in China and has Zhou Zhang as an author?
SELECT manufacturer FROM table_name_54 WHERE laps < 20 AND grid = 21
CREATE TABLE table_name_54 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = "pr"
CREATE TABLE table_name_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)
Which Airline has a Fleet size larger than 17, and a IATA of pr?
SELECT icao FROM table_name_96 WHERE fleet_size = 2
CREATE TABLE table_name_96 (icao VARCHAR, fleet_size VARCHAR)
Which ICAO has a Fleet size of 2?
SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = "pr" AND commenced_operations < 1941
CREATE TABLE table_name_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR)
What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?
SELECT icao FROM table_name_72 WHERE commenced_operations > 2011
CREATE TABLE table_name_72 (icao VARCHAR, commenced_operations INTEGER)
Which ICAO has a Commenced operations larger than 2011?
SELECT status FROM table_name_31 WHERE authors = "woodruff"
CREATE TABLE table_name_31 (status VARCHAR, authors VARCHAR)
What is the Status with an Author that is woodruff?
SELECT MAX(pick__number) FROM table_name_95 WHERE cfl_team = "toronto argonauts"
CREATE TABLE table_name_95 (pick__number INTEGER, cfl_team VARCHAR)
What is the highest Pick # when the CFL Team is the Toronto Argonauts?
SELECT cfl_team FROM table_name_98 WHERE pick__number = 48
CREATE TABLE table_name_98 (cfl_team VARCHAR, pick__number VARCHAR)
What is the CFL Team with #48 as the pick number?
SELECT college FROM table_name_59 WHERE position = "db" AND cfl_team = "winnipeg blue bombers"
CREATE TABLE table_name_59 (college VARCHAR, position VARCHAR, cfl_team VARCHAR)
What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?
SELECT cfl_team FROM table_name_32 WHERE player = "will grant"
CREATE TABLE table_name_32 (cfl_team VARCHAR, player VARCHAR)
What is the CFL Team with Will Grant?
SELECT MAX(year) FROM table_name_60 WHERE number_in_entourage = "99" AND mission_type = "gratitude"
CREATE TABLE table_name_60 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR)
What is the latest year of a gratitude type mission with 99 in the entourage?
SELECT lead_envoy FROM table_name_62 WHERE ryūkyūan_king = "shō eki"
CREATE TABLE table_name_62 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
Who was the lead envoy of the mission with the Ryūkyūan King shō eki?
SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718
CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR)
Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?
SELECT lead_envoy FROM table_name_44 WHERE ryūkyūan_king = "shō kō"
CREATE TABLE table_name_44 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
Who was the lead envoy with the Ryūkyūan King shō kō?
SELECT opponent FROM table_name_59 WHERE date = "10/20/1979*"
CREATE TABLE table_name_59 (opponent VARCHAR, date VARCHAR)
On 10/20/1979*, who was the Opponent?
SELECT AVG(attendance) FROM table_name_16 WHERE result = "w 30-23"
CREATE TABLE table_name_16 (attendance INTEGER, result VARCHAR)
What is the average Attendance at a game with a Result of w 30-23?
SELECT MIN(attendance) FROM table_name_58 WHERE result = "w 25-17"
CREATE TABLE table_name_58 (attendance INTEGER, result VARCHAR)
What is the lowest Attendance at a game with the Result of w 25-17?
SELECT score FROM table_name_6 WHERE leading_scorer = "tyrone hill , 20 points"
CREATE TABLE table_name_6 (score VARCHAR, leading_scorer VARCHAR)
What is Score, when Leading Scorer is Tyrone Hill , 20 Points?
SELECT home FROM table_name_95 WHERE score = "103-93"
CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)
What is Home, when Score is 103-93?
SELECT attendance FROM table_name_74 WHERE home = "cleveland" AND date = "january 30"
CREATE TABLE table_name_74 (attendance VARCHAR, home VARCHAR, date VARCHAR)
What is Attendance, when Home is Cleveland, and when Date is January 30?
SELECT leading_scorer FROM table_name_65 WHERE attendance = "gund arena 20,562" AND record = "20-10"
CREATE TABLE table_name_65 (leading_scorer VARCHAR, attendance VARCHAR, record VARCHAR)
What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10?
SELECT score FROM table_name_37 WHERE date = "january 12"
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
What is Score, when Date is January 12?
SELECT score FROM table_name_33 WHERE attendance = "gund arena 20,562" AND date = "january 27"
CREATE TABLE table_name_33 (score VARCHAR, attendance VARCHAR, date VARCHAR)
What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?
SELECT SUM(top_10) FROM table_name_95 WHERE cuts_made < 10 AND top_5 < 0
CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?
SELECT MIN(top_25) FROM table_name_31 WHERE events = 10 AND wins > 0
CREATE TABLE table_name_31 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
What is the lowest Top-25, when Events is 10, and when Wins is greater than 0?
SELECT MIN(top_5) FROM table_name_33 WHERE top_25 < 4 AND cuts_made < 7
CREATE TABLE table_name_33 (top_5 INTEGER, top_25 VARCHAR, cuts_made VARCHAR)
What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7?
SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin"
CREATE TABLE table_name_59 (height VARCHAR, year VARCHAR, name VARCHAR)
What is the Height of Junior Meghan Austin?
SELECT position FROM table_name_46 WHERE name = "martina wood"
CREATE TABLE table_name_46 (position VARCHAR, name VARCHAR)
What is Martina Wood's Position?
SELECT name FROM table_name_91 WHERE home_town = "charlotte, nc"
CREATE TABLE table_name_91 (name VARCHAR, home_town VARCHAR)
What is the Name of the Player from Charlotte, NC?
SELECT position FROM table_name_52 WHERE height = "6-2" AND name = "martina wood"
CREATE TABLE table_name_52 (position VARCHAR, height VARCHAR, name VARCHAR)
What is 6-2 Martina Wood's Position?
SELECT position FROM table_name_86 WHERE home_town = "temple hills, md"
CREATE TABLE table_name_86 (position VARCHAR, home_town VARCHAR)
What is the Position of the Player from Temple Hills, MD?
SELECT name FROM table_name_69 WHERE year = "junior" AND home_town = "fayetteville, nc"
CREATE TABLE table_name_69 (name VARCHAR, year VARCHAR, home_town VARCHAR)
What is the Name of the Junior from Fayetteville, NC?
SELECT rank FROM table_name_47 WHERE player = "jo angel (wa)"
CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR)
What rank has jo angel (wa) as the player?
SELECT average FROM table_name_61 WHERE rank = "1"
CREATE TABLE table_name_61 (average VARCHAR, rank VARCHAR)
What average has 1 as rhe rank?
SELECT rank FROM table_name_80 WHERE player = "andy bichel (qld)"
CREATE TABLE table_name_80 (rank VARCHAR, player VARCHAR)
What rank has andy bichel (qld) as the player?
SELECT average FROM table_name_3 WHERE rank = "2"
CREATE TABLE table_name_3 (average VARCHAR, rank VARCHAR)
What is the average that has 2 for the rank?
SELECT player FROM table_name_46 WHERE average = "24.21"
CREATE TABLE table_name_46 (player VARCHAR, average VARCHAR)
What playee has 24.21 as the average?
SELECT average FROM table_name_31 WHERE s_wicket = "441"
CREATE TABLE table_name_31 (average VARCHAR, s_wicket VARCHAR)
What is the average that has 441 as wicket?
SELECT elected FROM table_name_31 WHERE party = "republican" AND incumbent = "dave reichert"
CREATE TABLE table_name_31 (elected VARCHAR, party VARCHAR, incumbent VARCHAR)
What was the year Elected of Republican Incumbent Dave Reichert?
SELECT results FROM table_name_73 WHERE district = "washington 2"
CREATE TABLE table_name_73 (results VARCHAR, district VARCHAR)
What were the Results in the Washington 2 District?
SELECT 2008 AS _candidates FROM table_name_18 WHERE elected < 1994 AND incumbent = "jim mcdermott"
CREATE TABLE table_name_18 (elected VARCHAR, incumbent VARCHAR)
What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?
SELECT incumbent FROM table_name_1 WHERE results = "68% 32%"
CREATE TABLE table_name_1 (incumbent VARCHAR, results VARCHAR)
Who is the Incumbent with Results of 68% 32%?
SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris"
CREATE TABLE table_name_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR)
What District had Republican Incumbent Cathy McMorris?
SELECT MAX(total) FROM table_name_29 WHERE bronze < 4 AND gold = 1 AND nation = "italy"
CREATE TABLE table_name_29 (total INTEGER, nation VARCHAR, bronze VARCHAR, gold VARCHAR)
What was Italy's highest total when there were less than 4 bronze and 1 gold?
SELECT SUM(total) FROM table_name_93 WHERE bronze > 4
CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER)
How many totals had more than 4 bronze?
SELECT MIN(total) FROM table_name_84 WHERE nation = "austria" AND gold > 3
CREATE TABLE table_name_84 (total INTEGER, nation VARCHAR, gold VARCHAR)
What was Austria's lowest total when the gold was more than 3?
SELECT year_s__won FROM table_name_76 WHERE to_par = "+5"
CREATE TABLE table_name_76 (year_s__won VARCHAR, to_par VARCHAR)
What are the years won when the to par is +5?
SELECT AVG(total) FROM table_name_26 WHERE player = "tiger woods"
CREATE TABLE table_name_26 (total INTEGER, player VARCHAR)
What is the average total for Tiger Woods?
SELECT country FROM table_name_46 WHERE total = 295
CREATE TABLE table_name_46 (country VARCHAR, total VARCHAR)
Which country had a total of 295?
SELECT finish FROM table_name_18 WHERE to_par = "+18"
CREATE TABLE table_name_18 (finish VARCHAR, to_par VARCHAR)
What is the finish when the to par is +18?
SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 46
CREATE TABLE table_name_63 (no_result INTEGER, matches VARCHAR, wins VARCHAR)
How many total No Results occured when the team had less than 46 wins and more than 16 matches?
SELECT AVG(losses) FROM table_name_13 WHERE wins > 46
CREATE TABLE table_name_13 (losses INTEGER, wins INTEGER)
When the team had more than 46 wins, what were the average losses?
SELECT COUNT(no_result) FROM table_name_21 WHERE wins < 6
CREATE TABLE table_name_21 (no_result VARCHAR, wins INTEGER)
How many total No Results are recorded for less than 6 wins?
SELECT interview_subject FROM table_name_42 WHERE date = "11-92"
CREATE TABLE table_name_42 (interview_subject VARCHAR, date VARCHAR)
What Interview subject was on a Date that is 11-92?
SELECT MIN(games) FROM table_name_70 WHERE team = "aris thessaloniki" AND points < 120
CREATE TABLE table_name_70 (games INTEGER, team VARCHAR, points VARCHAR)
What is the lowest game number with Aris Thessaloniki with points smaller than 120?
SELECT AVG(games) FROM table_name_76 WHERE rank > 2 AND team = "olympiacos" AND points > 113
CREATE TABLE table_name_76 (games INTEGER, points VARCHAR, rank VARCHAR, team VARCHAR)
What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?
SELECT result FROM table_name_14 WHERE opponent = "buffalo bills"
CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR)
Which result was there when the opponents were the Buffalo Bills?
SELECT COUNT(purse__) AS $__ FROM table_name_88 WHERE location = "iowa"
CREATE TABLE table_name_88 (purse__ VARCHAR, location VARCHAR)
What was the Purse ($) total for Iowa?
SELECT date FROM table_name_4 WHERE score = "195 (-21)"
CREATE TABLE table_name_4 (date VARCHAR, score VARCHAR)
When did the Score of 195 (-21) happen?
SELECT date FROM table_name_78 WHERE winner = "scott hoch (2)"
CREATE TABLE table_name_78 (date VARCHAR, winner VARCHAR)
When did Scott Hoch (2) win?
SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania"
CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR)
What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?
SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania"
CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR)
What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?
SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia"
CREATE TABLE table_name_70 (sixth VARCHAR, second VARCHAR, fourth VARCHAR)
What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?
SELECT fifth FROM table_name_96 WHERE second = "victoria" AND first = "tasmania" AND sixth = "south australia"
CREATE TABLE table_name_96 (fifth VARCHAR, sixth VARCHAR, second VARCHAR, first VARCHAR)
What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth?
SELECT MIN(lost) FROM table_name_4 WHERE position > 2 AND points = 4 AND drawn > 2
CREATE TABLE table_name_4 (lost INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR)
What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?