answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(sample_size) FROM table_name_59 WHERE poll_source = "rasmussen reports" AND margin_of_error > 4.5
What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?
CREATE TABLE table_name_59 (sample_size VARCHAR, poll_source VARCHAR, margin_of_error VARCHAR)
SELECT time_retired FROM table_name_51 WHERE laps = 80 AND grid > 2
What's the Time/Retired of 80 laps with a Grid larger than 2?
CREATE TABLE table_name_51 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT party, COUNT(*) FROM driver GROUP BY party
Show the party and the number of drivers in each party.
CREATE TABLE driver (party VARCHAR)
SELECT MIN(heat) FROM table_name_51 WHERE nationality = "czech republic" AND rank > 41
What is the earliest heat with a finisher from the Czech Republic and a rank over 41?
CREATE TABLE table_name_51 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT result FROM table_name_25 WHERE score = "69-81"
Which Result has a Score of 69-81?
CREATE TABLE table_name_25 (result VARCHAR, score VARCHAR)
SELECT score FROM table_name_31 WHERE date = "23 november 1983" AND away_team = "exeter city"
What is the score on 23 November 1983 with exeter city as the away team?
CREATE TABLE table_name_31 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT opponent_in_the_final FROM table_name_6 WHERE outcome = "runner-up" AND date = "2 march 1998"
Which opponent was a runner-up on 2 march 1998?
CREATE TABLE table_name_6 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE opponents_in_the_final = "jordi arrese àlex corretja"
What is the Score of an Opponent\ in the final of jordi arrese àlex corretja?
CREATE TABLE table_name_25 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT ipsos_5_30_09 FROM table_name_16 WHERE bva_6_1_09 = "3%"
When BVA was 3%, what was the Ipsos?
CREATE TABLE table_name_16 (ipsos_5_30_09 VARCHAR, bva_6_1_09 VARCHAR)
SELECT AVG(laps) FROM table_name_77 WHERE driver = "jackie stewart"
What are the average laps for jackie stewart?
CREATE TABLE table_name_77 (laps INTEGER, driver VARCHAR)
SELECT date FROM table_11622255_1 WHERE location = "Illinois"
what's the date where location is illinois
CREATE TABLE table_11622255_1 (date VARCHAR, location VARCHAR)
SELECT surplus_deficit_ FROM table_name_88 WHERE expenditure > 45.8 AND year < 2011 AND _percentage_gdp = "(0.9%)"
Which Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller than 2011, and a % GDP of (0.9%)?
CREATE TABLE table_name_88 (surplus_deficit_ VARCHAR, _percentage_gdp VARCHAR, expenditure VARCHAR, year VARCHAR)
SELECT role FROM table_name_56 WHERE festival_organization = "sydney film festival"
What role was nominated at the Sydney Film Festival?
CREATE TABLE table_name_56 (role VARCHAR, festival_organization VARCHAR)
SELECT MAX(erp_w) FROM table_name_9 WHERE frequency_mhz > 88.3 AND city_of_license = "lewis, kansas"
Which ERP W is the highest one that has a Frequency MHz larger than 88.3, and a City of license of lewis, kansas?
CREATE TABLE table_name_9 (erp_w INTEGER, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT COUNT(runner_up) FROM table_11214772_2 WHERE semi_finalist__number1 = "Western Carolina" AND year = 2005
How many teams were listed as runner up in 2005 and there the first semi finalist was Western Carolina?
CREATE TABLE table_11214772_2 (runner_up VARCHAR, semi_finalist__number1 VARCHAR, year VARCHAR)
SELECT season FROM table_23224961_1 WHERE oberpfalz = "SpVgg Vohenstrauß"
When spvgg vohenstrauß is the oberpfalz what is the season?
CREATE TABLE table_23224961_1 (season VARCHAR, oberpfalz VARCHAR)
SELECT score FROM table_name_84 WHERE home_team = "goole town"
What was the score when the home team was goole town?
CREATE TABLE table_name_84 (score VARCHAR, home_team VARCHAR)
SELECT lost FROM table_1676073_13 WHERE points_for = "539"
How many losses does the club with 539 points for have?
CREATE TABLE table_1676073_13 (lost VARCHAR, points_for VARCHAR)
SELECT margin_of_victory FROM table_name_84 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271)
What was the margin of victory when the winning score was −9 (72-68-64-67=271)?
CREATE TABLE table_name_84 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT LENGTH, Height FROM roller_coaster
What are the lengths and heights of roller coasters?
CREATE TABLE roller_coaster (LENGTH VARCHAR, Height VARCHAR)
SELECT rating FROM table_name_23 WHERE event = "johnson vs. dodson"
What is Rating, when Event is Johnson Vs. Dodson?
CREATE TABLE table_name_23 (rating VARCHAR, event VARCHAR)
SELECT athlete FROM table_name_97 WHERE rank > 1 AND lane > 7 AND nationality = "china"
Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?
CREATE TABLE table_name_97 (athlete VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)
SELECT MAX(attendance) FROM table_name_93 WHERE score = "0 – 4"
What was the the total top attendance with a score of 0 – 4?
CREATE TABLE table_name_93 (attendance INTEGER, score VARCHAR)
SELECT COUNT(playoffs) FROM table_1046454_1 WHERE regular_season = "6th, Southwest"
what is the total number of playoffs where regular season is 6th, southwest
CREATE TABLE table_1046454_1 (playoffs VARCHAR, regular_season 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
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 COUNT(division) FROM table_name_83 WHERE apps > 5 AND country = "greece"
Name the total number of division for apps more than 5 for greece
CREATE TABLE table_name_83 (division VARCHAR, apps VARCHAR, country VARCHAR)
SELECT COUNT(scoring_average) FROM table_13026799_3 WHERE money_list_rank = "174"
Name the total number of scoring average for money list rank of 174
CREATE TABLE table_13026799_3 (scoring_average VARCHAR, money_list_rank VARCHAR)
SELECT score FROM table_name_94 WHERE date = "october 13"
What was the score on October 13?
CREATE TABLE table_name_94 (score VARCHAR, date VARCHAR)
SELECT original_air_date FROM table_19897294_16 WHERE family_families = "The Potter Family"
Name the original air date for the potter family
CREATE TABLE table_19897294_16 (original_air_date VARCHAR, family_families VARCHAR)
SELECT high_assists FROM table_27723526_10 WHERE date = "January 27"
Who had the high assist total on january 27?
CREATE TABLE table_27723526_10 (high_assists VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE date = "22 february 1993"
what is the score on 22 february 1993?
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
SELECT SUM(quantity) FROM table_name_1 WHERE class_from_1928 = "ci-30"
What's the sum of Quantity for the Class of 1928 of CI-30?
CREATE TABLE table_name_1 (quantity INTEGER, class_from_1928 VARCHAR)
SELECT solidv4 FROM table_127511_1 WHERE sequencer = "Data output per run"
What is solidv4 when sequencer is data output per run?
CREATE TABLE table_127511_1 (solidv4 VARCHAR, sequencer VARCHAR)
SELECT circuit FROM table_name_77 WHERE date = "july 24"
Which circuit is on July 24?
CREATE TABLE table_name_77 (circuit VARCHAR, date VARCHAR)
SELECT music FROM table_name_99 WHERE score = "13 (5, 4, 4)"
What was the music for the team who earned a score of 13 (5, 4, 4)?
CREATE TABLE table_name_99 (music VARCHAR, score VARCHAR)
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT MAX(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to LIMIT 1
Find the last name of the first ever contact person of the organization with the highest UK Vat number.
CREATE TABLE organizations (uk_vat_number INTEGER); CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organizations (organization_id VARCHAR, uk_vat_number INTEGER); CREATE TABLE organization_contact_individuals (organization_id VARCHAR, individual_id VARCHAR, date_contact_to VARCHAR)
SELECT AVG(gold) FROM table_name_90 WHERE bronze < 2 AND nation = "turkey" AND total > 1
What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?
CREATE TABLE table_name_90 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT original_performer FROM table_29547777_1 WHERE episode = "Casting"
Who is the original performer when the episode is casting?
CREATE TABLE table_29547777_1 (original_performer VARCHAR, episode VARCHAR)
SELECT date FROM table_15346009_1 WHERE score = "200 (-16)"
What day was the score 200 (-16)?
CREATE TABLE table_15346009_1 (date VARCHAR, score VARCHAR)
SELECT replica FROM table_name_82 WHERE position = "5th"
What replica has the 5th position?
CREATE TABLE table_name_82 (replica VARCHAR, position VARCHAR)
SELECT date FROM table_name_82 WHERE away_team = "south melbourne"
What day did South Melbourne play as the away team?
CREATE TABLE table_name_82 (date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_80 WHERE date = "june 22"
Which Score has a Date of june 22?
CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM College WHERE enr > 15000
How many colleges has more than 15000 students?
CREATE TABLE College (enr INTEGER)
SELECT COUNT(*) FROM Student WHERE city_code = "HKG" OR city_code = "CHI"
How many students live in HKG or CHI?
CREATE TABLE Student (city_code VARCHAR)
SELECT SUM(wins) FROM table_name_82 WHERE matches > 5
How many wins had Matches greater than 5?
CREATE TABLE table_name_82 (wins INTEGER, matches INTEGER)
SELECT name FROM table_name_77 WHERE kanji = "朧"
Which name has a Kanji of 朧?
CREATE TABLE table_name_77 (name VARCHAR, kanji VARCHAR)
SELECT catalog FROM table_name_61 WHERE label = "frontiers records"
What was the catalog when the label was frontiers records?
CREATE TABLE table_name_61 (catalog VARCHAR, label VARCHAR)
SELECT COUNT(builder) FROM table_1748444_1 WHERE number = "96"
Name the number of builders for number 96
CREATE TABLE table_1748444_1 (builder VARCHAR, number VARCHAR)
SELECT MAX(against) FROM table_name_30 WHERE date = "21 november 1978"
Name the highest Against on 21 november 1978?
CREATE TABLE table_name_30 (against INTEGER, date VARCHAR)
SELECT COUNT(losses) FROM table_name_38 WHERE byes > 2
How many losses have byes greater than 2?
CREATE TABLE table_name_38 (losses VARCHAR, byes INTEGER)
SELECT team_s_ FROM table_1507423_4 WHERE year = 2007
What teams won in 2007?
CREATE TABLE table_1507423_4 (team_s_ VARCHAR, year VARCHAR)
SELECT COUNT(gold) FROM table_name_40 WHERE silver > 0 AND total > 1 AND bronze > 3
How many golds for nations with over 0 silvers, over 1 total, and over 3 bronze?
CREATE TABLE table_name_40 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT round FROM table_name_91 WHERE date = "11/11/1992"
What round was on 11/11/1992?
CREATE TABLE table_name_91 (round VARCHAR, date VARCHAR)
SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 3527
What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?
CREATE TABLE table_25983027_1 (rainfall_by_volume__km_3__year_ VARCHAR, rainfall_by_depth__mm_year_ VARCHAR)
SELECT position FROM table_2387790_2 WHERE year = 1987
What position did he finish in 1987?
CREATE TABLE table_2387790_2 (position VARCHAR, year VARCHAR)
SELECT visitor FROM table_name_74 WHERE home = "chicago"
What is the visitor team of the game with Chicago as the home team?
CREATE TABLE table_name_74 (visitor VARCHAR, home VARCHAR)
SELECT team FROM table_name_44 WHERE points > 572 AND games > 29
What team scored more than 572 points and had more than 29 games?
CREATE TABLE table_name_44 (team VARCHAR, points VARCHAR, games VARCHAR)
SELECT SUM(laps) FROM table_name_56 WHERE time = "+7.277" AND grid > 6
What is the total number of laps for the time of +7.277 and the grid number of more than 6?
CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT MAX(yards) FROM table_name_12 WHERE average = 9.5
What is the highest amount of yards when the average is 9.5?
CREATE TABLE table_name_12 (yards INTEGER, average VARCHAR)
SELECT lost_to FROM table_name_74 WHERE film = "chicago"
Who was the loss to for the film Chicago?
CREATE TABLE table_name_74 (lost_to VARCHAR, film VARCHAR)
SELECT time_retired FROM table_name_80 WHERE laps = 22 AND grid = 29
What is the time/retired with 22 laps and a grid of 29?
CREATE TABLE table_name_80 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(rank) FROM table_150343_3 WHERE country_territory = "United States"
What is the United States rank?
CREATE TABLE table_150343_3 (rank VARCHAR, country_territory VARCHAR)
SELECT school FROM table_14286908_1 WHERE year_of_last_win = "2007-08"
What the name of the school where the last win in 2007-08?
CREATE TABLE table_14286908_1 (school VARCHAR, year_of_last_win VARCHAR)
SELECT MIN(2012) FROM table_name_8 WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11
what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT COUNT(wd_no) FROM table_20236726_2 WHERE lms_no = 7638
Name the total number of wd number for lms number being 7638
CREATE TABLE table_20236726_2 (wd_no VARCHAR, lms_no VARCHAR)
SELECT tyre FROM table_name_40 WHERE engine_† = "peugeot a20"
What is the tyre for the peugeot a20 engine?
CREATE TABLE table_name_40 (tyre VARCHAR, engine_† VARCHAR)
SELECT opponents_in_the_final FROM table_name_27 WHERE outcome = "runner-up" AND surface = "grass"
Tell me the opponents for runner-up and surface of grass
CREATE TABLE table_name_27 (opponents_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT open_cup FROM table_name_21 WHERE reg_season = "2nd, northeast"
What open cup did they play in when they finished 2nd, northeast in the reg. season?
CREATE TABLE table_name_21 (open_cup VARCHAR, reg_season VARCHAR)
SELECT yogi_bear FROM table_19860361_3 WHERE air_date = "1959.12.21"
What is the Yogi Bear that aired on 1959.12.21?
CREATE TABLE table_19860361_3 (yogi_bear VARCHAR, air_date VARCHAR)
SELECT second_quarter FROM table_name_69 WHERE rank = 2
With a rank of 2 what is the second quarter?
CREATE TABLE table_name_69 (second_quarter VARCHAR, rank VARCHAR)
SELECT partner FROM table_name_6 WHERE championship = "australian open, melbourne" AND score = "2–6, 7–5, 6–2, 4–6, 3–6"
Who was the partner at the Australian Open, Melbourne when the score was 2–6, 7–5, 6–2, 4–6, 3–6?
CREATE TABLE table_name_6 (partner VARCHAR, championship VARCHAR, score VARCHAR)
SELECT SUM(year) FROM table_name_40 WHERE director = "erik clausen" AND english_title = "the dark side of the moon"
What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?
CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR)
SELECT total FROM table_name_24 WHERE country = "spain"
What was the total of the player from Spain?
CREATE TABLE table_name_24 (total VARCHAR, country VARCHAR)
SELECT AVG(february) FROM table_name_62 WHERE record = "29–24–9"
How many february games had a record of 29–24–9?
CREATE TABLE table_name_62 (february INTEGER, record VARCHAR)
SELECT MAX(population), _august_15, _2002 FROM table_12496904_1
What is the highest population for the
CREATE TABLE table_12496904_1 (_august_15 VARCHAR, _2002 VARCHAR, population INTEGER)
SELECT venue FROM table_name_13 WHERE home_team = "melbourne"
Where does Melbourne play home games?
CREATE TABLE table_name_13 (venue VARCHAR, home_team VARCHAR)
SELECT location_attendance FROM table_17058116_7 WHERE record = "20–23"
Where was the game with record 20–23 and how many people attended it
CREATE TABLE table_17058116_7 (location_attendance VARCHAR, record VARCHAR)
SELECT home FROM table_name_90 WHERE score = "0:1"
Who was the home team when the score was 0:1?
CREATE TABLE table_name_90 (home VARCHAR, score VARCHAR)
SELECT date FROM table_name_68 WHERE record = "4–2–0"
Which Date has a Record of 4–2–0?
CREATE TABLE table_name_68 (date VARCHAR, record VARCHAR)
SELECT boat_builder FROM table_name_28 WHERE number < 65 AND name = "valmai"
What boat builder built the valmai with a number less than 65?
CREATE TABLE table_name_28 (boat_builder VARCHAR, number VARCHAR, name VARCHAR)
SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0
Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?
CREATE TABLE table_22355_20 (athlete VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school"
What years does Kakahi school, with a decile of 3, have?
CREATE TABLE table_name_9 (years VARCHAR, decile VARCHAR, name VARCHAR)
SELECT team FROM table_19905183_1 WHERE province = "Eastern"
What team is from the Eastern province?
CREATE TABLE table_19905183_1 (team VARCHAR, province VARCHAR)
SELECT onitoolsfiltering FROM table_name_62 WHERE fhfreepressreport = "54" AND onisocialfiltering = "ne"
With a FHFreepressreport of 54, and ne as ONIsocialfiltering, what is the ONItoolsfiltering?
CREATE TABLE table_name_62 (onitoolsfiltering VARCHAR, fhfreepressreport VARCHAR, onisocialfiltering VARCHAR)
SELECT COUNT(wins) FROM table_name_45 WHERE races < 56 AND titles > 0
What is the total number of wins for riders with fewer than 56 races and more than 0 titles?
CREATE TABLE table_name_45 (wins VARCHAR, races VARCHAR, titles VARCHAR)
SELECT inchicore_class FROM table_name_4 WHERE gsr_class = "235"
What Inchicore Class has a GSR Class of 235?
CREATE TABLE table_name_4 (inchicore_class VARCHAR, gsr_class VARCHAR)
SELECT steals FROM table_24908692_5 WHERE player = "Tamika Williams"
How many steals did Tamika Williams have?
CREATE TABLE table_24908692_5 (steals VARCHAR, player VARCHAR)
SELECT opponent_in_the_final FROM table_name_40 WHERE date = 1976
What is Opponent in The Final, when Date is "1976"?
CREATE TABLE table_name_40 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_25 WHERE third_place = "magnus gustafsson"
I want to know the tournament that has a third place of magnus gustafsson
CREATE TABLE table_name_25 (tournament VARCHAR, third_place VARCHAR)
SELECT series_11 FROM table_name_51 WHERE series_1 = "peter jones"
Who in series 11 corresponds to Peter Jones in series 1?
CREATE TABLE table_name_51 (series_11 VARCHAR, series_1 VARCHAR)
SELECT time FROM table_26842217_6 WHERE visiting_team = "#7 Oregon"
How many times was #7 Oregon a visiting team?
CREATE TABLE table_26842217_6 (time VARCHAR, visiting_team VARCHAR)
SELECT share FROM table_name_82 WHERE audience = "3.944.000"
What was the share when the audience was 3.944.000?
CREATE TABLE table_name_82 (share VARCHAR, audience VARCHAR)
SELECT pole FROM table_name_75 WHERE class = "moto2"
How many poles had a moto2 class?
CREATE TABLE table_name_75 (pole VARCHAR, class VARCHAR)
SELECT title__original_ FROM table_1481865_1 WHERE number_of_season = 3
What is the original title of season number 3?
CREATE TABLE table_1481865_1 (title__original_ VARCHAR, number_of_season VARCHAR)
SELECT AVG(year) FROM table_name_18 WHERE competition = "world junior championships" AND position = "20th (qf)"
What year was the Competition of World Junior Championships with a 20th (qf) position?
CREATE TABLE table_name_18 (year INTEGER, competition VARCHAR, position VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2679061_7 WHERE pick__number = 130
How many teams got pick number 130?
CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT MIN(sydney) FROM table_name_16 WHERE weekly_rank < 8 AND brisbane > 252 OFFSET 000
What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?
CREATE TABLE table_name_16 (sydney INTEGER, weekly_rank VARCHAR, brisbane VARCHAR)
SELECT country FROM table_name_95 WHERE score = 73 - 74 - 69 = 216
Which country has a score of 73-74-69=216?
CREATE TABLE table_name_95 (country VARCHAR, score VARCHAR)
SELECT score FROM table_name_41 WHERE game < 69 AND record = "4–56"
What is the Score of the game earlier than 69 with a record of 4–56?
CREATE TABLE table_name_41 (score VARCHAR, game VARCHAR, record VARCHAR)
SELECT smoke_point FROM table_name_25 WHERE monounsaturated_fat = "30g"
Name the smoke point for monosaturated fat of 30g
CREATE TABLE table_name_25 (smoke_point VARCHAR, monounsaturated_fat VARCHAR)