answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT 2 AS nd_leg FROM table_name_88 WHERE aggregate = "4-2"
What was the 2nd leg score having an aggregate score of 4-2?
CREATE TABLE table_name_88 (aggregate VARCHAR)
SELECT proto_semitic FROM table_26919_7 WHERE arabic = "salām-"
If in arabic it is salām-, what is it in proto-semitic?
CREATE TABLE table_26919_7 (proto_semitic VARCHAR, arabic VARCHAR)
SELECT cfl_team FROM table_28059992_2 WHERE player = "Patrice Denis"
Name the cfl team for patrice denis
CREATE TABLE table_28059992_2 (cfl_team VARCHAR, player VARCHAR)
SELECT MAX(points) FROM table_18018214_3 WHERE goals_scored = 47
HOw many points where there when the number of goals scored was 47?
CREATE TABLE table_18018214_3 (points INTEGER, goals_scored VARCHAR)
SELECT semi_final_heat_host FROM table_name_24 WHERE national_final_main_host = "terry wogan" AND national_final_co_host = "gaby roslin"
What was the host for the semi final heat, when Terry Wogan was the National Final main host, and Gaby Roslin was the National Final co-host?
CREATE TABLE table_name_24 (semi_final_heat_host VARCHAR, national_final_main_host VARCHAR, national_final_co_host VARCHAR)
SELECT sr_number FROM table_name_91 WHERE lb & sc_number = 34
what is the s.r. number when lb&sc number is 34?
CREATE TABLE table_name_91 (sr_number VARCHAR, lb VARCHAR, sc_number VARCHAR)
SELECT surface FROM table_name_82 WHERE score = "w/o"
On which surface was the score w/o?
CREATE TABLE table_name_82 (surface VARCHAR, score VARCHAR)
SELECT MIN(games) AS ↑ FROM table_name_2 WHERE position = "re" AND number < 95
What is the earliest game with a position of Re and a smaller number than 95?
CREATE TABLE table_name_2 (games INTEGER, position VARCHAR, number VARCHAR)
SELECT security_forces FROM table_name_82 WHERE year = "2009"
Name the security forces for 2009
CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR)
SELECT date FROM table_name_94 WHERE leading_scorer = "deron williams (29)" AND visitor = "hornets"
While the Hornets were visiting, what date was Deron Williams (29) the leading scorer?
CREATE TABLE table_name_94 (date VARCHAR, leading_scorer VARCHAR, visitor VARCHAR)
SELECT result FROM table_1342256_6 WHERE district = "California 10"
what's the result with dbeingtrict being california 10
CREATE TABLE table_1342256_6 (result VARCHAR, district VARCHAR)
SELECT score FROM table_name_30 WHERE february > 4 AND game = 61
What was the score after february 4 in the game 61?
CREATE TABLE table_name_30 (score VARCHAR, february VARCHAR, game VARCHAR)
SELECT money_raised, _2q FROM table_name_28 WHERE total_receipts = "$63,075,927"
How much money was raised in the 2Q when the total receipts were $63,075,927?
CREATE TABLE table_name_28 (money_raised VARCHAR, _2q VARCHAR, total_receipts VARCHAR)
SELECT SUM(crowd) FROM table_name_42 WHERE venue = "lake oval"
How many people attended the game at Lake Oval?
CREATE TABLE table_name_42 (crowd INTEGER, venue VARCHAR)
SELECT AVG(silver) FROM table_name_44 WHERE nation = "germany (ger)" AND bronze > 3
What's the average number of silver medals for germany (GER) having more than 3 bronze?
CREATE TABLE table_name_44 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(year) FROM table_name_99 WHERE entrant = "austria-marlboro brm" AND points > 0
What year did Austria-Marlboro BRM get more than 0 points?
CREATE TABLE table_name_99 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT date FROM table_name_95 WHERE record = "8:39.49"
Which Date has a Record of 8:39.49?
CREATE TABLE table_name_95 (date VARCHAR, record VARCHAR)
SELECT author___editor___source FROM table_12000368_1 WHERE world_ranking__1_ = "73rd"
what's the author / editor / source with world ranking (1) being 73rd
CREATE TABLE table_12000368_1 (author___editor___source VARCHAR, world_ranking__1_ VARCHAR)
SELECT engine FROM table_1181375_1 WHERE builder = "Gloucester RCW" AND withdrawn = "1959"
what's the engine where builder is gloucester rcw and withdrawn is 1959
CREATE TABLE table_1181375_1 (engine VARCHAR, builder VARCHAR, withdrawn VARCHAR)
SELECT stop_no FROM table_name_23 WHERE destination = "perth" AND line = "midland"
What is Stop No., when Destination is Perth, and when Line is Midland?
CREATE TABLE table_name_23 (stop_no VARCHAR, destination VARCHAR, line VARCHAR)
SELECT value FROM table_name_52 WHERE composition = "cupronickel" AND weight = "10.5 g"
What is the value of the coin weighing 10.5 g and made of cupronickel?
CREATE TABLE table_name_52 (value VARCHAR, composition VARCHAR, weight VARCHAR)
SELECT country FROM table_name_37 WHERE total = 282
Which country had a total of 282?
CREATE TABLE table_name_37 (country VARCHAR, total VARCHAR)
SELECT name FROM table_name_36 WHERE launch = "1996" AND hanzi = "凤凰卫视中文台"
Which company launched in 1996 and has a Hanzi of 凤凰卫视中文台?
CREATE TABLE table_name_36 (name VARCHAR, launch VARCHAR, hanzi VARCHAR)
SELECT first_elected FROM table_1342218_6 WHERE incumbent = "Clair Engle"
What year was clair engle first elected?
CREATE TABLE table_1342218_6 (first_elected VARCHAR, incumbent VARCHAR)
SELECT general_classification FROM table_name_21 WHERE points_classification = "daniele bennati" AND young_rider_classification = "morris possoni" AND stage = "3"
What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification.
CREATE TABLE table_name_21 (general_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)
SELECT Broadband AS penetration FROM table_name_31 WHERE number_of_broadband_subscribers = "~355,100"
What is the broadband penetration where there are ~355,100 broadband subscribers?
CREATE TABLE table_name_31 (Broadband VARCHAR, number_of_broadband_subscribers VARCHAR)
SELECT country FROM table_name_64 WHERE player = "eduardo romero"
Where is Eduardo Romero from?
CREATE TABLE table_name_64 (country VARCHAR, player VARCHAR)
SELECT MIN(long) FROM table_name_5 WHERE player = "santana moss" AND att > 1
I want to know the longest Long for santana moss and Att more than 1
CREATE TABLE table_name_5 (long INTEGER, player VARCHAR, att VARCHAR)
SELECT COUNT(player) FROM table_11677691_3 WHERE hometown = "Indianapolis, Indiana"
How many players are from Indianapolis, Indiana?
CREATE TABLE table_11677691_3 (player VARCHAR, hometown VARCHAR)
SELECT save FROM table_name_49 WHERE date = "september 2"
Who had a save on September 2?
CREATE TABLE table_name_49 (save VARCHAR, date VARCHAR)
SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26
What is the percentage for Brown when the lead margin is 26?
CREATE TABLE table_name_35 (republican VARCHAR, lead_margin VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_55 WHERE to_par = 15 AND country = "united states"
What is the average money for a to par of 15, and is from the United States?
CREATE TABLE table_name_55 (money___ INTEGER, to_par VARCHAR, country VARCHAR)
SELECT cover_date FROM table_1217448_1 WHERE character_s_ = "X-Men ; Magneto"
what's the cover date where character(s) is x-men ; magneto
CREATE TABLE table_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR)
SELECT chart_positions FROM table_name_21 WHERE album_title = "i"
The album titled I had what chart positions?
CREATE TABLE table_name_21 (chart_positions VARCHAR, album_title VARCHAR)
SELECT place FROM table_name_62 WHERE score = 76 - 69 - 64 - 70 = 279
WHAT IS THE PLACE WITH A SCORE OF 76-69-64-70=279?
CREATE TABLE table_name_62 (place VARCHAR, score VARCHAR)
SELECT elector FROM table_name_86 WHERE cardinalatial_title = "deacon of ss. cosma e damiano"
Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano?
CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR)
SELECT loss FROM table_name_60 WHERE score = "5-1"
What's the Loss listed with a Score of 5-1?
CREATE TABLE table_name_60 (loss VARCHAR, score VARCHAR)
SELECT MAX(founded) FROM table_13456202_1 WHERE school = "North College Hill High school"
WHat year was north college hill high school founded?
CREATE TABLE table_13456202_1 (founded INTEGER, school VARCHAR)
SELECT high_assists FROM table_23248910_10 WHERE date = "April 2"
List all players with highest assists from April 2.
CREATE TABLE table_23248910_10 (high_assists VARCHAR, date VARCHAR)
SELECT state FROM table_name_63 WHERE title = "count"
What is the state where the title is listed as count?
CREATE TABLE table_name_63 (state VARCHAR, title VARCHAR)
SELECT radio_stations FROM table_23143607_1 WHERE organization = "Ente Público Radio Televisión Madrid (EPRTVM)"
Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?
CREATE TABLE table_23143607_1 (radio_stations VARCHAR, organization VARCHAR)
SELECT height_in_ft FROM table_11734041_9 WHERE player = "Jones, Major Major Jones"
How tall is the player jones, major major jones?
CREATE TABLE table_11734041_9 (height_in_ft VARCHAR, player VARCHAR)
SELECT candidates FROM table_1341453_22 WHERE party = "Republican" AND district = "Maryland 1"
List the candidates in district Maryland 1 where the republican party won.
CREATE TABLE table_1341453_22 (candidates VARCHAR, party VARCHAR, district VARCHAR)
SELECT COUNT(laps) FROM table_name_49 WHERE qual = "142.653"
What was Len Sutton's total number of completed laps when his qualifying time was 142.653?
CREATE TABLE table_name_49 (laps VARCHAR, qual VARCHAR)
SELECT title FROM table_17482534_1 WHERE no_in_series = "96"
What is the title of episode number 96 in the series?
CREATE TABLE table_17482534_1 (title VARCHAR, no_in_series VARCHAR)
SELECT MAX(production_code) FROM table_2409041_5 WHERE original_air_date = "January 8, 1993"
What is the production code for the episode that originally aired on January 8, 1993?
CREATE TABLE table_2409041_5 (production_code INTEGER, original_air_date VARCHAR)
SELECT film FROM table_name_68 WHERE role = "taylor"
Which film has a role named Taylor?
CREATE TABLE table_name_68 (film VARCHAR, role VARCHAR)
SELECT country FROM table_name_92 WHERE to_par = "+1" AND score = 69 - 70 - 72 = 211
What country is the player ho had a To par of +1 and a score of 69-70-72=211 from?
CREATE TABLE table_name_92 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT name FROM table_name_76 WHERE year = "1997–99"
What is the Name for 1997–99?
CREATE TABLE table_name_76 (name VARCHAR, year VARCHAR)
SELECT result FROM table_name_93 WHERE district = "california 2"
What was the District of California 2 result?
CREATE TABLE table_name_93 (result VARCHAR, district VARCHAR)
SELECT series FROM table_name_54 WHERE winner = "jetmir salaj"
What is Series, when Winner is Jetmir Salaj?
CREATE TABLE table_name_54 (series VARCHAR, winner VARCHAR)
SELECT head_coach FROM table_14015965_1 WHERE previous_season = "2"
Who was the head coach in season 2?
CREATE TABLE table_14015965_1 (head_coach VARCHAR, previous_season VARCHAR)
SELECT democratic FROM table_name_99 WHERE district < 7 AND republican = "dan mansell"
Which Democratic has a District smaller than 7, and a Republican of dan mansell?
CREATE TABLE table_name_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR)
SELECT score FROM table_name_8 WHERE visitor = "green bay packers"
What score did the Green Bay Packers get as visitor?
CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR)
SELECT viewers__m_ FROM table_11251109_3 WHERE air_date = "November 9, 2007"
What is the viewership on november 9, 2007?
CREATE TABLE table_11251109_3 (viewers__m_ VARCHAR, air_date VARCHAR)
SELECT COUNT(*) FROM Visitors WHERE NOT Tourist_ID IN (SELECT Tourist_ID FROM Visits)
How many tourists did not make any visit?
CREATE TABLE Visitors (Tourist_ID VARCHAR); CREATE TABLE Visits (Tourist_ID VARCHAR)
SELECT COUNT(fa_cup_apps) FROM table_name_50 WHERE total_apps > 12 AND league_apps > 38 AND fa_cup_goals > 1
What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?
CREATE TABLE table_name_50 (fa_cup_apps VARCHAR, fa_cup_goals VARCHAR, total_apps VARCHAR, league_apps VARCHAR)
SELECT 2005 FROM table_name_99 WHERE 2008 = "grand slam tournaments"
What is the 2005 when the 2008 shows grand slam tournaments?
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT player FROM table_name_56 WHERE conf = "pac-10" AND pos = "g"
Which player had a conference of PAC-10 and position of G?
CREATE TABLE table_name_56 (player VARCHAR, conf VARCHAR, pos VARCHAR)
SELECT others_percentage FROM table_13608101_1 WHERE parish = "Tangipahoa"
what's the others% with parbeingh being tangipahoa
CREATE TABLE table_13608101_1 (others_percentage VARCHAR, parish VARCHAR)
SELECT opponent FROM table_name_53 WHERE kickoff_[a_] = "1:00" AND record = "3-7"
Which game had a kickoff at 1:00 and a record of 3-7?
CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT country FROM table_name_99 WHERE date = "december 8, 1968"
What was the nationality of the winner on December 8, 1968?
CREATE TABLE table_name_99 (country VARCHAR, date VARCHAR)
SELECT AVG(game) FROM table_name_30 WHERE record = "16-63"
what was the average game when record was 16-63?
CREATE TABLE table_name_30 (game INTEGER, record VARCHAR)
SELECT away_team AS score FROM table_name_65 WHERE ground = "optus oval" AND away_team = "fremantle"
What is Away Team Score, when Ground is Optus Oval, and when Away Team is Fremantle?
CREATE TABLE table_name_65 (away_team VARCHAR, ground VARCHAR)
SELECT mission FROM table_11869952_3 WHERE launch_date = "November 16, 2006"
Which missions were scheduled to launch on November 16, 2006?
CREATE TABLE table_11869952_3 (mission VARCHAR, launch_date VARCHAR)
SELECT tries_against FROM table_name_78 WHERE points_against = "213"
What is Tries Against, when Points Against is 213?
CREATE TABLE table_name_78 (tries_against VARCHAR, points_against VARCHAR)
SELECT MAX(abandoned) FROM table_25368177_1
What's the largest number of abandoned games by any of the teams?
CREATE TABLE table_25368177_1 (abandoned INTEGER)
SELECT game FROM table_name_54 WHERE opponent = "new jersey devils"
Which game did New Jersey Devils played in?
CREATE TABLE table_name_54 (game VARCHAR, opponent VARCHAR)
SELECT AVG(place) FROM table_name_77 WHERE points < 1
What is the place when less than 1 point is scored?
CREATE TABLE table_name_77 (place INTEGER, points INTEGER)
SELECT T1.customer_name, T1.customer_phone, T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY COUNT(*) DESC LIMIT 1
What are the name, phone number and email address of the customer who made the largest number of orders?
CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_email VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
SELECT team FROM table_26914854_3 WHERE date_of_appointment = "23 March 2011"
What is the team when the date of appointment is 23 march 2011?
CREATE TABLE table_26914854_3 (team VARCHAR, date_of_appointment VARCHAR)
SELECT score FROM table_name_20 WHERE team = "@ cleveland"
what is the score when the team is @ cleveland?
CREATE TABLE table_name_20 (score VARCHAR, team VARCHAR)
SELECT MAX(t20_matches) FROM table_1176371_1 WHERE name_of_ground = "Green Lane"
What is the maximum t20 on green lane?
CREATE TABLE table_1176371_1 (t20_matches INTEGER, name_of_ground VARCHAR)
SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010
Find the distinct names of wines produced before the year of 2000 or after the year of 2010.
CREATE TABLE WINE (Name VARCHAR, YEAR VARCHAR)
SELECT club FROM table_name_18 WHERE date_of_birth = "1979-01-29"
What is the Club of the Player with a Date of Birth of 1979-01-29?
CREATE TABLE table_name_18 (club VARCHAR, date_of_birth VARCHAR)
SELECT actor_required FROM table_17827271_1 WHERE actor_in_original_production = "Robert Austin"
What were the requirements for the role played by Robert Austin in the original production?
CREATE TABLE table_17827271_1 (actor_required VARCHAR, actor_in_original_production VARCHAR)
SELECT COUNT(pick) FROM table_name_23 WHERE position = "defensive back" AND round > 11
How many picks are there for defensive back for rounds larger than 11?
CREATE TABLE table_name_23 (pick VARCHAR, position VARCHAR, round VARCHAR)
SELECT course FROM table_name_1 WHERE race_leader = "rest day"
Which course had a rest day for the Race Leader?
CREATE TABLE table_name_1 (course VARCHAR, race_leader VARCHAR)
SELECT film_or_series FROM table_name_2 WHERE result = "nominated" AND category = "best fansite"
Which film or series was nominated in the category of best fansite?
CREATE TABLE table_name_2 (film_or_series VARCHAR, result VARCHAR, category VARCHAR)
SELECT name FROM table_name_75 WHERE lost = 2 AND position > 1
Who lost 2 and had a position bigger than 1?
CREATE TABLE table_name_75 (name VARCHAR, lost VARCHAR, position VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_65 WHERE score = 69 - 71 - 70 - 74 = 284
What is the highest Money ( $ ), when Score is "69-71-70-74=284"?
CREATE TABLE table_name_65 (money___ INTEGER, score VARCHAR)
SELECT visitor FROM table_name_15 WHERE record = "3-0-2"
Who was the visitor that led to a 3-0-2 record?
CREATE TABLE table_name_15 (visitor VARCHAR, record VARCHAR)
SELECT open_cup FROM table_2402864_1 WHERE year = 2003
What was the Open Cup results for the year 2003?
CREATE TABLE table_2402864_1 (open_cup VARCHAR, year VARCHAR)
SELECT record FROM table_name_4 WHERE home = "new york rangers" AND date = "april 17"
What is Record, when Home is "New York Rangers", and when Date is "April 17"?
CREATE TABLE table_name_4 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT cName FROM college ORDER BY enr DESC LIMIT 3
What are the names of schools with the top 3 largest size?
CREATE TABLE college (cName VARCHAR, enr VARCHAR)
SELECT away_team FROM table_name_23 WHERE venue = "brunswick street oval"
What away team played at Brunswick Street Oval?
CREATE TABLE table_name_23 (away_team VARCHAR, venue VARCHAR)
SELECT total FROM table_name_15 WHERE gold > 1 AND silver > 2 AND rank < 2
What is the total medal count when there are more than 1 gold and more than 2 silver medals won and the rank is less than 1?
CREATE TABLE table_name_15 (total VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT tournament FROM table_name_26 WHERE year < 2001
What tournament has a year prior to 2001?
CREATE TABLE table_name_26 (tournament VARCHAR, year INTEGER)
SELECT lost FROM table_name_59 WHERE points_against = "383"
What was lost against 383 points?
CREATE TABLE table_name_59 (lost VARCHAR, points_against VARCHAR)
SELECT decision FROM table_name_33 WHERE home = "atlanta"
Who made the decision when atlanta was the home team?
CREATE TABLE table_name_33 (decision VARCHAR, home VARCHAR)
SELECT period FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time_moving_annual_average__maa_ = "89.6%"
When was the percentage of trains arriving within 5 minutes of scheduled time 89.6%?
CREATE TABLE table_171748_3 (period VARCHAR, _percentage_trains_arriving_within_5_mins_of_scheduled_time_moving_annual_average__maa_ VARCHAR)
SELECT SUM(rank) FROM table_name_96 WHERE country = "china"
What is the rank for China?
CREATE TABLE table_name_96 (rank INTEGER, country VARCHAR)
SELECT jockey FROM table_name_35 WHERE odds = "9/1"
what player scored 9/1
CREATE TABLE table_name_35 (jockey VARCHAR, odds VARCHAR)
SELECT time FROM table_name_86 WHERE name = "arkady vyatchanin"
What was Arkady Vyatchanin's time?
CREATE TABLE table_name_86 (time VARCHAR, name VARCHAR)
SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934"
What is Third Vice President, when Inaugurated is "15 March 1934"?
CREATE TABLE table_name_38 (third_vice_president VARCHAR, inaugurated VARCHAR)
SELECT moving_to FROM table_name_27 WHERE country = "bel"
WHAT IS THE MOVING TO LOCATION WITH BEL AS COUNTRY?
CREATE TABLE table_name_27 (moving_to VARCHAR, country VARCHAR)
SELECT scoreboard FROM table_21234111_6 WHERE total = "23.5"
Name the scoreboard for total being 23.5
CREATE TABLE table_21234111_6 (scoreboard VARCHAR, total VARCHAR)
SELECT home FROM table_name_79 WHERE leading_scorer = "dajuan wagner (25)" AND score = "89–82"
Which Home has a Leading scorer of dajuan wagner (25) and a Score of 89–82? Question 3
CREATE TABLE table_name_79 (home VARCHAR, leading_scorer VARCHAR, score VARCHAR)
SELECT longitude FROM table_16799784_8 WHERE name = "Razia Patera"
What is the longitude of the feature named Razia Patera?
CREATE TABLE table_16799784_8 (longitude VARCHAR, name VARCHAR)
SELECT score FROM table_name_22 WHERE player = "paul runyan"
What was Paul Runyan's score?
CREATE TABLE table_name_22 (score VARCHAR, player VARCHAR)