answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT district FROM table_1341663_6 WHERE incumbent = "Bob Wilson"
What is the district that has Bob Wilson as an incumbent?
CREATE TABLE table_1341663_6 (district VARCHAR, incumbent VARCHAR)
SELECT RoomId, roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3
Find the name and id of the top 3 expensive rooms.
CREATE TABLE Rooms (RoomId VARCHAR, roomName VARCHAR, basePrice VARCHAR)
SELECT year_s__won FROM table_name_71 WHERE total = 289
Which Year(s) won has a Total of 289?
CREATE TABLE table_name_71 (year_s__won VARCHAR, total VARCHAR)
SELECT outcome FROM table_name_8 WHERE tournament = "los angeles" AND partner = "julie halard"
What is the Outcome of the Los Angeles Tournament when the Partner is Julie Halard?
CREATE TABLE table_name_8 (outcome VARCHAR, tournament VARCHAR, partner VARCHAR)
SELECT attendance FROM table_name_70 WHERE week = 17
What was the Attendance in Week 17?
CREATE TABLE table_name_70 (attendance VARCHAR, week VARCHAR)
SELECT points_per_game FROM table_25774493_3 WHERE rebounds_per_game = "15.0"
What were the points per game in the selection where the rebounds per game were 15.0?
CREATE TABLE table_25774493_3 (points_per_game VARCHAR, rebounds_per_game VARCHAR)
SELECT COUNT(player) FROM table_11677100_12 WHERE hometown = "Pennsauken, NJ"
How many players have the hometown Pennsauken, NJ?
CREATE TABLE table_11677100_12 (player VARCHAR, hometown VARCHAR)
SELECT high_points FROM table_27722734_11 WHERE date = "April 8"
Name the high points for april 8
CREATE TABLE table_27722734_11 (high_points VARCHAR, date VARCHAR)
SELECT tier FROM table_name_95 WHERE runner_up = "chanda rubin caroline vis"
What is the Tier when the runner-up is chanda rubin caroline vis?
CREATE TABLE table_name_95 (tier VARCHAR, runner_up VARCHAR)
SELECT 1994 FROM table_name_38 WHERE tournament = "atp masters series"
In 1994 what tournament held a ATP masters series
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT COUNT(share) FROM table_24910733_2 WHERE air_date = "October 17, 2007"
How many share figures are there for the episode that aired on October 17, 2007?
CREATE TABLE table_24910733_2 (share VARCHAR, air_date VARCHAR)
SELECT youth_classification FROM table_25055040_22 WHERE sprint_classification = "Mark Cavendish" AND most_courageous = "Maarten Tjallingii"
When Mark Cavendish wins sprint classification and Maarten Tjallingii wins most courageous, who wins youth classification?
CREATE TABLE table_25055040_22 (youth_classification VARCHAR, sprint_classification VARCHAR, most_courageous VARCHAR)
SELECT AVG(top_5) FROM table_name_1 WHERE cuts_made > 34
what is the average top-5 when the cuts made is more than 34?
CREATE TABLE table_name_1 (top_5 INTEGER, cuts_made INTEGER)
SELECT original_club FROM table_26218124_1 WHERE name = "Hapoel Katamon Jerusalem F.C."
Which club was originally named hapoel katamon jerusalem f.c.?
CREATE TABLE table_26218124_1 (original_club VARCHAR, name VARCHAR)
SELECT bush_percentage FROM table_name_39 WHERE kerry_percentage = "58.1%"
When Keey has 58.1% what % does Bush have?
CREATE TABLE table_name_39 (bush_percentage VARCHAR, kerry_percentage VARCHAR)
SELECT title FROM table_25800134_2 WHERE airdate = "May 10, 1958"
What is the title of the episode that aired on May 10, 1958?
CREATE TABLE table_25800134_2 (title VARCHAR, airdate VARCHAR)
SELECT date FROM table_name_42 WHERE city___state = "melbourne, victoria"
On what date was the race in Melbourne, Victoria?
CREATE TABLE table_name_42 (date VARCHAR, city___state VARCHAR)
SELECT COUNT(week) FROM table_name_81 WHERE stadium = "cleveland browns stadium"
How many weeks in total were games played at Cleveland Browns Stadium?
CREATE TABLE table_name_81 (week VARCHAR, stadium VARCHAR)
SELECT home_team AS score FROM table_name_40 WHERE venue = "princes park"
What is the home team score when the venue is Princes Park?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(games) AS ↑ FROM table_name_18 WHERE position = "fb"
How many games were played by the player at FB?
CREATE TABLE table_name_18 (games VARCHAR, position VARCHAR)
SELECT record FROM table_name_27 WHERE game__number = 79
What was the record after game 79?
CREATE TABLE table_name_27 (record VARCHAR, game__number VARCHAR)
SELECT type FROM table_262560_1 WHERE joined = 2007
Name the type that joined 2007
CREATE TABLE table_262560_1 (type VARCHAR, joined VARCHAR)
SELECT country FROM table_name_94 WHERE to_par = "+4" AND score = 73 - 71 - 73 = 217
What is the Country of the Player with a To par of +4 and Score of 73-71-73=217?
CREATE TABLE table_name_94 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT MIN(position) FROM table_name_40 WHERE total < 16.65 AND a_score = 7.4
What is the Position of the person with a total less than 16.65 and an A score of 7.4?
CREATE TABLE table_name_40 (position INTEGER, total VARCHAR, a_score VARCHAR)
SELECT nickname FROM table_name_54 WHERE location = "manchester, new hampshire"
What is the nickname of the school located in Manchester, New Hampshire?
CREATE TABLE table_name_54 (nickname VARCHAR, location VARCHAR)
SELECT ticket_price_s_ FROM table_name_7 WHERE venue = "canadian national exhibition stadium"
What is the ticket price at Canadian National Exhibition Stadium?
CREATE TABLE table_name_7 (ticket_price_s_ VARCHAR, venue VARCHAR)
SELECT MAX(series__number) FROM table_11630008_6 WHERE season__number = 3
What is the most series number with season 3?
CREATE TABLE table_11630008_6 (series__number INTEGER, season__number VARCHAR)
SELECT MAX(date_moved_in) FROM Residents
When is the last day any resident moved in?
CREATE TABLE Residents (date_moved_in INTEGER)
SELECT ship FROM table_name_48 WHERE pennant_number = "h55"
What is the name of the ship that had a Pennant number of h55?
CREATE TABLE table_name_48 (ship VARCHAR, pennant_number VARCHAR)
SELECT COUNT(goals¹) FROM table_24565004_17 WHERE name = "Mauricio Pochettino"
Name the number of goals for mauricio pochettino
CREATE TABLE table_24565004_17 (goals¹ VARCHAR, name VARCHAR)
SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = "Mercer"
How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?
CREATE TABLE table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ VARCHAR, college VARCHAR)
SELECT owner FROM table_name_48 WHERE branding = "fox fm"
Who is the owner with the branding fox fm?
CREATE TABLE table_name_48 (owner VARCHAR, branding VARCHAR)
SELECT MAX(season__number) FROM table_29102100_1 WHERE prod_code = 334
What number episode in the season had a production code of 334?
CREATE TABLE table_29102100_1 (season__number INTEGER, prod_code VARCHAR)
SELECT result FROM table_name_77 WHERE first_elected = "1884" AND incumbent = "joseph mckenna"
What was the result for incumbent Joseph McKenna who was first elected in 1884?
CREATE TABLE table_name_77 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's"
Tell me the score for Venue of tanteen recreation ground, st. george's
CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_56 WHERE player = "john huston"
What was john huston's score?
CREATE TABLE table_name_56 (score VARCHAR, player VARCHAR)
SELECT runner_s__up FROM table_name_86 WHERE margin_of_victory = "2 strokes" AND tournament = "mazda senior tournament players championship"
Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?
CREATE TABLE table_name_86 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT MAX(model) FROM table_10528691_4 WHERE introduction = "May 1999"
What is the model number introduced May 1999?
CREATE TABLE table_10528691_4 (model INTEGER, introduction VARCHAR)
SELECT COUNT(attendance) FROM table_26842217_8 WHERE site = "Wallace Wade Stadium • Durham, NC"
How many times was the site wallace wade stadium • durham, nc?
CREATE TABLE table_26842217_8 (attendance VARCHAR, site VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE date = "september 11"
What was the attendance on September 11?
CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR)
SELECT MAX(rank) FROM table_name_27 WHERE gross = "$38,916" AND screens > 6
What is the highest rank of the day with a gross of $38,916 and more than 6 screens?
CREATE TABLE table_name_27 (rank INTEGER, gross VARCHAR, screens VARCHAR)
SELECT venue FROM table_name_54 WHERE away_team = "geelong"
Name the venue for geelong away team
CREATE TABLE table_name_54 (venue VARCHAR, away_team VARCHAR)
SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders
What is the maximum accelerate for different number of cylinders?
CREATE TABLE CARS_DATA (Cylinders VARCHAR, Accelerate INTEGER)
SELECT production_code FROM table_14562722_1 WHERE written_by = "Michael Dante DiMartino" AND directed_by = "Lauren MacMullan"
What was the production code of the episode that was written by michael dante dimartino and directed by lauren macmullan?
CREATE TABLE table_14562722_1 (production_code VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT rating FROM table_11274401_3 WHERE air_date = "May 5, 2009"
What's the rating of the episode originally aired on May 5, 2009?
CREATE TABLE table_11274401_3 (rating VARCHAR, air_date VARCHAR)
SELECT date FROM table_name_4 WHERE away_team = "richmond"
On which date did Richmond play as an away team?
CREATE TABLE table_name_4 (date VARCHAR, away_team VARCHAR)
SELECT winner FROM table_21326205_2 WHERE time__gmt_ = "18:54"
Which ralliers won the stages that were at 18:54 GMT?
CREATE TABLE table_21326205_2 (winner VARCHAR, time__gmt_ VARCHAR)
SELECT date FROM table_name_65 WHERE away_team = "carlton"
What was the date when the away team was Carlton?
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
SELECT sector FROM table_23802822_1 WHERE establishments = 110313
What is the sector is the establishment is 110313?
CREATE TABLE table_23802822_1 (sector VARCHAR, establishments VARCHAR)
SELECT club FROM table_1676073_12 WHERE points_for = "748"
What clubs recorded 748 points to the good?
CREATE TABLE table_1676073_12 (club VARCHAR, points_for VARCHAR)
SELECT MIN(lost) FROM table_name_88 WHERE goals_for > 52 AND points_1 = "44" AND drawn < 8
What is the lowest Lost, when Goals For is greater than 52, when Points 1 is "44", and when Drawn is less than 8?
CREATE TABLE table_name_88 (lost INTEGER, drawn VARCHAR, goals_for VARCHAR, points_1 VARCHAR)
SELECT pavilion_depth FROM table_name_36 WHERE brilliance_grade = "100%" AND pavilion_angle = "n/a"
Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?
CREATE TABLE table_name_36 (pavilion_depth VARCHAR, brilliance_grade VARCHAR, pavilion_angle VARCHAR)
SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130
What sum of draw had more than 22 in Jury and a Televote of 130?
CREATE TABLE table_name_91 (draw INTEGER, jury VARCHAR, televote VARCHAR)
SELECT COUNT(party) FROM table_2668374_18 WHERE first_elected = "1805"
How many parties were first elected in 1805?
CREATE TABLE table_2668374_18 (party VARCHAR, first_elected VARCHAR)
SELECT tries_for FROM table_name_87 WHERE lost = "7"
How many tries were for the 7 lost?
CREATE TABLE table_name_87 (tries_for VARCHAR, lost VARCHAR)
SELECT player FROM table_name_25 WHERE round > 5 AND position = "c"
Tell me the player for round more than 5 and position of c
CREATE TABLE table_name_25 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT date FROM table_name_82 WHERE effect = "shot down" AND place = "south of stanley airport"
What is Date, when Effect is "Shot Down", and when Place is "South of Stanley Airport"?
CREATE TABLE table_name_82 (date VARCHAR, effect VARCHAR, place VARCHAR)
SELECT project_id, project_details FROM Projects
List ids and details for all projects.
CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR)
SELECT home_team FROM table_name_66 WHERE venue = "junction oval"
What team is based at junction oval?
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
SELECT paris___fra__ FROM table_name_67 WHERE "press" = "press" AND roger_françois = "carlo galimberti"
What was the press like in Paris for Roger Francois, and Carlo Galimberti?
CREATE TABLE table_name_67 (paris___fra__ VARCHAR, roger_françois VARCHAR)
SELECT name FROM table_name_99 WHERE nationality = "nor" AND points = 136
Which Name has a Nationality of nor, and Points of 136?
CREATE TABLE table_name_99 (name VARCHAR, nationality VARCHAR, points VARCHAR)
SELECT DISTINCT transaction_type FROM Financial_Transactions
Show all transaction types.
CREATE TABLE Financial_Transactions (transaction_type VARCHAR)
SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id
What are all the fault descriptions and the fault status of all the faults recoreded in the logs?
CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)
SELECT venue FROM table_name_26 WHERE competition = "international match" AND date = "1948-10-28"
In 1948-10-28, in what Venue was the Competition of International Match held?
CREATE TABLE table_name_26 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT played FROM table_13564637_3 WHERE lost = "8"
What amount had all played that lost were 8?
CREATE TABLE table_13564637_3 (played VARCHAR, lost VARCHAR)
SELECT COUNT(quantity) FROM table_name_59 WHERE type = "2-4-2t"
What is the Quantity of type 2-4-2t?
CREATE TABLE table_name_59 (quantity VARCHAR, type VARCHAR)
SELECT COUNT(flag) FROM table_19872699_1 WHERE design_firm = "Farr Yacht Design"
Farr Yacht Design designed boats for how many country/flags?
CREATE TABLE table_19872699_1 (flag VARCHAR, design_firm VARCHAR)
SELECT T1.date, T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id ORDER BY T1.season DESC
For each injury accident, find the date of the game and the name of the injured player in the game, and sort the results in descending order of game season.
CREATE TABLE game (date VARCHAR, id VARCHAR, season VARCHAR); CREATE TABLE injury_accident (player VARCHAR, game_id VARCHAR)
SELECT airport FROM table_name_87 WHERE icao = "eddh"
What is the Airport with a ICAO of EDDH?
CREATE TABLE table_name_87 (airport VARCHAR, icao VARCHAR)
SELECT goals_against FROM table_name_36 WHERE wins = 7
For teams with 7 wins, what is the number of goals against?
CREATE TABLE table_name_36 (goals_against VARCHAR, wins 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 man_of_the_match FROM table_17120964_5 WHERE date = "24th"
Name the man of the match for 24th
CREATE TABLE table_17120964_5 (man_of_the_match VARCHAR, date VARCHAR)
SELECT time FROM table_name_85 WHERE country = "belgium"
What time does Belgium have?
CREATE TABLE table_name_85 (time VARCHAR, country VARCHAR)
SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = "73(7%)"
What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)?
CREATE TABLE table_name_7 (agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR, domestic_use__m_3__p_yr__in__percentage_ VARCHAR)
SELECT MAX(population__2008_) FROM table_name_69 WHERE created < 1857 AND county = "sinoe"
What is the highest population (2008) created earlier than 1857, and the county was Sinoe?
CREATE TABLE table_name_69 (population__2008_ INTEGER, created VARCHAR, county VARCHAR)
SELECT nationality FROM table_name_56 WHERE player = "dave curry"
Dave Curry has what Nationality?
CREATE TABLE table_name_56 (nationality VARCHAR, player VARCHAR)
SELECT batting_team FROM table_name_63 WHERE venue = "chittagong" AND season = "2003"
What batting team played in Chittagong in 2003?
CREATE TABLE table_name_63 (batting_team VARCHAR, venue VARCHAR, season VARCHAR)
SELECT opponent FROM table_name_86 WHERE series = "1-3"
Who was the opponent when the series was at 1-3?
CREATE TABLE table_name_86 (opponent VARCHAR, series VARCHAR)
SELECT geological_trend FROM table_name_41 WHERE operator_s_ = "woc"
Which Geological Trend has an Operator(s) of woc?
CREATE TABLE table_name_41 (geological_trend VARCHAR, operator_s_ VARCHAR)
SELECT tamil FROM table_name_89 WHERE hindi = "sukravar"
WHAT IS THE TAMIL WITH A SUKRAVAR ?
CREATE TABLE table_name_89 (tamil VARCHAR, hindi VARCHAR)
SELECT born_in_a_non_eu_state__millions_ FROM table_name_32 WHERE total_population__millions_ = 62.008
How many people were born in a non EU state (in millions), when the Total population (in millions) was 62.008?
CREATE TABLE table_name_32 (born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR)
SELECT MIN(attendance) FROM table_15173650_2
Name the least attendance
CREATE TABLE table_15173650_2 (attendance INTEGER)
SELECT venue FROM table_name_42 WHERE score = "3-2"
What venue held with game with a score of 3-2?
CREATE TABLE table_name_42 (venue VARCHAR, score VARCHAR)
SELECT winner FROM table_name_38 WHERE circuit = "amaroo park"
Who was the winner on the Amaroo Park circuit?
CREATE TABLE table_name_38 (winner VARCHAR, circuit VARCHAR)
SELECT MAX(round) FROM table_name_18 WHERE college = "nebraska" AND overall < 190
What is the highest round for College of Nebraska if the Overall is under 190?
CREATE TABLE table_name_18 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT team FROM table_name_6 WHERE grid = 15
What team has a grid of 15?
CREATE TABLE table_name_6 (team VARCHAR, grid VARCHAR)
SELECT SUM(year) FROM table_name_98 WHERE competition = "british empire and commonwealth games"
What is the Year the competition the british empire and commonwealth games were held?
CREATE TABLE table_name_98 (year INTEGER, competition VARCHAR)
SELECT opponent FROM table_name_16 WHERE december < 14 AND game < 28 AND score = "6 - 6"
December smaller than 14, and a Game smaller than 28, and a Score of 6 - 6 involved what opponent?
CREATE TABLE table_name_16 (opponent VARCHAR, score VARCHAR, december VARCHAR, game VARCHAR)
SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = "vanderbilt"
What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?
CREATE TABLE table_name_94 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT 2007 FROM table_name_55 WHERE tournament = "olympic games"
What shows for 2007 at the Olympic Games as tournament.
CREATE TABLE table_name_55 (tournament VARCHAR)
SELECT tournament FROM table_name_60 WHERE 2000 = "a"
What is Tournament, when 2000 is "A"?
CREATE TABLE table_name_60 (tournament VARCHAR)
SELECT award_name FROM table_15584199_3 WHERE team_name = "BLACK OCEAN CURRENT"
Name the award name for black ocean current
CREATE TABLE table_15584199_3 (award_name VARCHAR, team_name VARCHAR)
SELECT COUNT(pick) FROM table_name_86 WHERE overall < 304 AND position = "g" AND round < 11
How many Picks have an Overall smaller than 304, and a Position of g, and a Round smaller than 11?
CREATE TABLE table_name_86 (pick VARCHAR, round VARCHAR, overall VARCHAR, position VARCHAR)
SELECT COUNT(enrollment) FROM table_name_95 WHERE _number___county = "57 noble" AND ihsaa_class = "aa"
What's the total enrollment in 57 Noble having a # and AA as the IHSAA Class?
CREATE TABLE table_name_95 (enrollment VARCHAR, _number___county VARCHAR, ihsaa_class VARCHAR)
SELECT location FROM table_name_81 WHERE year > 1993 AND killed = "100.9"
What location has a killed of 100.9, and a year later than 1993?
CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, killed VARCHAR)
SELECT regular_season FROM table_2361911_2 WHERE league = "USISL D-3 Pro league" AND playoffs = "Did not qualify"
Name the regular season for usisl d-3 pro league did not qualify
CREATE TABLE table_2361911_2 (regular_season VARCHAR, league VARCHAR, playoffs VARCHAR)
SELECT letter FROM table_name_40 WHERE british = "aɪ"
Which letter has the British aɪ?
CREATE TABLE table_name_40 (letter VARCHAR, british VARCHAR)
SELECT record FROM table_23624542_4 WHERE date = "Sept 22"
What is the record on Sept 22?
CREATE TABLE table_23624542_4 (record VARCHAR, date VARCHAR)
SELECT s_analyst FROM table_22654139_2
Name the analysts
CREATE TABLE table_22654139_2 (s_analyst VARCHAR)
SELECT kit_maker FROM table_name_42 WHERE team = "aston villa"
Which kit maker does Aston Villa use?
CREATE TABLE table_name_42 (kit_maker VARCHAR, team VARCHAR)