question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many live births per year are there in the period where the life expectancy for females is 73.3?
CREATE TABLE table_18950570_2 (live_births_per_year VARCHAR, life_expectancy_females VARCHAR)
SELECT live_births_per_year FROM table_18950570_2 WHERE life_expectancy_females = "73.3"
What is the public when the vote percentage is 16.0%
CREATE TABLE table_26375386_20 (public VARCHAR, vote_percentage VARCHAR)
SELECT public FROM table_26375386_20 WHERE vote_percentage = "16.0%"
Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%
CREATE TABLE table_2668347_17 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_2668347_17 WHERE candidates = "Jacob Spangler (DR) 67.1% Jacob Hay (F) 32.9%"
What is the ICAO for Seewoosagur Ramgoolam airport?
CREATE TABLE table_name_72 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_72 WHERE airport = "seewoosagur ramgoolam airport"
What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?
CREATE TABLE table_name_81 (total_as INTEGER, venue VARCHAR, team VARCHAR, opponent VARCHAR)
SELECT SUM(total_as) FROM table_name_81 WHERE team = "bucheon sk" AND opponent = "chunnam dragons" AND venue = "bucheon"
What song was performed when Barbara Windsor was the guest host?
CREATE TABLE table_1590967_7 (musical_guest__song_performed_ VARCHAR, guest_host VARCHAR)
SELECT musical_guest__song_performed_ FROM table_1590967_7 WHERE guest_host = "Barbara Windsor"
What is the smallest bronze with a Rank of 12, and a Silver smaller than 2?
CREATE TABLE table_name_5 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(bronze) FROM table_name_5 WHERE rank = 12 AND silver < 2
What was his record at the AFC: Brazil 1 event that went 3 rounds?
CREATE TABLE table_name_59 (record VARCHAR, round VARCHAR, event VARCHAR)
SELECT record FROM table_name_59 WHERE round = "3" AND event = "afc: brazil 1"
Which Constructor has Laps larger than 9, and a Grid smaller than 2?
CREATE TABLE table_name_7 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_7 WHERE laps > 9 AND grid < 2
Name the total number of average for wickets more than 537, career of 1899/00-1925/26 and matches less than 211
CREATE TABLE table_name_21 (average VARCHAR, matches VARCHAR, wickets VARCHAR, career VARCHAR)
SELECT COUNT(average) FROM table_name_21 WHERE wickets > 537 AND career = "1899/00-1925/26" AND matches < 211
Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?
CREATE TABLE table_name_29 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR)
SELECT intergiro_classification FROM table_name_29 WHERE trofeo_fast_team = "gb-mg maglificio"
Name the replaced by for racing santander
CREATE TABLE table_name_64 (replaced_by VARCHAR, team VARCHAR)
SELECT replaced_by FROM table_name_64 WHERE team = "racing santander"
What is the lowest amount of gold for more than 16 silver?
CREATE TABLE table_name_14 (gold INTEGER, silver INTEGER)
SELECT MIN(gold) FROM table_name_14 WHERE silver > 16
Name the total number of score for staples center 13,266
CREATE TABLE table_17323529_5 (score VARCHAR, location_attendance VARCHAR)
SELECT COUNT(score) FROM table_17323529_5 WHERE location_attendance = "Staples Center 13,266"
Shivnarine Chanderpaul used what bowling style?
CREATE TABLE table_11950720_8 (bowling_style VARCHAR, player VARCHAR)
SELECT bowling_style FROM table_11950720_8 WHERE player = "Shivnarine Chanderpaul"
what opponent has an average less than 62 and a January average less than 6
CREATE TABLE table_name_34 (opponent VARCHAR, points VARCHAR, january VARCHAR)
SELECT opponent FROM table_name_34 WHERE points < 62 AND january < 6
What is the total and minimum enrollment of all schools?
CREATE TABLE university (enrollment INTEGER)
SELECT SUM(enrollment), MIN(enrollment) FROM university
What is the power when the city of license is Beaver Creek?
CREATE TABLE table_name_50 (power VARCHAR, city_of_license VARCHAR)
SELECT power FROM table_name_50 WHERE city_of_license = "beaver creek"
What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians?
CREATE TABLE table_name_79 (hometown_school VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR)
SELECT hometown_school FROM table_name_79 WHERE pick > 30 AND position = "of" AND team = "cleveland indians"
Where was the attendance more than 57,347?
CREATE TABLE table_name_27 (location VARCHAR, attendance INTEGER)
SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347
What position does the player from tulsa play?
CREATE TABLE table_name_17 (position VARCHAR, school_country VARCHAR)
SELECT position FROM table_name_17 WHERE school_country = "tulsa"
Which Slalom has a Super G of 4?
CREATE TABLE table_name_98 (slalom VARCHAR, super_g VARCHAR)
SELECT slalom FROM table_name_98 WHERE super_g = "4"
What is the weekly rank where the number is 4?
CREATE TABLE table_11753080_2 (weekly_rank VARCHAR, _number VARCHAR)
SELECT weekly_rank FROM table_11753080_2 WHERE _number = 4
What party is Mick Young a member of?
CREATE TABLE table_name_45 (party VARCHAR, member VARCHAR)
SELECT party FROM table_name_45 WHERE member = "mick young"
Who has a total of 272?
CREATE TABLE table_name_46 (player VARCHAR, total VARCHAR)
SELECT player FROM table_name_46 WHERE total = 272
How large was the crowd at Glenferrie Oval?
CREATE TABLE table_name_98 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_98 WHERE venue = "glenferrie oval"
How large was the crowd when they played at princes park?
CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_56 WHERE venue = "princes park"
Name the average round where Dave Stachelski was picked smaller than 187.
CREATE TABLE table_name_28 (round INTEGER, overall VARCHAR, player VARCHAR)
SELECT AVG(round) FROM table_name_28 WHERE overall < 187 AND player = "dave stachelski"
What place did the player that took won $350 finish in?
CREATE TABLE table_name_21 (place VARCHAR, money___$__ VARCHAR)
SELECT place FROM table_name_21 WHERE money___$__ = 350
Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.
CREATE TABLE cinema (capacity INTEGER, openning_year VARCHAR)
SELECT AVG(capacity), MIN(capacity), MAX(capacity) FROM cinema WHERE openning_year >= 2011
Which Name had a Rank of 18 Out of a number smaller than 149?
CREATE TABLE table_name_31 (name VARCHAR, out_of VARCHAR, rank VARCHAR)
SELECT name FROM table_name_31 WHERE out_of < 149 AND rank = 18
What's the TDP for the 7130N model?
CREATE TABLE table_269920_3 (tdp__w_ INTEGER, model VARCHAR)
SELECT MIN(tdp__w_) FROM table_269920_3 WHERE model = "7130N"
What was the date of the series finale for Peru?
CREATE TABLE table_29799700_2 (series_finale VARCHAR, country VARCHAR)
SELECT series_finale FROM table_29799700_2 WHERE country = "Peru"
Which 2007 had a 2009 taht was qf when its 2000 was a?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2007 FROM table_name_60 WHERE 2009 = "qf" AND 2000 = "a"
What is the score of the final in $10,000 – tarakan , indonesia f2?
CREATE TABLE table_name_97 (score_in_final VARCHAR, tournament VARCHAR)
SELECT score_in_final FROM table_name_97 WHERE tournament = "$10,000 – tarakan , indonesia f2"
Who was the home when the opponent was slovan liberec?
CREATE TABLE table_name_44 (home VARCHAR, opponent VARCHAR)
SELECT home FROM table_name_44 WHERE opponent = "slovan liberec"
Who was the opposing team when the scorer was ronaldinho 90+3'?
CREATE TABLE table_name_37 (opponent_team VARCHAR, scorers VARCHAR)
SELECT opponent_team FROM table_name_37 WHERE scorers = "ronaldinho 90+3'"
Zack Jordan has the lowest pick and a round of less than 28?
CREATE TABLE table_name_69 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT MIN(pick) FROM table_name_69 WHERE player = "zack jordan" AND round < 28
How did he place in 1970?
CREATE TABLE table_name_58 (result VARCHAR, year VARCHAR)
SELECT result FROM table_name_58 WHERE year = 1970
What are the code and description of the most frequent behavior incident type?
CREATE TABLE Ref_Incident_Type (incident_type_description VARCHAR, incident_type_code VARCHAR); CREATE TABLE Behavior_Incident (incident_type_code VARCHAR)
SELECT T1.incident_type_code, T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY COUNT(*) DESC LIMIT 1
When the VFL played Victoria Park what was the home team score?
CREATE TABLE table_name_11 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_11 WHERE venue = "victoria park"
What is the score of the Home team of geelong?
CREATE TABLE table_name_74 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE home_team = "geelong"
How many people were in attendance at Glenferrie Oval?
CREATE TABLE table_name_43 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_43 WHERE venue = "glenferrie oval"
What were the birth and death years when active service was 1972–1995?
CREATE TABLE table_name_54 (born_died VARCHAR, active_service VARCHAR)
SELECT born_died FROM table_name_54 WHERE active_service = "1972–1995"
Which player has a score of 74-74-73-70=291?
CREATE TABLE table_name_72 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_72 WHERE score = 74 - 74 - 73 - 70 = 291
Which coach founded the Western Strikers team after 1963?
CREATE TABLE table_name_58 (coach VARCHAR, founded VARCHAR, team VARCHAR)
SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers"
What team does Oliver Dobbins play for?
CREATE TABLE table_name_39 (team VARCHAR, player VARCHAR)
SELECT team FROM table_name_39 WHERE player = "oliver dobbins"
what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun?
CREATE TABLE table_name_55 (country VARCHAR, athlete VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT country FROM table_name_55 WHERE notes = "sa/b" AND rank > 1 AND athlete = "zhang xiuyun"
which opponent is from February 12?
CREATE TABLE table_name_1 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_1 WHERE date = "february 12"
Performer 2 of chip esten has what performer 3?
CREATE TABLE table_name_40 (performer_3 VARCHAR, performer_2 VARCHAR)
SELECT performer_3 FROM table_name_40 WHERE performer_2 = "chip esten"
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 country FROM table_name_92 WHERE to_par = "+1" AND score = 69 - 70 - 72 = 211
What was the away team score when the home team essendon was playing?
CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_63 WHERE home_team = "essendon"
Show the number of high schoolers for each grade.
CREATE TABLE Highschooler (grade VARCHAR)
SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade
What result has a week less than 16, and October 31, 2005 as the date?
CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_25 WHERE week < 16 AND date = "october 31, 2005"
Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.
CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR); CREATE TABLE Settlements (claim_id VARCHAR)
SELECT T1.claim_id, T1.date_claim_made, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY COUNT(*) DESC LIMIT 1
Name the oberliga for where tsv 1860 munich and borussia neunkirchen
CREATE TABLE table_14242137_4 (oberliga_baden_württemberg VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)
SELECT oberliga_baden_württemberg FROM table_14242137_4 WHERE oberliga_bayern = "TSV 1860 Munich" AND oberliga_südwest = "Borussia Neunkirchen"
What is the date when Lebron James (25) was the lead scorer?
CREATE TABLE table_name_90 (date VARCHAR, leading_scorer VARCHAR)
SELECT date FROM table_name_90 WHERE leading_scorer = "lebron james (25)"
What is the total of all against values for the Corinthians with less than 3 lost?
CREATE TABLE table_name_4 (against VARCHAR, team VARCHAR, lost VARCHAR)
SELECT COUNT(against) FROM table_name_4 WHERE team = "corinthians" AND lost < 3
What is Player, when Round is greater than 8, when Pick # is greater than 234, and when College is "Louisville"?
CREATE TABLE table_name_22 (player VARCHAR, college VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_22 WHERE round > 8 AND pick__number > 234 AND college = "louisville"
What venue features essendon at home?
CREATE TABLE table_name_65 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_65 WHERE home_team = "essendon"
What is 1997, when 2003 is 0 / 4?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT 1997 FROM table_name_22 WHERE 2003 = "0 / 4"
What is the to par of player hunter mahan?
CREATE TABLE table_name_87 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_87 WHERE player = "hunter mahan"
What is the lowest Draws for a season later than 1919 with more than 0 wins?
CREATE TABLE table_name_86 (draws INTEGER, season VARCHAR, wins VARCHAR)
SELECT MIN(draws) FROM table_name_86 WHERE season > 1919 AND wins > 0
What is the time/retired for the car with over 9 laps and a grid of 6?
CREATE TABLE table_name_42 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_42 WHERE laps > 9 AND grid = 6
Why did the Belk Gymnasium close?
CREATE TABLE table_name_95 (reason VARCHAR, venue VARCHAR)
SELECT reason FROM table_name_95 WHERE venue = "belk gymnasium"
On which Surface will Estrella Cabeza Candela play?
CREATE TABLE table_name_67 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_67 WHERE opponent = "estrella cabeza candela"
What is the D 46 √ when the D 50 √ is d 50 √?
CREATE TABLE table_name_14 (d_46_√ VARCHAR, d_50_√ VARCHAR)
SELECT d_46_√ FROM table_name_14 WHERE d_50_√ = "d 50 √"
What's the city/state of Hidden Valley Raceway?
CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR)
SELECT city___state FROM table_name_16 WHERE circuit = "hidden valley raceway"
Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?
CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)
SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)
What is the total grid number when Fonsi Nieto had more than 22 laps?
CREATE TABLE table_name_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_59 WHERE rider = "fonsi nieto" AND laps > 22
How many values for points have Sophia Witherspoon as the player?
CREATE TABLE table_25352324_5 (points VARCHAR, player VARCHAR)
SELECT COUNT(points) FROM table_25352324_5 WHERE player = "Sophia Witherspoon"
what is the silver when the nation is syria (syr) and gold is more than 0?
CREATE TABLE table_name_38 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_38 WHERE nation = "syria (syr)" AND gold > 0
What is the percentage of the popular vote when there were 90 seats available?
CREATE TABLE table_name_53 (_percentage_of_popular_vote VARCHAR, _number_of_seats_available VARCHAR)
SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90
What is Mike Souchak's to par?
CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_89 WHERE player = "mike souchak"
4512 is the enrollment what is the team nickname?
CREATE TABLE table_28211213_2 (team_nickname VARCHAR, enrollment VARCHAR)
SELECT team_nickname FROM table_28211213_2 WHERE enrollment = 4512
What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had?
CREATE TABLE table_name_41 (loss VARCHAR, long VARCHAR, name VARCHAR, gain VARCHAR, avg_g VARCHAR)
SELECT COUNT(loss) FROM table_name_41 WHERE gain > 27 AND avg_g < 55.9 AND name = "jackson, t." AND long < 34
How many metropolitan boroughs have dorridge as a station?
CREATE TABLE table_15366849_1 (c_ VARCHAR, metropolitan_borough_ VARCHAR, station VARCHAR)
SELECT COUNT(metropolitan_borough_)[c_] FROM table_15366849_1 WHERE station = "Dorridge"
Who led the most laps when brandon wagner had the fastest lap?
CREATE TABLE table_29690363_3 (most_laps_led VARCHAR, fastest_lap VARCHAR)
SELECT most_laps_led FROM table_29690363_3 WHERE fastest_lap = "Brandon Wagner"
What is the result of the game against the Chicago Bears?
CREATE TABLE table_14966537_1 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_14966537_1 WHERE opponent = "Chicago Bears"
What is the record with a 3:56 time?
CREATE TABLE table_name_63 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_63 WHERE time = "3:56"
Which Presentation of Credentials is listed for the Appointed by Benjamin Harrison?
CREATE TABLE table_name_55 (presentation_of_credentials VARCHAR, appointed_by VARCHAR)
SELECT presentation_of_credentials FROM table_name_55 WHERE appointed_by = "benjamin harrison"
What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"?
CREATE TABLE table_name_75 (incumbent VARCHAR, district VARCHAR, results VARCHAR, party VARCHAR)
SELECT incumbent FROM table_name_75 WHERE results = "re-elected" AND party = "democratic" AND district = "minnesota 7"
Which Floors has a Location of tower hill?
CREATE TABLE table_name_89 (floors VARCHAR, location VARCHAR)
SELECT floors FROM table_name_89 WHERE location = "tower hill"
Which Sleeves have a Year of 2006-2008?
CREATE TABLE table_name_67 (sleeves VARCHAR, year VARCHAR)
SELECT sleeves FROM table_name_67 WHERE year = "2006-2008"
What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?
CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR)
SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8
What is the Result of the game on October 3?
CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_49 WHERE date = "october 3"
What years did Markose Bristow Madhumita Bisht win the mens singles and/or the mixed doubles?
CREATE TABLE table_12194021_1 (mens_singles VARCHAR, mixed_doubles VARCHAR)
SELECT mens_singles FROM table_12194021_1 WHERE mixed_doubles = "Markose Bristow Madhumita Bisht"
Who wrote Infiltration?
CREATE TABLE table_name_86 (writer VARCHAR, title VARCHAR)
SELECT writer FROM table_name_86 WHERE title = "infiltration"
Which Team/Chassis has less than 65 points?
CREATE TABLE table_name_66 (team_chassis VARCHAR, pts INTEGER)
SELECT team_chassis FROM table_name_66 WHERE pts < 65
How much was requested from Investing Dragon Peter Jones request in episode 2?
CREATE TABLE table_name_92 (money_requested__£_ VARCHAR, investing_dragon_s_ VARCHAR, episode VARCHAR)
SELECT money_requested__£_ FROM table_name_92 WHERE investing_dragon_s_ = "peter jones" AND episode = "episode 2"
What position does Karl Singer play?
CREATE TABLE table_name_22 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_22 WHERE player = "karl singer"
What extra is from after 2009?
CREATE TABLE table_name_87 (extra VARCHAR, year INTEGER)
SELECT extra FROM table_name_87 WHERE year > 2009
What is the future stem for the word that has an imperfect stem of hartzen?
CREATE TABLE table_name_66 (future_stem VARCHAR, imperfect_stem VARCHAR)
SELECT future_stem FROM table_name_66 WHERE imperfect_stem = "hartzen"
what is the capital where it is ramtha
CREATE TABLE table_26173058_2 (qadisiya VARCHAR, × VARCHAR)
SELECT qadisiya FROM table_26173058_2 WHERE × = "ramtha"
What are the names of all the players with an average of 15.89?
CREATE TABLE table_2482547_5 (name VARCHAR, average VARCHAR)
SELECT name FROM table_2482547_5 WHERE average = "15.89"
Name the party a for sriperumbudur
CREATE TABLE table_22754310_1 (party VARCHAR, constituency VARCHAR)
SELECT party AS a FROM table_22754310_1 WHERE constituency = "Sriperumbudur"
What team did the Montreal Canadiens visit when the record was 0-3?
CREATE TABLE table_name_3 (home VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT home FROM table_name_3 WHERE visitor = "montreal canadiens" AND record = "0-3"
Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?
CREATE TABLE table_25773116_2 (location VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT location FROM table_25773116_2 WHERE pole_position = "Daniel Erickson" AND fastest_lap = "Cole Morgan"
What series had high rebounds with Marcus Camby (11)?
CREATE TABLE table_23286158_11 (series VARCHAR, high_rebounds VARCHAR)
SELECT series FROM table_23286158_11 WHERE high_rebounds = "Marcus Camby (11)"
How many carries for the RB averaging 4.7, and a long of over 30 yards?
CREATE TABLE table_name_65 (car INTEGER, avg VARCHAR, long VARCHAR)
SELECT SUM(car) FROM table_name_65 WHERE avg = 4.7 AND long > 30