answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT candidates FROM table_1342331_11 WHERE incumbent = "John S. Wood"
What candidates ran in the election when john s. wood was the incumbent?
CREATE TABLE table_1342331_11 (candidates VARCHAR, incumbent VARCHAR)
SELECT time FROM table_name_31 WHERE rank > 3 AND name = "andrey kapralov"
Which time has a Rank larger than 3, and a Name of andrey kapralov?
CREATE TABLE table_name_31 (time VARCHAR, rank VARCHAR, name VARCHAR)
SELECT winner FROM table_name_16 WHERE college = "kentucky"
What is Winner, when College is "Kentucky"?
CREATE TABLE table_name_16 (winner VARCHAR, college VARCHAR)
SELECT bypass_boosters FROM table_16731248_1 WHERE spi = "Yes" AND exhaust_ports = "Slit"
How many bypass boosters are there on the engine with slit exhaust ports and SPI is yes?
CREATE TABLE table_16731248_1 (bypass_boosters VARCHAR, spi VARCHAR, exhaust_ports VARCHAR)
SELECT COUNT(founded) FROM table_18483171_1 WHERE location = "Rock Island, Illinois"
List the total number of institutions founded in Rock Island, Illinois.
CREATE TABLE table_18483171_1 (founded VARCHAR, location VARCHAR)
SELECT athlete FROM table_name_40 WHERE year < 1984 AND event = "800 m"
Which athlete performed before 1984 in an 800 m event?
CREATE TABLE table_name_40 (athlete VARCHAR, year VARCHAR, event VARCHAR)
SELECT winning_score FROM table_name_93 WHERE margin_of_victory = "4 strokes" AND tournament = "nec invitational"
What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?
CREATE TABLE table_name_93 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT final_standing FROM table_name_58 WHERE years = "1981–82"
What is the final standing in 1981–82?
CREATE TABLE table_name_58 (final_standing VARCHAR, years VARCHAR)
SELECT points_against FROM table_name_51 WHERE drawn = "0" AND tries_for = "50"
For the club that had tries of 50 and drawn of 0, what were the points?
CREATE TABLE table_name_51 (points_against VARCHAR, drawn VARCHAR, tries_for VARCHAR)
SELECT MAX(dave_viewers) FROM table_25721_3 WHERE dave_ja_vu_viewers = 119000
What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?
CREATE TABLE table_25721_3 (dave_viewers INTEGER, dave_ja_vu_viewers VARCHAR)
SELECT loss FROM table_name_12 WHERE attendance = "38,062"
What is the loss of the game with 38,062 folks in attendance?
CREATE TABLE table_name_12 (loss VARCHAR, attendance VARCHAR)
SELECT SUM(enrollment) FROM table_name_62 WHERE location = "buffalo, new york" AND affiliation = "public" AND founded > 1846
What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?
CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR)
SELECT runner_up FROM table_13036251_1 WHERE season = "season 13"
what's runner-up with season being season 13
CREATE TABLE table_13036251_1 (runner_up VARCHAR, season VARCHAR)
SELECT COUNT(report) FROM table_18893428_1 WHERE driver = "Charles Jarrott"
How many times did Charles Jarrott report?
CREATE TABLE table_18893428_1 (report VARCHAR, driver VARCHAR)
SELECT directed_by FROM table_29574579_1 WHERE uk_viewers__million_ = "2.70"
Who is the director when there are 2.70 million viewers?
CREATE TABLE table_29574579_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT result FROM table_name_26 WHERE home_team = "portland" AND date = "june 12"
What was the result for Portland at home on June 12?
CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT MIN(goal_difference) FROM table_name_94 WHERE goals_against = 61 AND draws < 11
What is the lowest goal difference a club with 61 goals against and less than 11 draws has?
CREATE TABLE table_name_94 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR)
SELECT MIN(height__cm_) FROM table_name_12 WHERE position = "d" AND name = "jeff hymanson"
Which Height (cm) has a Position of d, and a Name of jeff hymanson?
CREATE TABLE table_name_12 (height__cm_ INTEGER, position VARCHAR, name VARCHAR)
SELECT venue FROM table_1139835_1 WHERE scores = "15.13 (103) – 8.4 (52)"
what is the venue where the scores are 15.13 (103) – 8.4 (52)?
CREATE TABLE table_1139835_1 (venue VARCHAR, scores VARCHAR)
SELECT venue FROM table_name_81 WHERE goal = 3
Which venue has a Goal of 3?
CREATE TABLE table_name_81 (venue VARCHAR, goal VARCHAR)
SELECT MIN(enrollment) FROM table_2419754_1 WHERE location = "Milwaukee, Wisconsin"
How many people are enrolled at the university in milwaukee, wisconsin
CREATE TABLE table_2419754_1 (enrollment INTEGER, location VARCHAR)
SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 1
For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes?
CREATE TABLE table_name_24 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)
SELECT league FROM table_1214035_1 WHERE open_cup = "Quarter Finals"
For which league is the open cup the quarter finals
CREATE TABLE table_1214035_1 (league VARCHAR, open_cup VARCHAR)
SELECT nickname FROM table_name_65 WHERE established = 1773
What is the nickname of the college established in 1773?
CREATE TABLE table_name_65 (nickname VARCHAR, established VARCHAR)
SELECT record FROM table_name_9 WHERE res = "loss" AND round = "1" AND opponent = "akira maeda"
What record has loss as the res., 1 for the round, and akira maeda as the opponent?
CREATE TABLE table_name_9 (record VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR)
SELECT sub_parish__sogn_ FROM table_name_66 WHERE year_built < 1883 AND parish__prestegjeld_ = "jostedal parish" AND location_of_the_church = "gaupne"
Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?
CREATE TABLE table_name_66 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR, year_built VARCHAR, parish__prestegjeld_ VARCHAR)
SELECT MIN(judges) FROM table_26375386_20 WHERE result = "Safe" AND vote_percentage = "10.7%"
How many judges were there when the result is safe with a vote percentage of 10.7%?
CREATE TABLE table_26375386_20 (judges INTEGER, result VARCHAR, vote_percentage VARCHAR)
SELECT MIN(episode__number) FROM table_25764073_3 WHERE writer_s_ = "Anne Brooksbank and Vicki Madden"
Name the least episode number for anne brooksbank and vicki madden
CREATE TABLE table_25764073_3 (episode__number INTEGER, writer_s_ VARCHAR)
SELECT MAX(average) FROM table_name_56 WHERE evening_gown > 9.449 AND state = "kansas"
What is the highest average for a contestant with an evening gown larger than 9.449 from Kansas?
CREATE TABLE table_name_56 (average INTEGER, evening_gown VARCHAR, state VARCHAR)
SELECT county FROM table_1447085_1 WHERE number_of_households = 2053
What county has 2053 households?
CREATE TABLE table_1447085_1 (county VARCHAR, number_of_households VARCHAR)
SELECT 2 AS nd_leg FROM table_name_62 WHERE team__number1 = "ldu quito"
What is the 2nd leg with ldu quito as team 1?
CREATE TABLE table_name_62 (team__number1 VARCHAR)
SELECT AVG(fa_trophy) FROM table_name_52 WHERE player = "mario walsh" AND league > 17
How many FA Trophy has a Player of mario walsh and a League larger than 17?
CREATE TABLE table_name_52 (fa_trophy INTEGER, player VARCHAR, league VARCHAR)
SELECT COUNT(mens_singles) FROM table_28138035_6 WHERE womens_doubles = "China"
How many times was the womens doubles in china?
CREATE TABLE table_28138035_6 (mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT tries_against FROM table_name_24 WHERE points_against = "429"
Having 429 points against, what is the Tries Against?
CREATE TABLE table_name_24 (tries_against VARCHAR, points_against VARCHAR)
SELECT COUNT(_number) FROM table_28196105_1 WHERE production_code = "7ABB21"
What was the number of episodes whose production code is 7ABB21?
CREATE TABLE table_28196105_1 (_number VARCHAR, production_code VARCHAR)
SELECT 20 AS _questions FROM table_1566850_9 WHERE cover_model = "Linda Brava"
Who was asked 20 questions in the issue where the cover model is Linda Brava?
CREATE TABLE table_1566850_9 (cover_model VARCHAR)
SELECT District_name, City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000
Find the name and population of district with population between 200000 and 2000000
CREATE TABLE district (District_name VARCHAR, City_Population INTEGER)
SELECT no3 FROM table_name_62 WHERE no1 = "claudio sylvie"
Who is no.3 when Claudio Sylvie is no.1?
CREATE TABLE table_name_62 (no3 VARCHAR, no1 VARCHAR)
SELECT COUNT(allied_unrelated) FROM table_11944282_1 WHERE component = "Human Capital"
What is the total amount of allied-unrelated where the component is human capital?
CREATE TABLE table_11944282_1 (allied_unrelated VARCHAR, component VARCHAR)
SELECT AVG(goals_conceded) FROM table_name_26 WHERE draw > 7 AND goals_scored > 24
Name the average goals conceded with draw bigger than 7 and goals scored more than 24
CREATE TABLE table_name_26 (goals_conceded INTEGER, draw VARCHAR, goals_scored VARCHAR)
SELECT director FROM table_name_27 WHERE production_number = 1490
What director had a production number of 1490?
CREATE TABLE table_name_27 (director VARCHAR, production_number VARCHAR)
SELECT MAX(population) FROM table_name_16 WHERE state = "puerto rico" AND total_congregations > 41
What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41?
CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR)
SELECT destroyed FROM table_1817852_1 WHERE aircraft = "USSR MiG-25 RB"
If the aircraft was ussr mig-25 rb how many were destroyed?
CREATE TABLE table_1817852_1 (destroyed VARCHAR, aircraft VARCHAR)
SELECT score FROM table_name_8 WHERE date = "january 15, 2005"
What score has january 15, 2005 as the date?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT COUNT(enrollment) FROM table_name_97 WHERE school = "laville"
What is the total enrollment at Laville?
CREATE TABLE table_name_97 (enrollment VARCHAR, school VARCHAR)
SELECT record FROM table_name_43 WHERE event = "wec 24"
What was the record at WEC 24?
CREATE TABLE table_name_43 (record VARCHAR, event VARCHAR)
SELECT date_of_entry FROM table_1160304_2 WHERE chart = "UK Albums Top 75"
What is the date of entry for the UK Albums Top 75 chart?
CREATE TABLE table_1160304_2 (date_of_entry VARCHAR, chart VARCHAR)
SELECT yacht AS Type FROM table_1858574_2 WHERE sail_number = "6606"
When 6606 is the sail number what is the type of yacht?
CREATE TABLE table_1858574_2 (yacht VARCHAR, sail_number VARCHAR)
SELECT type FROM table_name_1 WHERE issued = 1964
What type was issued in 1964?
CREATE TABLE table_name_1 (type VARCHAR, issued VARCHAR)
SELECT ticket_price_s_ FROM table_name_96 WHERE venue = "red rocks amphitheatre"
What was the ticket price at Red Rocks Amphitheatre?
CREATE TABLE table_name_96 (ticket_price_s_ VARCHAR, venue VARCHAR)
SELECT status FROM table_name_10 WHERE population = 10
What status has 10 as the population?
CREATE TABLE table_name_10 (status VARCHAR, population VARCHAR)
SELECT constellation FROM table_name_71 WHERE date_sent = "september 4, 2001" AND distance___ly__ < 57.4
What is Constellation, when Date Sent is "September 4, 2001", and when Distance ( ly ) is less than 57.4?
CREATE TABLE table_name_71 (constellation VARCHAR, date_sent VARCHAR, distance___ly__ VARCHAR)
SELECT home FROM table_name_33 WHERE date = "december 10"
What is the Home on december 10?
CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR)
SELECT format FROM table_name_52 WHERE catalog = "dp068-07"
For the catalog title DP068-07, what formats are available?
CREATE TABLE table_name_52 (format VARCHAR, catalog VARCHAR)
SELECT MIN(total) FROM table_name_84 WHERE nation = "austria" AND gold > 3
What was Austria's lowest total when the gold was more than 3?
CREATE TABLE table_name_84 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT result FROM table_name_3 WHERE date = "september 8, 1985"
What was the result of the September 8, 1985 game?
CREATE TABLE table_name_3 (result VARCHAR, date VARCHAR)
SELECT COUNT(opening_weekend_net_gross) FROM table_name_82 WHERE year > 2012 AND rank = 1
What's the Total number of Opening Weekend Net Gross that occured after the year 2012 with a Rank of 1?
CREATE TABLE table_name_82 (opening_weekend_net_gross VARCHAR, year VARCHAR, rank VARCHAR)
SELECT country FROM table_name_46 WHERE to_par = "–5"
What is the Country of the Player with a To par of –5?
CREATE TABLE table_name_46 (country VARCHAR, to_par VARCHAR)
SELECT position FROM table_name_62 WHERE competition = "world athletics final" AND year > 2008
What position was played at the World Athletics Final Competition in a year more recent than 2008?
CREATE TABLE table_name_62 (position VARCHAR, competition VARCHAR, year VARCHAR)
SELECT MIN(attendance) FROM table_15173650_2
Name the least attendance
CREATE TABLE table_15173650_2 (attendance INTEGER)
SELECT visitor FROM table_name_46 WHERE date = "2006-11-04"
What is the name of the visitor on 2006-11-04?
CREATE TABLE table_name_46 (visitor VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_14 WHERE attendance = "1,859"
Which Home Team has an Attendance of 1,859?
CREATE TABLE table_name_14 (home_team VARCHAR, attendance VARCHAR)
SELECT track FROM table_name_29 WHERE distance = "6 furlongs" AND race = "spectacular bid stakes"
What is the race with the track distance of 6 furlongs and spectacular bid stakes?
CREATE TABLE table_name_29 (track VARCHAR, distance VARCHAR, race VARCHAR)
SELECT callsign FROM table_name_67 WHERE on_air_id = "4zr"
What is 4zr's callsign?
CREATE TABLE table_name_67 (callsign VARCHAR, on_air_id VARCHAR)
SELECT MAX(blocks) FROM table_19722664_5 WHERE rebounds = 35
What is the maximum number of blocks where rebounds equal 35?
CREATE TABLE table_19722664_5 (blocks INTEGER, rebounds VARCHAR)
SELECT MAX(losses) FROM table_name_19 WHERE wins < 2 AND position < 11 AND points > 6
What is the most losses for teams with under 2 wins, more than 6 points, and a position under 11?
CREATE TABLE table_name_19 (losses INTEGER, points VARCHAR, wins VARCHAR, position VARCHAR)
SELECT customer_status_code, cell_mobile_phone_number, email_address FROM Customers WHERE first_name = "Marina" OR last_name = "Kohler"
What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?
CREATE TABLE Customers (customer_status_code VARCHAR, cell_mobile_phone_number VARCHAR, email_address VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 2
What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2?
CREATE TABLE table_name_76 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MAX(grid) FROM table_name_29 WHERE time_retired = "+ 3 laps" AND laps < 57
What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57?
CREATE TABLE table_name_29 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT competition FROM table_name_33 WHERE score = "3-0"
What was the competition when the score was 3-0?
CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR)
SELECT SUM(yield), _neutrons_per_fission FROM table_name_77 WHERE decay_constant__s_−1__ < 0.301 AND half_life__s_ = 22.72 AND group > 2
What is the yield, neutrons per fission of the group with decay constants less than 0.301, a half-life of 22.72, and a group number larger than 2?
CREATE TABLE table_name_77 (_neutrons_per_fission VARCHAR, yield INTEGER, group VARCHAR, decay_constant__s_−1__ VARCHAR, half_life__s_ VARCHAR)
SELECT played FROM table_name_8 WHERE points = "51"
What is the played value with 51 points?
CREATE TABLE table_name_8 (played VARCHAR, points VARCHAR)
SELECT skip FROM table_name_62 WHERE third = "deanna doig"
WHAT IS THE SKIP WITH A THIRD OF DEANNA DOIG?
CREATE TABLE table_name_62 (skip VARCHAR, third VARCHAR)
SELECT MAX(year) FROM table_2820584_2
What is the most recent year shown for Betty Stove?
CREATE TABLE table_2820584_2 (year INTEGER)
SELECT weight FROM table_22344463_2 WHERE name = "Stuart Craig"
What is the weight is the name is Stuart Craig?
CREATE TABLE table_22344463_2 (weight VARCHAR, name VARCHAR)
SELECT party FROM table_name_47 WHERE left_office = "january 12, 1857"
What is the party of the politician who left office on January 12, 1857
CREATE TABLE table_name_47 (party VARCHAR, left_office VARCHAR)
SELECT fa_cup_apps FROM table_name_28 WHERE league_apps = "21"
Which FA Cup Apps have League Apps of 21?
CREATE TABLE table_name_28 (fa_cup_apps VARCHAR, league_apps VARCHAR)
SELECT home_team FROM table_name_33 WHERE away_team = "north melbourne"
Who was North Melbourne's home opponent?
CREATE TABLE table_name_33 (home_team VARCHAR, away_team VARCHAR)
SELECT defending_forces FROM table_name_41 WHERE population = "120"
What is the Defending forces when the population was 120?
CREATE TABLE table_name_41 (defending_forces VARCHAR, population VARCHAR)
SELECT AVG(top_25) FROM table_name_31 WHERE events < 0
Name the averae top 25 with events less than 0
CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER)
SELECT segment_b FROM table_name_34 WHERE netflix = "s01e21"
What was the segment b for Netflix s01e21?
CREATE TABLE table_name_34 (segment_b VARCHAR, netflix VARCHAR)
SELECT MIN(attendance) FROM table_name_34 WHERE time = "2:13"
What was the Attendance when the Time was 2:13?
CREATE TABLE table_name_34 (attendance INTEGER, time VARCHAR)
SELECT jockey FROM table_name_76 WHERE group = "g3"
Which jockey had a group of G3?
CREATE TABLE table_name_76 (jockey VARCHAR, group VARCHAR)
SELECT clubs FROM table_name_10 WHERE seasons_at_this_level = "27 seasons"
Which club has played for 27 seasons at this level?
CREATE TABLE table_name_10 (clubs VARCHAR, seasons_at_this_level VARCHAR)
SELECT partner FROM table_1920271_3 WHERE outcome = "Runner-up" AND championship = "US Open"
Who was her partner at the US Open and they were runner-up?
CREATE TABLE table_1920271_3 (partner VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT udmr FROM table_name_75 WHERE date = "18-22/04/2009"
What was the UDMR for 18-22/04/2009?
CREATE TABLE table_name_75 (udmr VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_20 WHERE partner = "kristof vliegen"
What is the Outcome when the partner was kristof vliegen?
CREATE TABLE table_name_20 (outcome VARCHAR, partner VARCHAR)
SELECT competition FROM table_name_8 WHERE opponent = "randers"
What was the competition when the opponent was the Randers?
CREATE TABLE table_name_8 (competition VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_53 WHERE week > 7 AND opponent = "san diego chargers"
What was the attendance at the post-week 7 game against the San Diego Chargers?
CREATE TABLE table_name_53 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT team FROM table_27902171_5 WHERE location_attendance = "ARCO Arena 17,014"
What is every team with location attendance of Arco Arena 17,014?
CREATE TABLE table_27902171_5 (team VARCHAR, location_attendance VARCHAR)
SELECT SUM(laps) FROM table_name_53 WHERE grid = 20
What is the sum of laps for grid 20?
CREATE TABLE table_name_53 (laps INTEGER, grid VARCHAR)
SELECT caps FROM table_name_97 WHERE position = "fly-half" AND player = "paddy wallace"
Paddy Wallace who plays the position of fly-half has how many Caps?
CREATE TABLE table_name_97 (caps VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(2 AS nd_leg) FROM table_14219514_1 WHERE aggregate = "2-4"
How many 2nd legs had an aggregate of 2-4?
CREATE TABLE table_14219514_1 (aggregate VARCHAR)
SELECT competition FROM table_name_98 WHERE man_of_the_match = "stuart potts"
Which competition has stuart potts as the man of the match?
CREATE TABLE table_name_98 (competition VARCHAR, man_of_the_match VARCHAR)
SELECT player FROM table_name_18 WHERE versus = "sri lanka"
Who had a versus of sri lanka?
CREATE TABLE table_name_18 (player VARCHAR, versus VARCHAR)
SELECT title FROM table_name_16 WHERE elector = "giovanni boccamazza"
What is the Title of Elector Giovanni Boccamazza?
CREATE TABLE table_name_16 (title VARCHAR, elector VARCHAR)
SELECT result FROM table_19625976_1 WHERE persian_title = "میم مثل مادر"
For the Persian Title میم مثل مادر, what were the results?
CREATE TABLE table_19625976_1 (result VARCHAR, persian_title VARCHAR)
SELECT location FROM table_name_90 WHERE call_sign = "cjtw-fm"
Which Location has a Call sign of cjtw-fm?
CREATE TABLE table_name_90 (location VARCHAR, call_sign VARCHAR)
SELECT no FROM table_23670057_1 WHERE height__m_ = "1.96"
Name the number for 1.96 height
CREATE TABLE table_23670057_1 (no VARCHAR, height__m_ VARCHAR)
SELECT name FROM table_name_90 WHERE floors > 34
Which building has more than 34 floors?
CREATE TABLE table_name_90 (name VARCHAR, floors INTEGER)