question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Democrat was selected in the poll with a sample size smaller than 516 where the Republican chosen was Ron Paul?
CREATE TABLE table_name_16 (democrat VARCHAR, sample_size VARCHAR, republican VARCHAR)
SELECT democrat FROM table_name_16 WHERE sample_size < 516 AND republican = "ron paul"
What was the Tuesday episode if theThursday episode was 196 Buried?
CREATE TABLE table_18173916_6 (tuesday VARCHAR, thursday VARCHAR)
SELECT tuesday FROM table_18173916_6 WHERE thursday = "196 Buried"
What is the Format for the alca-487 catalog?
CREATE TABLE table_name_12 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_12 WHERE catalog = "alca-487"
Who was the partner on May 16, 2004?
CREATE TABLE table_name_52 (partner VARCHAR, date VARCHAR)
SELECT partner FROM table_name_52 WHERE date = "may 16, 2004"
How many 180s have legs won of 45?
CREATE TABLE table_20948329_1 (legs_won VARCHAR)
SELECT MAX(180 AS s) FROM table_20948329_1 WHERE legs_won = 45
What tournament did Thomaz Bellucci become runner-up on a clay surface?
CREATE TABLE table_name_82 (tournament VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT tournament FROM table_name_82 WHERE outcome = "runner-up" AND surface = "clay"
What is the away team's score when north melbourne is the home team?
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_28 WHERE home_team = "north melbourne"
When did crawfordsville join?
CREATE TABLE table_name_10 (year_joined INTEGER, location VARCHAR)
SELECT MAX(year_joined) FROM table_name_10 WHERE location = "crawfordsville"
what's the average where high score is 120
CREATE TABLE table_10621256_1 (average VARCHAR, high_score VARCHAR)
SELECT average FROM table_10621256_1 WHERE high_score = 120
What is the value of the lowest Week with a Record of 2–9?
CREATE TABLE table_name_46 (week INTEGER, record VARCHAR)
SELECT MIN(week) FROM table_name_46 WHERE record = "2–9"
What Constellation has a 20h56m40s Right Ascension (J2000)?
CREATE TABLE table_name_27 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT constellation FROM table_name_27 WHERE right_ascension___j2000__ = "20h56m40s"
Where was the game on jan. 16/06 played?
CREATE TABLE table_22862203_2 (location VARCHAR, date VARCHAR)
SELECT location FROM table_22862203_2 WHERE date = "Jan. 16/06"
Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?
CREATE TABLE table_name_43 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR)
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps"
What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?
CREATE TABLE bridge (LOCATION VARCHAR, name VARCHAR)
SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge'
When fc oberau is the oberbayern a what is the oberpfalz?
CREATE TABLE table_23224961_1 (oberpfalz VARCHAR, oberbayern_a VARCHAR)
SELECT oberpfalz FROM table_23224961_1 WHERE oberbayern_a = "FC Oberau"
How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?
CREATE TABLE table_name_96 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT SUM(average) FROM table_name_96 WHERE swimsuit = 8.42 AND evening_gown < 8.71
What was teh score of the game where Toronto was the home team on January 28?
CREATE TABLE table_name_43 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_43 WHERE home = "toronto" AND date = "january 28"
Who played against TSV bayer 04 leverkusen when they were team #1?
CREATE TABLE table_name_9 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_9 WHERE team__number1 = "tsv bayer 04 leverkusen"
what is the score in the philadelphia team
CREATE TABLE table_30049462_5 (score VARCHAR, team VARCHAR)
SELECT COUNT(score) FROM table_30049462_5 WHERE team = "Philadelphia"
Which Jushin Liger has a Super Shocker of liger (13:59)?
CREATE TABLE table_name_44 (jushin_liger VARCHAR, super_shocker VARCHAR)
SELECT jushin_liger FROM table_name_44 WHERE super_shocker = "liger (13:59)"
When was the game developed by Microvision released?
CREATE TABLE table_12744399_1 (initial_release_date VARCHAR, developer VARCHAR)
SELECT initial_release_date FROM table_12744399_1 WHERE developer = "Microvision"
What is the highest lane with a rank larger than 2 in Guyana?
CREATE TABLE table_name_31 (lane INTEGER, rank VARCHAR, nationality VARCHAR)
SELECT MAX(lane) FROM table_name_31 WHERE rank > 2 AND nationality = "guyana"
Which classrooms are used by grade 5?
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT DISTINCT classroom FROM list WHERE grade = 5
Who directed the episode with a production code of 4WAB05?
CREATE TABLE table_20726262_5 (directedby VARCHAR, production_code VARCHAR)
SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB05"
What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird?
CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR)
SELECT COUNT(mintage) FROM table_name_88 WHERE weight = "12.61 g" AND theme = "ruby-throated hummingbird"
What is the average number of points of the club with more than 23 goals conceded and a position larger than 12?
CREATE TABLE table_name_64 (points INTEGER, goals_conceded VARCHAR, position VARCHAR)
SELECT AVG(points) FROM table_name_64 WHERE goals_conceded > 23 AND position > 12
Name the event for hans ruep
CREATE TABLE table_18646111_13 (event VARCHAR, athlete VARCHAR)
SELECT event FROM table_18646111_13 WHERE athlete = "Hans Ruep"
What was the losing bonus for the 20 played, and 353 points?
CREATE TABLE table_name_89 (losing_bonus VARCHAR, played VARCHAR, points_for VARCHAR)
SELECT losing_bonus FROM table_name_89 WHERE played = "20" AND points_for = "353"
What is the lowest rank for Chris Brown with react greater than 0.244?
CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR)
SELECT MIN(rank) FROM table_name_44 WHERE athlete = "chris brown" AND react > 0.244
What's the density in the district with 2320529 citizens in 2011?
CREATE TABLE table_2801442_1 (density_in_2011___km²_ VARCHAR, population__2011_census_ VARCHAR)
SELECT density_in_2011___km²_ FROM table_2801442_1 WHERE population__2011_census_ = 2320529
When was the average attendance 789?
CREATE TABLE table_2380212_1 (year INTEGER, avg_attendance VARCHAR)
SELECT MIN(year) FROM table_2380212_1 WHERE avg_attendance = 789
How many laps for grid of 9?
CREATE TABLE table_name_49 (laps VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_49 WHERE grid = 9
Who won Womens Singles in the year that Ma Lin won Mens Singles?
CREATE TABLE table_28138035_15 (womens_singles VARCHAR, mens_singles VARCHAR)
SELECT womens_singles FROM table_28138035_15 WHERE mens_singles = "Ma Lin"
What's the Kilometers listed that also has the Station Code of Kuda?
CREATE TABLE table_name_87 (kilometers VARCHAR, station_code VARCHAR)
SELECT kilometers FROM table_name_87 WHERE station_code = "kuda"
Find the name and checking balance of the account with the lowest saving balance.
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT T2.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1
Which city is the host of the University of Texas?
CREATE TABLE table_name_1 (city VARCHAR, host VARCHAR)
SELECT city FROM table_name_1 WHERE host = "university of texas"
What is the highest Matches, when Prize Money is £5,000?
CREATE TABLE table_name_5 (matches INTEGER, prize_money VARCHAR)
SELECT MAX(matches) FROM table_name_5 WHERE prize_money = "£5,000"
When did the season that end in July ? start?
CREATE TABLE table_1949994_7 (start_date VARCHAR, end_date VARCHAR)
SELECT start_date FROM table_1949994_7 WHERE end_date = "July ?"
What label released a record on March 25, 1984?
CREATE TABLE table_name_9 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_9 WHERE date = "march 25, 1984"
How many times did a center that attended Oral Roberts play for the Rockets?
CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, position VARCHAR, school_club_team_country VARCHAR)
SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE position = "Center" AND school_club_team_country = "Oral Roberts"
What is the finished place where exited is day 11?
CREATE TABLE table_14345690_5 (finished VARCHAR, exited VARCHAR)
SELECT finished FROM table_14345690_5 WHERE exited = "Day 11"
What is the film, television series, or miniseries with a nomination in 2001?
CREATE TABLE table_name_16 (film_or_television_series_or_miniseries VARCHAR, year VARCHAR)
SELECT film_or_television_series_or_miniseries FROM table_name_16 WHERE year = 2001
Who was the athlete who had SEMI of 1:43.79?
CREATE TABLE table_name_97 (name_athlete VARCHAR, semi VARCHAR)
SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79"
when the annual co2 emissions (in thousands of metric tons) is 1811, what is the country?
CREATE TABLE table_2508175_1 (country VARCHAR, annual_co2_emissions__in_thousands_of_metric_tons_ VARCHAR)
SELECT country FROM table_2508175_1 WHERE annual_co2_emissions__in_thousands_of_metric_tons_ = 1811
What is the age of the friend of Zach with longest year relationship?
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, year VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, name VARCHAR); CREATE TABLE Person (age VARCHAR, name VARCHAR)
SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')
how many highest with team being forfar athletic
CREATE TABLE table_14003108_1 (highest VARCHAR, team VARCHAR)
SELECT COUNT(highest) FROM table_14003108_1 WHERE team = "Forfar Athletic"
Which season had less than 25.4 viewers and had a viewer rank of #6?
CREATE TABLE table_name_43 (season INTEGER, households_viewers__in_millions_ VARCHAR, viewer_rank___number_ VARCHAR)
SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = "#6"
What is John Crawford's Nationality?
CREATE TABLE table_name_47 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_47 WHERE player = "john crawford"
Who has a total number of 76 silver medals?
CREATE TABLE table_name_66 (silver VARCHAR, total VARCHAR)
SELECT COUNT(silver) FROM table_name_66 WHERE total = 76
Name the runs balls for wicket of 3rd for australia opponent
CREATE TABLE table_name_9 (runs__balls_ VARCHAR, wicket VARCHAR, opponent VARCHAR)
SELECT runs__balls_ FROM table_name_9 WHERE wicket = "3rd" AND opponent = "australia"
Who is the incumbent of Florida 9?
CREATE TABLE table_1341423_9 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341423_9 WHERE district = "Florida 9"
What's the tournament name when they had an A in 2011 & 2012?
CREATE TABLE table_name_74 (tournament VARCHAR)
SELECT tournament FROM table_name_74 WHERE 2012 = "a" AND 2011 = "a"
What date was the set 1 25–23, and a Set 3 of 25–14?
CREATE TABLE table_name_12 (date VARCHAR, set_1 VARCHAR, set_3 VARCHAR)
SELECT date FROM table_name_12 WHERE set_1 = "25–23" AND set_3 = "25–14"
Which round was the defensive tackle picked after 187?
CREATE TABLE table_name_8 (round INTEGER, position VARCHAR, pick__number VARCHAR)
SELECT AVG(round) FROM table_name_8 WHERE position = "defensive tackle" AND pick__number > 187
What is the sum of carries associated with 80 points and fewer than 16 touchdowns?
CREATE TABLE table_name_98 (carries INTEGER, points VARCHAR, touchdowns VARCHAR)
SELECT SUM(carries) FROM table_name_98 WHERE points = 80 AND touchdowns < 16
Who was the scorer when the opponent was aberdeen?
CREATE TABLE table_name_63 (scorers VARCHAR, opponent VARCHAR)
SELECT scorers FROM table_name_63 WHERE opponent = "aberdeen"
What was the date of appointment for the manager that replaced Simon Davies?
CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_appointment FROM table_18795125_6 WHERE outgoing_manager = "Simon Davies"
Which Score has Opponents in the final of john bromwich frank sedgman?
CREATE TABLE table_name_92 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT score FROM table_name_92 WHERE opponents_in_the_final = "john bromwich frank sedgman"
Who is the golfer that golfs for Northern Ireland?
CREATE TABLE table_name_54 (player VARCHAR, country VARCHAR)
SELECT player FROM table_name_54 WHERE country = "northern ireland"
How many earnings have Wins larger than 3?
CREATE TABLE table_name_70 (earnings___ INTEGER, wins INTEGER)
SELECT SUM(earnings___) AS $__ FROM table_name_70 WHERE wins > 3
How many invoices do we have?
CREATE TABLE Invoices (Id VARCHAR)
SELECT COUNT(*) FROM Invoices
How many seats had a 41.2% share of votes?
CREATE TABLE table_name_96 (seats VARCHAR, share_of_votes VARCHAR)
SELECT seats FROM table_name_96 WHERE share_of_votes = "41.2%"
Average round for rodney harrison p before 145?
CREATE TABLE table_name_66 (round INTEGER, name VARCHAR, pick VARCHAR)
SELECT AVG(round) FROM table_name_66 WHERE name = "rodney harrison p" AND pick < 145
What is natural change with a crude death rate of 8.7 and less than 472 live births?
CREATE TABLE table_name_74 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, live_births VARCHAR)
SELECT natural_change FROM table_name_74 WHERE crude_death_rate__per_1000_ = 8.7 AND live_births < 472
What was the attendance of the game that had a score of l 35–14?
CREATE TABLE table_name_8 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_8 WHERE result = "l 35–14"
What is the average age for each gender?
CREATE TABLE Person (gender VARCHAR, age INTEGER)
SELECT AVG(age), gender FROM Person GROUP BY gender
Which area has a Name of william colenso college?
CREATE TABLE table_name_73 (area VARCHAR, name VARCHAR)
SELECT area FROM table_name_73 WHERE name = "william colenso college"
Which Ipsos 5/25/09 has a TNS-Sofres 5/28/09 of 20%?
CREATE TABLE table_name_26 (ipsos_5_25_09 VARCHAR, tns_sofres_5_28_09 VARCHAR)
SELECT ipsos_5_25_09 FROM table_name_26 WHERE tns_sofres_5_28_09 = "20%"
What is the sum of the attendance on November 24?
CREATE TABLE table_name_58 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_58 WHERE date = "november 24"
Which Mountains classification has a General classification of egoi martínez, and a Stage of 9?
CREATE TABLE table_name_42 (mountains_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT mountains_classification FROM table_name_42 WHERE general_classification = "egoi martínez" AND stage = "9"
What is Record, when November is less than 10, and when Game is less than 13?
CREATE TABLE table_name_19 (record VARCHAR, november VARCHAR, game VARCHAR)
SELECT record FROM table_name_19 WHERE november < 10 AND game < 13
Which member has Cook as the electorate?
CREATE TABLE table_name_16 (member VARCHAR, electorate VARCHAR)
SELECT member FROM table_name_16 WHERE electorate = "cook"
In which year did Misaki Doi lose the Australian Open Grand Slam?
CREATE TABLE table_name_32 (year INTEGER, grand_slam VARCHAR, loser VARCHAR)
SELECT SUM(year) FROM table_name_32 WHERE grand_slam = "australian open" AND loser = "misaki doi"
When was the player born who has 1 caps?
CREATE TABLE table_name_53 (date_of_birth__age_ VARCHAR, caps VARCHAR)
SELECT date_of_birth__age_ FROM table_name_53 WHERE caps = 1
At the longitude of 355.0e, what is the name origin?
CREATE TABLE table_16799784_9 (name VARCHAR, longitude VARCHAR)
SELECT name AS origin FROM table_16799784_9 WHERE longitude = "355.0E"
Which race had a time of 1:24.35?
CREATE TABLE table_name_90 (race VARCHAR, time VARCHAR)
SELECT race FROM table_name_90 WHERE time = "1:24.35"
What is the Japanese title for Fantasy?
CREATE TABLE table_11839306_2 (japanese_title VARCHAR, english_title VARCHAR)
SELECT japanese_title FROM table_11839306_2 WHERE english_title = "Fantasy"
What player has +3 to par and score of 75-72=147?
CREATE TABLE table_name_23 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_23 WHERE to_par = "+3" AND score = 75 - 72 = 147
What were the total number of sales for the song 21 Seconds?
CREATE TABLE table_name_21 (sales VARCHAR, song_title VARCHAR)
SELECT COUNT(sales) FROM table_name_21 WHERE song_title = "21 seconds"
What was the Money for Player Ernie Els?
CREATE TABLE table_name_22 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_22 WHERE player = "ernie els"
Which deputy prime minister left office in 1981?
CREATE TABLE table_name_87 (deputy_prime_minister VARCHAR, left_office VARCHAR)
SELECT deputy_prime_minister FROM table_name_87 WHERE left_office = "1981"
what is the record when the year is 2011?
CREATE TABLE table_name_45 (record VARCHAR, year VARCHAR)
SELECT record FROM table_name_45 WHERE year = 2011
Who was the parent on the order of 6?
CREATE TABLE table_name_96 (parent VARCHAR, order VARCHAR)
SELECT parent FROM table_name_96 WHERE order = 6
What's the sum of the totals for Russia with more than 1 gold and less than 10 bronze?
CREATE TABLE table_name_90 (total INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT SUM(total) FROM table_name_90 WHERE gold > 1 AND nation = "russia" AND bronze < 10
How many points were scored on pole services?
CREATE TABLE table_26124171_1 (points VARCHAR, team VARCHAR)
SELECT points FROM table_26124171_1 WHERE team = "Pole Services"
Who was the winner with the 24-21 result?
CREATE TABLE table_name_60 (winner VARCHAR, result VARCHAR)
SELECT winner FROM table_name_60 WHERE result = "24-21"
What dates was the falken tasmania challenge race that had triple eight race engineering as the team?
CREATE TABLE table_20884163_2 (date VARCHAR, team VARCHAR, race_title VARCHAR)
SELECT date FROM table_20884163_2 WHERE team = "Triple Eight Race Engineering" AND race_title = "Falken Tasmania Challenge"
What is the 1st leg where Team 1 is C.D. Plaza Amador?
CREATE TABLE table_name_48 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_48 WHERE team_1 = "c.d. plaza amador"
How many base pairs are there if the molecular weight is 102?
CREATE TABLE table_140968_1 (size___s_base_pair__ VARCHAR, molecular_weight_kda VARCHAR)
SELECT COUNT(size___s_base_pair__) FROM table_140968_1 WHERE molecular_weight_kda = "102"
What is the Venue, when the Winner is iain pyman?
CREATE TABLE table_name_19 (venue VARCHAR, winner VARCHAR)
SELECT venue FROM table_name_19 WHERE winner = "iain pyman"
Name the regular judge when host is anja rubik
CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR)
SELECT regular_judge FROM table_1597866_3 WHERE host = "Anja Rubik"
How many Picks have a Round larger than 8, and a College of fresno state?
CREATE TABLE table_name_4 (pick__number VARCHAR, round VARCHAR, college VARCHAR)
SELECT COUNT(pick__number) FROM table_name_4 WHERE round > 8 AND college = "fresno state"
What is the minimum number of points given up to the Baltimore Colts
CREATE TABLE table_16028459_2 (opponents INTEGER, opponent VARCHAR)
SELECT MIN(opponents) FROM table_16028459_2 WHERE opponent = "Baltimore Colts"
Which Perth has Auckland yes and Gold Coast yes?
CREATE TABLE table_name_50 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR)
SELECT perth FROM table_name_50 WHERE auckland = "yes" AND gold_coast = "yes"
What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?
CREATE TABLE table_name_18 (round VARCHAR, song VARCHAR)
SELECT round FROM table_name_18 WHERE song = "陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你"
Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%?
CREATE TABLE table_name_40 (driver VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, season VARCHAR)
SELECT driver FROM table_name_40 WHERE points > 252 AND season = "2012" AND percentage_of_possible_points = "55.60%"
what is the preliminary average score when the interview score is 8.600 (6)?
CREATE TABLE table_name_78 (preliminary_average VARCHAR, interview VARCHAR)
SELECT preliminary_average FROM table_name_78 WHERE interview = "8.600 (6)"
Which Laps have a Finish of 15?
CREATE TABLE table_name_30 (laps VARCHAR, finish VARCHAR)
SELECT laps FROM table_name_30 WHERE finish = "15"
Which IHSAA Class has a Location of columbia city?
CREATE TABLE table_name_49 (ihsaa_class VARCHAR, location VARCHAR)
SELECT ihsaa_class FROM table_name_49 WHERE location = "columbia city"
What time is it for the southern home team?
CREATE TABLE table_name_82 (time VARCHAR, home_team VARCHAR)
SELECT time FROM table_name_82 WHERE home_team = "southern"