answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT AVG(dolphins_points) FROM table_name_88 WHERE opponent = "buffalo bills" AND attendance < 69 OFFSET 313
What's the Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills?
CREATE TABLE table_name_88 (dolphins_points INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT other FROM table_name_15 WHERE xdsl = "78.2%"
What is the other for a 78.2% xDSL?
CREATE TABLE table_name_15 (other VARCHAR, xdsl VARCHAR)
SELECT MIN(share) FROM table_name_67 WHERE viewers__m_ < 8.78 AND timeslot_rank < 4
What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million?
CREATE TABLE table_name_67 (share INTEGER, viewers__m_ VARCHAR, timeslot_rank VARCHAR)
SELECT COUNT(studio) FROM table_11222744_3 WHERE catalog_number = "CAL03 / 0091037137333"
how many studios have the catalog number "cal03 / 0091037137333"?
CREATE TABLE table_11222744_3 (studio VARCHAR, catalog_number VARCHAR)
SELECT rank FROM table_name_44 WHERE actor_actress = "aaron pedersen"
What rank did actor Aaron Pedersen's character have?
CREATE TABLE table_name_44 (rank VARCHAR, actor_actress VARCHAR)
SELECT alignment_alignment AS :_predicts_an_alignment_, _ FROM table_name_27 WHERE link = "linuxbinary"
What is the alignment that predicts an alignment of the linuxbinary link?
CREATE TABLE table_name_27 (_ VARCHAR, alignment_alignment VARCHAR, link VARCHAR)
SELECT score FROM table_name_49 WHERE date = "august 25"
What score has august 25 as the date?
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
SELECT cName, state, MIN(enr) FROM college GROUP BY state
What is the name of school that has the smallest enrollment in each state?
CREATE TABLE college (cName VARCHAR, state VARCHAR, enr INTEGER)
SELECT COUNT(district) FROM table_1342359_17 WHERE first_elected = 1914
how many people won in 1914
CREATE TABLE table_1342359_17 (district VARCHAR, first_elected VARCHAR)
SELECT birth_country FROM player GROUP BY birth_country ORDER BY COUNT(*) LIMIT 3
List three countries which are the origins of the least players.
CREATE TABLE player (birth_country VARCHAR)
SELECT psip_short_name FROM table_name_2 WHERE channel < 5.2
What is the short name of the channel under 5.2?
CREATE TABLE table_name_2 (psip_short_name VARCHAR, channel INTEGER)
SELECT fastest_lap FROM table_1140073_2 WHERE pole_position = "Patrick Tambay"
Who had the fastest lap in the race where Patrick Tambay was on the pole?
CREATE TABLE table_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR)
SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1
What is the carrier of the most expensive phone?
CREATE TABLE phone (Carrier VARCHAR, Price VARCHAR)
SELECT mascot FROM table_name_51 WHERE year_opened = "1970"
What is the mascot whose school opened in 1970?
CREATE TABLE table_name_51 (mascot VARCHAR, year_opened VARCHAR)
SELECT city FROM table_name_20 WHERE venue = "united spirit arena"
In what city is the United Spirit Arena located?
CREATE TABLE table_name_20 (city VARCHAR, venue VARCHAR)
SELECT willingshain FROM table_name_71 WHERE kirchheim = "1,126"
What Willingshain is Kirchheim 1,126?
CREATE TABLE table_name_71 (willingshain VARCHAR, kirchheim VARCHAR)
SELECT AVG(fiscal_year) FROM table_name_55 WHERE headquarters = "noida" AND employees < 85 OFFSET 335
What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?
CREATE TABLE table_name_55 (fiscal_year INTEGER, headquarters VARCHAR, employees VARCHAR)
SELECT date FROM table_name_4 WHERE country = "us" AND catalog = "ck 9942"
What is the date for US catalog CK 9942?
CREATE TABLE table_name_4 (date VARCHAR, country VARCHAR, catalog VARCHAR)
SELECT MIN(cuts_made) FROM table_name_63 WHERE scoring_average < 72.48
What is the lowest Cuts made with less than 72.48 scoring average?
CREATE TABLE table_name_63 (cuts_made INTEGER, scoring_average INTEGER)
SELECT institution FROM table_261906_2 WHERE location = "Wilkes-Barre, Pennsylvania"
What institution(s) are located in wilkes-barre, pennsylvania?
CREATE TABLE table_261906_2 (institution VARCHAR, location VARCHAR)
SELECT COUNT(wins) FROM table_name_52 WHERE top_10 = 2 AND events > 8 AND cuts_made > 6
What is the number of wins that has a top-10 of 2, and more events than 8, more cuts than 6?
CREATE TABLE table_name_52 (wins VARCHAR, cuts_made VARCHAR, top_10 VARCHAR, events VARCHAR)
SELECT label FROM table_name_2 WHERE region = "germany" AND date = "april 24, 2009"
What is the Label of the release on April 24, 2009 in Germany?
CREATE TABLE table_name_2 (label VARCHAR, region VARCHAR, date VARCHAR)
SELECT COUNT(3 AS _dart_average) FROM table_24549777_1 WHERE player = "Gary Anderson"
How man 3-dart averages did gary anderson have?
CREATE TABLE table_24549777_1 (player VARCHAR)
SELECT touchdowns FROM table_20906175_3 WHERE qb_rating = "66.6"
How many touchdowns were there with QB rating of 66.6?
CREATE TABLE table_20906175_3 (touchdowns VARCHAR, qb_rating VARCHAR)
SELECT date FROM table_name_87 WHERE winning_score = 72 - 66 - 67 - 71 = 276
Which date was the Winning Score 72-66-67-71=276?
CREATE TABLE table_name_87 (date VARCHAR, winning_score VARCHAR)
SELECT AVG(draw) FROM table_name_31 WHERE artist = "emilya valenti"
Emilya Valenti has what draw average?
CREATE TABLE table_name_31 (draw INTEGER, artist VARCHAR)
SELECT grand_finaldate FROM table_name_44 WHERE score = "30-24"
What is the grand final date for the game with a score or 30-24?
CREATE TABLE table_name_44 (grand_finaldate VARCHAR, score VARCHAR)
SELECT party FROM table_1341707_15 WHERE district = "Illinois 1"
What party did the incumbent from the Illinois 1 district belong to?
CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR)
SELECT singapore_league_cup FROM table_name_99 WHERE name = "masahiro fukasawa"
What Singapore League Cup does Masahiro Fukasawa have?
CREATE TABLE table_name_99 (singapore_league_cup VARCHAR, name VARCHAR)
SELECT network FROM table_name_8 WHERE genre = "music"
Which network's genre is music?
CREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR)
SELECT director FROM table_name_77 WHERE title = "bunker hill bunny"
Who directed Bunker Hill Bunny?
CREATE TABLE table_name_77 (director VARCHAR, title VARCHAR)
SELECT manufacturer_serial_numbers FROM table_name_86 WHERE year_s__withdrawn = "1963"
What is the manufacturer serial number of the 1963 withdrawn year?
CREATE TABLE table_name_86 (manufacturer_serial_numbers VARCHAR, year_s__withdrawn VARCHAR)
SELECT award FROM table_name_49 WHERE category = "favorite tv actor" AND recipient = "cole sprouse"
Which award show nominated Cole Sprouse for the Favorite TV Actor category?
CREATE TABLE table_name_49 (award VARCHAR, category VARCHAR, recipient VARCHAR)
SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified"
Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified?
CREATE TABLE table_name_82 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT document_id, COUNT(*) FROM Draft_Copies GROUP BY document_id HAVING COUNT(*) > 1
Which documents have more than 1 draft copies? List document id and number of draft copies.
CREATE TABLE Draft_Copies (document_id VARCHAR)
SELECT SUM(number_of_clubs) FROM table_name_30 WHERE season < 1992 AND total_wins > 3
What is the sum of the number of clubs in seasons before 1992 with more than 3 total wins?
CREATE TABLE table_name_30 (number_of_clubs INTEGER, season VARCHAR, total_wins VARCHAR)
SELECT aedt_time FROM table_name_62 WHERE away_team = "collingwood"
Name the AEDT Time which has an Away team of collingwood?
CREATE TABLE table_name_62 (aedt_time VARCHAR, away_team VARCHAR)
SELECT captaincy FROM table_name_89 WHERE appearances < 212 AND goals = 12 AND position_[a_] = "defender"
What is the captaincy for Defender that has less than 212 appearances and 12 goals?
CREATE TABLE table_name_89 (captaincy VARCHAR, appearances VARCHAR, goals VARCHAR, position_ VARCHAR, a_ VARCHAR)
SELECT label FROM table_name_14 WHERE country = "united kingdom" AND catalogue__number = "hvnlp26cd"
What is the Label of Catalogue # HVNLP26CD from United Kingdom?
CREATE TABLE table_name_14 (label VARCHAR, country VARCHAR, catalogue__number VARCHAR)
SELECT year FROM table_name_91 WHERE manager = "marty berghammer / nick allen"
Manager of marty berghammer / nick allen is what year?
CREATE TABLE table_name_91 (year VARCHAR, manager VARCHAR)
SELECT nickname FROM table_26355116_1 WHERE school = "University of Alabama"
What is the nickname of the University of Alabama?
CREATE TABLE table_26355116_1 (nickname VARCHAR, school VARCHAR)
SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = "0,43407"
What's the Yellow fertility rate when Brazil is 0,43407?
CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR)
SELECT MIN(year) FROM table_2402864_1 WHERE regular_season = "3rd, Southeast" AND league = "USL PDL"
What was the earliest year where USL PDL played in 3rd, Southeast season?
CREATE TABLE table_2402864_1 (year INTEGER, regular_season VARCHAR, league VARCHAR)
SELECT season__number FROM table_24961421_1 WHERE us_viewers__millions_ = "12.23"
What number in the season was the episode with 12.23 million viewers?
CREATE TABLE table_24961421_1 (season__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT AVG(Years_working) FROM journalist
What is the average number of years spent working as a journalist?
CREATE TABLE journalist (Years_working INTEGER)
SELECT highest_position FROM table_13805432_2 WHERE artist = "Frankie Avalon"
what's the highest position with artbeingt being frankie avalon
CREATE TABLE table_13805432_2 (highest_position VARCHAR, artist VARCHAR)
SELECT SUM(to_par) FROM table_name_16 WHERE player = "craig wood"
What was the total To Par for Craig Wood?
CREATE TABLE table_name_16 (to_par INTEGER, player VARCHAR)
SELECT school FROM table_name_86 WHERE year_joined > 1926 AND mascot = "vikings"
Which School has a Year Joined larger than 1926, and a Mascot of vikings?
CREATE TABLE table_name_86 (school VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT MAX(year) FROM table_name_57 WHERE team = "ajs" AND wins < 0
What is the most recent year for the ajs team when there are fewer than 0 wins?
CREATE TABLE table_name_57 (year INTEGER, team VARCHAR, wins VARCHAR)
SELECT 2007 FROM table_name_37 WHERE 2003 = "85"
What is 2007, when 2003 is "85"?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT COUNT(no_in_series) FROM table_2182654_3 WHERE directed_by = "Alan Taylor"
How many episodes in the series were directed by Alan Taylor?
CREATE TABLE table_2182654_3 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT surface FROM table_23297_3 WHERE year = 2001
What is the surface for the year 2001?
CREATE TABLE table_23297_3 (surface VARCHAR, year VARCHAR)
SELECT date FROM table_name_77 WHERE h_a_n = "h" AND score = "112-118"
What is Date, when H/A/N is "H", and when Score is 112-118?
CREATE TABLE table_name_77 (date VARCHAR, h_a_n VARCHAR, score VARCHAR)
SELECT result FROM table_name_30 WHERE scored > 1
What is the result of the contest with over 1 scored?
CREATE TABLE table_name_30 (result VARCHAR, scored INTEGER)
SELECT COUNT(reg_gp) FROM table_name_66 WHERE player = "daniel rahimi" AND rd__number > 3
How many Reg GP does daniel rahimi have with a rd # greater than 3?
CREATE TABLE table_name_66 (reg_gp VARCHAR, player VARCHAR, rd__number VARCHAR)
SELECT AVG(cup_goals) FROM table_name_9 WHERE league_apps > 34
How many cup goals for the season with more than 34 league apps?
CREATE TABLE table_name_9 (cup_goals INTEGER, league_apps INTEGER)
SELECT MIN(chinese) FROM table_10118412_6 WHERE filipino = 1474707
What is the the Chinese population for the state that has a Filipino population of 1474707?
CREATE TABLE table_10118412_6 (chinese INTEGER, filipino VARCHAR)
SELECT qb_rating FROM table_18686317_1 WHERE comp__percentage = "62.0"
What is the Quarterback rating of the player who got a comp percentage of 62.0?
CREATE TABLE table_18686317_1 (qb_rating VARCHAR, comp__percentage VARCHAR)
SELECT world_rank FROM table_name_81 WHERE year < 1977 AND location = "eugene"
Which World Rank has a Year smaller than 1977, and a Location of eugene?
CREATE TABLE table_name_81 (world_rank VARCHAR, year VARCHAR, location VARCHAR)
SELECT SUM(bit_depth) FROM table_name_38 WHERE color_sampling = "4:1:1"
What bit depth has 4:1:1 as the color sampling?
CREATE TABLE table_name_38 (bit_depth INTEGER, color_sampling VARCHAR)
SELECT nationality FROM table_name_96 WHERE player = "darren lockyer" AND position = "five-eighth"
What was the nationality of five-eighth player Darren Lockyer?
CREATE TABLE table_name_96 (nationality VARCHAR, player VARCHAR, position VARCHAR)
SELECT COUNT(entered_service) FROM table_name_89 WHERE locomotive = "13"
How many years entered service when there were 13 locomotives?
CREATE TABLE table_name_89 (entered_service VARCHAR, locomotive VARCHAR)
SELECT wind_power__wp_ FROM table_11347578_1 WHERE country = "China"
What is the symbol for Windpower in China?
CREATE TABLE table_11347578_1 (wind_power__wp_ VARCHAR, country VARCHAR)
SELECT loss FROM table_name_21 WHERE attendance = "29,704"
What was the loss of the game attended by 29,704?
CREATE TABLE table_name_21 (loss VARCHAR, attendance VARCHAR)
SELECT COUNT(game) FROM table_name_42 WHERE record = "30-28-4" AND march > 1
How many games ended in a record of 30-28-4, with a March more than 1?
CREATE TABLE table_name_42 (game VARCHAR, record VARCHAR, march VARCHAR)
SELECT current_conference FROM table_name_53 WHERE nickname = "lynx"
Which Current Conference has a Nickname of lynx?
CREATE TABLE table_name_53 (current_conference VARCHAR, nickname VARCHAR)
SELECT greek_designation FROM table_name_28 WHERE city = "riverside"
What's the greek designation of the city riverside?
CREATE TABLE table_name_28 (greek_designation VARCHAR, city VARCHAR)
SELECT DISTINCT lot_details FROM LOTS
Show all distinct lot details.
CREATE TABLE LOTS (lot_details VARCHAR)
SELECT MIN(l) FROM table_2233872_1 WHERE ga = 272
What was the minimum L if the GA is 272?
CREATE TABLE table_2233872_1 (l INTEGER, ga VARCHAR)
SELECT segment_c FROM table_15187735_11 WHERE series_ep = "11-02"
What is the name of series episode 11-02's segment c?
CREATE TABLE table_15187735_11 (segment_c VARCHAR, series_ep VARCHAR)
SELECT COUNT(score) FROM table_19072602_1 WHERE team_europe = "Mika Koivuniemi"
How many different scores did Team Europe get when Mika Koivuniemi played for them?
CREATE TABLE table_19072602_1 (score VARCHAR, team_europe VARCHAR)
SELECT date FROM table_name_8 WHERE score = "80-79"
What is Date, when Score is "80-79"?
CREATE TABLE table_name_8 (date VARCHAR, score VARCHAR)
SELECT candidates FROM table_1341586_44 WHERE incumbent = "Albert Bustamante"
Name all the candidates vying for Albert Bustamante's seat.
CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_73 WHERE offer_team = "philadelphia flyers" AND player = "chris gratton"
What is the result of Chris Gratton and Philadelphia Flyers as the Offer Team?
CREATE TABLE table_name_73 (result VARCHAR, offer_team VARCHAR, player VARCHAR)
SELECT award_description_s_ FROM table_name_84 WHERE year > 1994 AND date = "december 6"
Which award description has a year later than 1994 with a date of December 6?
CREATE TABLE table_name_84 (award_description_s_ VARCHAR, year VARCHAR, date VARCHAR)
SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName
Find the states where have some college students in tryout.
CREATE TABLE college (cName VARCHAR); CREATE TABLE tryout (cName VARCHAR)
SELECT finish FROM table_name_54 WHERE player = "tom weiskopf"
What was Tom Weiskopf's Finish?
CREATE TABLE table_name_54 (finish VARCHAR, player VARCHAR)
SELECT money___£__ FROM table_name_46 WHERE player = "stephen ames"
How much money has been won by Stephen Ames?
CREATE TABLE table_name_46 (money___£__ VARCHAR, player VARCHAR)
SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini"
How many points does mia martini have?
CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR)
SELECT 1 AS st_leg FROM table_name_40 WHERE team_1 = "rc cannes"
What is the 1st leg that has a Rc Cannes Team 1?
CREATE TABLE table_name_40 (team_1 VARCHAR)
SELECT MAX(laps) FROM table_name_89 WHERE rider = "ilario dionisi"
What is the most number of laps run by Ilario Dionisi?
CREATE TABLE table_name_89 (laps INTEGER, rider VARCHAR)
SELECT date_of_delivery FROM table_name_55 WHERE baby_gender = "boy" AND congresswoman = "kirsten gillibrand"
What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?
CREATE TABLE table_name_55 (date_of_delivery VARCHAR, baby_gender VARCHAR, congresswoman VARCHAR)
SELECT year_startup FROM table_name_18 WHERE operator = "albian sands" AND project_name = "jackpine mine (ph 2)"
What was the startup year for the Jackpine Mine (ph 2) project with an albian sands operator?
CREATE TABLE table_name_18 (year_startup VARCHAR, operator VARCHAR, project_name VARCHAR)
SELECT player FROM table_15353123_1 WHERE college = "Pittsburg State"
Which player went to Pittsburg State
CREATE TABLE table_15353123_1 (player VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_11803648_20 WHERE player = "Matthew Puempel"
How many rounds is the player Matthew Puempel associated with?
CREATE TABLE table_11803648_20 (round VARCHAR, player VARCHAR)
SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500"
What is the class of the Charlotte Camel gt 500 race?
CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR)
SELECT partner FROM table_name_48 WHERE score_in_the_final = "7–6, 3–6, 6–7"
Who was the partner when the final score was 7–6, 3–6, 6–7?
CREATE TABLE table_name_48 (partner VARCHAR, score_in_the_final VARCHAR)
SELECT fleet_size FROM table_name_27 WHERE easa__eu_ = "no"
What is the Fleet Size when the EASA (EU) is no?
CREATE TABLE table_name_27 (fleet_size VARCHAR, easa__eu_ VARCHAR)
SELECT score FROM table_name_43 WHERE record = "14-9"
What is the score of the team with the 14-9 record?
CREATE TABLE table_name_43 (score VARCHAR, record VARCHAR)
SELECT ground FROM table_name_88 WHERE home_team = "adelaide"
What is the ground of the game where the home team was Adelaide?
CREATE TABLE table_name_88 (ground VARCHAR, home_team VARCHAR)
SELECT COUNT(first_elected) FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens"
William Fadjo Cravens is the only candidate who was first elected in 1939.
CREATE TABLE table_1342270_5 (first_elected VARCHAR, incumbent VARCHAR)
SELECT home_team FROM table_name_66 WHERE venue = "junction oval"
What team is based at junction oval?
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_80 WHERE loss = "diegomar markwell"
Who's the opponent when Diegomar Markwell is the loss?
CREATE TABLE table_name_80 (opponent VARCHAR, loss VARCHAR)
SELECT team FROM table_name_96 WHERE circuit = "queensland raceway" AND winner = "garth tander"
What is Team, when Circuit is Queensland Raceway, and when Winner is Garth Tander?
CREATE TABLE table_name_96 (team VARCHAR, circuit VARCHAR, winner VARCHAR)
SELECT white_hat FROM table_name_98 WHERE dakota_mission = "t" AND deloria_ & _boas = "tʽ" AND ullrich = "tȟ"
Dakota Mission of t, and a Deloria & Boas of tʽ, and a Ullrich of tȟ had what white hat?
CREATE TABLE table_name_98 (white_hat VARCHAR, ullrich VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR)
SELECT white FROM table_name_20 WHERE black = "anand" AND result = "½–½" AND moves = 39 AND opening = "d37 queen's gambit declined"
What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?
CREATE TABLE table_name_20 (white VARCHAR, opening VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR)
SELECT record FROM table_name_64 WHERE time = "4:00" AND opponent = "krzysztof soszynski"
What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00?
CREATE TABLE table_name_64 (record VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT SUM(league_goals) FROM table_name_51 WHERE fa_cup_goals > 0
what is the sum of league goals when the fa cup goals is more than 0?
CREATE TABLE table_name_51 (league_goals INTEGER, fa_cup_goals INTEGER)
SELECT swimmer FROM table_name_41 WHERE time = "7:52.04"
Who got the time of 7:52.04?
CREATE TABLE table_name_41 (swimmer VARCHAR, time VARCHAR)
SELECT school FROM table_name_37 WHERE location = "peru"
Which School has a Location of peru?
CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR)