answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT COUNT(year) FROM table_name_28 WHERE competition = "olympic games" AND event = "400 m" | CREATE TABLE table_name_28 (year VARCHAR, competition VARCHAR, event VARCHAR) | How many years was the 400 m event in the olympic games? |
SELECT attendance FROM table_name_28 WHERE result = "l 26-21" | CREATE TABLE table_name_28 (attendance VARCHAR, result VARCHAR) | How many were in attendance of the game with l 26-21 result? |
SELECT opponent FROM table_name_64 WHERE attendance = "37,845" | CREATE TABLE table_name_64 (opponent VARCHAR, attendance VARCHAR) | Who is the opponent for the game with 37,845 people in attendance? |
SELECT silver FROM table_name_11 WHERE gold = 2 AND bronze > 2 | CREATE TABLE table_name_11 (silver VARCHAR, gold VARCHAR, bronze VARCHAR) | How many silver medals were there with 2 gold medals and more than 2 bronze medals? |
SELECT MIN(total) FROM table_name_25 WHERE rank = "11" AND silver > 0 | CREATE TABLE table_name_25 (total INTEGER, rank VARCHAR, silver VARCHAR) | What is the smallest total number of medals for rank 11 and more than 0 silver medals? |
SELECT SUM(total) FROM table_name_27 WHERE bronze > 2 AND nation = "united states" AND gold > 1 | CREATE TABLE table_name_27 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR) | What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States? |
SELECT MAX(gold) FROM table_name_31 WHERE nation = "canada" AND bronze > 7 | CREATE TABLE table_name_31 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | What is the largest number of gold medals for Canada with more than 7 bronze medals? |
SELECT SUM(silver) FROM table_name_21 WHERE total < 23 AND nation = "united states" AND bronze > 3 | CREATE TABLE table_name_21 (silver INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR) | What is the sum of all silver medals with less than 23 medals in total and more than 3 bronze medals for the United States? |
SELECT date FROM table_name_28 WHERE location = "zurich" AND result = 10.07 | CREATE TABLE table_name_28 (date VARCHAR, location VARCHAR, result VARCHAR) | When was Steve Williams in Zurich and his result was 10.07? |
SELECT MAX(lost) FROM table_name_81 WHERE draw = 0 AND team = "gwardia katowice" AND points < 12 | CREATE TABLE table_name_81 (lost INTEGER, points VARCHAR, draw VARCHAR, team VARCHAR) | What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice? |
SELECT MAX(draw) FROM table_name_94 WHERE lost = 6 AND points < 15 | CREATE TABLE table_name_94 (draw INTEGER, lost VARCHAR, points VARCHAR) | What is the highest number of draws with 6 losses and less than 15 points? |
SELECT COUNT(draw) FROM table_name_36 WHERE lost > 11 AND match < 14 | CREATE TABLE table_name_36 (draw VARCHAR, lost VARCHAR, match VARCHAR) | How many draws correspond to more than 11 losses in a match less than 14? |
SELECT director FROM table_name_39 WHERE film_title_used_in_nomination = "children of sarajevo" | CREATE TABLE table_name_39 (director VARCHAR, film_title_used_in_nomination VARCHAR) | What is the Director of Children of Sarajevo? |
SELECT result FROM table_name_11 WHERE year__ceremony_ = "2010 (83rd)" | CREATE TABLE table_name_11 (result VARCHAR, year__ceremony_ VARCHAR) | What is the Result of the 2010 (83rd) Ceremony? |
SELECT result FROM table_name_77 WHERE year__ceremony_ = "2013 (86th)" | CREATE TABLE table_name_77 (result VARCHAR, year__ceremony_ VARCHAR) | What is the Result of the 2013 (86th) Ceremony? |
SELECT original_title FROM table_name_42 WHERE film_title_used_in_nomination = "children of sarajevo" | CREATE TABLE table_name_42 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) | What is the Original title of Children of Sarajevo? |
SELECT original_title FROM table_name_66 WHERE result = "not nominated" AND year__ceremony_ = "2012 (85th)" | CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR) | In the 2012 (85th) Ceremony, what was the Original title of the film not nominated? |
SELECT MIN(draw) FROM table_name_22 WHERE points > 43 AND rank = "6th" | CREATE TABLE table_name_22 (draw INTEGER, points VARCHAR, rank VARCHAR) | What is the lowest draw number for the song ranked 6th with more than 43 points? |
SELECT SUM(points) FROM table_name_16 WHERE performer = "partners in crime" | CREATE TABLE table_name_16 (points INTEGER, performer VARCHAR) | What is the total sum of points for songs performed by Partners in Crime? |
SELECT class FROM table_name_21 WHERE facility_id = 150935 | CREATE TABLE table_name_21 (class VARCHAR, facility_id VARCHAR) | What is the class of facility ID 150935? |
SELECT city_of_license FROM table_name_17 WHERE facility_id > 150833 | CREATE TABLE table_name_17 (city_of_license VARCHAR, facility_id INTEGER) | Which city has a facility ID greater than 150833? |
SELECT position FROM table_name_99 WHERE cfl_team = "toronto argonauts" | CREATE TABLE table_name_99 (position VARCHAR, cfl_team VARCHAR) | What position does the player from the Toronto Argonauts play? |
SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile" | CREATE TABLE table_name_88 (team_2 VARCHAR) | What was the 1st leg for Team 2 Concepto Egile? |
SELECT team_1 FROM table_name_54 WHERE team_2 = "gomera" | CREATE TABLE table_name_54 (team_1 VARCHAR, team_2 VARCHAR) | Which team 1 has team 2, Gomera? |
SELECT team FROM table_name_45 WHERE founded < 1883 AND type = "public" | CREATE TABLE table_name_45 (team VARCHAR, founded VARCHAR, type VARCHAR) | What public team was founded prior to 1883? |
SELECT name FROM table_name_68 WHERE spike = 342 | CREATE TABLE table_name_68 (name VARCHAR, spike VARCHAR) | Who has exactly 342 spikes? |
SELECT MIN(spike) FROM table_name_69 WHERE weight = 83 AND height > 190 | CREATE TABLE table_name_69 (spike INTEGER, weight VARCHAR, height VARCHAR) | What is the smallest number of spikes for players with a weight of 83 and height over 190? |
SELECT class FROM table_name_15 WHERE power = "78 watts" | CREATE TABLE table_name_15 (class VARCHAR, power VARCHAR) | What is Class, when Power is 78 Watts? |
SELECT power FROM table_name_48 WHERE identifier = "cbeb-fm" | CREATE TABLE table_name_48 (power VARCHAR, identifier VARCHAR) | What is Power, when Identifier is CBEB-FM? |
SELECT identifier FROM table_name_26 WHERE city_of_license = "terrace bay" | CREATE TABLE table_name_26 (identifier VARCHAR, city_of_license VARCHAR) | What is Identifier, when City of License is Terrace Bay? |
SELECT power FROM table_name_93 WHERE city_of_license = "sioux lookout" | CREATE TABLE table_name_93 (power VARCHAR, city_of_license VARCHAR) | What is Power, when City of License is Sioux Lookout? |
SELECT identifier FROM table_name_55 WHERE city_of_license = "hornepayne" | CREATE TABLE table_name_55 (identifier VARCHAR, city_of_license VARCHAR) | What is Identifier, when City of License is Hornepayne? |
SELECT city_of_license FROM table_name_20 WHERE frequency = "101.1" | CREATE TABLE table_name_20 (city_of_license VARCHAR, frequency VARCHAR) | What is City of License, when Frequency is 101.1? |
SELECT le_5_model FROM table_name_2 WHERE le_5A = 130 | CREATE TABLE table_name_2 (le_5_model VARCHAR, le_5A VARCHAR) | Which LE-5 Model has an LE-5A of 130? |
SELECT series FROM table_name_11 WHERE races = 14 AND position = "12th" | CREATE TABLE table_name_11 (series VARCHAR, races VARCHAR, position VARCHAR) | What Series had 14 races and 12th position? |
SELECT season FROM table_name_87 WHERE series = "formula bmw usa" | CREATE TABLE table_name_87 (season VARCHAR, series VARCHAR) | What season was the Formula BMW USA in? |
SELECT series FROM table_name_73 WHERE podiums > 10 | CREATE TABLE table_name_73 (series VARCHAR, podiums INTEGER) | What series had more than 10 Podiums? |
SELECT status FROM table_name_25 WHERE authors = "colbert" | CREATE TABLE table_name_25 (status VARCHAR, authors VARCHAR) | What is the Status with an Author that is colbert? |
SELECT college FROM table_name_78 WHERE pick > 18 AND pba_team = "barangay ginebra kings" | CREATE TABLE table_name_78 (college VARCHAR, pick VARCHAR, pba_team VARCHAR) | What college was the draft pick number larger than 18 that went to the Barangay ginebra kings? |
SELECT SUM(pick) FROM table_name_36 WHERE pba_team = "san miguel beermen" AND college = "san sebastian" | CREATE TABLE table_name_36 (pick INTEGER, pba_team VARCHAR, college VARCHAR) | What is the sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian? |
SELECT COUNT(pick) FROM table_name_26 WHERE pba_team = "san miguel beermen" AND player = "rommel daep" | CREATE TABLE table_name_26 (pick VARCHAR, pba_team VARCHAR, player VARCHAR) | What is the total number of picks for PBA team san miguel beermen who picked rommel daep? |
SELECT champions FROM table_name_47 WHERE year > 1999 AND runners_up = "changwon lg sakers" | CREATE TABLE table_name_47 (champions VARCHAR, year VARCHAR, runners_up VARCHAR) | Who won after 1999 with changwon lg sakers as runners-up? |
SELECT result FROM table_name_39 WHERE year > 2007 AND runners_up = "seoul samsung thunders" AND champions = "jeonju kcc egis" | CREATE TABLE table_name_39 (result VARCHAR, champions VARCHAR, year VARCHAR, runners_up VARCHAR) | What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007? |
SELECT winning_team FROM table_name_74 WHERE year = 2013 | CREATE TABLE table_name_74 (winning_team VARCHAR, year VARCHAR) | What was the winning team in 2013? |
SELECT MAX(year) FROM table_name_93 WHERE winning_team = "europe" AND usa_captain = "kathy whitworth" | CREATE TABLE table_name_93 (year INTEGER, winning_team VARCHAR, usa_captain VARCHAR) | What is the highest year that Europe won, when the USA's Captain was Kathy Whitworth? |
SELECT winning_team FROM table_name_99 WHERE usa_captain = "beth daniel" | CREATE TABLE table_name_99 (winning_team VARCHAR, usa_captain VARCHAR) | When the USA's captain was Beth Daniel, who was the winning team? |
SELECT season FROM table_name_25 WHERE league = "bundesliga" AND european_competitions = "played korac cup" | CREATE TABLE table_name_25 (season VARCHAR, league VARCHAR, european_competitions VARCHAR) | What is the Season when league shows bundesliga, and a European competition of played korac cup? |
SELECT AVG(tier) FROM table_name_56 WHERE postseason = "β" AND season = "2012β13" | CREATE TABLE table_name_56 (tier INTEGER, postseason VARCHAR, season VARCHAR) | What is the average Tier when the postseason shows -, and the season is 2012β13? |
SELECT european_competitions FROM table_name_33 WHERE tier > 2 | CREATE TABLE table_name_33 (european_competitions VARCHAR, tier INTEGER) | What is the European competition when the tier is more than 2? |
SELECT outcome FROM table_name_64 WHERE surface = "grass" | CREATE TABLE table_name_64 (outcome VARCHAR, surface VARCHAR) | What was the outcome of the match played on grass? |
SELECT outcome FROM table_name_13 WHERE date__final_ = "february 17, 2003" | CREATE TABLE table_name_13 (outcome VARCHAR, date__final_ VARCHAR) | What was the outcome of the match on February 17, 2003? |
SELECT AVG(wins) FROM table_name_25 WHERE team = "usa" | CREATE TABLE table_name_25 (wins INTEGER, team VARCHAR) | How many average wins have USA as the team? |
SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain" | CREATE TABLE table_name_80 (wins INTEGER, team VARCHAR) | What are the average wins that have great britain as the team? |
SELECT AVG(pick__number) FROM table_name_21 WHERE college = "carson-newman" AND round < 7 | CREATE TABLE table_name_21 (pick__number INTEGER, college VARCHAR, round VARCHAR) | What's the average draft pick number from Carson-Newman College before Round 7? |
SELECT college FROM table_name_19 WHERE pick__number = 155 | CREATE TABLE table_name_19 (college VARCHAR, pick__number VARCHAR) | Which college has a pick number of 155? |
SELECT score_in_the_final FROM table_name_76 WHERE date = "november 3, 2002" | CREATE TABLE table_name_76 (score_in_the_final VARCHAR, date VARCHAR) | What score in the final has november 3, 2002 as the date? |
SELECT surface FROM table_name_14 WHERE partner = "natalia gussoni" | CREATE TABLE table_name_14 (surface VARCHAR, partner VARCHAR) | What surface has natalia gussoni as the partner? |
SELECT outcome FROM table_name_68 WHERE date = "september 23, 2013" | CREATE TABLE table_name_68 (outcome VARCHAR, date VARCHAR) | What outcome has September 23, 2013 as the date? |
SELECT score_in_the_final FROM table_name_57 WHERE surface = "hard" AND date = "june 13, 2011" | CREATE TABLE table_name_57 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) | What score in the final has hard as the surface, and june 13, 2011 as the date? |
SELECT date FROM table_name_43 WHERE partner = "elke clijsters" | CREATE TABLE table_name_43 (date VARCHAR, partner VARCHAR) | What date has elke clijsters as the partner? |
SELECT round FROM table_name_59 WHERE prize_money = "Β£120,000" | CREATE TABLE table_name_59 (round VARCHAR, prize_money VARCHAR) | What is the Round with a Prize of money that is Β£120,000? |
SELECT matches FROM table_name_16 WHERE prize_money = "Β£1,000,000" | CREATE TABLE table_name_16 (matches VARCHAR, prize_money VARCHAR) | What is the Match with a Prize of money that is Β£1,000,000? |
SELECT role FROM table_name_99 WHERE title = "alvin and the chipmunks meet frankenstein" | CREATE TABLE table_name_99 (role VARCHAR, title VARCHAR) | When alvin and the chipmunks meet frankenstein, what was the role? |
SELECT MIN(year) FROM table_name_18 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "alvin and the chipmunks meet the wolfman" | CREATE TABLE table_name_18 (year INTEGER, role VARCHAR, title VARCHAR) | What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman? |
SELECT AVG(year) FROM table_name_30 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "the chipmunk adventure" | CREATE TABLE table_name_30 (year INTEGER, role VARCHAR, title VARCHAR) | What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure? |
SELECT role FROM table_name_53 WHERE title = "the chipmunk adventure" | CREATE TABLE table_name_53 (role VARCHAR, title VARCHAR) | What was the role in the chipmunk adventure? |
SELECT role FROM table_name_37 WHERE year = 2007 | CREATE TABLE table_name_37 (role VARCHAR, year VARCHAR) | What role was played in 2007? |
SELECT COUNT(points) FROM table_name_75 WHERE engine = "chevrolet" AND team = "kv racing technology" | CREATE TABLE table_name_75 (points VARCHAR, engine VARCHAR, team VARCHAR) | What is the total number of points for the KV Racing Technology team when they use a chevrolet engine? |
SELECT engine FROM table_name_99 WHERE chassis = "dallara" AND rank = "6th" AND points = 384 | CREATE TABLE table_name_99 (engine VARCHAR, points VARCHAR, chassis VARCHAR, rank VARCHAR) | Which engine has a chassis of dallara, is ranked 6th, and has 384 points? |
SELECT engine FROM table_name_23 WHERE rank = "3rd" AND points = 513 | CREATE TABLE table_name_23 (engine VARCHAR, rank VARCHAR, points VARCHAR) | Which engine is used when there is a 3rd place rank and 513 points? |
SELECT chassis FROM table_name_25 WHERE rank = "3rd" | CREATE TABLE table_name_25 (chassis VARCHAR, rank VARCHAR) | What is the chassis when the rank is 3rd? |
SELECT COUNT(year) FROM table_name_44 WHERE team = "andretti autosport" | CREATE TABLE table_name_44 (year VARCHAR, team VARCHAR) | What are the years that Andretti Autosport is a team? |
SELECT team FROM table_name_66 WHERE rank = "3rd" AND year = 2008 | CREATE TABLE table_name_66 (team VARCHAR, rank VARCHAR, year VARCHAR) | Which team is ranked 3rd in 2008? |
SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10β6" AND oilers_first_downs > 14 | CREATE TABLE table_name_1 (oilers_points INTEGER, record VARCHAR, oilers_first_downs VARCHAR) | Which Oilers points have a Record of 10β6, and Oilers first downs larger than 14? |
SELECT MAX(oilers_points) FROM table_name_72 WHERE opponent = "san francisco 49ers" AND opponents > 19 | CREATE TABLE table_name_72 (oilers_points INTEGER, opponent VARCHAR, opponents VARCHAR) | Which Oilers points have an Opponent of san francisco 49ers, and Opponents larger than 19? |
SELECT SUM(game) FROM table_name_60 WHERE opponent = "at kansas city chiefs" AND attendance < 40 OFFSET 213 | CREATE TABLE table_name_60 (game INTEGER, opponent VARCHAR, attendance VARCHAR) | Which Game has an Opponent of at kansas city chiefs, and an Attendance smaller than 40,213? |
SELECT country FROM table_name_27 WHERE date = "18 may 2004" | CREATE TABLE table_name_27 (country VARCHAR, date VARCHAR) | What is the name of the country that has 18 May 2004 as the date? |
SELECT catalog FROM table_name_58 WHERE country = "australia" | CREATE TABLE table_name_58 (catalog VARCHAR, country VARCHAR) | What catalog has Australia as the country? |
SELECT format FROM table_name_18 WHERE date = "7 april 2003" AND catalog = "584 2112" | CREATE TABLE table_name_18 (format VARCHAR, date VARCHAR, catalog VARCHAR) | In what format was the release that was dated 7 April 2003 from catalog 584 2112? |
SELECT date FROM table_name_21 WHERE format = "lp" | CREATE TABLE table_name_21 (date VARCHAR, format VARCHAR) | What date was the release when the format was lp? |
SELECT date FROM table_name_35 WHERE label = "parlophone" AND catalog = "582 2912" | CREATE TABLE table_name_35 (date VARCHAR, label VARCHAR, catalog VARCHAR) | What date is the release when the label was Parlophone and the catalog was 582 2912? |
SELECT catalog FROM table_name_9 WHERE country = "united kingdom" | CREATE TABLE table_name_9 (catalog VARCHAR, country VARCHAR) | What catalog has the United Kingdom as the country? |
SELECT nationality FROM table_name_34 WHERE position = "guard" AND school_club_team = "virginia" | CREATE TABLE table_name_34 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) | What is the nationality of the guard for the chool/Club Team in Virginia? |
SELECT school_club_team FROM table_name_91 WHERE nationality = "united states" AND player = "arron afflalo" | CREATE TABLE table_name_91 (school_club_team VARCHAR, nationality VARCHAR, player VARCHAR) | What is the School/Club Team with a nationality of United States for Arron Afflalo? |
SELECT years_in_orlando FROM table_name_6 WHERE player = "carlos arroyo" | CREATE TABLE table_name_6 (years_in_orlando VARCHAR, player VARCHAR) | What is the Years in Orlando for carlos arroyo? |
SELECT player FROM table_name_77 WHERE years_in_orlando = "1989β1991" | CREATE TABLE table_name_77 (player VARCHAR, years_in_orlando VARCHAR) | What is the Player for Orlando in 1989β1991? |
SELECT position FROM table_name_52 WHERE years_in_orlando = "1989β1999" | CREATE TABLE table_name_52 (position VARCHAR, years_in_orlando VARCHAR) | What is the Position for Orlando for 1989β1999? |
SELECT player FROM table_name_90 WHERE school = "western washington university" AND position = "midfield" AND year > 2009 | CREATE TABLE table_name_90 (player VARCHAR, year VARCHAR, school VARCHAR, position VARCHAR) | Which player was from Western Washington University, played midfield, and was from years after 2009? |
SELECT team FROM table_name_11 WHERE player = "bubba vanegdom" | CREATE TABLE table_name_11 (team VARCHAR, player VARCHAR) | Which team was Bubba Vanegdom from? |
SELECT position FROM table_name_54 WHERE school = "pacific lutheran university" AND player = "greg fredlund" AND year > 2010 | CREATE TABLE table_name_54 (position VARCHAR, year VARCHAR, school VARCHAR, player VARCHAR) | What was the position of the player from Pacific Lutheran University named Greg Fredlund in years after 2010? |
SELECT position FROM table_name_30 WHERE year > 2008 AND player = "greg fredlund" | CREATE TABLE table_name_30 (position VARCHAR, year VARCHAR, player VARCHAR) | What was the position of Greg Fredlund in years after 2008? |
SELECT home_team FROM table_name_40 WHERE tie_no = "8" | CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR) | What home team has 8 ties? |
SELECT year FROM table_name_31 WHERE winner__female_ = "kim gevaert" AND talent__male_ = "xavier de baerdemaeker" | CREATE TABLE table_name_31 (year VARCHAR, winner__female_ VARCHAR, talent__male_ VARCHAR) | What year had Kim Gevaert as the female winner and Xavier de Baerdemaeker as the male talent? |
SELECT talent__female_ FROM table_name_41 WHERE year = 1999 | CREATE TABLE table_name_41 (talent__female_ VARCHAR, year VARCHAR) | Who is the female talent in 1999? |
SELECT talent__male_ FROM table_name_39 WHERE year = 1991 | CREATE TABLE table_name_39 (talent__male_ VARCHAR, year VARCHAR) | Who is the male talent in 1991? |
SELECT winner__male_ FROM table_name_40 WHERE winner__female_ = "marleen renders" AND year > 1998 | CREATE TABLE table_name_40 (winner__male_ VARCHAR, winner__female_ VARCHAR, year VARCHAR) | Who is the male winner the year after 1998 with Marleen Renders as the female winner? |
SELECT MIN(avg_g) FROM table_name_86 WHERE effic > 34.36 AND name = "wesley carroll" | CREATE TABLE table_name_86 (avg_g INTEGER, effic VARCHAR, name VARCHAR) | What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name? |
SELECT MIN(avg_g) FROM table_name_16 WHERE att_cmp_int = "2-9-0" | CREATE TABLE table_name_16 (avg_g INTEGER, att_cmp_int VARCHAR) | What is the lowest avg/g that has 2-9-0 for the att-cmp-int? |
SELECT att_cmp_int FROM table_name_16 WHERE gp_gs = "12" AND avg_g = 174.3 | CREATE TABLE table_name_16 (att_cmp_int VARCHAR, gp_gs VARCHAR, avg_g VARCHAR) | What is the att-cmp-int that has 12 for the gp-gs and 174.3 as the avg/g? |
SELECT song FROM table_name_70 WHERE issue_date_s_ = "19 june" | CREATE TABLE table_name_70 (song VARCHAR, issue_date_s_ VARCHAR) | What is the Song with an Issue Date(s) that is 19 june? |
Subsets and Splits