answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(loss) FROM table_name_43 WHERE gp_gs = "8-8" AND gain < 416
What's the total loss for a GP-GS of 8-8 and a gain less than 416?
CREATE TABLE table_name_43 (loss INTEGER, gp_gs VARCHAR, gain VARCHAR)
SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)"
What is the nationality of a player from linköpings hc (se)?
CREATE TABLE table_name_52 (nationality VARCHAR, club_team VARCHAR)
SELECT MAX(crowd) FROM table_16388439_1 WHERE away_team = "Essendon"
Name the most crowd for essendon
CREATE TABLE table_16388439_1 (crowd INTEGER, away_team VARCHAR)
SELECT year FROM table_name_99 WHERE publication = "pazz & jop"
Which year had a publication of Pazz & Jop?
CREATE TABLE table_name_99 (year VARCHAR, publication VARCHAR)
SELECT countries_sampled FROM table_19948664_1 WHERE ranking_la__2_ = "2nd" AND world_ranking__1_ = "23rd"
How many countries were sampled for the index in 2nd place in the LA ranking and 23rd in the world ranking?
CREATE TABLE table_19948664_1 (countries_sampled VARCHAR, ranking_la__2_ VARCHAR, world_ranking__1_ VARCHAR)
SELECT score FROM table_name_99 WHERE home = "toronto maple leafs" AND date = "february 1"
What is the Score of the Toronto Maple Leafs home game on February 1?
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT time FROM table_name_88 WHERE laps < 21 AND grid > 17
what is the time when the laps is less than 21 and the grid is more than 17?
CREATE TABLE table_name_88 (time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT SUM(position) FROM table_name_98 WHERE goal_difference < -11 AND played < 38
What was the position of the team that had a goal difference of less than -11 and played less than 38 games?
CREATE TABLE table_name_98 (position INTEGER, goal_difference VARCHAR, played VARCHAR)
SELECT COUNT(height__ft_) FROM table_name_12 WHERE name = "churchill house" AND height__m_ < 59
What is the Height (ft) of the Churchill House with a Height (m) less than 59?
CREATE TABLE table_name_12 (height__ft_ VARCHAR, name VARCHAR, height__m_ VARCHAR)
SELECT COUNT(year) FROM table_name_66 WHERE result = "nominated" AND series = "room 222"
What year gave a nominated result for the room 222 series?
CREATE TABLE table_name_66 (year VARCHAR, result VARCHAR, series VARCHAR)
SELECT COUNT(format) FROM table_20174050_24 WHERE author = "Day, Martin Martin Day"
how many formats of books authored by day, martin martin day
CREATE TABLE table_20174050_24 (format VARCHAR, author VARCHAR)
SELECT result FROM table_name_87 WHERE round = "4 leg 2"
What result occurs when the round is 4 leg 2?
CREATE TABLE table_name_87 (result VARCHAR, round VARCHAR)
SELECT type FROM table_name_73 WHERE programming = "general" AND owner = "tv kanal 5"
What is the type for a general programming and the owner tv kanal 5?
CREATE TABLE table_name_73 (type VARCHAR, programming VARCHAR, owner VARCHAR)
SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith"
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?
CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser)
How many accelerators are not compatible with the browsers listed ?
CREATE TABLE accelerator_compatible_browser (id VARCHAR, accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, accelerator_id VARCHAR)
SELECT COUNT(game) FROM table_name_75 WHERE january = 20
What was the total number of games on January 20?
CREATE TABLE table_name_75 (game VARCHAR, january VARCHAR)
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_singles = "Lindaweni Fanetri"
When the girls singles is lindaweni fanetri what is the mixed doubled?
CREATE TABLE table_14319023_2 (mixed_doubles VARCHAR, girls_singles VARCHAR)
SELECT score FROM table_name_57 WHERE set_2 = "25–18"
What is the overall score when the set 2 score is 25–18?
CREATE TABLE table_name_57 (score VARCHAR, set_2 VARCHAR)
SELECT date FROM table_name_20 WHERE year = "2008"
What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?
CREATE TABLE table_name_20 (date VARCHAR, year VARCHAR)
SELECT MIN(earnings___) AS $__ FROM table_name_86 WHERE wins > 18 AND rank = 2
What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?
CREATE TABLE table_name_86 (earnings___ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT venue FROM table_name_2 WHERE result = "eng by 10 runs"
What venue has eng by 10 runs as the result?
CREATE TABLE table_name_2 (venue VARCHAR, result VARCHAR)
SELECT original_title FROM table_name_79 WHERE director = "sudhendu roy"
Name the original title directed by sudhendu roy
CREATE TABLE table_name_79 (original_title VARCHAR, director VARCHAR)
SELECT COUNT(gb) FROM table_254234_1 WHERE iso_№ = "CN-65"
How many gb's have an iso number of cn-65?
CREATE TABLE table_254234_1 (gb VARCHAR, iso_№ VARCHAR)
SELECT attendance FROM table_name_92 WHERE result = "t 14-14"
Name the attendance with result of t 14-14
CREATE TABLE table_name_92 (attendance VARCHAR, result VARCHAR)
SELECT height_above_sea_level__m_ FROM table_name_2 WHERE opened < 1887 AND distance_from_wellington = "175.67km"
What is the height above sea level for the station opened 175.67km from Wellington prior to 1887?
CREATE TABLE table_name_2 (height_above_sea_level__m_ VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR)
SELECT COUNT(heat) FROM table_name_38 WHERE name = "gregor tait" AND lane > 6
What is the total number of heats with a finisher named Gregor Tait in lanes over 6?
CREATE TABLE table_name_38 (heat VARCHAR, name VARCHAR, lane VARCHAR)
SELECT attendance FROM table_11964047_10 WHERE home = "Los Angeles Lakers"
What is the attendance for the home game at Los Angeles Lakers?
CREATE TABLE table_11964047_10 (attendance VARCHAR, home VARCHAR)
SELECT MAX(bronze) FROM table_name_61 WHERE rank = "19"
What is the largest number for bronze with a rank of 19?
CREATE TABLE table_name_61 (bronze INTEGER, rank VARCHAR)
SELECT set_2 FROM table_name_98 WHERE date = "jun 29"
What is the Set 2 with a Date that is jun 29?
CREATE TABLE table_name_98 (set_2 VARCHAR, date VARCHAR)
SELECT centerfold_model FROM table_name_68 WHERE interview_subject = "paul simon"
Who was the Centerfold model in the issue in which the Interview subject was Paul Simon?
CREATE TABLE table_name_68 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT MAX(wickets) FROM table_16570286_4 WHERE average = "22.66"
What number of wickets were there when the average was 22.66?
CREATE TABLE table_16570286_4 (wickets INTEGER, average VARCHAR)
SELECT pos FROM table_name_64 WHERE year = "2003" AND event = "f"
What is the pos from 2003, and the f event?
CREATE TABLE table_name_64 (pos VARCHAR, year VARCHAR, event VARCHAR)
SELECT rank FROM table_name_49 WHERE avgatt = "52 574"
Wha is the rank for 52 574 avg. att?
CREATE TABLE table_name_49 (rank VARCHAR, avgatt VARCHAR)
SELECT votes__cast FROM table_25818630_2 WHERE constituency = "Midlothian"
How many votes were cast when the constituency was midlothian?
CREATE TABLE table_25818630_2 (votes__cast VARCHAR, constituency VARCHAR)
SELECT percentage_of_votes FROM table_name_62 WHERE number_of_votes_received = "1,255,153"
What percentage of the vote was 1,255,153 of received votes?
CREATE TABLE table_name_62 (percentage_of_votes VARCHAR, number_of_votes_received VARCHAR)
SELECT score FROM table_name_33 WHERE country = "united states" AND player = "raymond floyd"
Which Score has a Country of united states, and a Player of raymond floyd?
CREATE TABLE table_name_33 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT tournament FROM table_name_4 WHERE 2010 = "1r" AND 2008 = "1r"
What tournament has a 2010 of 1r, and a 2008 of 1r?
CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT eliminated FROM table_name_74 WHERE entered > 3 AND time = "35:55"
Who was eliminated that entered after number 3 and lasted 35:55?
CREATE TABLE table_name_74 (eliminated VARCHAR, entered VARCHAR, time VARCHAR)
SELECT sellout___percentage_ FROM table_16331025_2 WHERE gross_sales = "$1,727,400"
What is the sellout % when the gross sales is $1,727,400?
CREATE TABLE table_16331025_2 (sellout___percentage_ VARCHAR, gross_sales VARCHAR)
SELECT riaa_sales_certification FROM table_name_1 WHERE billboard_200_peak = 21
What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?
CREATE TABLE table_name_1 (riaa_sales_certification VARCHAR, billboard_200_peak VARCHAR)
SELECT score FROM table_15780049_6 WHERE game = 33
What is the score of game 33?
CREATE TABLE table_15780049_6 (score VARCHAR, game VARCHAR)
SELECT date FROM table_name_75 WHERE against < 6 AND venue = "durban"
What is date when against is smaller than 6 and location was durban?
CREATE TABLE table_name_75 (date VARCHAR, against VARCHAR, venue VARCHAR)
SELECT entrant FROM table_name_11 WHERE year > 1963 AND chassis = "eagle mk1"
What ist he entrant later than 1963 with an eagle MK1 chassis?
CREATE TABLE table_name_11 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT MAX(pick) FROM table_name_79 WHERE player = "steve bartalo"
When was steve bartalo picked?
CREATE TABLE table_name_79 (pick INTEGER, player VARCHAR)
SELECT player FROM table_15621965_18 WHERE school_club_team = "Arizona"
WHO IS THE PLAYER(S) ON THE ROSTER FROM SCHOOL/CLUB TEAM ARIZONA?
CREATE TABLE table_15621965_18 (player VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_11677691_7 WHERE school = "Saguaro High school"
Which player is from Saguaro High School?
CREATE TABLE table_11677691_7 (position VARCHAR, school VARCHAR)
SELECT win_percentage FROM table_name_88 WHERE games = 80 AND Pwin_percentage = — AND term_[c_] = "1987–1988"
What is the win% for the game 80 and a PWin% of —, and a Term [c ] of 1987–1988?
CREATE TABLE table_name_88 (win_percentage VARCHAR, games VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR)
SELECT original_operator FROM table_name_54 WHERE builder = "ag vulcan" AND ship = "prinzess irene"
Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship?
CREATE TABLE table_name_54 (original_operator VARCHAR, builder VARCHAR, ship VARCHAR)
SELECT place_of_execution FROM table_2861364_1 WHERE executed_person = "Mazouz Ghaouti"
where was mazouz ghaouti executed?
CREATE TABLE table_2861364_1 (place_of_execution VARCHAR, executed_person VARCHAR)
SELECT composer_s_ FROM table_name_33 WHERE time = "2:50"
Which composer has a track length of 2:50?
CREATE TABLE table_name_33 (composer_s_ VARCHAR, time VARCHAR)
SELECT pal_b, g, h FROM table_name_60 WHERE pal_i = "4.43361875mhz"
What is the PAL B, G, H for the PAL I 4.43361875mhz?
CREATE TABLE table_name_60 (pal_b VARCHAR, g VARCHAR, h VARCHAR, pal_i VARCHAR)
SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary"
Name the number of spring enrollment for sioux falls seminary
CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR)
SELECT no FROM table_10015132_14 WHERE player = "Patrick O'Bryant"
Which number was Patrick O'Bryant?
CREATE TABLE table_10015132_14 (no VARCHAR, player VARCHAR)
SELECT year_10_5th_quad FROM table_name_16 WHERE open_1st_viii = "nc" AND year_10_3rd_quad = "nc"
What is the Year 10 5th Quads with NC as Open 1st VIII and NC as a Year 10 3rd Quads?
CREATE TABLE table_name_16 (year_10_5th_quad VARCHAR, open_1st_viii VARCHAR, year_10_3rd_quad VARCHAR)
SELECT MAX(no_in_series) FROM table_26736040_1 WHERE directed_by = "Phil Abraham"
What is the highest number in series with director as Phil Abraham?
CREATE TABLE table_26736040_1 (no_in_series INTEGER, directed_by VARCHAR)
SELECT MIN(year) FROM table_name_10 WHERE category = "stacy" AND awards = "best reality star in social media"
What year has Stacy as the category and award of Best Reality Star in Social Media?
CREATE TABLE table_name_10 (year INTEGER, category VARCHAR, awards VARCHAR)
SELECT upstream FROM table_name_68 WHERE monthly_cap = "150 gb"
What is the upstream with a 150 gb monthly cap?
CREATE TABLE table_name_68 (upstream VARCHAR, monthly_cap VARCHAR)
SELECT rank FROM table_name_21 WHERE premiere = "september 13, 1978"
What is the rank for the episode that premiered on September 13, 1978?
CREATE TABLE table_name_21 (rank VARCHAR, premiere VARCHAR)
SELECT home_team FROM table_name_13 WHERE away_team = "bolton wanderers"
Who was the home team against the Bolton Wanderers?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid'
Find the names of states that have some college students playing in goalie and mid positions.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
SELECT venue FROM table_name_9 WHERE result = "wi by 8 wkts"
What is the Venue which has a Wi by 8 wkts?
CREATE TABLE table_name_9 (venue VARCHAR, result VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE date = "november 12, 1961" AND attendance < 7 OFFSET 859
What week was the game played on November 12, 1961, with an attendance of 7,859 played?
CREATE TABLE table_name_71 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT brilliance_grade FROM table_name_69 WHERE benchmark = "practical fine cut"
Which Brilliance Grade has a Benchmark of practical fine cut?
CREATE TABLE table_name_69 (brilliance_grade VARCHAR, benchmark VARCHAR)
SELECT home_team FROM table_name_12 WHERE tie_no = "44"
Which home team has 44 ties?
CREATE TABLE table_name_12 (home_team VARCHAR, tie_no VARCHAR)
SELECT leading_scorer FROM table_name_53 WHERE home = "knicks" AND visitor = "warriors"
Who was the leading scorer of the game where the Knicks were the home team and the Warriors were the visiting team?
CREATE TABLE table_name_53 (leading_scorer VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT nationality FROM table_name_33 WHERE round = "7"
What is the nationality of the player in round 7?
CREATE TABLE table_name_33 (nationality VARCHAR, round VARCHAR)
SELECT COUNT(school) FROM table_11677691_11 WHERE player = "Derrick Green"
How many schools did Derrick Green attend?
CREATE TABLE table_11677691_11 (school VARCHAR, player VARCHAR)
SELECT "points" AS _against FROM table_13564637_4 WHERE "points" = "points"
What is the name of the column points against?
CREATE TABLE table_13564637_4 (Id VARCHAR)
SELECT away_team AS score FROM table_name_94 WHERE home_team = "richmond"
What score was conceded by Richmond?
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(rank) FROM table_name_37 WHERE bronze < 1 AND silver = 1 AND total > 1
Which of the largest ranks has a bronze number less than 1, a silver of 1, and a total that is more than 1?
CREATE TABLE table_name_37 (rank INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT station__and_code_ FROM table_14748457_1 WHERE station_users_2008_9 = "130368"
whatis hte station code where users are 130368?
CREATE TABLE table_14748457_1 (station__and_code_ VARCHAR, station_users_2008_9 VARCHAR)
SELECT SUM(first_game) FROM table_name_85 WHERE played = 5 AND lost < 3
How many first games are associated with 5 games played and under 3 games lost?
CREATE TABLE table_name_85 (first_game INTEGER, played VARCHAR, lost VARCHAR)
SELECT result FROM table_name_1 WHERE week = 11
What was the result of week 11?
CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR)
SELECT MAX(games) FROM table_name_20 WHERE name = "zendon hamilton" AND rank > 2
What was the game with a rank higher than 2 and a name of zendon hamilton?
CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rank VARCHAR)
SELECT team__number1 FROM table_name_97 WHERE team__number2 = "unics kazan"
What is the team #1 that has unics kazan for team #2?
CREATE TABLE table_name_97 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT home_team AS score FROM table_name_56 WHERE home_team = "essendon"
When essendon was the home team, how much did they score?
CREATE TABLE table_name_56 (home_team VARCHAR)
SELECT co_drivers FROM table_name_76 WHERE year < 2010 AND laps < 326
Who are the co-drivers before 2010 with under 326 laps?
CREATE TABLE table_name_76 (co_drivers VARCHAR, year VARCHAR, laps VARCHAR)
SELECT AVG(rank) FROM table_name_19 WHERE bronze = 2 AND total = 2 AND gold < 0
What is the average Rank when there are 2 bronze, the total is 2 and gold is less than 0?
CREATE TABLE table_name_19 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT AVG(attendance) FROM table_name_48 WHERE date = "september 26, 1976"
What is the average attendance for the game on September 26, 1976?
CREATE TABLE table_name_48 (attendance INTEGER, date VARCHAR)
SELECT MIN(build_date) FROM table_name_48 WHERE disposal = "scrapped 1941"
Which railway had the earliest build date and a disposal of "Scrapped 1941?"
CREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR)
SELECT pole_position FROM table_1140074_2 WHERE location = "Hockenheimring"
what's the pole position with location being hockenheimring
CREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR)
SELECT to_par FROM table_name_96 WHERE country = "scotland"
What is the to par for Scotland?
CREATE TABLE table_name_96 (to_par VARCHAR, country VARCHAR)
SELECT gold FROM table_name_68 WHERE year = 1994
What Gold has the Year of 1994?
CREATE TABLE table_name_68 (gold VARCHAR, year VARCHAR)
SELECT MIN(goals) FROM table_name_95 WHERE level > 5
What Goals with a Level of 5 or greater is the lowest?
CREATE TABLE table_name_95 (goals INTEGER, level INTEGER)
SELECT MAX(pick__number) FROM table_name_22 WHERE overall = 19
What is the Pick # with an Overall of 19?
CREATE TABLE table_name_22 (pick__number INTEGER, overall VARCHAR)
SELECT to_par FROM table_name_98 WHERE score < 67 AND place = "t1" AND player = "tiger woods"
What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?
CREATE TABLE table_name_98 (to_par VARCHAR, player VARCHAR, score VARCHAR, place VARCHAR)
SELECT COUNT(matches) FROM table_name_55 WHERE name = "nat lofthouse" AND rank > 7
What was the total number of matches for Nat Lofthouse, ranking higher than 7?
CREATE TABLE table_name_55 (matches VARCHAR, name VARCHAR, rank VARCHAR)
SELECT method FROM table_name_69 WHERE record = "3-4"
What is the method of the match with a 3-4 record?
CREATE TABLE table_name_69 (method VARCHAR, record VARCHAR)
SELECT MAX(biggenden) FROM table_12526990_1 WHERE year = 1947
What is the biggended for 1947?
CREATE TABLE table_12526990_1 (biggenden INTEGER, year VARCHAR)
SELECT AVG(overall) FROM table_name_34 WHERE pick < 5
Which average overall has a Pick smaller than 5?
CREATE TABLE table_name_34 (overall INTEGER, pick INTEGER)
SELECT date FROM table_18847736_2 WHERE dolphins_points = 6
How many dates do the dolphins have 6 points?
CREATE TABLE table_18847736_2 (date VARCHAR, dolphins_points VARCHAR)
SELECT COUNT(*) FROM APPELLATIONS WHERE County = "Napa"
How many appelations are in Napa Country?
CREATE TABLE APPELLATIONS (County VARCHAR)
SELECT week FROM table_name_56 WHERE date = "december 3, 2001"
Which Week has a Date of december 3, 2001?
CREATE TABLE table_name_56 (week VARCHAR, date VARCHAR)
SELECT COUNT(incumbent) FROM table_1341663_10 WHERE candidates = "Dan Mica (D) 55.3% Bill James (R) 44.7%"
how many times was the candidates dan mica (d) 55.3% bill james (r) 44.7%?
CREATE TABLE table_1341663_10 (incumbent VARCHAR, candidates VARCHAR)
SELECT venue FROM table_name_5 WHERE score = "0-2" AND season = 2004
In the 2004 season with a 0-2 score what was the name of the venue?
CREATE TABLE table_name_5 (venue VARCHAR, score VARCHAR, season VARCHAR)
SELECT venue FROM table_name_49 WHERE competition = "friendly match"
What was the venue that had a friendly match competition?
CREATE TABLE table_name_49 (venue VARCHAR, competition VARCHAR)
SELECT score FROM table_name_39 WHERE home_team = "adelaide 36ers"
What was the score of the game where the adelaide 36ers were the home team?
CREATE TABLE table_name_39 (score VARCHAR, home_team VARCHAR)
SELECT province FROM table_name_82 WHERE capital = "muju"
Which province has muju as the capital?
CREATE TABLE table_name_82 (province VARCHAR, capital VARCHAR)
SELECT AVG(episode_number) FROM table_name_41 WHERE air_date = "29 june 2007"
What kind of Episode Number has a Air Date on 29 june 2007?
CREATE TABLE table_name_41 (episode_number INTEGER, air_date VARCHAR)
SELECT SUM(episodes) FROM table_name_53 WHERE first_aired = "april 8, 2011"
Of the series that first aired April 8, 2011, what is the total number of episodes?
CREATE TABLE table_name_53 (episodes INTEGER, first_aired VARCHAR)