answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT surface FROM table_name_57 WHERE round = "4th round" AND player = "maria sharapova"
Which Surface has a Round of 4th round, and a Player of maria sharapova?
CREATE TABLE table_name_57 (surface VARCHAR, round VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_36 WHERE team = "los angeles dodgers" AND position = "lhp" AND year < 1979
What is the total pick number of the los angeles dodgers, which has a lhp position before 1979?
CREATE TABLE table_name_36 (pick VARCHAR, year VARCHAR, team VARCHAR, position VARCHAR)
SELECT results FROM table_name_66 WHERE awards_show = "71st academy awards"
What was the results of the 71st Academy Awards show?
CREATE TABLE table_name_66 (results VARCHAR, awards_show VARCHAR)
SELECT round FROM table_name_94 WHERE event = "pain and glory 2006"
Which round has pain and glory 2006 as the event?
CREATE TABLE table_name_94 (round VARCHAR, event VARCHAR)
SELECT MAX(attendance) FROM table_2015453_1
What was the largest attendance?
CREATE TABLE table_2015453_1 (attendance INTEGER)
SELECT high_assists FROM table_name_35 WHERE high_points = "jalen rose (22)"
What is the High assists when jalen rose (22) had the high points?
CREATE TABLE table_name_35 (high_assists VARCHAR, high_points VARCHAR)
SELECT 2011 FROM table_name_22 WHERE 2006 = "2r" AND 2008 = "2r"
Name the 2011 with 2006 of 2r and 2008 of 2r
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT programme FROM table_29566606_11 WHERE original_channel_s_ = "CITV"
Which programs were originally broadcast on CITV?
CREATE TABLE table_29566606_11 (programme VARCHAR, original_channel_s_ VARCHAR)
SELECT minutes FROM table_name_8 WHERE goals > 4 AND assists = 3
What is the number of minutes when there are more than 4 goals and 3 assists?
CREATE TABLE table_name_8 (minutes VARCHAR, goals VARCHAR, assists VARCHAR)
SELECT opponents FROM table_name_82 WHERE score = "1–2" AND team = "arsenal" AND progress = "first round"
Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round?
CREATE TABLE table_name_82 (opponents VARCHAR, progress VARCHAR, score VARCHAR, team VARCHAR)
SELECT city FROM table_name_97 WHERE capacity = "41,311"
What is the name of the city with a capacity of 41,311?
CREATE TABLE table_name_97 (city VARCHAR, capacity VARCHAR)
SELECT 445 FROM table_name_5 WHERE name = "yelena isinbayeva"
What is the 4.45 for Yelena Isinbayeva?
CREATE TABLE table_name_5 (name VARCHAR)
SELECT position_in_table FROM table_27495117_3 WHERE date_of_appointment = "17 January 2011"
What was the position of appointment date 17 january 2011
CREATE TABLE table_27495117_3 (position_in_table VARCHAR, date_of_appointment VARCHAR)
SELECT manner_of_departure FROM table_28181347_6 WHERE date_of_appointment = "6 November 2007"
One 6 November 2007 what was the manner of departure for the coach release in football league one?
CREATE TABLE table_28181347_6 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT finished FROM table_name_41 WHERE entered = "day 1" AND exited = "day 15"
What position did the celebrity finish that entered on day 1 and exited on day 15?
CREATE TABLE table_name_41 (finished VARCHAR, entered VARCHAR, exited VARCHAR)
SELECT miles__km_ FROM table_2175685_1 WHERE average_speed__mph_ = "103.145"
How many miles (km) were driven when the average speed (mph) was 103.145?
CREATE TABLE table_2175685_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR)
SELECT opponent FROM table_name_60 WHERE date = "april 28"
Who was the opponent on April 28?
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR)
SELECT games_played FROM table_name_58 WHERE wins = 13 AND goals_conceded = 45
How many games have been played when there are 13 wins and 45 goals were conceded?
CREATE TABLE table_name_58 (games_played VARCHAR, wins VARCHAR, goals_conceded VARCHAR)
SELECT opponent FROM table_14940519_1 WHERE date = "October 2, 1983"
Name the opponent for october 2, 1983
CREATE TABLE table_14940519_1 (opponent VARCHAR, date VARCHAR)
SELECT turkish FROM table_name_51 WHERE bangla = "shombar সোমবার"
What is the Turkish word for the Bangla word shombar সোমবার?
CREATE TABLE table_name_51 (turkish VARCHAR, bangla VARCHAR)
SELECT tie_no FROM table_name_83 WHERE score = "2–2"
How many ties occurred with a score of 2–2?
CREATE TABLE table_name_83 (tie_no VARCHAR, score VARCHAR)
SELECT days, _hours, _minutes FROM table_name_81 WHERE dates = "21 – 26 october"
What is the Days, hours, minutes for 21 – 26 October?
CREATE TABLE table_name_81 (days VARCHAR, _hours VARCHAR, _minutes VARCHAR, dates VARCHAR)
SELECT event FROM table_name_85 WHERE time = "3:06"
What is the Event with a Time that is 3:06?
CREATE TABLE table_name_85 (event VARCHAR, time VARCHAR)
SELECT MIN(size) FROM table_name_93 WHERE mascot = "titans"
What is the lowest size of the school with titans as the mascot?
CREATE TABLE table_name_93 (size INTEGER, mascot VARCHAR)
SELECT club FROM table_name_40 WHERE rank = "5"
Which Club has a Rank of 5?
CREATE TABLE table_name_40 (club VARCHAR, rank VARCHAR)
SELECT margin_of_victory FROM table_name_23 WHERE tournament = "konica san jose classic"
What is the margin of victory when the tournament is konica san jose classic?
CREATE TABLE table_name_23 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_91 WHERE record = "7-5"
What was the score of the game that led to a 7-5 record?
CREATE TABLE table_name_91 (score VARCHAR, record VARCHAR)
SELECT 2008 FROM table_name_39 WHERE 2012 = "2r" AND 2006 = "2r"
Name the 2008 with 2012 of 2r and 2006 of 2r
CREATE TABLE table_name_39 (Id VARCHAR)
SELECT nationality FROM table_name_75 WHERE event = "10000 m"
What was the nationality of the athlete that ran the 10000 m event?
CREATE TABLE table_name_75 (nationality VARCHAR, event VARCHAR)
SELECT engine FROM table_name_79 WHERE pts > 0
What engine has more than 0 pts?
CREATE TABLE table_name_79 (engine VARCHAR, pts INTEGER)
SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'
Find the name and active date of the customer that use email as the contact channel.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_contact_channels (active_from_date VARCHAR, customer_id VARCHAR, channel_code VARCHAR)
SELECT tournament FROM table_name_8 WHERE 2013 = "1r"
Which tournament had 1R in 2013?
CREATE TABLE table_name_8 (tournament VARCHAR)
SELECT designer FROM table_name_89 WHERE restaurant_name = "the grapefruit moon"
Who was the designer for The Grapefruit Moon?
CREATE TABLE table_name_89 (designer VARCHAR, restaurant_name VARCHAR)
SELECT SUM(pick) FROM table_name_47 WHERE round < 6 AND overall > 153
How many picks had a round smaller than 6 and an overall bigger than 153?
CREATE TABLE table_name_47 (pick INTEGER, round VARCHAR, overall VARCHAR)
SELECT high_assists FROM table_name_22 WHERE high_points = "hamilton (24)"
What is the high assists of Hamilton (24)?
CREATE TABLE table_name_22 (high_assists VARCHAR, high_points VARCHAR)
SELECT kit_manufacturer FROM table_187239_1 WHERE minor_sponsors = "Tim Brasil Brokers"
When tim brasil brokers are the minor sponsors who is the kit manufacturer?
CREATE TABLE table_187239_1 (kit_manufacturer VARCHAR, minor_sponsors VARCHAR)
SELECT start FROM table_name_63 WHERE finish = "1"
What's the start when the finish is 1?
CREATE TABLE table_name_63 (start VARCHAR, finish VARCHAR)
SELECT location FROM table_name_31 WHERE altitude__metres_ < 6102
Tell me the location for altitude being less thaan 6102
CREATE TABLE table_name_31 (location VARCHAR, altitude__metres_ INTEGER)
SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL')
Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.
CREATE TABLE college (cName VARCHAR, enr INTEGER, state VARCHAR)
SELECT AVG(total) FROM table_name_66 WHERE to_par < 4 AND year_won > 1983
What is the Total for the Player who won after 1983 with less than 4 To par?
CREATE TABLE table_name_66 (total INTEGER, to_par VARCHAR, year_won VARCHAR)
SELECT city FROM table_name_22 WHERE name = "athous lavrensis"
Name the city for athous lavrensis
CREATE TABLE table_name_22 (city VARCHAR, name VARCHAR)
SELECT source FROM table_name_7 WHERE date = "may 25–27"
What is the source corresponding to a date of May 25–27?
CREATE TABLE table_name_7 (source VARCHAR, date VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_2 WHERE score = 74 - 74 - 76 - 74 = 298
WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE?
CREATE TABLE table_name_2 (money___ INTEGER, score VARCHAR)
SELECT COUNT(score) FROM table_name_75 WHERE country = "united states" AND player = "lee trevino"
What is the total number of Score, when Country is "United States", and when Player is "Lee Trevino"?
CREATE TABLE table_name_75 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT SUM(year) FROM table_name_43 WHERE entrant = "barclay nordica arrows bmw" AND engine = "cosworth v8"
How many years did Barclay Nordica Arrows BMW enter with Cosworth v8 engine?
CREATE TABLE table_name_43 (year INTEGER, entrant VARCHAR, engine VARCHAR)
SELECT SUM(points) FROM table_name_43 WHERE record = "11-6-0" AND game__number < 17
What is the number of points of the game less than number 17 with an 11-6-0 record?
CREATE TABLE table_name_43 (points INTEGER, record VARCHAR, game__number VARCHAR)
SELECT COUNT(result) FROM table_17848578_1 WHERE game_site = "Atlanta-Fulton County Stadium"
How many results are there when the game was at the Atlanta-Fulton county stadium?
CREATE TABLE table_17848578_1 (result VARCHAR, game_site VARCHAR)
SELECT young_rider_classification FROM table_name_66 WHERE mountains_classification = "jesper worre" AND stage = "3"
What is the young rider classification for jesper worre and stage 3
CREATE TABLE table_name_66 (young_rider_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT MIN(first_elected) FROM table_1342198_18 WHERE district = "Louisiana 5"
what is the minimum number first elected to district louisiana 5?
CREATE TABLE table_1342198_18 (first_elected INTEGER, district VARCHAR)
SELECT other FROM table_name_9 WHERE value = "1 000"
What is the Other transliteration for value 1 000?
CREATE TABLE table_name_9 (other VARCHAR, value VARCHAR)
SELECT surface FROM table_name_17 WHERE score = "7–5, 6–4"
Which Surface has a Score of 7–5, 6–4?
CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR)
SELECT MIN(round) FROM table_name_4 WHERE method = "decision"
What round was the fight won or loss by a decision?
CREATE TABLE table_name_4 (round INTEGER, method VARCHAR)
SELECT population__2004_est_ FROM table_name_46 WHERE hanzi = "山海关区"
What is the 2004 population for 山海关区?
CREATE TABLE table_name_46 (population__2004_est_ VARCHAR, hanzi VARCHAR)
SELECT score FROM table_name_67 WHERE partner = "alexandra fusai"
what is the score when the partner is alexandra fusai?
CREATE TABLE table_name_67 (score VARCHAR, partner VARCHAR)
SELECT rider FROM table_name_56 WHERE time = "1:45.52.84" AND rank = 8
What is the name of the rider with a time of 1:45.52.84, and a Rank of 8?
CREATE TABLE table_name_56 (rider VARCHAR, time VARCHAR, rank VARCHAR)
SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age
Show the locations of parties and the names of the party hosts in ascending order of the age of the host.
CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR, Age VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR)
SELECT number_of_electorates__2009_ FROM table_name_93 WHERE constituency_number = "188"
Which Number of electorates (2009) has 188 Constituents?
CREATE TABLE table_name_93 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)
SELECT MAX(_number_of_phones_as__percentage_of_population) FROM table_name_90 WHERE last_updated_date = "june 2013" AND number_of_mobile_phones = "327,577,529"
What percent is 327,577,529 people with phones in June 2013?
CREATE TABLE table_name_90 (_number_of_phones_as__percentage_of_population INTEGER, last_updated_date VARCHAR, number_of_mobile_phones VARCHAR)
SELECT SUM(runs) FROM table_name_34 WHERE high_score = 55 AND innings > 12
How many runs were there when the high score was 55 and there were more than 12 innings?
CREATE TABLE table_name_34 (runs INTEGER, high_score VARCHAR, innings VARCHAR)
SELECT football FROM table_name_2 WHERE soccer = "wooster" AND golf = "ashland"
Which foot ball team played soccer at wooster, and Gold in Ashland?
CREATE TABLE table_name_2 (football VARCHAR, soccer VARCHAR, golf VARCHAR)
SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria"
When did svishtov , bulgaria disband?
CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR)
SELECT COUNT(height) FROM table_name_49 WHERE year_born < 1977
What is the Height that has a year born before 1977
CREATE TABLE table_name_49 (height VARCHAR, year_born INTEGER)
SELECT score FROM table_name_62 WHERE opponent = "seattle"
Which Score has an Opponent of seattle?
CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR)
SELECT precincts FROM table_name_86 WHERE county = "passaic"
Which Precincts has a County of passaic?
CREATE TABLE table_name_86 (precincts VARCHAR, county VARCHAR)
SELECT scores FROM table_29141354_1 WHERE episode = "01x06"
what was the result on 01x06
CREATE TABLE table_29141354_1 (scores VARCHAR, episode VARCHAR)
SELECT MAX(points) FROM table_name_32 WHERE artist = "martine foubert" AND place > 2
What is the high point toal for martine foubert placing below 2?
CREATE TABLE table_name_32 (points INTEGER, artist VARCHAR, place VARCHAR)
SELECT date FROM table_name_24 WHERE circuit = "tigullio"
What date was the Tigullio Circuit?
CREATE TABLE table_name_24 (date VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_24 WHERE best = "1:00.870"
Who had a best time of 1:00.870?
CREATE TABLE table_name_24 (name VARCHAR, best VARCHAR)
SELECT class_aAAAA FROM table_14601528_2 WHERE school_year = "2005-06"
Name the class aaaaa for 2005-06
CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT SUM(overall) FROM table_name_24 WHERE pick > 19 AND college = "florida"
How many overalls have a pick greater than 19, with florida as the college?
CREATE TABLE table_name_24 (overall INTEGER, pick VARCHAR, college VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton'
How many rooms does the Lamberton building have?
CREATE TABLE classroom (building VARCHAR)
SELECT favorite_professional_sport FROM table_name_87 WHERE 2008 = "8.9%"
What is listed as the Favorite Professional Sport that has a 2008 of 8.9%?
CREATE TABLE table_name_87 (favorite_professional_sport VARCHAR)
SELECT city FROM table_name_93 WHERE built = 1988
What city was the building built in 1988?
CREATE TABLE table_name_93 (city VARCHAR, built VARCHAR)
SELECT location FROM table_name_14 WHERE year > 1999 AND second = "anja huber"
In years after 1999, what was the location where Anja Huber finished 2nd?
CREATE TABLE table_name_14 (location VARCHAR, year VARCHAR, second VARCHAR)
SELECT tournament FROM table_name_40 WHERE runner_s__up = "ryan palmer"
Which tournaments was Ryan Palmer in as a runner-up?
CREATE TABLE table_name_40 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT MAX(poles) FROM table_25794532_1 WHERE points = "64"
Name the most poles for 64 points
CREATE TABLE table_25794532_1 (poles INTEGER, points VARCHAR)
SELECT MIN(lane) FROM table_name_64 WHERE rank = 6
What is the smallest lane for rank 6?
CREATE TABLE table_name_64 (lane INTEGER, rank VARCHAR)
SELECT visitor FROM table_name_32 WHERE decision = "myre" AND record = "44–7–15"
Which Visitor has a Decision of myre, and a Record of 44–7–15?
CREATE TABLE table_name_32 (visitor VARCHAR, decision VARCHAR, record VARCHAR)
SELECT season__number FROM table_15824796_4 WHERE original_air_date = "September 17, 1955"
Which Season originally aired on September 17, 1955
CREATE TABLE table_15824796_4 (season__number VARCHAR, original_air_date VARCHAR)
SELECT MAX(parallel_bars) FROM table_name_61 WHERE country = "united states" AND vault < 63.85
Name the highest Parallel Bars of the united states with a Vault smaller than 63.85?
CREATE TABLE table_name_61 (parallel_bars INTEGER, country VARCHAR, vault VARCHAR)
SELECT position FROM table_name_39 WHERE college = "saint louis"
What position does the saint louis player play?
CREATE TABLE table_name_39 (position VARCHAR, college VARCHAR)
SELECT turbo FROM table_name_62 WHERE part_number_s_ = "cm8062300834302bx80623i72600bxc80623i72600"
what is the turbo when the part number is cm8062300834302bx80623i72600bxc80623i72600?
CREATE TABLE table_name_62 (turbo VARCHAR, part_number_s_ VARCHAR)
SELECT away_team AS score FROM table_name_5 WHERE home_team = "hawthorn"
What was the away teams score when Hawthorn played as the home team?
CREATE TABLE table_name_5 (away_team VARCHAR, home_team VARCHAR)
SELECT finalist FROM table_name_20 WHERE tournament = "monte carlo"
Which Finalist has a Tournament of monte carlo?
CREATE TABLE table_name_20 (finalist VARCHAR, tournament VARCHAR)
SELECT MAX(other_apps) FROM table_2979789_1 WHERE league_goals = 1
Name the most other apps for league goals being 1
CREATE TABLE table_2979789_1 (other_apps INTEGER, league_goals VARCHAR)
SELECT away_team AS score FROM table_name_23 WHERE away_team = "south melbourne"
Tell me the away team score for away team of south melbourne
CREATE TABLE table_name_23 (away_team VARCHAR)
SELECT production_company FROM table_name_33 WHERE rank = "nominated" AND film = "badmouth"
What was the production company for the nominated film, Badmouth?
CREATE TABLE table_name_33 (production_company VARCHAR, rank VARCHAR, film VARCHAR)
SELECT venue FROM table_name_22 WHERE bronze = "finland" AND silver = "united states"
Where was the tournament where Finland received the bronze and the United States received the silver?
CREATE TABLE table_name_22 (venue VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT rating / SHARE(18 - 49) FROM table_15681686_4 WHERE rank__week_ = "48"
what is the rating where the rank is 48?
CREATE TABLE table_15681686_4 (rating VARCHAR, rank__week_ VARCHAR)
SELECT circuit FROM table_name_43 WHERE race_name = "iii reims grand prix"
On what circuit was the iii Reims Grand Prix held?
CREATE TABLE table_name_43 (circuit VARCHAR, race_name VARCHAR)
SELECT loss FROM table_name_10 WHERE date = "august 21"
who lost on august 21?
CREATE TABLE table_name_10 (loss VARCHAR, date VARCHAR)
SELECT spacewalkers FROM table_22385461_1 WHERE spacecraft = "STS-101 EVA 1"
Who walked in space from STS-101 Eva 1?
CREATE TABLE table_22385461_1 (spacewalkers VARCHAR, spacecraft VARCHAR)
SELECT city_of_license FROM table_name_45 WHERE erp_kw > 4.5 AND station = "w23dr-d"
What is the City of license that has a ERP kW more than 4.5 and w23dr-d?
CREATE TABLE table_name_45 (city_of_license VARCHAR, erp_kw VARCHAR, station VARCHAR)
SELECT COUNT(week) FROM table_name_30 WHERE attendance = "43,272"
How many weeks had an Attendance of 43,272?
CREATE TABLE table_name_30 (week VARCHAR, attendance VARCHAR)
SELECT driver FROM table_name_92 WHERE tyre = "d" AND chassis = "bt11" AND rounds = "8"
Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds?
CREATE TABLE table_name_92 (driver VARCHAR, rounds VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT COUNT(home_town) FROM table_25360865_1 WHERE _number = 32
Name the number of home town for number being 32
CREATE TABLE table_25360865_1 (home_town VARCHAR, _number VARCHAR)
SELECT COUNT(vacator) FROM table_1802522_3 WHERE successor = "Joseph H. Bottum (R)"
How many vacant seats were filled by newcomer Joseph H. Bottum (r)?
CREATE TABLE table_1802522_3 (vacator VARCHAR, successor VARCHAR)
SELECT MAX(year) FROM table_name_54 WHERE venue = "beijing, pr china"
What is the highest Year, when the Venue is Beijing, PR China?
CREATE TABLE table_name_54 (year INTEGER, venue VARCHAR)
SELECT score FROM table_23248940_9 WHERE game = 50
How did the game number 50 end?
CREATE TABLE table_23248940_9 (score VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_56 WHERE event = "jungle fight 6"
Which opponent has the event Jungle Fight 6?
CREATE TABLE table_name_56 (opponent VARCHAR, event VARCHAR)