question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many points did Nigel Connell have?
CREATE TABLE table_name_44 (points VARCHAR, performer VARCHAR)
SELECT points FROM table_name_44 WHERE performer = "nigel connell"
What is the hometown for tre madden?
CREATE TABLE table_name_68 (hometown VARCHAR, player VARCHAR)
SELECT hometown FROM table_name_68 WHERE player = "tre madden"
What is the average number of silvers for teams ranked 5 with 0 bronze?
CREATE TABLE table_name_31 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(silver) FROM table_name_31 WHERE rank = "5" AND bronze < 0
How many directors worked on #158?
CREATE TABLE table_25800134_4 (director VARCHAR, series__number VARCHAR)
SELECT COUNT(director) FROM table_25800134_4 WHERE series__number = 158
What is the Guest Host for the episode on 8 june 2008?
CREATE TABLE table_name_2 (guest_host VARCHAR, air_date VARCHAR)
SELECT guest_host FROM table_name_2 WHERE air_date = "8 june 2008"
What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519
CREATE TABLE table_2293510_1 (_percentage_of_eu_average_gdp__ppp_ VARCHAR, €_per_capita__2005_ VARCHAR)
SELECT _percentage_of_eu_average_gdp__ppp_ FROM table_2293510_1 WHERE €_per_capita__2005_ = 2519
Name the total number of luna blastoff date for apollo 11
CREATE TABLE table_1558077_8 (lunar_blastoff_date VARCHAR, mission_name VARCHAR)
SELECT COUNT(lunar_blastoff_date) FROM table_1558077_8 WHERE mission_name = "Apollo 11"
Who plays for sam houston state?
CREATE TABLE table_name_79 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_79 WHERE college = "sam houston state"
Where is the player Davis Love III?
CREATE TABLE table_name_82 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_82 WHERE player = "davis love iii"
Which is the highest ranked building with more than 15 floors?
CREATE TABLE table_name_45 (rank INTEGER, floors__stories_ INTEGER)
SELECT MAX(rank) FROM table_name_45 WHERE floors__stories_ > 15
What was the top first place prize in 1997?
CREATE TABLE table_name_49 (first_prize___ INTEGER, year VARCHAR)
SELECT MAX(first_prize___) AS $__ FROM table_name_49 WHERE year = 1997
How many entries for area correspond to a population density of 207.9?
CREATE TABLE table_298550_1 (area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)
SELECT COUNT(area__km²_) FROM table_298550_1 WHERE population_density__per_km²_ = "207.9"
Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1%
CREATE TABLE table_2668352_11 (first_elected VARCHAR, candidates VARCHAR)
SELECT first_elected FROM table_2668352_11 WHERE candidates = "Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%"
What is the highest numbred district that has brian w. thomas as an incumbent?
CREATE TABLE table_26416704_2 (district INTEGER, incumbent VARCHAR)
SELECT MAX(district) FROM table_26416704_2 WHERE incumbent = "Brian W. Thomas"
what is the properties of sodium when rubidium is nacl (2.1)?
CREATE TABLE table_name_98 (sodium VARCHAR, rubidium VARCHAR)
SELECT sodium FROM table_name_98 WHERE rubidium = "nacl (2.1)"
What is the Per capita income associated with a Median household income of $55,800?
CREATE TABLE table_name_49 (per_capita_income VARCHAR, median_household_income VARCHAR)
SELECT per_capita_income FROM table_name_49 WHERE median_household_income = "$55,800"
What is 2011, when 2012 is "1R"?
CREATE TABLE table_name_73 (Id VARCHAR)
SELECT 2011 FROM table_name_73 WHERE 2012 = "1r"
Which second's third is Jean-Michel Arsenault?
CREATE TABLE table_name_91 (second VARCHAR, third VARCHAR)
SELECT second FROM table_name_91 WHERE third = "jean-michel arsenault"
What year did the player with a total less than 300 and a to par of 9 have a win?
CREATE TABLE table_name_36 (year_s__won VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_36 WHERE total < 300 AND to_par = 9
Which Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged?
CREATE TABLE table_name_73 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT condition FROM table_name_73 WHERE prothrombin_time = "unaffected" AND bleeding_time = "unaffected" AND partial_thromboplastin_time = "prolonged"
Which Silver has a Nation of china, and a Bronze smaller than 7?
CREATE TABLE table_name_2 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_2 WHERE nation = "china" AND bronze < 7
What are the papers published under the institution "Indiana University"?
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University"
Which owner has the time 2:03.00 and the year of 1991 kd?
CREATE TABLE table_name_49 (owner VARCHAR, time VARCHAR, year VARCHAR)
SELECT owner FROM table_name_49 WHERE time = "2:03.00" AND year = "1991 kd"
What is the title of the episode with production code 2alf03?
CREATE TABLE table_26199130_1 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_26199130_1 WHERE production_code = "2ALF03"
Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.
CREATE TABLE Rating (stars VARCHAR, ratingDate VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
SELECT T3.name, T2.title, T1.stars, T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name, T2.title, T1.stars
What is the Fate of the San Pablo ship?
CREATE TABLE table_name_48 (fate VARCHAR, name VARCHAR)
SELECT fate FROM table_name_48 WHERE name = "san pablo"
What is the lowest Year, when Rank is greater than 85?
CREATE TABLE table_name_28 (year INTEGER, rank INTEGER)
SELECT MIN(year) FROM table_name_28 WHERE rank > 85
What is the largest region with a Code smaller than 66112, and a Name of l'île-dorval?
CREATE TABLE table_name_17 (region INTEGER, code VARCHAR, name VARCHAR)
SELECT MAX(region) FROM table_name_17 WHERE code < 66112 AND name = "l'île-dorval"
What are the scores when total score/week is 41/60 and co-contestant is Shalini Chandran?
CREATE TABLE table_name_10 (scores_by_each_individual_judge VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT scores_by_each_individual_judge FROM table_name_10 WHERE total_score_week = "41/60" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran"
When temperley is the home (2nd leg) what is the home (1st leg)?
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR, home__2nd_leg_ VARCHAR)
SELECT home__1st_leg_ FROM table_14219514_2 WHERE home__2nd_leg_ = "Temperley"
Which Frequency has a Facility ID of 13598?
CREATE TABLE table_name_71 (frequency VARCHAR, facility_id VARCHAR)
SELECT frequency FROM table_name_71 WHERE facility_id = 13598
Christian Fittipaldi drove in what team?
CREATE TABLE table_name_74 (team VARCHAR, drivers VARCHAR)
SELECT team FROM table_name_74 WHERE drivers = "christian fittipaldi"
Which Opponent has a Loss of báez (5-5)?
CREATE TABLE table_name_17 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_17 WHERE loss = "báez (5-5)"
What was the public office of the subject whose sculpture was created in 1954?
CREATE TABLE table_20903658_1 (public_office VARCHAR, date_painted_created VARCHAR)
SELECT public_office FROM table_20903658_1 WHERE date_painted_created = "1954"
With a Hanzi of 深圳卫视, what is the name?
CREATE TABLE table_name_19 (name VARCHAR, hanzi VARCHAR)
SELECT name FROM table_name_19 WHERE hanzi = "深圳卫视"
what is the road numbers when the class is z-7?
CREATE TABLE table_name_66 (road_numbers VARCHAR, class VARCHAR)
SELECT road_numbers FROM table_name_66 WHERE class = "z-7"
When did Going for Gold return in BBC One?
CREATE TABLE table_name_67 (date_s__of_return VARCHAR, original_channel VARCHAR, programme VARCHAR)
SELECT date_s__of_return FROM table_name_67 WHERE original_channel = "bbc one" AND programme = "going for gold"
What was the final score when the player was an e to par?
CREATE TABLE table_name_97 (score VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_97 WHERE to_par = "e"
what is the least year for 4 points?
CREATE TABLE table_name_75 (year INTEGER, points VARCHAR)
SELECT MIN(year) FROM table_name_75 WHERE points = 4
What is the population (1991) where population (2002) was 14250?
CREATE TABLE table_2562572_7 (population__1991_ VARCHAR, population__2002_ VARCHAR)
SELECT COUNT(population__1991_) FROM table_2562572_7 WHERE population__2002_ = 14250
What is listed as the Place of birth for the Elector of Soffredo?
CREATE TABLE table_name_31 (place_of_birth VARCHAR, elector VARCHAR)
SELECT place_of_birth FROM table_name_31 WHERE elector = "soffredo"
Which Bronze has a Country of malaysia, and a Total smaller than 2644?
CREATE TABLE table_name_75 (bronze INTEGER, country VARCHAR, total VARCHAR)
SELECT SUM(bronze) FROM table_name_75 WHERE country = "malaysia" AND total < 2644
Which party has less than 11,484 votes?
CREATE TABLE table_name_81 (party VARCHAR, votes INTEGER)
SELECT party FROM table_name_81 WHERE votes < 11 OFFSET 484
What is the Position of the winner with 18 Goals and Level of 5?
CREATE TABLE table_name_23 (position VARCHAR, goals VARCHAR, level VARCHAR)
SELECT position FROM table_name_23 WHERE goals = 18 AND level = 5
How many million u.s. viewers watched the episode with a production code of 2t7004?
CREATE TABLE table_2828803_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT us_viewers__millions_ FROM table_2828803_1 WHERE production_code = "2T7004"
what is june 10-11 when march 27-29 is 149?
CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, march_27_29 VARCHAR)
SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = "149"
What's the note about the school established in the year of 1973?
CREATE TABLE table_1414702_3 (notes VARCHAR, established VARCHAR)
SELECT notes FROM table_1414702_3 WHERE established = 1973
Which region has a date of 1970?
CREATE TABLE table_name_58 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_58 WHERE date = "1970"
What is the car make for Sterling Marlin?
CREATE TABLE table_27514362_7 (car_make VARCHAR, driver VARCHAR)
SELECT car_make FROM table_27514362_7 WHERE driver = "Sterling Marlin"
On what date was Kuwait City a venue?
CREATE TABLE table_name_29 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_29 WHERE venue = "kuwait city"
What number of Fatalities did the Epicenter Māzandarān have?
CREATE TABLE table_name_79 (fatalities VARCHAR, epicenter VARCHAR)
SELECT fatalities FROM table_name_79 WHERE epicenter = "māzandarān"
What is the form factor with a model name of precision m50?
CREATE TABLE table_name_99 (form_factor VARCHAR, model VARCHAR)
SELECT form_factor FROM table_name_99 WHERE model = "precision m50"
Which source reported 32.60% of browsers used Chrome?
CREATE TABLE table_name_43 (source VARCHAR, chrome VARCHAR)
SELECT source FROM table_name_43 WHERE chrome = "32.60%"
Show all the distinct districts for elections.
CREATE TABLE election (District VARCHAR)
SELECT DISTINCT District FROM election
What is the U.S. Christian with a Year that is 1989?
CREATE TABLE table_name_92 (us VARCHAR, year VARCHAR)
SELECT us AS Christian FROM table_name_92 WHERE year = 1989
What is the language with a France publication range of 1992–2003?
CREATE TABLE table_name_65 (language VARCHAR, country VARCHAR, publication_range VARCHAR)
SELECT language FROM table_name_65 WHERE country = "france" AND publication_range = "1992–2003"
What was the name for the race in the Miramas circuit?
CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_31 WHERE circuit = "miramas"
What is the pick# for the California Golden Seals?
CREATE TABLE table_name_92 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT pick__number FROM table_name_92 WHERE nhl_team = "california golden seals"
What was the highest points where there were less than 2 drawn and the games were less than 6?
CREATE TABLE table_name_26 (points INTEGER, drawn VARCHAR, games VARCHAR)
SELECT MAX(points) FROM table_name_26 WHERE drawn < 2 AND games < 6
Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.
CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR); CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR)
SELECT T1.statement_details, T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'
What candidate is a member of the Republican party?
CREATE TABLE table_1341640_39 (candidates VARCHAR, party VARCHAR)
SELECT candidates FROM table_1341640_39 WHERE party = "Republican"
What is the name of the singer with the largest net worth?
CREATE TABLE singer (Name VARCHAR, Net_Worth_Millions VARCHAR)
SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1
What is the lowest Draws, when Against is "1547", and when Wins is greater than 3?
CREATE TABLE table_name_42 (draws INTEGER, against VARCHAR, wins VARCHAR)
SELECT MIN(draws) FROM table_name_42 WHERE against = 1547 AND wins > 3
what is the time/retired when the laps is 55?
CREATE TABLE table_name_96 (time_retired VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_96 WHERE laps = 55
What country has the city, Sydney?
CREATE TABLE table_name_99 (country VARCHAR, city VARCHAR)
SELECT country FROM table_name_99 WHERE city = "sydney"
What Service Name has UTV as the owner?
CREATE TABLE table_name_60 (service_name VARCHAR, owner VARCHAR)
SELECT service_name FROM table_name_60 WHERE owner = "utv"
How much money did the country with 282 stores make in sales?
CREATE TABLE table_name_49 (sales__x1000_ VARCHAR, no_of_stores VARCHAR)
SELECT sales__x1000_ FROM table_name_49 WHERE no_of_stores = 282
What is the name and job title of the staff who was assigned the latest?
CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (job_title_code VARCHAR, staff_id VARCHAR, date_assigned_to VARCHAR)
SELECT T1.staff_name, T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1
What's the website for the Listen Live webcast on the 99.3 frequency?
CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)
SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3
What tournament took place on Ground A with 8 rounds?
CREATE TABLE table_name_80 (tournament VARCHAR, ground VARCHAR, round VARCHAR)
SELECT tournament FROM table_name_80 WHERE ground = "a" AND round = "8"
What is Bruce Cerone overall?
CREATE TABLE table_10361230_1 (overall INTEGER, player_name VARCHAR)
SELECT MIN(overall) FROM table_10361230_1 WHERE player_name = "Bruce Cerone"
How many rebounds per game did he have at the 2006 fiba world championship?
CREATE TABLE table_2761641_1 (rebounds_per_game VARCHAR, tournament VARCHAR)
SELECT rebounds_per_game FROM table_2761641_1 WHERE tournament = "2006 FIBA World Championship"
What is the result for the game before week 7 against BYE?
CREATE TABLE table_name_95 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_95 WHERE week < 7 AND opponent = "bye"
Which Draws has a Wins smaller than 17, and an Against smaller than 1158?
CREATE TABLE table_name_64 (draws VARCHAR, wins VARCHAR, against VARCHAR)
SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158
What was the least amount of wins?
CREATE TABLE table_24937583_1 (wins INTEGER)
SELECT MIN(wins) FROM table_24937583_1
What is the ICAO of Douala city?
CREATE TABLE table_name_13 (icao VARCHAR, city VARCHAR)
SELECT icao FROM table_name_13 WHERE city = "douala"
What is the lowest number of gold medals the nation with less than 0 silver medals has?
CREATE TABLE table_name_67 (gold INTEGER, silver INTEGER)
SELECT MIN(gold) FROM table_name_67 WHERE silver < 0
what is the total number of building for address on 201 1st avenue south
CREATE TABLE table_13397394_1 (building VARCHAR, address VARCHAR)
SELECT COUNT(building) FROM table_13397394_1 WHERE address = "201 1st Avenue South"
When paul moor is on the europe team who is on the usa team?
CREATE TABLE table_19072602_5 (team_usa VARCHAR, team_europe VARCHAR)
SELECT team_usa FROM table_19072602_5 WHERE team_europe = "Paul Moor"
Which show returns april 3 with a Previous Network of lifetime?
CREATE TABLE table_name_44 (retitled_as_same VARCHAR, returning VARCHAR, previous_network VARCHAR)
SELECT retitled_as_same FROM table_name_44 WHERE returning = "april 3" AND previous_network = "lifetime"
WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE?
CREATE TABLE table_name_2 (money___ INTEGER, score VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_2 WHERE score = 74 - 74 - 76 - 74 = 298
Which Series has a Score of 9–4?
CREATE TABLE table_name_86 (series VARCHAR, score VARCHAR)
SELECT series FROM table_name_86 WHERE score = "9–4"
Who got 13 score points at wc kerrville?
CREATE TABLE table_name_16 (shooter VARCHAR, score_points VARCHAR, event VARCHAR)
SELECT shooter FROM table_name_16 WHERE score_points = "13" AND event = "wc kerrville"
What is Top Division Debut, when Tournaments is "12", and when Name is "Yamamotoyama"?
CREATE TABLE table_name_67 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)
SELECT top_division_debut FROM table_name_67 WHERE tournaments = 12 AND name = "yamamotoyama"
What is the name of the constructor when report shows report in 1955?
CREATE TABLE table_name_48 (constructor VARCHAR, year VARCHAR)
SELECT constructor FROM table_name_48 WHERE "report" = "report" AND year = "1955"
Name the total number of b winning car and bobby archer, tommy archer
CREATE TABLE table_27965906_2 (b_winning_car VARCHAR, ss_winning_car VARCHAR)
SELECT COUNT(b_winning_car) FROM table_27965906_2 WHERE ss_winning_car = "Bobby Archer, Tommy Archer"
What is the mean number of caps for Ryota Asano?
CREATE TABLE table_name_36 (caps INTEGER, player VARCHAR)
SELECT AVG(caps) FROM table_name_36 WHERE player = "ryota asano"
What is the nominal GDP per capita when the population is 63.056 million?
CREATE TABLE table_1610496_3 (gdp_per_capita_nominal__ INTEGER, population__millions_ VARCHAR)
SELECT MIN(gdp_per_capita_nominal__) AS $_ FROM table_1610496_3 WHERE population__millions_ = "63.056"
What position is the round higher than 15 and has an overall of 411.
CREATE TABLE table_name_82 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT position FROM table_name_82 WHERE round > 15 AND overall = 411
What is the ranking of the UEFA Euro 2012 qualifying Group A competition?
CREATE TABLE table_24765815_2 (rank VARCHAR, competition VARCHAR)
SELECT rank FROM table_24765815_2 WHERE competition = "UEFA Euro 2012 qualifying Group A"
What was the result of the election of the incumbent harry r. sheppard?
CREATE TABLE table_1341973_6 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341973_6 WHERE incumbent = "Harry R. Sheppard"
What is the economy of the player with BBI of 3/33?
CREATE TABLE table_28846752_13 (economy VARCHAR, bbi VARCHAR)
SELECT economy FROM table_28846752_13 WHERE bbi = "3/33"
What Decile has State Authority and Raumati South Area?
CREATE TABLE table_name_67 (decile VARCHAR, authority VARCHAR, area VARCHAR)
SELECT decile FROM table_name_67 WHERE authority = "state" AND area = "raumati south"
What is the smallest drawn when the points are less than 7 and the against greater than 31?
CREATE TABLE table_name_79 (drawn INTEGER, points VARCHAR, against VARCHAR)
SELECT MIN(drawn) FROM table_name_79 WHERE points < 7 AND against > 31
How much money for 1st place with a to par less than 1?
CREATE TABLE table_name_51 (money___ VARCHAR, place VARCHAR, to_par VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_51 WHERE place = "1" AND to_par < 1
Find the id of the order whose shipment tracking number is "3452".
CREATE TABLE shipments (order_id VARCHAR, shipment_tracking_number VARCHAR)
SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452"
What is the human development index for the year 2000 where the ingei code is 10?
CREATE TABLE table_1480455_1 (human_development_index__2000_ VARCHAR, inegi_code VARCHAR)
SELECT human_development_index__2000_ FROM table_1480455_1 WHERE inegi_code = 10
Which school was Chris Robinson from?
CREATE TABLE table_name_60 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_60 WHERE player = "chris robinson"
What aircraft is located at S of Avion?
CREATE TABLE table_name_3 (aircraft VARCHAR, location VARCHAR)
SELECT aircraft FROM table_name_3 WHERE location = "s of avion"
Which rank has 1 silver medal and more than 1 gold medal?
CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_38 WHERE silver = 1 AND gold > 1