answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(race_total_pts_) FROM table_23293785_3 WHERE country = "England"
How many racing points did England get?
CREATE TABLE table_23293785_3 (race_total_pts_ INTEGER, country VARCHAR)
SELECT date_premiered__2009_ FROM table_name_40 WHERE contestant_name = "kareena kapoor"
What date premiered (2009) has kareena kapoor as the contestant name?
CREATE TABLE table_name_40 (date_premiered__2009_ VARCHAR, contestant_name VARCHAR)
SELECT r1b1a2__r_m269_ FROM table_21481509_4 WHERE r1b1c__r_v88_ = "77.8%"
What percentage is listed in column r1b1a2 (r-m269) for the 77.8% r1b1c (r-v88)?
CREATE TABLE table_21481509_4 (r1b1a2__r_m269_ VARCHAR, r1b1c__r_v88_ VARCHAR)
SELECT result FROM table_1342249_32 WHERE district = "New York 1"
Name the result for new york 1
CREATE TABLE table_1342249_32 (result VARCHAR, district VARCHAR)
SELECT number_stayed_in_southeast FROM table_name_58 WHERE total_number_emigrated_or_forcibly_removed = "19,600"
How many of those who stayed in the southeast had 19,600 emigrated or forcibly removed?
CREATE TABLE table_name_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR)
SELECT venue FROM table_name_45 WHERE position_in_2004 = "9"
Which venue was number 9 for 2004?
CREATE TABLE table_name_45 (venue VARCHAR, position_in_2004 VARCHAR)
SELECT visitor FROM table_name_49 WHERE record = "4-3"
What visiting team has a record of 4-3?
CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR)
SELECT state FROM table_name_50 WHERE born > 1955 AND name = "maria cantwell"
What state was maria cantwell born in after 1955?
CREATE TABLE table_name_50 (state VARCHAR, born VARCHAR, name VARCHAR)
SELECT division FROM table_name_87 WHERE team = "toronto raptors"
Which division do the Toronto Raptors belong in?
CREATE TABLE table_name_87 (division VARCHAR, team VARCHAR)
SELECT competition FROM table_name_94 WHERE venue = "bangkok"
Which competition took place in Bangkok?
CREATE TABLE table_name_94 (competition VARCHAR, venue VARCHAR)
SELECT score FROM table_name_58 WHERE opponent = "@ tigers" AND date = "july 24"
What's the score for opponent @ Tigers on July 24?
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT SUM(round) FROM table_name_2 WHERE position = "forward" AND school_club_team = "western kentucky"
What is the sum of Round, when Position is Forward, and when School/Club Team is Western Kentucky?
CREATE TABLE table_name_2 (round INTEGER, position VARCHAR, school_club_team VARCHAR)
SELECT MAX(points) FROM table_name_61 WHERE year < 1974
What were the highest points before the year 1974?
CREATE TABLE table_name_61 (points INTEGER, year INTEGER)
SELECT district FROM table_1341672_10 WHERE incumbent = "James A. Haley"
what is the district where the incumbent is james a. haley?
CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR)
SELECT event FROM table_name_69 WHERE country = "(local competition)"
What is the Event labeled Country of (local competition)?
CREATE TABLE table_name_69 (event VARCHAR, country VARCHAR)
SELECT COUNT(high_rebounds) FROM table_13762472_5 WHERE record = "19-13"
How many people had the high rebound total when the team was 19-13?
CREATE TABLE table_13762472_5 (high_rebounds VARCHAR, record VARCHAR)
SELECT latitude FROM table_25675509_1 WHERE time__utc_ = "13:10:02"
At what latitude did the shock at time 13:10:02 occur?
CREATE TABLE table_25675509_1 (latitude VARCHAR, time__utc_ VARCHAR)
SELECT COUNT(max_pressure) FROM table_173103_1 WHERE cartridge = ".380 ACP"
How many pressure figures are given for the .380 acp cartridge?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)
SELECT MAX(completed) FROM table_name_89 WHERE material = "solid granite"
When was the most recent statue that was made out of solid granite completed?
CREATE TABLE table_name_89 (completed INTEGER, material VARCHAR)
SELECT schwaben FROM table_name_15 WHERE oberbayern = "fc bayern munich ii" AND mittelfranken = "1. fc nuremberg ii"
Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?
CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
SELECT COUNT(dismissals) FROM table_24039597_26 WHERE matches = 44
How many matches were 44?
CREATE TABLE table_24039597_26 (dismissals VARCHAR, matches VARCHAR)
SELECT left_office FROM table_name_49 WHERE entered_office = "7 december 1916"
What date did the prime minister who entered office on 7 December 1916 leave office?
CREATE TABLE table_name_49 (left_office VARCHAR, entered_office VARCHAR)
SELECT COUNT(season) FROM table_29446183_2 WHERE third_place = "Otsuka Pharmaceuticals"
How many seasons did Otsuka Pharmaceuticals come in third?
CREATE TABLE table_29446183_2 (season VARCHAR, third_place VARCHAR)
SELECT method FROM table_name_77 WHERE result = "win" AND opponent = "ed mahone"
Which method resulting in a win against Ed Mahone?
CREATE TABLE table_name_77 (method VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT money___$__ FROM table_name_13 WHERE score = 73 - 71 - 70 - 73 = 287
How much money was scored for 73-71-70-73=287?
CREATE TABLE table_name_13 (money___$__ VARCHAR, score VARCHAR)
SELECT centerfold_model FROM table_name_56 WHERE cover_model = "julie lynn cialini"
Who was the Centerfold Model when the Cover Model was Julie Lynn Cialini?
CREATE TABLE table_name_56 (centerfold_model VARCHAR, cover_model VARCHAR)
SELECT writer_s_ FROM table_name_51 WHERE episode = "2-15 (56)"
Who wrote Episode 2-15 (56)?
CREATE TABLE table_name_51 (writer_s_ VARCHAR, episode VARCHAR)
SELECT country FROM table_name_90 WHERE player = "david gilford"
What country does david gilford play for?
CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)
SELECT 2 AS nd_leg FROM table_name_96 WHERE team__number2 = "san lorenzo"
What is 2nd Leg, when Team #2 is "San Lorenzo"?
CREATE TABLE table_name_96 (team__number2 VARCHAR)
SELECT name AS origin FROM table_16799784_9 WHERE longitude = "355.0E"
At the longitude of 355.0e, what is the name origin?
CREATE TABLE table_16799784_9 (name VARCHAR, longitude VARCHAR)
SELECT COUNT(grid) FROM table_name_29 WHERE driver = "chuck daigh"
What is the total number of Grids for Chuck Daigh?
CREATE TABLE table_name_29 (grid VARCHAR, driver VARCHAR)
SELECT MIN(pa) FROM table_29565601_2 WHERE pf = 73
What is the PA when the PF is 73?
CREATE TABLE table_29565601_2 (pa INTEGER, pf VARCHAR)
SELECT office FROM table_name_9 WHERE party = "rep" AND representative = "brian bosma"
Which Office has a Party of rep, and a Representative of brian bosma?
CREATE TABLE table_name_9 (office VARCHAR, party VARCHAR, representative VARCHAR)
SELECT home_team AS score FROM table_name_61 WHERE away_team = "fitzroy"
What did the home team score against Fitzroy?
CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR)
SELECT result FROM table_name_22 WHERE home = "fc luzern (asl)"
What was the result when home was fc luzern (asl)?
CREATE TABLE table_name_22 (result VARCHAR, home VARCHAR)
SELECT high_points FROM table_name_23 WHERE series = "0-2"
With a 0-2 series, what is the high points?
CREATE TABLE table_name_23 (high_points VARCHAR, series VARCHAR)
SELECT nationality FROM table_name_24 WHERE ship = "appam"
what is the nationality of the ship appam?
CREATE TABLE table_name_24 (nationality VARCHAR, ship VARCHAR)
SELECT COUNT(draws) FROM table_name_11 WHERE losses = 4 AND efficiency__percentage = "28.6%"
what is the number of draws when there are 4 losses and 28.6% efficiency?
CREATE TABLE table_name_11 (draws VARCHAR, losses VARCHAR, efficiency__percentage VARCHAR)
SELECT team FROM table_name_5 WHERE arena = "dhl-höllin"
What team is in the dhl-höllin arena?
CREATE TABLE table_name_5 (team VARCHAR, arena VARCHAR)
SELECT SUM(laps) FROM table_name_69 WHERE driver = "ricardo zonta"
How many laps did Ricardo Zonta have?
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR)
SELECT place FROM table_name_66 WHERE to_par = "e" AND player = "arron oberholser"
What is the place of To par of e when Arron Oberholser was the player ?
CREATE TABLE table_name_66 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT SUM(time) FROM table_name_70 WHERE lane > 6 AND nationality = "canada" AND react < 0.151
What is the sum of time with a lane larger than 6, a nationality of canada, and the react smaller than 0.151?
CREATE TABLE table_name_70 (time INTEGER, react VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT AVG(founded) FROM table_name_87 WHERE coach = "unknown" AND location = "enfield"
What is the average year that the club located in enfield was founded with an unknown coach?
CREATE TABLE table_name_87 (founded INTEGER, coach VARCHAR, location VARCHAR)
SELECT MAX(points) FROM table_name_65 WHERE class = "125cc" AND team = "mv agusta" AND year > 1957
Name the most points for class of 125cc and team of mv agusta with year more than 1957
CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)
SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'
What are the daily hire costs for the products with substring 'Book' in its name?
CREATE TABLE Products_for_hire (daily_hire_cost VARCHAR, product_name VARCHAR)
SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson"
What is the total number of entries for Leif Olson?
CREATE TABLE table_20590020_2 (starts VARCHAR, player VARCHAR)
SELECT time FROM table_name_78 WHERE rank = 3
What's the time of Rank 3?
CREATE TABLE table_name_78 (time VARCHAR, rank VARCHAR)
SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = "—— No Time"
If Wed Aug 25 is —— no time, what is Sat aug 21?
CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, wed_25_aug VARCHAR)
SELECT score FROM table_name_78 WHERE high_points = "carmelo anthony (26)"
What was the final score for the game in which Carmelo Anthony (26) was the high points scorer?
CREATE TABLE table_name_78 (score VARCHAR, high_points VARCHAR)
SELECT storm FROM table_name_58 WHERE dance = "4" AND clash = "3"
Which storm has a clash of 3 and a dance of 4?
CREATE TABLE table_name_58 (storm VARCHAR, dance VARCHAR, clash VARCHAR)
SELECT COUNT(field_goals) FROM table_24906653_5 WHERE player = "Tonya Edwards"
How many long range shots did tonya edwards make.
CREATE TABLE table_24906653_5 (field_goals VARCHAR, player VARCHAR)
SELECT COUNT(byes) FROM table_name_74 WHERE draws > 1
What's the total byes for more than 1 draw?
CREATE TABLE table_name_74 (byes VARCHAR, draws INTEGER)
SELECT d_44_√ FROM table_name_93 WHERE d_41_√ = "r 41 +"
Name the D 44 √ for when it has D 41 √ of r 41 +
CREATE TABLE table_name_93 (d_44_√ VARCHAR, d_41_√ VARCHAR)
SELECT record FROM table_name_72 WHERE game_site = "rich stadium"
What was the record after the game at Rich Stadium?
CREATE TABLE table_name_72 (record VARCHAR, game_site VARCHAR)
SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1
Show the status of the city that has hosted the greatest number of competitions.
CREATE TABLE city (Status VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Host_city_ID VARCHAR)
SELECT score_in_the_final FROM table_name_81 WHERE opponent_in_the_final = "guillermo vilas" AND date > 1972
What was the final score with Guillermo Vilas as the opponent in the final, that happened after 1972?
CREATE TABLE table_name_81 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, date VARCHAR)
SELECT SUM(enrollment) FROM table_name_79 WHERE year_joined = 1958 AND location = "clarksville"
what is the enrollement for the year joined 1958 in clarksville?
CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR)
SELECT date FROM table_name_76 WHERE score = "4–1"
On what Date was the Score 4–1?
CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR)
SELECT losses FROM table_14594528_6 WHERE games = 19
How many losses for the coach that coached 19 games?
CREATE TABLE table_14594528_6 (losses VARCHAR, games VARCHAR)
SELECT power___dbm__ FROM table_2394927_1 WHERE profile = "8a"
List all dbm's when profiles are 8a.
CREATE TABLE table_2394927_1 (power___dbm__ VARCHAR, profile VARCHAR)
SELECT launched FROM table_name_50 WHERE commissioned = "25 july 1998"
What is Launched, when Commissioned is "25 July 1998"?
CREATE TABLE table_name_50 (launched VARCHAR, commissioned VARCHAR)
SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY COUNT(*) DESC LIMIT 1
What is the location code with the most documents?
CREATE TABLE Document_locations (location_code VARCHAR)
SELECT artist_2 FROM table_29264319_1 WHERE artist_1 = "Sparfunk & D-Code"
Who is the artist 2 on the setlist where the artist 1 is Sparfunk & D-Code?
CREATE TABLE table_29264319_1 (artist_2 VARCHAR, artist_1 VARCHAR)
SELECT AVG(total) FROM table_name_64 WHERE silver > 2 AND bronze = 12 AND gold < 12
what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?
CREATE TABLE table_name_64 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT singapore_gross FROM table_name_64 WHERE director = "1998"
For the film with director listed as 1998, what was the gross in Singapore?
CREATE TABLE table_name_64 (singapore_gross VARCHAR, director VARCHAR)
SELECT COUNT(money___) AS £__ FROM table_name_61 WHERE place = "t6" AND player = "ian baker-finch"
What is the total Money (£) with a Place of t6, and a Player of ian baker-finch?
CREATE TABLE table_name_61 (money___ VARCHAR, place VARCHAR, player VARCHAR)
SELECT max_memory_speed FROM table_24018112_1 WHERE frequency = "2.93-3.2GHz"
What is the maximum memory speed for frequencies between 2.93-3.2ghz?
CREATE TABLE table_24018112_1 (max_memory_speed VARCHAR, frequency VARCHAR)
SELECT SUM(laps) FROM table_name_84 WHERE time = "accident" AND rider = "carmelo morales" AND grid > 25
How many laps had a time stat of accident for the rider carmelo morales when the grid was more than 25?
CREATE TABLE table_name_84 (laps INTEGER, grid VARCHAR, time VARCHAR, rider VARCHAR)
SELECT colony_name FROM table_name_82 WHERE state = "west virginia"
Which Colony Name is in west virginia?
CREATE TABLE table_name_82 (colony_name VARCHAR, state VARCHAR)
SELECT year FROM table_name_61 WHERE qual = "totals"
The qual of totals took place during what year?
CREATE TABLE table_name_61 (year VARCHAR, qual VARCHAR)
SELECT gold FROM table_name_19 WHERE bronze > 2 AND silver = 29
How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals?
CREATE TABLE table_name_19 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT score FROM table_name_11 WHERE decision = "parent" AND home = "philadelphia" AND visitor = "pittsburgh"
What is the score of the game that had a decision of Parent, home team of Philadelphia, and visitor of Pittsburgh?
CREATE TABLE table_name_11 (score VARCHAR, visitor VARCHAR, decision VARCHAR, home VARCHAR)
SELECT MIN(scripted_show_ranking) FROM table_22170495_7 WHERE title = "Epiphany"
The episode titled "Epiphany" received what scripted show ranking?
CREATE TABLE table_22170495_7 (scripted_show_ranking INTEGER, title VARCHAR)
SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1
Which product has been ordered most number of times?
CREATE TABLE products (product_details VARCHAR, product_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR)
SELECT SUM(year) FROM table_name_10 WHERE result = "9th"
What is the sum of Year, when Result is 9th?
CREATE TABLE table_name_10 (year INTEGER, result VARCHAR)
SELECT COUNT(winning_score) FROM table_21469545_2 WHERE date = "8 Feb 2009"
Name the winning score for 8 feb 2009
CREATE TABLE table_21469545_2 (winning_score VARCHAR, date VARCHAR)
SELECT epa_rated_highway_fuel_economy FROM table_20549371_3 WHERE type_of_powertrain = "Electric SUV"
What is the epa highway fuel economy for an electric suv?
CREATE TABLE table_20549371_3 (epa_rated_highway_fuel_economy VARCHAR, type_of_powertrain VARCHAR)
SELECT pos FROM table_name_39 WHERE race = "24 hours of le mans" AND co_driver = "jackie oliver"
What position did Co-driver Jackie Oliver finish in the 24 hours of Le Mans?
CREATE TABLE table_name_39 (pos VARCHAR, race VARCHAR, co_driver VARCHAR)
SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?
CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR)
SELECT AVG(top_5) FROM table_name_3 WHERE top_10 = 5 AND cuts_made < 12
What is the average number of top-5s for the major with 5 top-10s and fewer than 12 cuts made?
CREATE TABLE table_name_3 (top_5 INTEGER, top_10 VARCHAR, cuts_made VARCHAR)
SELECT years_active FROM table_283203_1 WHERE home_venue = "North Shore Events Centre Vector Arena"
How long has the team who owns North Shore Events Centre Vector Arena been active?
CREATE TABLE table_283203_1 (years_active VARCHAR, home_venue VARCHAR)
SELECT 4 AS th_placed FROM table_21808535_1 WHERE winner = "Greg Hancock"
Who placed fourth when the winner was Greg Hancock?
CREATE TABLE table_21808535_1 (winner VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE cyrillic_name = "Футог"
How many 2011 populations have a Cyrillic name of футог?
CREATE TABLE table_2562572_2 (population__2011_ VARCHAR, cyrillic_name VARCHAR)
SELECT score FROM table_name_15 WHERE date = "november 3, 2008"
Date of november 3, 2008 had what score?
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
SELECT country FROM table_name_1 WHERE player = "doug ford"
What is Doug Ford's country?
CREATE TABLE table_name_1 (country VARCHAR, player VARCHAR)
SELECT MIN(start) FROM table_25034983_2 WHERE owner = "Cumulus"
In what year was cumulus founded?
CREATE TABLE table_25034983_2 (start INTEGER, owner VARCHAR)
SELECT release FROM table_25721_4 WHERE _number_of_discs = 6
Which release had 6 DVDs?
CREATE TABLE table_25721_4 (release VARCHAR, _number_of_discs VARCHAR)
SELECT date_departed FROM table_name_51 WHERE navy = "royal navy" AND name = "hms leith"
What's the departed date that the HMS Leith of the Royal Navy?
CREATE TABLE table_name_51 (date_departed VARCHAR, navy VARCHAR, name VARCHAR)
SELECT AVG(points) FROM table_name_12 WHERE engine = "ats v8"
What is the average points earned for entrants with ATS V8 engines?
CREATE TABLE table_name_12 (points INTEGER, engine VARCHAR)
SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = "5.09 million"
When did the episode that had 5.09 million total viewers (both Live and SD types) first air?
CREATE TABLE table_24222929_3 (original_airdate VARCHAR, live VARCHAR, sd_total_viewers VARCHAR)
SELECT manner_of_departure FROM table_26998135_2 WHERE date_of_appointment = "24 May 2010"
What is the manner of departure for the date of appointment 24 may 2010?
CREATE TABLE table_26998135_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT score FROM table_name_57 WHERE home_team = "hereford united"
What was the final score for the match where Hereford United was the home team?
CREATE TABLE table_name_57 (score VARCHAR, home_team VARCHAR)
SELECT player FROM table_name_59 WHERE pick = "7"
Who is the Pick 7 player?
CREATE TABLE table_name_59 (player VARCHAR, pick VARCHAR)
SELECT pick__number FROM table_name_6 WHERE round < 6 AND overall > 13 AND college = "penn state"
Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?
CREATE TABLE table_name_6 (pick__number VARCHAR, college VARCHAR, round VARCHAR, overall VARCHAR)
SELECT finish FROM table_name_41 WHERE wins = "reno bighorns"
What is the Finish of the Reno Bighorns Wins?
CREATE TABLE table_name_41 (finish VARCHAR, wins VARCHAR)
SELECT money___$__ FROM table_name_5 WHERE score = 74 - 71 - 76 - 76 = 297
How much money does the player with a score of 74-71-76-76=297 have?
CREATE TABLE table_name_5 (money___$__ VARCHAR, score VARCHAR)
SELECT winning_driver FROM table_1140117_5 WHERE circuit = "Goodwood"
Who was the winning driver for the goodwood circuit?
CREATE TABLE table_1140117_5 (winning_driver VARCHAR, circuit VARCHAR)
SELECT city FROM table_name_9 WHERE charter_date = "november 24, 1999"
What city has a charter date of november 24, 1999?
CREATE TABLE table_name_9 (city VARCHAR, charter_date VARCHAR)
SELECT partner FROM table_name_29 WHERE score = "6–1, 6–4"
Who is the partner with a score of 6–1, 6–4?
CREATE TABLE table_name_29 (partner VARCHAR, score VARCHAR)
SELECT venue FROM table_name_42 WHERE stage = "group g" AND date = "mar 8, 1998"
What venue did group g play at on Mar 8, 1998?
CREATE TABLE table_name_42 (venue VARCHAR, stage VARCHAR, date VARCHAR)