answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT number FROM table_name_49 WHERE fleet = "baltic" AND name = "leninets (ленинец)"
what number is associated with the baltic fleet and leninets (ленинец)?
CREATE TABLE table_name_49 (number VARCHAR, fleet VARCHAR, name VARCHAR)
SELECT AVG(decimal) FROM table_name_12 WHERE binary = 110010 AND glyph > 2
What is the average decimal with a 110010 binary and a glyph greater than 2?
CREATE TABLE table_name_12 (decimal INTEGER, binary VARCHAR, glyph VARCHAR)
SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid
Find the number of pets for each student who has any pet and student id.
CREATE TABLE has_pet (stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button"
Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?
CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
SELECT written_by FROM table_12033013_1 WHERE production_code = "1ADK-03"
WHO WROTE THE STORY WITH THE PRODUCTION CODE OF 1ADK-03
CREATE TABLE table_12033013_1 (written_by VARCHAR, production_code VARCHAR)
SELECT document_type_code, document_type_name, document_type_description FROM Ref_document_types
Show all document type codes, document type names, document type descriptions.
CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR, document_type_description VARCHAR)
SELECT barrel_twist FROM table_12834315_8 WHERE barrel_profile = "SFW"
What is the value of barrel twist when the barrel profile is SFW?
CREATE TABLE table_12834315_8 (barrel_twist VARCHAR, barrel_profile VARCHAR)
SELECT date_from FROM Project_Staff ORDER BY date_from LIMIT 1
When did the first staff for the projects started working?
CREATE TABLE Project_Staff (date_from VARCHAR)
SELECT purse FROM table_name_94 WHERE distance = "1-1/16" AND year = 2003
What is the purse in 2003, which had a 1-1/16 distance?
CREATE TABLE table_name_94 (purse VARCHAR, distance VARCHAR, year VARCHAR)
SELECT position FROM table_name_92 WHERE college_junior_club_team = "brandon wheat kings (wchl)"
What is the Position for the brandon wheat kings (wchl)?
CREATE TABLE table_name_92 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT date FROM table_name_60 WHERE partnering = "nicolas pereira"
Tell me the date for nicolas pereira
CREATE TABLE table_name_60 (date VARCHAR, partnering VARCHAR)
SELECT bullet_weight FROM table_name_98 WHERE max_pressure = "12,000 cup"
What is the bullet weight with a 12,000 cup max pressure?
CREATE TABLE table_name_98 (bullet_weight VARCHAR, max_pressure VARCHAR)
SELECT winner FROM table_name_70 WHERE mountains_classification = "not awarded" AND stage = "1"
Which winner of stage 1 was not awarded a mountains classification?
CREATE TABLE table_name_70 (winner VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5"
What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?
CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_17323092_8 WHERE high_assists = "Anthony Parker (7)"
Where was the location and what was the attendance in the game that Anthony Parker (7) earned high assists?
CREATE TABLE table_17323092_8 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT away_team FROM table_name_62 WHERE home_team = "melbourne"
Who was the away team at Melbourne's home game?
CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR)
SELECT conference AS Tournament FROM table_24248450_3 WHERE conference = "Big Sky conference"
What is the tournament called for the Big Sky Conference?
CREATE TABLE table_24248450_3 (conference VARCHAR)
SELECT lower_house_majority FROM table_21531764_2 WHERE senior_us_senator = "J. Shaheen"
What's the lower house majority in the state whose Senior senator is J. Shaheen?
CREATE TABLE table_21531764_2 (lower_house_majority VARCHAR, senior_us_senator VARCHAR)
SELECT constructor FROM table_1140105_6 WHERE date = "26 March"
What is te name of the constructors dated 26 march?
CREATE TABLE table_1140105_6 (constructor VARCHAR, date VARCHAR)
SELECT retitled_as_same FROM table_name_92 WHERE show = "supermarket sweep"
Which retitled network has a Show of supermarket sweep?
CREATE TABLE table_name_92 (retitled_as_same VARCHAR, show VARCHAR)
SELECT mac_os_x FROM table_name_44 WHERE gnu_linux = "yes" AND windows = "no"
Which Mac OSX's GNU/Linux was yes when Windows was no?
CREATE TABLE table_name_44 (mac_os_x VARCHAR, gnu_linux VARCHAR, windows VARCHAR)
SELECT surface FROM table_name_14 WHERE date = "21 july 1997"
What type of surface did they play on 21 July 1997
CREATE TABLE table_name_14 (surface VARCHAR, date VARCHAR)
SELECT date FROM table_name_32 WHERE attendance = "45,000"
What is the date for 45,000 in attendance?
CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR)
SELECT type_of_record FROM table_21436373_8 WHERE result_games = "9 games (28,595 avg.)"
What record was set when the result/game was equal to 9 games (28,595 avg.)
CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR)
SELECT binomial FROM table_name_7 WHERE binary = "θ(log n)" AND fibonacci = "θ(1)"
Binary of θ(log n), and a Fibonacci of θ(1) has what binomial?
CREATE TABLE table_name_7 (binomial VARCHAR, binary VARCHAR, fibonacci VARCHAR)
SELECT MIN(league_cup_goals) FROM table_name_59 WHERE scorer = "denis law"
What is the lowest League Cup Goals, when Scorer is Denis Law?
CREATE TABLE table_name_59 (league_cup_goals INTEGER, scorer VARCHAR)
SELECT position FROM table_name_34 WHERE unanimous = "no" AND college_hall_of_fame = "no"
What is the position of the player with a unanimous no result without a college hall of fame?
CREATE TABLE table_name_34 (position VARCHAR, unanimous VARCHAR, college_hall_of_fame VARCHAR)
SELECT expenditure__s$m_ FROM table_161591_2 WHERE operating_profit__s$m_ = "717.1"
What was the expenditure (s$m) associated with an operating profit (s$m) of 717.1?
CREATE TABLE table_161591_2 (expenditure__s$m_ VARCHAR, operating_profit__s$m_ VARCHAR)
SELECT television_commentator FROM table_1998037_9 WHERE year_s_ = 2006
Who is the television commentator for the year 2006?
CREATE TABLE table_1998037_9 (television_commentator VARCHAR, year_s_ VARCHAR)
SELECT MIN(rank) FROM table_name_9 WHERE points > 52 AND year > 1970
Which Rank is the lowest one that has Points larger than 52, and a Year larger than 1970?
CREATE TABLE table_name_9 (rank INTEGER, points VARCHAR, year VARCHAR)
SELECT average FROM table_27496841_3 WHERE rank_by_average = 3
Name the average for rank of 3
CREATE TABLE table_27496841_3 (average VARCHAR, rank_by_average VARCHAR)
SELECT first_match FROM table_name_35 WHERE final_position = "winners" AND final_round = "finals"
On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?
CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR)
SELECT furtenbacher FROM table_name_6 WHERE liscumb = "6" AND lawrance = "10" AND ben_tahir = "24"
What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?
CREATE TABLE table_name_6 (furtenbacher VARCHAR, ben_tahir VARCHAR, liscumb VARCHAR, lawrance VARCHAR)
SELECT edition FROM table_name_69 WHERE date = "september 23, 2008" AND region = "united states"
What kind of edition was released September 23, 2008 from the United States?
CREATE TABLE table_name_69 (edition VARCHAR, date VARCHAR, region VARCHAR)
SELECT MAX(tries_against) FROM table_name_9 WHERE points_against > 109
Which Tries against have Points against larger than 109?
CREATE TABLE table_name_9 (tries_against INTEGER, points_against INTEGER)
SELECT COUNT(winner) FROM table_25580292_13 WHERE stage = 5
How many winners were there for stage 5?
CREATE TABLE table_25580292_13 (winner VARCHAR, stage VARCHAR)
SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Julia Bermejo"
Name the number of song for julia bermejo
CREATE TABLE table_19763199_5 (song VARCHAR, artist VARCHAR)
SELECT AVG(year) FROM table_name_57 WHERE accolade = "100 greatest singles of all time"
What's the average year for the accolade 100 greatest singles of all time?
CREATE TABLE table_name_57 (year INTEGER, accolade VARCHAR)
SELECT constellation FROM table_name_17 WHERE object_type = "globular cluster" AND ngc_number = 5986
What Constellation has a Object type of globular cluster and a NGC number of 5986?
CREATE TABLE table_name_17 (constellation VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
SELECT bike FROM table_name_20 WHERE grid = 26
What bike has 26 as the grid?
CREATE TABLE table_name_20 (bike VARCHAR, grid VARCHAR)
SELECT version FROM table_name_82 WHERE format = "cd" AND date = "june 12, 2008" AND region = "cyprus"
What is the Version of the CD release on June 12, 2008 in Cyprus?
CREATE TABLE table_name_82 (version VARCHAR, region VARCHAR, format VARCHAR, date VARCHAR)
SELECT MIN(fa_cup) FROM table_name_69 WHERE total > 46
Who has the lowest FA cup and has a total over 46?
CREATE TABLE table_name_69 (fa_cup INTEGER, total INTEGER)
SELECT score FROM table_name_43 WHERE game = 35
What is the Score of game 35?
CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR)
SELECT municipality FROM table_name_53 WHERE station = "benson street"
What municipality is the Benson Street station located in?
CREATE TABLE table_name_53 (municipality VARCHAR, station VARCHAR)
SELECT hdtv FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND dar = "16:9" AND television_service = "myDeejay"
Name the hdtv for sky famiglia and dar 16:9 for mydeejay
CREATE TABLE table_15887683_10 (hdtv VARCHAR, television_service VARCHAR, package_option VARCHAR, dar VARCHAR)
SELECT COUNT(2004) FROM table_name_47 WHERE 2005 < 56 AND 2006 = 14
What Country has a number smaller than 56 in 2005 and of 14 in 2006?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT champion FROM table_name_55 WHERE tournament_location = "sentosa golf club"
Which champion has sentosa golf club as the tournament location?
CREATE TABLE table_name_55 (champion VARCHAR, tournament_location VARCHAR)
SELECT COUNT(nominee) FROM table_15162479_8 WHERE vote_to_evict = "3.92%"
How many nominee's had a vote to evict percentage of 3.92%
CREATE TABLE table_15162479_8 (nominee VARCHAR, vote_to_evict VARCHAR)
SELECT MAX(wins) FROM table_name_89 WHERE series = "british formula three" AND season = "2005" AND poles < 0
WHAT IS THE HIGHEST WINS WITH A SERIES OF BRITISH FORMULA THREE, SEASON 2005, POLES SMALLER THAN 0?
CREATE TABLE table_name_89 (wins INTEGER, poles VARCHAR, series VARCHAR, season VARCHAR)
SELECT COUNT(total) FROM table_name_48 WHERE round_1_ + _2a_points = "19.620"
Name the total number of total when round 1 +2A points of 19.620
CREATE TABLE table_name_48 (total VARCHAR, round_1_ VARCHAR, _2a_points VARCHAR)
SELECT MAX(laps) FROM table_name_91 WHERE grid > 21 AND time_retired = "+2 laps"
What is the high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps?
CREATE TABLE table_name_91 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT season FROM table_name_63 WHERE year = "2005–06"
Which Season has a Year of 2005–06?
CREATE TABLE table_name_63 (season VARCHAR, year VARCHAR)
SELECT position FROM table_name_34 WHERE school_club_team = "rice"
What position is mentioned for Rice school?
CREATE TABLE table_name_34 (position VARCHAR, school_club_team VARCHAR)
SELECT score FROM table_name_28 WHERE record = "15–12–2"
Which Score has a Record of 15–12–2?
CREATE TABLE table_name_28 (score VARCHAR, record VARCHAR)
SELECT title FROM table_name_83 WHERE year = 2003 AND genre = "rap"
What was the title of Ashanti's 2003 rap song?
CREATE TABLE table_name_83 (title VARCHAR, year VARCHAR, genre VARCHAR)
SELECT opponent_in_the_final FROM table_name_30 WHERE date < 1991 AND outcome = "runner-up"
What is Opponent In The Final, when Date is before 1991, and when Outcome is "Runner-Up"?
CREATE TABLE table_name_30 (opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)
SELECT nir_number FROM table_name_87 WHERE type = "tso (ex-br class 488 unit 488305)" AND br_number_s_ = "6082 / 72605"
Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number?
CREATE TABLE table_name_87 (nir_number VARCHAR, type VARCHAR, br_number_s_ VARCHAR)
SELECT home_team AS score FROM table_name_44 WHERE away_team = "geelong"
What was the home team's score that played Geelong?
CREATE TABLE table_name_44 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(pick) FROM table_name_87 WHERE nfl_club = "houston oilers" AND round > 10
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 type FROM table_name_12 WHERE opened = "1982"
Which type opened in 1982?
CREATE TABLE table_name_12 (type VARCHAR, opened VARCHAR)
SELECT position FROM table_name_89 WHERE player = "jason fitzgerald"
What position Jason Fitzgerald played?
CREATE TABLE table_name_89 (position VARCHAR, player VARCHAR)
SELECT player FROM table_name_88 WHERE hometown_school = "upland high school"
WHAT PLAYER HAS UPLAND HIGH SCHOOL?
CREATE TABLE table_name_88 (player VARCHAR, hometown_school VARCHAR)
SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4
What is the highest number of viewers for a rating greater than 9.4?
CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER)
SELECT release_date FROM table_name_96 WHERE sspec_number = "sl5xl, sl657, sl6by, sl6jp"
What is the Release Date when sSpec Number is sl5xl, sl657, sl6by, sl6jp?
CREATE TABLE table_name_96 (release_date VARCHAR, sspec_number VARCHAR)
SELECT AVG(result) FROM table_name_11 WHERE location = "atlanta" AND rank < 4
What Result has a Location of atlanta, and Rank smaller than 4?
CREATE TABLE table_name_11 (result INTEGER, location VARCHAR, rank VARCHAR)
SELECT label FROM table_name_88 WHERE country = "united states"
What is the label on the United States?
CREATE TABLE table_name_88 (label VARCHAR, country VARCHAR)
SELECT track FROM table_name_82 WHERE bobsleigh_skeleton_curves = "14" AND country = "austria"
Which track in Austria has Bobsleigh-skeleton curves with a grade of 14%?
CREATE TABLE table_name_82 (track VARCHAR, bobsleigh_skeleton_curves VARCHAR, country VARCHAR)
SELECT event FROM table_name_81 WHERE competition = "world cross country championships"
Which event was part of the World Cross Country championships?
CREATE TABLE table_name_81 (event VARCHAR, competition VARCHAR)
SELECT COUNT(position) FROM table_name_7 WHERE wins = 14 AND goals_against = 61 AND losses < 19
How many positions have 14 wins, goals against of 61 and fewer than 19 losses?
CREATE TABLE table_name_7 (position VARCHAR, losses VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT fourth_place FROM table_name_11 WHERE year = 1966
What is the Fourth place with a Year that is 1966?
CREATE TABLE table_name_11 (fourth_place VARCHAR, year VARCHAR)
SELECT AVG(silver) FROM table_name_10 WHERE total = 7 AND gold > 1
Which Silver has a Total of 7, and a Gold larger than 1?
CREATE TABLE table_name_10 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT written_by FROM table_12226390_2 WHERE no_in_series = 14
Who wrote the episode 14 in series?
CREATE TABLE table_12226390_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT passing_yards_per_game FROM table_27487336_1 WHERE rushing_yards_per_game = "113.6"
What is every value for passing yards per game if rushing yards per game is 113.6?
CREATE TABLE table_27487336_1 (passing_yards_per_game VARCHAR, rushing_yards_per_game VARCHAR)
SELECT AVG(level) FROM table_name_45 WHERE leaguecontested = "northern premier league premier division" AND season = "2011–12"
Which Level has a League Contested of northern premier league premier division, and a Season of 2011–12?
CREATE TABLE table_name_45 (level INTEGER, leaguecontested VARCHAR, season VARCHAR)
SELECT glendale FROM table_name_20 WHERE la_cañada_flintridge = "5%"
What is the percentage of Glendale when La Canada Flintridge is 5%?
CREATE TABLE table_name_20 (glendale VARCHAR, la_cañada_flintridge VARCHAR)
SELECT headquarters FROM table_15637071_1 WHERE icao = "AAU"
Where is the headquarters of the airline which has the ICAO code of AAU?
CREATE TABLE table_15637071_1 (headquarters VARCHAR, icao VARCHAR)
SELECT city FROM table_name_89 WHERE track = "manzanita speedway"
What is the city the track of manzanita speedway is in?
CREATE TABLE table_name_89 (city VARCHAR, track VARCHAR)
SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December"
Name the guest 4 for 8 december
CREATE TABLE table_20466963_13 (guest_4 VARCHAR, date VARCHAR)
SELECT winner FROM table_name_63 WHERE runner_up = "john higgins"
Who was the winner in the match that had John Higgins as runner-up?
CREATE TABLE table_name_63 (winner VARCHAR, runner_up VARCHAR)
SELECT MIN(points) FROM table_name_93 WHERE chassis = "dallara f303"
What are the lowest points for an engine with a Dallara F303 chassis?
CREATE TABLE table_name_93 (points INTEGER, chassis VARCHAR)
SELECT result FROM table_1342338_6 WHERE district = "California 2"
What is the result for california 2?
CREATE TABLE table_1342338_6 (result VARCHAR, district VARCHAR)
SELECT record FROM table_21007615_1 WHERE sun_devils_points = 44
What was the record for the Sun Devils when they scored 44 points?
CREATE TABLE table_21007615_1 (record VARCHAR, sun_devils_points VARCHAR)
SELECT constructor FROM table_name_5 WHERE grid = 13
Which vehicle has a Grid of 13?
CREATE TABLE table_name_5 (constructor VARCHAR, grid VARCHAR)
SELECT gpu_frequency FROM table_16729930_18 WHERE tdp = "3.6 W" AND part_number_s_ = "CY80632007221AB"
For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU frequencies?
CREATE TABLE table_16729930_18 (gpu_frequency VARCHAR, tdp VARCHAR, part_number_s_ VARCHAR)
SELECT opponent FROM table_name_52 WHERE week = 6
Who was the opponent at the week 6 game?
CREATE TABLE table_name_52 (opponent VARCHAR, week VARCHAR)
SELECT 1976 FROM table_name_35 WHERE tournament = "australian open"
What is the 1976 value of the Australian Open?
CREATE TABLE table_name_35 (tournament VARCHAR)
SELECT high_assists FROM table_name_73 WHERE team = "milwaukee"
Who had the most high assists from Milwaukee?
CREATE TABLE table_name_73 (high_assists VARCHAR, team VARCHAR)
SELECT venue FROM table_name_36 WHERE opponent = "at new york giants"
Opponent of at new york giants had what venue?
CREATE TABLE table_name_36 (venue VARCHAR, opponent VARCHAR)
SELECT institution FROM table_name_30 WHERE type = "public" AND nickname = "grenadiers"
Which public college has a nickname of The Grenadiers?
CREATE TABLE table_name_30 (institution VARCHAR, type VARCHAR, nickname VARCHAR)
SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794"
What is the after debt has receipts of $379,794?
CREATE TABLE table_name_90 (after_debt VARCHAR, total_receipts VARCHAR)
SELECT date_successor_seated FROM table_2417345_4 WHERE successor = "David Atwood (R)"
When was successor David Atwood (R) seated?
CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, successor VARCHAR)
SELECT career_sr FROM table_name_66 WHERE 1996 = "a" AND tournament = "madrid (stuttgart)"
Madrid (Stuttgart) tournament with a 1996 of A has this for a Career SR?
CREATE TABLE table_name_66 (career_sr VARCHAR, tournament VARCHAR)
SELECT COUNT(record) FROM table_23308178_8 WHERE points = 88
How many games did they play with 88 points?
CREATE TABLE table_23308178_8 (record VARCHAR, points VARCHAR)
SELECT MAX(wins) FROM table_name_72 WHERE against < 924 AND losses < 2
WHAT IS THE HIGHEST WINS WITH AGAINST SMALLER THAN 924, LOSSES SMALLER THAN 2?
CREATE TABLE table_name_72 (wins INTEGER, against VARCHAR, losses VARCHAR)
SELECT COUNT(color_system) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "5.734"
How many color systems has a bit rate of 5.734?
CREATE TABLE table_1926240_1 (color_system VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT main_industry, SUM(market_value) FROM company GROUP BY main_industry
Show all main industry and total market value in each industry.
CREATE TABLE company (main_industry VARCHAR, market_value INTEGER)
SELECT motogp_winner FROM table_12186237_1 WHERE circuit = "Catalunya"
Who is the Motogp winnder for the Catalunya Circuit?
CREATE TABLE table_12186237_1 (motogp_winner VARCHAR, circuit VARCHAR)
SELECT became_duchess FROM table_name_77 WHERE name = "eleonor magdalene of the palatinate-neuburg"
When did eleonor magdalene of the palatinate-neuburg become duchess?
CREATE TABLE table_name_77 (became_duchess VARCHAR, name VARCHAR)
SELECT language FROM table_15887683_19 WHERE television_service = "ContoTV 5"
In what laguage was Contotv 5?
CREATE TABLE table_15887683_19 (language VARCHAR, television_service VARCHAR)
SELECT dipole_moment___d__ FROM table_name_18 WHERE density = "1.092 g/ml"
What dipole moment has a density of 1.092 g/ml?
CREATE TABLE table_name_18 (dipole_moment___d__ VARCHAR, density VARCHAR)