question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?
CREATE TABLE table_name_74 (year INTEGER, rank VARCHAR, class VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_74 WHERE class = "125cc" AND points > 102 AND rank = "2nd"
What is the name of the player who played in 2009 only?
CREATE TABLE table_12321870_32 (player_name VARCHAR, period VARCHAR)
SELECT player_name FROM table_12321870_32 WHERE period = "2009"
What was the score of the game against the Royals when the record was 24–52?
CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_75 WHERE opponent = "royals" AND record = "24–52"
Who were the Opponents in the match on a Hard Surface with Catherine Suire as Partner and Outcome of runner-up?
CREATE TABLE table_name_6 (opponents VARCHAR, partner VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT opponents FROM table_name_6 WHERE outcome = "runner-up" AND surface = "hard" AND partner = "catherine suire"
What percentage of people said they would consider Rudy Giuliani as a candidate according to the Newsweek poll that showed 32% opposed him?
CREATE TABLE table_name_21 (consider VARCHAR, candidate VARCHAR, poll_source VARCHAR, oppose VARCHAR)
SELECT consider FROM table_name_21 WHERE poll_source = "newsweek poll" AND oppose = "32%" AND candidate = "rudy giuliani"
What home team has 8 ties?
CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_40 WHERE tie_no = "8"
When was the score 92-134?
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_38 WHERE score = "92-134"
WHAT IS THE 2012 WITH 2005 OF 1R?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT 2012 FROM table_name_35 WHERE 2005 = "1r"
what's the interview with swimsuit being 9.140
CREATE TABLE table_11970261_2 (interview VARCHAR, swimsuit VARCHAR)
SELECT interview FROM table_11970261_2 WHERE swimsuit = "9.140"
If the RR Rate is less than 0.75 with a result of RR:08,09, what is the average appeared?
CREATE TABLE table_name_56 (appeared INTEGER, rr_w_rate VARCHAR, result VARCHAR)
SELECT AVG(appeared) FROM table_name_56 WHERE rr_w_rate < 0.75 AND result = "rr:08,09"
If the floor number is 14.200, what is the number for the parallel bars?
CREATE TABLE table_18662026_10 (parallel_bars VARCHAR, floor VARCHAR)
SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.200"
What is the average earnings made by Greg Norman?
CREATE TABLE table_name_49 (earnings___ INTEGER, player VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_49 WHERE player = "greg norman"
Which Run has an Opponent of Canterbury?
CREATE TABLE table_name_52 (runs VARCHAR, opponent VARCHAR)
SELECT runs FROM table_name_52 WHERE opponent = "canterbury"
What is the 2007 with ch callaway's copyright in 2003?
CREATE TABLE table_name_92 (Id VARCHAR)
SELECT 2007 FROM table_name_92 WHERE 2003 = "ch callaway's copyright"
How many laps were in grid 4?
CREATE TABLE table_name_97 (laps VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_97 WHERE grid = 4
Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan
CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR)
SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan"
Who is the opponent in game 5?
CREATE TABLE table_20745706_1 (opponent VARCHAR, _number VARCHAR)
SELECT opponent FROM table_20745706_1 WHERE _number = "5"
what's the character name with voice actor (englbeingh 1998 / pioneer) being paul dobson
CREATE TABLE table_1410384_1 (character_name VARCHAR, voice_actor__english_1998___pioneer_ VARCHAR)
SELECT character_name FROM table_1410384_1 WHERE voice_actor__english_1998___pioneer_ = "Paul Dobson"
What is the Name of the Player from Albuquerque, New Mexico?
CREATE TABLE table_name_69 (name VARCHAR, hometown VARCHAR)
SELECT name FROM table_name_69 WHERE hometown = "albuquerque, new mexico"
Find the name of companies whose revenue is greater than the average revenue of all companies.
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)
What is Honda's highest grid with a time of +1:38.407?
CREATE TABLE table_name_61 (grid INTEGER, manufacturer VARCHAR, time VARCHAR)
SELECT MAX(grid) FROM table_name_61 WHERE manufacturer = "honda" AND time = "+1:38.407"
Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.
CREATE TABLE wine (Name VARCHAR, Price INTEGER, Winery VARCHAR); CREATE TABLE WINE (Name VARCHAR, Price INTEGER, Winery VARCHAR)
SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT MIN(Price) FROM wine WHERE Winery = "John Anthony")
What was the record on April 1?
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_57 WHERE date = "april 1"
Who was third place when Fran Dieli was fifth place?
CREATE TABLE table_name_78 (third_place VARCHAR, fifth_place VARCHAR)
SELECT third_place FROM table_name_78 WHERE fifth_place = "fran dieli"
What is the skip when the country is finland?
CREATE TABLE table_name_1 (skip VARCHAR, country VARCHAR)
SELECT skip FROM table_name_1 WHERE country = "finland"
Who is the partner of the tournament on 6 July 1987?
CREATE TABLE table_name_12 (partner VARCHAR, date VARCHAR)
SELECT partner FROM table_name_12 WHERE date = "6 july 1987"
What was the tie number with the home team of Swindon Town?
CREATE TABLE table_name_13 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_13 WHERE home_team = "swindon town"
Which category had an orange finish?
CREATE TABLE table_name_4 (category VARCHAR, finish VARCHAR)
SELECT category FROM table_name_4 WHERE finish = "orange"
What is the total amount o teams where winnings is $1,752,299?
CREATE TABLE table_1458412_1 (team_s_ VARCHAR, winnings VARCHAR)
SELECT COUNT(team_s_) FROM table_1458412_1 WHERE winnings = "$1,752,299"
With a record of 48-51 for the team, the lowest 2005 attendance was listed as how many?
CREATE TABLE table_name_35 (attendance INTEGER, record VARCHAR)
SELECT MIN(attendance) FROM table_name_35 WHERE record = "48-51"
Which Goberman has an Obrist of 2%, and a Merkley of 34%?
CREATE TABLE table_name_9 (goberman VARCHAR, obrist VARCHAR, merkley VARCHAR)
SELECT goberman FROM table_name_9 WHERE obrist = "2%" AND merkley = "34%"
Show names for artists without any exhibition.
CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (name VARCHAR, artist_id VARCHAR)
SELECT name FROM artist WHERE NOT artist_id IN (SELECT artist_id FROM exhibition)
What home score has an Away team of fitzroy?
CREATE TABLE table_name_82 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_82 WHERE away_team = "fitzroy"
What round was Ryan Thang drafted in?
CREATE TABLE table_name_7 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_7 WHERE player = "ryan thang"
What season has the champion of Nicolas Kiesa?
CREATE TABLE table_name_84 (season VARCHAR, champion VARCHAR)
SELECT season FROM table_name_84 WHERE champion = "nicolas kiesa"
What was the date of the game when the Canadiens had a record of 31–19–9?
CREATE TABLE table_name_40 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_40 WHERE record = "31–19–9"
Which 2007 has a 2010 of A?
CREATE TABLE table_name_92 (Id VARCHAR)
SELECT 2007 FROM table_name_92 WHERE 2010 = "a"
What country'c capital is santiago?
CREATE TABLE table_14098_1 (country_or_territory_with_flag VARCHAR, capital VARCHAR)
SELECT country_or_territory_with_flag FROM table_14098_1 WHERE capital = "Santiago"
What is the highest pick of the houston oilers NFL club, which has a round greater than 10?
CREATE TABLE table_name_87 (pick INTEGER, nfl_club VARCHAR, round VARCHAR)
SELECT MAX(pick) FROM table_name_87 WHERE nfl_club = "houston oilers" AND round > 10
Can you tell me the Team that has the Laps of 379?
CREATE TABLE table_name_23 (team VARCHAR, laps VARCHAR)
SELECT team FROM table_name_23 WHERE laps = 379
What date has an against of pohang steelers?
CREATE TABLE table_name_2 (date VARCHAR, against VARCHAR)
SELECT date FROM table_name_2 WHERE against = "pohang steelers"
Which round has a car with a chassis of sf01?
CREATE TABLE table_name_20 (rounds VARCHAR, chassis VARCHAR)
SELECT rounds FROM table_name_20 WHERE chassis = "sf01"
What was the vacator for georgia 2nd?
CREATE TABLE table_2417340_4 (vacator VARCHAR, district VARCHAR)
SELECT vacator FROM table_2417340_4 WHERE district = "Georgia 2nd"
Which Team 2 has a Team 1 of vardar?
CREATE TABLE table_name_76 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_76 WHERE team_1 = "vardar"
What is the Eurozone result for Population M (LUZ) of 3.08?
CREATE TABLE table_name_24 (eurozone VARCHAR, population_m__luz_ VARCHAR)
SELECT eurozone FROM table_name_24 WHERE population_m__luz_ = 3.08
What was the highest weight in kg for F Position, Jersey #12?
CREATE TABLE table_name_41 (weight__kg_ INTEGER, position VARCHAR, jersey__number VARCHAR)
SELECT MAX(weight__kg_) FROM table_name_41 WHERE position = "f" AND jersey__number = 12
Name the tries against for drawn
CREATE TABLE table_12792876_4 (tries_against VARCHAR)
SELECT COUNT(tries_against) FROM table_12792876_4 WHERE "drawn" = "drawn"
I want the displacement for version of db
CREATE TABLE table_name_28 (displacement VARCHAR, version VARCHAR)
SELECT displacement FROM table_name_28 WHERE version = "db"
What is the Catalog Number is for the Japan region?
CREATE TABLE table_name_59 (catalog VARCHAR, region VARCHAR)
SELECT catalog FROM table_name_59 WHERE region = "japan"
Which Display size (in) has a Model of vaio pcg-u3?
CREATE TABLE table_name_29 (display_size__in_ VARCHAR, model VARCHAR)
SELECT COUNT(display_size__in_) FROM table_name_29 WHERE model = "vaio pcg-u3"
Who is Partner Frederik Nielsen's Opponents in the final?
CREATE TABLE table_name_38 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT opponents_in_the_final FROM table_name_38 WHERE partner = "frederik nielsen"
What is the winning span in the country of England with the name of paul casey?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, country VARCHAR, name VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE country = "England" AND name = "Paul Casey"
What is the abbr for zug?
CREATE TABLE table_name_75 (abbr VARCHAR, common_english VARCHAR)
SELECT abbr FROM table_name_75 WHERE common_english = "zug"
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?
CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552
What shows for 1997 when 1987 is 2r?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 1997 FROM table_name_46 WHERE 1987 = "2r"
Who sponsored the bill introduced on June 9, 2011?
CREATE TABLE table_name_77 (sponsor_s_ VARCHAR, date_introduced VARCHAR)
SELECT sponsor_s_ FROM table_name_77 WHERE date_introduced = "june 9, 2011"
What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27?
CREATE TABLE table_name_19 (swimsuit VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_19 WHERE average < 8.823 AND evening_gown < 8.69 AND interview = 8.27
Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60?
CREATE TABLE table_name_16 (champs INTEGER, draw VARCHAR, games VARCHAR)
SELECT AVG(champs) FROM table_name_16 WHERE draw > 2 AND games < 60
What's the English name of the county with a postcode 246400?
CREATE TABLE table_1976898_1 (english_name VARCHAR, post_code VARCHAR)
SELECT english_name FROM table_1976898_1 WHERE post_code = 246400
Who won third place with the runner up being dynamo moscow?
CREATE TABLE table_1167698_1 (third_place VARCHAR, runner_up VARCHAR)
SELECT third_place FROM table_1167698_1 WHERE runner_up = "Dynamo Moscow"
What is the Total Apps when League Cup Apps is 0 (1), and position is df?
CREATE TABLE table_name_55 (total_apps VARCHAR, league_cup_apps VARCHAR, position VARCHAR)
SELECT total_apps FROM table_name_55 WHERE league_cup_apps = "0 (1)" AND position = "df"
What is the score for Sandy Lyle?
CREATE TABLE table_name_93 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_93 WHERE player = "sandy lyle"
What is the Date, when Game is 17?
CREATE TABLE table_name_69 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_69 WHERE game = 17
What is the Time of the swimmer from Chinese Taipei in Heat 3?
CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT time FROM table_name_88 WHERE heat = 3 AND lane > 3 AND nationality = "chinese taipei"
What name is located in China?
CREATE TABLE table_name_8 (name VARCHAR, location VARCHAR)
SELECT name FROM table_name_8 WHERE location = "china"
What is the seat number when Series 3 shows Dana Bérová?
CREATE TABLE table_name_81 (seat INTEGER, series_3 VARCHAR)
SELECT AVG(seat) FROM table_name_81 WHERE series_3 = "dana bérová"
What is the earliest number in before?
CREATE TABLE table_24108789_4 (before INTEGER)
SELECT MIN(before) FROM table_24108789_4
Who plays halfback?
CREATE TABLE table_name_54 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_54 WHERE position = "halfback"
Which chemical class uses the example Chloroethane (ethyl chloride)?
CREATE TABLE table_name_90 (chemical_class VARCHAR, example VARCHAR)
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)"
What was the first season for Syrianska FC
CREATE TABLE table_1560673_1 (first_season VARCHAR, club VARCHAR)
SELECT first_season FROM table_1560673_1 WHERE club = "Syrianska FC"
How many places have an area of 409.41 (km2)?
CREATE TABLE table_261222_1 (population__2010_ VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(population__2010_) FROM table_261222_1 WHERE area__km_2__ = "409.41"
Which Streak has a Record of 21–22?
CREATE TABLE table_name_9 (streak VARCHAR, record VARCHAR)
SELECT streak FROM table_name_9 WHERE record = "21–22"
Where was the game and what was the attendance on April 3?
CREATE TABLE table_27700530_14 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_27700530_14 WHERE date = "April 3"
What kind of Prohibition ticket that has a Office of lieutenant governor?
CREATE TABLE table_name_91 (prohibition_ticket VARCHAR, office VARCHAR)
SELECT prohibition_ticket FROM table_name_91 WHERE office = "lieutenant governor"
Which Opponent had a week of 14?
CREATE TABLE table_name_60 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_60 WHERE week = 14
Who was the away team with a tie number of 4?
CREATE TABLE table_name_68 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_68 WHERE tie_no = "4"
Who had the high point total against cleveland?
CREATE TABLE table_17311783_9 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_17311783_9 WHERE team = "Cleveland"
How many League Goals have League Cup Goals smaller than 0?
CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals INTEGER)
SELECT SUM(league_goals) FROM table_name_43 WHERE league_cup_goals < 0
How many people are high assists when location attendance is Seattle Center Coliseum 14,180?
CREATE TABLE table_27902171_5 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT COUNT(high_assists) FROM table_27902171_5 WHERE location_attendance = "Seattle Center Coliseum 14,180"
How many february games had a record of 29–24–9?
CREATE TABLE table_name_62 (february INTEGER, record VARCHAR)
SELECT AVG(february) FROM table_name_62 WHERE record = "29–24–9"
Name the manner of departyre for 26 january date of appointment
CREATE TABLE table_name_4 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT manner_of_departure FROM table_name_4 WHERE date_of_appointment = "26 january"
What is the smallest lane number of Xue Ruipeng?
CREATE TABLE table_name_53 (lane INTEGER, name VARCHAR)
SELECT MIN(lane) FROM table_name_53 WHERE name = "xue ruipeng"
who is the athlete with the time 6:02.46?
CREATE TABLE table_name_83 (athlete VARCHAR, time VARCHAR)
SELECT athlete FROM table_name_83 WHERE time = "6:02.46"
What is the tournament when 2010 is q2, and 2009 is 1r?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT tournament FROM table_name_93 WHERE 2010 = "q2" AND 2009 = "1r"
What is the Semifinalists that has a Tournament of Cincinnati?
CREATE TABLE table_name_29 (semifinalists VARCHAR, tournament VARCHAR)
SELECT semifinalists FROM table_name_29 WHERE tournament = "cincinnati"
What is the total number of pg won of the team with 64 goals conceded and more than 33 goals scored?
CREATE TABLE table_name_67 (won__pg_ VARCHAR, goals_conceded__gc_ VARCHAR, goals_scored__gf_ VARCHAR)
SELECT COUNT(won__pg_) FROM table_name_67 WHERE goals_conceded__gc_ = 64 AND goals_scored__gf_ > 33
Who was the winner for ASTC round 8?
CREATE TABLE table_name_63 (winner VARCHAR, series VARCHAR)
SELECT winner FROM table_name_63 WHERE series = "astc round 8"
Who is the owner of the object launched after 1997 and a Hanzi of 厦门卫视?
CREATE TABLE table_name_30 (owner VARCHAR, launch VARCHAR, hanzi VARCHAR)
SELECT owner FROM table_name_30 WHERE launch > 1997 AND hanzi = "厦门卫视"
what is the competition that had a final score of 6:5?
CREATE TABLE table_name_79 (competition VARCHAR, final_score VARCHAR)
SELECT competition FROM table_name_79 WHERE final_score = "6:5"
What is the one mora for the three-mora word /kaze/ [kázé]?
CREATE TABLE table_name_73 (one_mora VARCHAR, three_mora_word VARCHAR)
SELECT one_mora FROM table_name_73 WHERE three_mora_word = "/kaze/ [kázé]"
What were the investment earnings in the year that State and Federal taxes were $13,999,169?
CREATE TABLE table_name_26 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR)
SELECT investment_earnings FROM table_name_26 WHERE state_ & _federal = "13,999,169"
What is the total medal count when there are more than 1 gold and more than 2 silver medals won and the rank is less than 1?
CREATE TABLE table_name_15 (total VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT total FROM table_name_15 WHERE gold > 1 AND silver > 2 AND rank < 2
What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?
CREATE TABLE table_name_36 (plant_hardiness_zone VARCHAR, region VARCHAR, annual_precipitation VARCHAR)
SELECT plant_hardiness_zone FROM table_name_36 WHERE region = "northern" AND annual_precipitation = "443mm (17.4in)"
What is the party affiliation for senator mark Wagoner?
CREATE TABLE table_26129220_2 (party VARCHAR, senator VARCHAR)
SELECT party FROM table_26129220_2 WHERE senator = "Mark Wagoner"
Which Draw had 8 Televote Points?
CREATE TABLE table_name_43 (draw VARCHAR, televote_points VARCHAR)
SELECT COUNT(draw) FROM table_name_43 WHERE televote_points = "8"
What was the composition of the state assembly in 2008?
CREATE TABLE table_18052353_4 (state_assembly VARCHAR, year VARCHAR)
SELECT state_assembly FROM table_18052353_4 WHERE year = "2008"
Which Opponent in the final has a Score in the final of 6–2, 6–3, 2–6, 7–5?
CREATE TABLE table_name_62 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT opponent_in_the_final FROM table_name_62 WHERE score_in_the_final = "6–2, 6–3, 2–6, 7–5"
What opponent used the Ko method, and a 6-0 record?
CREATE TABLE table_name_12 (opponent VARCHAR, method VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_12 WHERE method = "ko" AND record = "6-0"
What country had the publication, Drowned in Sound?
CREATE TABLE table_name_22 (country VARCHAR, publication VARCHAR)
SELECT country FROM table_name_22 WHERE publication = "drowned in sound"
What location shows round was 1, and against Ricky Shivers?
CREATE TABLE table_name_43 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_43 WHERE round = 1 AND opponent = "ricky shivers"