question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What's the average total viewers that has 17.6% Share?
CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR)
SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.6%"
WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE?
CREATE TABLE table_name_9 (project_management VARCHAR, social_software VARCHAR, enterprise_search VARCHAR, blogs VARCHAR, xml_forms_management_and_workflow VARCHAR)
SELECT project_management FROM table_name_9 WHERE blogs = "no" AND xml_forms_management_and_workflow = "no" AND enterprise_search = "no" AND social_software = "no"
What is the p max ( bar ) for the 6876 f bolt ( kgf )?
CREATE TABLE table_26967904_2 (p_max___bar__ INTEGER, f_bolt___kgf__ VARCHAR)
SELECT MIN(p_max___bar__) FROM table_26967904_2 WHERE f_bolt___kgf__ = 6876
List the names of all music genres.
CREATE TABLE GENRE (Name VARCHAR)
SELECT Name FROM GENRE
For college/junior/club team is brandon wheat kings (whl) mention all the player name
CREATE TABLE table_2781227_4 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT player FROM table_2781227_4 WHERE college_junior_club_team = "Brandon Wheat Kings (WHL)"
What was the largest crowd at the Brunswick Street Oval?
CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_75 WHERE venue = "brunswick street oval"
What is Since, when Transfer Fee is "£ 12m"?
CREATE TABLE table_name_48 (since VARCHAR, transfer_fee VARCHAR)
SELECT since FROM table_name_48 WHERE transfer_fee = "£ 12m"
What is Team, when Race 2 is "5"?
CREATE TABLE table_name_41 (team VARCHAR, race_2 VARCHAR)
SELECT team FROM table_name_41 WHERE race_2 = "5"
Name the opponents for round of round 5
CREATE TABLE table_name_9 (opponents VARCHAR, round VARCHAR)
SELECT opponents FROM table_name_9 WHERE round = "round 5"
What date was the record 34-41?
CREATE TABLE table_name_11 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_11 WHERE record = "34-41"
Which positions are the poles 2?
CREATE TABLE table_22056184_1 (position VARCHAR, poles VARCHAR)
SELECT position FROM table_22056184_1 WHERE poles = 2
What is Round, when Record is "4-1"?
CREATE TABLE table_name_53 (round VARCHAR, record VARCHAR)
SELECT round FROM table_name_53 WHERE record = "4-1"
How many car models are produced by each maker ? Only list the count and the maker full name .
CREATE TABLE model_list (maker VARCHAR); CREATE TABLE car_makers (fullname VARCHAR, id VARCHAR)
SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id
For the game played on November 29, who had the highest rebounds?
CREATE TABLE table_name_73 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_73 WHERE date = "november 29"
What are the earpads for the headphones that are Reference class and have MSRP of $695?
CREATE TABLE table_name_88 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR)
SELECT earpads FROM table_name_88 WHERE headphone_class = "reference" AND us_msrp = "$695"
What is the highest weight for the Farnley Stakes race?
CREATE TABLE table_name_67 (weight__kg_ INTEGER, race VARCHAR)
SELECT MAX(weight__kg_) FROM table_name_67 WHERE race = "farnley stakes"
Who was the nominee having a Tony award?
CREATE TABLE table_name_16 (nominee VARCHAR, award VARCHAR)
SELECT nominee FROM table_name_16 WHERE award = "tony award"
What is the mean number of against when the position is less than 1?
CREATE TABLE table_name_92 (against INTEGER, position INTEGER)
SELECT AVG(against) FROM table_name_92 WHERE position < 1
What driver has a stock car vehicle with a year of 1999?
CREATE TABLE table_name_71 (driver VARCHAR, type_of_vehicle VARCHAR, year VARCHAR)
SELECT driver FROM table_name_71 WHERE type_of_vehicle = "stock car" AND year = 1999
What is the circuit on 19 Apr with Craig Lowndes as the winner?
CREATE TABLE table_name_84 (circuit VARCHAR, winner VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_84 WHERE winner = "craig lowndes" AND date = "19 apr"
What draft pick number was Andy Brereton?
CREATE TABLE table_28059992_5 (pick__number INTEGER, player VARCHAR)
SELECT MIN(pick__number) FROM table_28059992_5 WHERE player = "Andy Brereton"
What is the position of pick 32?
CREATE TABLE table_name_81 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_81 WHERE pick = 32
In which season were there Wins of 29 and a Finished place of 3rd?
CREATE TABLE table_name_10 (season VARCHAR, wins VARCHAR, finish VARCHAR)
SELECT season FROM table_name_10 WHERE wins = "29" AND finish = "3rd"
Which season has a Result of 6–9?
CREATE TABLE table_name_71 (season VARCHAR, result VARCHAR)
SELECT season FROM table_name_71 WHERE result = "6–9"
What is the average points with less than 30 played?
CREATE TABLE table_name_77 (points INTEGER, played INTEGER)
SELECT AVG(points) FROM table_name_77 WHERE played < 30
Name the surface for united airlines tournament of champions final round
CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR, round VARCHAR)
SELECT surface FROM table_name_56 WHERE tournament = "united airlines tournament of champions" AND round = "final"
What was the score of Game 48?
CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_43 WHERE game = "48"
What is the L2 cache for the core i7-2635QM?
CREATE TABLE table_name_65 (l2_cache VARCHAR, model_number VARCHAR)
SELECT l2_cache FROM table_name_65 WHERE model_number = "core i7-2635qm"
What is the city in Alabama that opened in 1996?
CREATE TABLE table_name_89 (city VARCHAR, year_opened VARCHAR, state VARCHAR)
SELECT city FROM table_name_89 WHERE year_opened = "1996" AND state = "alabama"
With 10 as the points for foundation, what is the maximum points for ordinary?
CREATE TABLE table_name_97 (points_for_ordinary INTEGER, points_for_foundation VARCHAR)
SELECT MAX(points_for_ordinary) FROM table_name_97 WHERE points_for_foundation = 10
Who had the most assists and how many did they have on January 5?
CREATE TABLE table_29556461_7 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_29556461_7 WHERE date = "January 5"
What is the lowest episode number that had 4.03 million viewers?
CREATE TABLE table_27927185_1 (episode__number INTEGER, viewers__millions_ VARCHAR)
SELECT MIN(episode__number) FROM table_27927185_1 WHERE viewers__millions_ = "4.03"
Show all the activity names and the number of faculty involved in each activity.
CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)
SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID
Show distinct first and last names for all customers with an account.
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
SELECT DISTINCT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
What is the average expected life expectancy for countries in the region of Central Africa?
CREATE TABLE country (LifeExpectancy INTEGER, Region VARCHAR)
SELECT AVG(LifeExpectancy) FROM country WHERE Region = "Central Africa"
What nhl team does dwight bialowas play for?
CREATE TABLE table_1473672_2 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_1473672_2 WHERE player = "Dwight Bialowas"
What is the lowest number of wins for ben crenshaw?
CREATE TABLE table_name_87 (wins INTEGER, player VARCHAR)
SELECT MIN(wins) FROM table_name_87 WHERE player = "ben crenshaw"
What is the premiere date of the american disney xd tron uprising site?
CREATE TABLE table_29487895_2 (series_premiere VARCHAR, source_s_ VARCHAR)
SELECT series_premiere FROM table_29487895_2 WHERE source_s_ = "American Disney XD Tron Uprising Site"
What is the 1993 value of the French open?
CREATE TABLE table_name_68 (tournament VARCHAR)
SELECT 1993 FROM table_name_68 WHERE tournament = "french open"
What is the Length/Fuel of the bus with a Quantity of 30?
CREATE TABLE table_name_22 (length_fuel VARCHAR, quantity VARCHAR)
SELECT length_fuel FROM table_name_22 WHERE quantity = 30
Which Team has a Date of appointment on sep. 20, 2008?
CREATE TABLE table_name_14 (team VARCHAR, date_of_appointment VARCHAR)
SELECT team FROM table_name_14 WHERE date_of_appointment = "sep. 20, 2008"
What is the socket when the sSpec number is standard power?
CREATE TABLE table_name_96 (socket VARCHAR, sspec_number VARCHAR)
SELECT socket FROM table_name_96 WHERE sspec_number = "standard power"
How many times was something listed under content when the television was R-light?
CREATE TABLE table_15887683_19 (content VARCHAR, television_service VARCHAR)
SELECT COUNT(content) FROM table_15887683_19 WHERE television_service = "R-LIGHT"
What was the score with a goal of 16?
CREATE TABLE table_name_93 (score VARCHAR, goal VARCHAR)
SELECT score FROM table_name_93 WHERE goal = 16
Who is the opponent of the match on 3 December 1898 in venue h?
CREATE TABLE table_name_36 (opponent VARCHAR, venue VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_36 WHERE venue = "h" AND date = "3 december 1898"
Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?
CREATE TABLE table_name_86 (set_3 VARCHAR, time VARCHAR, score VARCHAR, set_2 VARCHAR)
SELECT set_3 FROM table_name_86 WHERE score = "3–2" AND set_2 = "25–23" AND time = "19:00"
What are all Tamil months when the season in English is monsoon?
CREATE TABLE table_1740431_3 (tamil_months VARCHAR, season_in_english VARCHAR)
SELECT tamil_months FROM table_1740431_3 WHERE season_in_english = "Monsoon"
Where Work is veterinarian dolittle, what is the Organization?
CREATE TABLE table_name_82 (organization VARCHAR, work VARCHAR)
SELECT organization FROM table_name_82 WHERE work = "veterinarian dolittle"
Mis-i is the nominative of what ergative?
CREATE TABLE table_name_48 (ergative VARCHAR, nominative VARCHAR)
SELECT ergative FROM table_name_48 WHERE nominative = "mis-i"
When Oscar Míguez had over 107 goals, what was the lowest he ranked?
CREATE TABLE table_name_21 (rank INTEGER, name VARCHAR, goals VARCHAR)
SELECT MIN(rank) FROM table_name_21 WHERE name = "oscar míguez" AND goals > 107
List the names of the dogs of the rarest breed and the treatment dates of them.
CREATE TABLE Dogs (name VARCHAR, dog_id VARCHAR, breed_code VARCHAR); CREATE TABLE Treatments (date_of_treatment VARCHAR, dog_id VARCHAR); CREATE TABLE Dogs (breed_code VARCHAR)
SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) LIMIT 1)
What day did the race in 1974 take place on?
CREATE TABLE table_1963459_2 (date VARCHAR, year VARCHAR)
SELECT date FROM table_1963459_2 WHERE year = 1974
What is Jonty Rhodes's batting style?
CREATE TABLE table_name_95 (batting_style VARCHAR, player VARCHAR)
SELECT batting_style FROM table_name_95 WHERE player = "jonty rhodes"
How far Venue of seoul, south korea is?
CREATE TABLE table_name_6 (distance VARCHAR, venue VARCHAR)
SELECT distance FROM table_name_6 WHERE venue = "seoul, south korea"
Tell me the origin for mi-2
CREATE TABLE table_name_57 (origin VARCHAR, versions VARCHAR)
SELECT origin FROM table_name_57 WHERE versions = "mi-2"
What is the release date of the bonus interview with Peter Purves?
CREATE TABLE table_1681535_1 (release_date VARCHAR, notes VARCHAR)
SELECT release_date FROM table_1681535_1 WHERE notes = "Bonus interview with Peter Purves"
What Time has a Year of 1984?
CREATE TABLE table_name_77 (time VARCHAR, year VARCHAR)
SELECT time FROM table_name_77 WHERE year = 1984
What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52?
CREATE TABLE table_name_85 (fa_cup_goals INTEGER, total_apps__sub_ VARCHAR, total_goals VARCHAR)
SELECT MAX(fa_cup_goals) FROM table_name_85 WHERE total_apps__sub_ = "52" AND total_goals < 5
How many people voted in the election of 1941?
CREATE TABLE table_name_79 (number_of_votes VARCHAR, election VARCHAR)
SELECT number_of_votes FROM table_name_79 WHERE election = 1941
What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team?
CREATE TABLE table_name_29 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT home FROM table_name_29 WHERE visitor = "edmonton oilers" AND date = "may 22"
What is the highest NBR number that corresponds to the J class and the road number of 1211?
CREATE TABLE table_name_29 (nbr_number INTEGER, class VARCHAR, road_number VARCHAR)
SELECT MAX(nbr_number) FROM table_name_29 WHERE class = "j" AND road_number = 1211
What was the outcome of the match with score 4–6, 3–6, 2–6?
CREATE TABLE table_22839669_1 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_22839669_1 WHERE score_in_the_final = "4–6, 3–6, 2–6"
what's the airport with % change 2005/2006 being 13.0%
CREATE TABLE table_13836704_9 (airport VARCHAR, _percentage_change_2005_2006 VARCHAR)
SELECT airport FROM table_13836704_9 WHERE _percentage_change_2005_2006 = "13.0%"
Name the year for sammo hung for ip man 2
CREATE TABLE table_15301258_1 (year VARCHAR, best_supporting_actor VARCHAR)
SELECT year FROM table_15301258_1 WHERE best_supporting_actor = "Sammo Hung for Ip Man 2"
How many runners up for the team that won in 1993?
CREATE TABLE table_name_66 (runners_up INTEGER, years_won VARCHAR)
SELECT MIN(runners_up) FROM table_name_66 WHERE years_won = "1993"
Name the athlete for 3
CREATE TABLE table_21276428_21 (athlete VARCHAR, place VARCHAR)
SELECT athlete FROM table_21276428_21 WHERE place = 3
In 1984, what was the RAvg?
CREATE TABLE table_name_51 (ravg VARCHAR, year VARCHAR)
SELECT ravg FROM table_name_51 WHERE year = "1984"
What was the home score at Lake Oval?
CREATE TABLE table_name_78 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_78 WHERE venue = "lake oval"
Which episode had 2.75 million viewers in the U.S.?
CREATE TABLE table_25740548_4 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT title FROM table_25740548_4 WHERE us_viewers__million_ = "2.75"
For the team with 39+1 points and fewer than 7 draws, how many wins were scored?
CREATE TABLE table_name_32 (wins VARCHAR, points VARCHAR, draws VARCHAR)
SELECT COUNT(wins) FROM table_name_32 WHERE points = "39+1" AND draws < 7
Show the opening year in whcih at least two churches opened.
CREATE TABLE church (open_date VARCHAR)
SELECT open_date FROM church GROUP BY open_date HAVING COUNT(*) >= 2
What was the production code of the episode that was written by michael dante dimartino and directed by lauren macmullan?
CREATE TABLE table_14562722_1 (production_code VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT production_code FROM table_14562722_1 WHERE written_by = "Michael Dante DiMartino" AND directed_by = "Lauren MacMullan"
What circuit was the FR3.5 11 series on?
CREATE TABLE table_25572068_1 (circuit VARCHAR, series VARCHAR)
SELECT circuit FROM table_25572068_1 WHERE series = "FR3.5 11"
what is the latest episode in the series that had 16.17 million u.s. viewers?
CREATE TABLE table_25997153_1 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(no_in_series) FROM table_25997153_1 WHERE us_viewers__million_ = "16.17"
What was the location for the date 7–10 october?
CREATE TABLE table_26686908_2 (city___state VARCHAR, date VARCHAR)
SELECT city___state FROM table_26686908_2 WHERE date = "7–10 October"
What is the average crowd size when the home team is North Melbourne?
CREATE TABLE table_name_36 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_36 WHERE home_team = "north melbourne"
What game had the date was it with the final score of 7-23
CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR)
SELECT date FROM table_name_35 WHERE final_score = "7-23"
What is the Date of the Player from Marshfield High School?
CREATE TABLE table_name_63 (date VARCHAR, school VARCHAR)
SELECT date FROM table_name_63 WHERE school = "marshfield high school"
What is the title of ISBN 1-84990-243-7?
CREATE TABLE table_2950964_1 (title VARCHAR, isbn VARCHAR)
SELECT title FROM table_2950964_1 WHERE isbn = "isbn 1-84990-243-7"
What is Player, when Years With Spurs is 1988-95?
CREATE TABLE table_name_7 (player VARCHAR, years_with_spurs VARCHAR)
SELECT player FROM table_name_7 WHERE years_with_spurs = "1988-95"
Name the finish for 4-4
CREATE TABLE table_25920798_2 (finish VARCHAR, vote VARCHAR)
SELECT finish FROM table_25920798_2 WHERE vote = "4-4"
What was the date for XLLP 369?
CREATE TABLE table_name_12 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_12 WHERE catalog = "xllp 369"
How many p.ret are there when kr avg is 11.3 ?
CREATE TABLE table_16912000_13 (p_ret VARCHAR, kr_avg VARCHAR)
SELECT COUNT(p_ret) FROM table_16912000_13 WHERE kr_avg = "11.3"
What are all the distinct premise types?
CREATE TABLE premises (premises_type VARCHAR)
SELECT DISTINCT premises_type FROM premises
What is the British letter with o /oʊ/?
CREATE TABLE table_name_55 (british VARCHAR, letter VARCHAR)
SELECT british FROM table_name_55 WHERE letter = "o /oʊ/"
Which year is the lowest for genre of action-adventure?
CREATE TABLE table_name_36 (year INTEGER, genre VARCHAR)
SELECT MIN(year) FROM table_name_36 WHERE genre = "action-adventure"
Who were the collor commentator(s) for ESPN before 2012?
CREATE TABLE table_name_53 (color_commentator_s_ VARCHAR, year VARCHAR, network VARCHAR)
SELECT color_commentator_s_ FROM table_name_53 WHERE year < 2012 AND network = "espn"
Who played against the Celtics on Sat. Feb. 23?
CREATE TABLE table_name_99 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_99 WHERE date = "sat. feb. 23"
What is the most common interaction type between enzymes and medicine? And how many are there?
CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR)
SELECT interaction_type, COUNT(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY COUNT(*) DESC LIMIT 1
What is the Third in the 1993-94 season where Philippe Caux was a lead?
CREATE TABLE table_name_39 (third VARCHAR, lead VARCHAR, season VARCHAR)
SELECT third FROM table_name_39 WHERE lead = "philippe caux" AND season = "1993-94"
The earliest year is 1996.
CREATE TABLE table_12077540_1 (year INTEGER)
SELECT MIN(year) FROM table_12077540_1
What is the lowest Wins with a Top-10 that is larger than 9?
CREATE TABLE table_name_40 (wins INTEGER, top_10 INTEGER)
SELECT MIN(wins) FROM table_name_40 WHERE top_10 > 9
what is romanian when nuorese sardinian is [ˈkantaza]?
CREATE TABLE table_25401_2 (romanian VARCHAR, nuorese_sardinian VARCHAR)
SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = "[ˈkantaza]"
What tournament was held on 21 May 2006?
CREATE TABLE table_name_80 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_80 WHERE date = "21 may 2006"
What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964?
CREATE TABLE table_name_67 (whenbuilt VARCHAR, name VARCHAR, builder VARCHAR, withdrawn VARCHAR)
SELECT whenbuilt FROM table_name_67 WHERE builder = "brighton" AND withdrawn = "september 1964" AND name = "blandford forum"
Who is the 1st member elected in 1620/21?
CREATE TABLE table_name_82 (elected VARCHAR)
SELECT 1 AS st_member FROM table_name_82 WHERE elected = "1620/21"
What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?
CREATE TABLE table_24096813_15 (part_number_s_ VARCHAR, tdp VARCHAR)
SELECT part_number_s_ FROM table_24096813_15 WHERE tdp = "2.9 (Max.4.1~5.4) W"
What was the overall draft pick of the player who was a db and attended college in iowa?
CREATE TABLE table_name_82 (overall VARCHAR, college VARCHAR, position VARCHAR)
SELECT overall FROM table_name_82 WHERE college = "iowa" AND position = "db"
How many years has she ranked 56 on the money list?
CREATE TABLE table_14853156_2 (year VARCHAR, money_list_rank VARCHAR)
SELECT COUNT(year) FROM table_14853156_2 WHERE money_list_rank = "56"
WHich INEGI code has a Population density (/km 2 ) smaller than 81.4 and 0.6593 Human Development Index (2000)?
CREATE TABLE table_name_17 (inegi_code INTEGER, population_density___km_2__ VARCHAR, human_development_index__2000_ VARCHAR)
SELECT AVG(inegi_code) FROM table_name_17 WHERE population_density___km_2__ < 81.4 AND human_development_index__2000_ = 0.6593