answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent' | List the project details of the project both producing patent and paper as outcomes. | CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) |
SELECT position FROM table_27631002_1 WHERE series = "Austria Formel 3 Cup" | What is the position for the austria formel 3 cup series? | CREATE TABLE table_27631002_1 (position VARCHAR, series VARCHAR) |
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Israel" | What 2011 GDP (PPP) billions of USD does Israel have? | CREATE TABLE table_2248784_4 (country VARCHAR) |
SELECT AVG(rank) FROM table_name_48 WHERE opposition = "tipperary" AND county = "limerick" AND total > 12 | In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition? | CREATE TABLE table_name_48 (rank INTEGER, total VARCHAR, opposition VARCHAR, county VARCHAR) |
SELECT team FROM table_name_75 WHERE year = 2008 | What team has a year listed of 2008? | CREATE TABLE table_name_75 (team VARCHAR, year VARCHAR) |
SELECT MAX(wickets) FROM table_name_33 WHERE best_bowling = "2/32" AND matches < 5 | what is the highest wickets when the best bowling is 2/32 and matches is less than 5? | CREATE TABLE table_name_33 (wickets INTEGER, best_bowling VARCHAR, matches VARCHAR) |
SELECT AVG(game) FROM table_name_24 WHERE date = "june 14" | What is the average Game with a Date that is june 14? | CREATE TABLE table_name_24 (game INTEGER, date VARCHAR) |
SELECT COUNT(*) FROM Templates | How many templates do we have? | CREATE TABLE Templates (Id VARCHAR) |
SELECT european FROM table_name_59 WHERE play_off = "relegated" | Which European has a Play-Off of relegated? | CREATE TABLE table_name_59 (european VARCHAR, play_off VARCHAR) |
SELECT resolution FROM table_27653752_1 WHERE pixels_per_degree__ppd_ = 69 | What's the resolution of the model with a PPD of 69? | CREATE TABLE table_27653752_1 (resolution VARCHAR, pixels_per_degree__ppd_ VARCHAR) |
SELECT finish FROM table_name_50 WHERE manager = "tom kotchman" AND record = "40-36" | what is the finish when the manager is tom kotchman and the record is 40-36? | CREATE TABLE table_name_50 (finish VARCHAR, manager VARCHAR, record VARCHAR) |
SELECT january_15_16 FROM table_25216791_3 WHERE march_27_29 = "March 29, 2006" | What was the data on January 15-16 if March 27-29 is March 29, 2006? | CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, march_27_29 VARCHAR) |
SELECT player FROM table_name_59 WHERE score = 76 - 67 - 71 = 214 | Who is the player with a 76-67-71=214 score? | CREATE TABLE table_name_59 (player VARCHAR, score VARCHAR) |
SELECT entrant FROM table_name_66 WHERE points = "49" AND chassis = "mclaren m7a" | Which entrant has 49 points and a Mclaren M7A chassis? | CREATE TABLE table_name_66 (entrant VARCHAR, points VARCHAR, chassis VARCHAR) |
SELECT MAX(series__number) FROM table_27720737_1 WHERE directed_by = "Ken Whittingham" | What is the highest series # directed by ken whittingham? | CREATE TABLE table_27720737_1 (series__number INTEGER, directed_by VARCHAR) |
SELECT score FROM table_name_35 WHERE winning_team = "wei chuan dragons" | Which Score that has a Winning team of wei chuan dragons? | CREATE TABLE table_name_35 (score VARCHAR, winning_team VARCHAR) |
SELECT COUNT(family_friendly) FROM table_14160327_4 WHERE decade = "1990s" | How many family friendly games are in the 1990s? | CREATE TABLE table_14160327_4 (family_friendly VARCHAR, decade VARCHAR) |
SELECT stadium FROM table_name_8 WHERE final_score = "26–21" | What stadium has a final score of 26–21? | CREATE TABLE table_name_8 (stadium VARCHAR, final_score VARCHAR) |
SELECT date FROM table_name_19 WHERE opponent = "@ philadelphia phillies" AND attendance = "20,072" | when has an Opponent of @ philadelphia phillies and an Attendance of 20,072? | CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR, attendance VARCHAR) |
SELECT subtitles FROM table_name_85 WHERE classifaction = "15" | What subtitles have 15 as the classification? | CREATE TABLE table_name_85 (subtitles VARCHAR, classifaction VARCHAR) |
SELECT home_team AS score FROM table_name_20 WHERE away_team = "richmond" | What is the home team score with Away team Richmond? | CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR) |
SELECT product_price FROM products WHERE NOT product_id IN (SELECT product_id FROM complaints) | Find the prices of products which has never received a single complaint. | CREATE TABLE products (product_price VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_price VARCHAR, product_id VARCHAR) |
SELECT year FROM table_name_2 WHERE title = "the love eterne" | When was The Love Eterne released? | CREATE TABLE table_name_2 (year VARCHAR, title VARCHAR) |
SELECT d_42 FROM table_name_6 WHERE d_46 = "r 26" | Name the D 42 which has a D 46 of r 26 | CREATE TABLE table_name_6 (d_42 VARCHAR, d_46 VARCHAR) |
SELECT MIN(races) FROM table_25421463_1 | What is the fewest amount of races in any season? | CREATE TABLE table_25421463_1 (races INTEGER) |
SELECT MIN(draw) FROM table_name_7 WHERE played < 14 AND lost < 8 | What is the least ties when they played less than 14 games, and a lost less than 8 of them? | CREATE TABLE table_name_7 (draw INTEGER, played VARCHAR, lost VARCHAR) |
SELECT MIN(tonnage___grt__) FROM table_name_84 WHERE date = "26 september 1940" AND ship_name = "ashantian" | Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian? | CREATE TABLE table_name_84 (tonnage___grt__ INTEGER, date VARCHAR, ship_name VARCHAR) |
SELECT COUNT(point) FROM table_name_89 WHERE team = "happy valley" AND game < 14 | How many points did Happy Valley score before game 14? | CREATE TABLE table_name_89 (point VARCHAR, team VARCHAR, game VARCHAR) |
SELECT format FROM table_name_86 WHERE catalog = "2508668" | What is the Format of the release with Catalog number 2508668? | CREATE TABLE table_name_86 (format VARCHAR, catalog VARCHAR) |
SELECT cpu FROM table_11703336_1 WHERE year_released = "1993" | What is the cpu of the calculator released in 1993? | CREATE TABLE table_11703336_1 (cpu VARCHAR, year_released VARCHAR) |
SELECT COUNT(height) FROM table_name_36 WHERE current_club = "alba berlin" AND player = "patrick femerling" | What is the height of Patrick Femerling, of the Alba Berlin club? | CREATE TABLE table_name_36 (height VARCHAR, current_club VARCHAR, player VARCHAR) |
SELECT winnings FROM table_1708014_1 WHERE poles = 0 AND position = "14th" | When the poles are 0 and the position is 14th, how much are the winnings? | CREATE TABLE table_1708014_1 (winnings VARCHAR, poles VARCHAR, position VARCHAR) |
SELECT district FROM table_1342256_40 WHERE incumbent = "James P. Richards" | What is the district for james p. richards? | CREATE TABLE table_1342256_40 (district VARCHAR, incumbent VARCHAR) |
SELECT chassis FROM table_name_35 WHERE year = 1974 AND entrant = "goldie hexagon racing" | Which chassis is from 1974 and was an entrant of Goldie Hexagon racing? | CREATE TABLE table_name_35 (chassis VARCHAR, year VARCHAR, entrant VARCHAR) |
SELECT COUNT(date) FROM table_name_8 WHERE builder = "laconia car company" AND number = "63-68" | How many Dates have a Builder of laconia car company, and a Number of 63-68? | CREATE TABLE table_name_8 (date VARCHAR, builder VARCHAR, number VARCHAR) |
SELECT team__number1 FROM table_name_71 WHERE team__number2 = "kalise gran canaria" | Who was the first team when the second team was Kalise Gran Canaria? | CREATE TABLE table_name_71 (team__number1 VARCHAR, team__number2 VARCHAR) |
SELECT afc_cup FROM table_name_17 WHERE name = "masahiro fukasawa" | Which AFC cup does Masahiro Fukasawa have? | CREATE TABLE table_name_17 (afc_cup VARCHAR, name VARCHAR) |
SELECT money_list_rank FROM table_22081847_1 WHERE earnings__$_ = "309,886" | If the earning amount is $309,886, what is the money list ranking? | CREATE TABLE table_22081847_1 (money_list_rank VARCHAR, earnings__$_ VARCHAR) |
SELECT MAX(draws) FROM table_name_45 WHERE losses < 18 AND team = "north melbourne" AND season > 1926 | What is the highest Draws with less than 18 losses for north melbourne later than 1926? | CREATE TABLE table_name_45 (draws INTEGER, season VARCHAR, losses VARCHAR, team VARCHAR) |
SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium" | What's the attendance numbers for veterans stadium? | CREATE TABLE table_name_17 (attendance VARCHAR, game_site VARCHAR) |
SELECT COUNT(attendance) FROM table_name_71 WHERE score = "4–0" | Score of 4–0 had what attendance number? | CREATE TABLE table_name_71 (attendance VARCHAR, score VARCHAR) |
SELECT COUNT(interview) FROM table_name_19 WHERE country = "louisiana" AND swimsuit > 9.1 | What is the interview number in Louisiana, and the swimsuit number is more than 9.1? | CREATE TABLE table_name_19 (interview VARCHAR, country VARCHAR, swimsuit VARCHAR) |
SELECT mascot FROM table_name_38 WHERE previous_conference = "independents" AND location = "akron" | Which Mascot has a Previous conference of independents, and a Location of akron? | CREATE TABLE table_name_38 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR) |
SELECT icao FROM table_name_8 WHERE airline = "asiana airlines" | What is the ICAO for Asiana Airlines? | CREATE TABLE table_name_8 (icao VARCHAR, airline VARCHAR) |
SELECT SUM(touchdowns) FROM table_name_31 WHERE field_goals = 0 AND player = "joe maddock" AND points < 5 | What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing? | CREATE TABLE table_name_31 (touchdowns INTEGER, points VARCHAR, field_goals VARCHAR, player VARCHAR) |
SELECT COUNT(swimsuit) FROM table_name_19 WHERE average < 8.823 AND evening_gown < 8.69 AND interview = 8.27 | What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27? | CREATE TABLE table_name_19 (swimsuit VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) |
SELECT COUNT(urban_population__2010_) FROM table_16489766_2 WHERE pinyin = "Chángchūn" | What is the total urban population of the city with the pinyin translation chángchūn? | CREATE TABLE table_16489766_2 (urban_population__2010_ VARCHAR, pinyin VARCHAR) |
SELECT goals FROM table_name_29 WHERE round = "round 15" | What is the goals for Round 15? | CREATE TABLE table_name_29 (goals VARCHAR, round VARCHAR) |
SELECT SUM(matches) FROM table_name_7 WHERE goals = 103 AND rank > 9 | Can you tell me the sum of Matches that has the Goals of 103, and the Rank larger than 9? | CREATE TABLE table_name_7 (matches INTEGER, goals VARCHAR, rank VARCHAR) |
SELECT season FROM table_1670921_1 WHERE wicket = "7th" | Which season reported wickets of 7th? | CREATE TABLE table_1670921_1 (season VARCHAR, wicket VARCHAR) |
SELECT year__ceremony_ FROM table_10321805_1 WHERE original_title = "La leggenda del santo bevitore" | What year was a movie with the original title La Leggenda del Santo Bevitore submitted? | CREATE TABLE table_10321805_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT team FROM table_name_19 WHERE position = "ss" AND player = "rich mckinney" | What is SS Player Rich McKinney's Team? | CREATE TABLE table_name_19 (team VARCHAR, position VARCHAR, player VARCHAR) |
SELECT COUNT(population__2011_) FROM table_2562572_35 WHERE settlement = "Mihajlovo" | Name the population 2011 for mihajlovo | CREATE TABLE table_2562572_35 (population__2011_ VARCHAR, settlement VARCHAR) |
SELECT COUNT(round) FROM table_name_13 WHERE name = "jamaal charles" | How many rounds does Jamaal Charles have? | CREATE TABLE table_name_13 (round VARCHAR, name VARCHAR) |
SELECT MIN(events) FROM table_18888159_1 WHERE country = "Japan" | Name the least events for japan | CREATE TABLE table_18888159_1 (events INTEGER, country VARCHAR) |
SELECT competition FROM table_name_84 WHERE date = "7 june 1999" | What was the competition on 7 June 1999? | CREATE TABLE table_name_84 (competition VARCHAR, date VARCHAR) |
SELECT COUNT(grand_prix) FROM table_1139087_2 WHERE constructor = "McLaren - Honda" AND fastest_lap = "Nigel Mansell" | How many events did nigel mansell drive the fastest and a mclaren - honda win? | CREATE TABLE table_1139087_2 (grand_prix VARCHAR, constructor VARCHAR, fastest_lap VARCHAR) |
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = –14(70 - 68 - 67 = 205) | What was the margin of victory when the winning score was –14 (70-68-67=205)? | CREATE TABLE table_name_59 (margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT attendance FROM table_name_25 WHERE tie_no = "15" | Which Attendance has a Tie # of 15? | CREATE TABLE table_name_25 (attendance VARCHAR, tie_no VARCHAR) |
SELECT AVG(date) FROM table_name_19 WHERE opponent = "detroit red wings" | What is the average date of the game with the Detroit Red Wings as the opponent? | CREATE TABLE table_name_19 (date INTEGER, opponent VARCHAR) |
SELECT MAX(top_10) FROM table_name_46 WHERE wins > 0 | What is the highest number of top-10s in events with more than 0 wins? | CREATE TABLE table_name_46 (top_10 INTEGER, wins INTEGER) |
SELECT chassis FROM table_name_74 WHERE engine = "volkswagen" AND driver = "rahel frey" | What is the chassis of rahel frey's volkswagen engine? | CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR) |
SELECT launch_date_time__utc_ FROM table_name_57 WHERE payload = "gsat-4" | Tell me the launch date/time for payload of gsat-4 | CREATE TABLE table_name_57 (launch_date_time__utc_ VARCHAR, payload VARCHAR) |
SELECT position_in_2013 FROM table_1560673_1 WHERE first_season = 2014 | What position is the player whose first year is 2014 | CREATE TABLE table_1560673_1 (position_in_2013 VARCHAR, first_season VARCHAR) |
SELECT band FROM table_name_76 WHERE ratio = "9/9" | Which Band has a Ratio of 9/9? | CREATE TABLE table_name_76 (band VARCHAR, ratio VARCHAR) |
SELECT MIN(gdp_per_cap__2003), _in_€_ FROM table_1067441_1 WHERE province = "Friesland" | What is Friesland's gdp per capita? | CREATE TABLE table_1067441_1 (_in_€_ VARCHAR, gdp_per_cap__2003 INTEGER, province VARCHAR) |
SELECT base FROM table_name_59 WHERE company = "theatro technis karolos koun" | Which base has a company of Theatro Technis Karolos Koun? | CREATE TABLE table_name_59 (base VARCHAR, company VARCHAR) |
SELECT date FROM table_name_19 WHERE winning_score = −9(70 - 64 - 70 = 203) | Which Date has a Winning score of −9 (70-64-70=203)? | CREATE TABLE table_name_19 (date VARCHAR, winning_score VARCHAR) |
SELECT s_wicket FROM table_name_51 WHERE player = "shaun young" | What is the s wicket value associated with Shaun Young? | CREATE TABLE table_name_51 (s_wicket VARCHAR, player VARCHAR) |
SELECT maximum_memory FROM table_name_10 WHERE standard_memory = "16 mb" | What is the maximum memory of the model that has a standard memory of 16 mb? | CREATE TABLE table_name_10 (maximum_memory VARCHAR, standard_memory VARCHAR) |
SELECT ergative FROM table_name_33 WHERE dative = "chven" | What is the ergative for the dative chven? | CREATE TABLE table_name_33 (ergative VARCHAR, dative VARCHAR) |
SELECT player FROM table_name_40 WHERE country = "united states" AND year_s__won = "1976" | What is Player, when Country is "United States", and when Year(s) Won is "1976"? | CREATE TABLE table_name_40 (player VARCHAR, country VARCHAR, year_s__won VARCHAR) |
SELECT player FROM table_name_92 WHERE place = "t9" AND score = 73 - 67 - 74 - 71 = 285 | What T9 Place Player had a Score of 73-67-74-71=285? | CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, score VARCHAR) |
SELECT SUM(crowd) FROM table_name_49 WHERE venue = "windy hill" | What was the crowd when the VFL played Windy Hill? | CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR) |
SELECT score1 FROM table_name_85 WHERE ground = "h" | What is the score 1 with a h ground? | CREATE TABLE table_name_85 (score1 VARCHAR, ground VARCHAR) |
SELECT to_par FROM table_name_30 WHERE money___£__ = "200,000" AND country = "australia" | Name the to par with money of 200,000 for australia | CREATE TABLE table_name_30 (to_par VARCHAR, money___£__ VARCHAR, country VARCHAR) |
SELECT home FROM table_name_18 WHERE date = "14 december 2002" | WHich Home is on 14 december 2002? | CREATE TABLE table_name_18 (home VARCHAR, date VARCHAR) |
SELECT MIN(attendance) FROM table_name_18 WHERE league_position = "1st" AND opponents = "west ham united" | When in the 1st league position, how many people watch as they faced West Ham United? | CREATE TABLE table_name_18 (attendance INTEGER, league_position VARCHAR, opponents VARCHAR) |
SELECT MAX(game) FROM table_11960610_10 WHERE team = "San Antonio" | What is San Antonio game number? | CREATE TABLE table_11960610_10 (game INTEGER, team VARCHAR) |
SELECT COUNT(wind__m_s_) FROM table_1231316_6 WHERE athlete = "Sunday Emmanuel" | Name the total number of wind m/s for sunday emmanuel | CREATE TABLE table_1231316_6 (wind__m_s_ VARCHAR, athlete VARCHAR) |
SELECT power__kw_ FROM table_12547903_3 WHERE callsign = "DZYT" | How much power was used when the callsign was DZYT? | CREATE TABLE table_12547903_3 (power__kw_ VARCHAR, callsign VARCHAR) |
SELECT "inventor" FROM table_name_2 WHERE habit = "spur" AND pattern = "stripe" AND mutated_from = "redsport type 2" | Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit? | CREATE TABLE table_name_2 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR) |
SELECT AVG(played) FROM table_name_37 WHERE points < 8 | What is the average played for less than 8 points? | CREATE TABLE table_name_37 (played INTEGER, points INTEGER) |
SELECT MAX(finals_apps) FROM table_21220720_1 | Name the mosst finals apps | CREATE TABLE table_21220720_1 (finals_apps INTEGER) |
SELECT COUNT(total) FROM table_name_50 WHERE to_par = 7 | What is the total number of Total, when To Par is "7"? | CREATE TABLE table_name_50 (total VARCHAR, to_par VARCHAR) |
SELECT written_by FROM table_name_36 WHERE no_in_series = 24 | Who was the number 24 series written by? | CREATE TABLE table_name_36 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT club_province FROM table_name_75 WHERE position = "centre" AND caps = 27 | Which Club/province has a Position of centre, and Caps of 27? | CREATE TABLE table_name_75 (club_province VARCHAR, position VARCHAR, caps VARCHAR) |
SELECT performer_2 FROM table_14934885_1 WHERE episode = 5 | Who is the second performer in episode 5? | CREATE TABLE table_14934885_1 (performer_2 VARCHAR, episode VARCHAR) |
SELECT score FROM table_name_80 WHERE decision = "dipietro" AND visitor = "ny islanders" AND home = "colorado" | Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado | CREATE TABLE table_name_80 (score VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR) |
SELECT MAX(population__2006_) FROM table_name_12 WHERE mother_tongue = "romanian" | How many people ha Romanian as their mother tongue in 2006? | CREATE TABLE table_name_12 (population__2006_ INTEGER, mother_tongue VARCHAR) |
SELECT season FROM table_name_33 WHERE postseason = "promoted runner-up" | Which Season has a Postseason of promoted runner-up? | CREATE TABLE table_name_33 (season VARCHAR, postseason VARCHAR) |
SELECT 2009 FROM table_name_83 WHERE 2006 = "a" AND 2011 = "sf" | Which 2009 has a 2006 of A, and a 2011 of sf? | CREATE TABLE table_name_83 (Id VARCHAR) |
SELECT COUNT(draws) FROM table_18594107_1 WHERE scored = 25 | How many draws occurred when 25 points were scored? | CREATE TABLE table_18594107_1 (draws VARCHAR, scored VARCHAR) |
SELECT COUNT(position_in_table) FROM table_26914759_3 WHERE incoming_manager = "Gary Megson" | How many teams had gary megson as an incoming manager | CREATE TABLE table_26914759_3 (position_in_table VARCHAR, incoming_manager VARCHAR) |
SELECT format FROM table_name_42 WHERE location = "taipei" | What event did he compete in at Taipei? | CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR) |
SELECT score FROM table_name_30 WHERE match_no = "15" | What is the score of match 15? | CREATE TABLE table_name_30 (score VARCHAR, match_no VARCHAR) |
SELECT director FROM table_name_47 WHERE title = "transylvania 6-5000" | Name the director who has title of transylvania 6-5000 | CREATE TABLE table_name_47 (director VARCHAR, title VARCHAR) |
SELECT COUNT(liquidat__) AS °c_ FROM table_name_94 WHERE purpose = "dual (machine & hand composition)" | How many Liquidat (c) have a purpose of dual (machine & hand composition)? | CREATE TABLE table_name_94 (liquidat__ VARCHAR, purpose VARCHAR) |
SELECT season AS premiere FROM table_1145977_2 WHERE viewers__in_millions_ = "14.71" | When did the season air where the viewership was 14.71 million? | CREATE TABLE table_1145977_2 (season VARCHAR, viewers__in_millions_ VARCHAR) |
SELECT COUNT(density__people_km_2__) FROM table_name_95 WHERE area__km_2__ > 1.38 AND population__2012_ > 12924 | What is the density of an area that is 1.38km and has a population more than 12924? | CREATE TABLE table_name_95 (density__people_km_2__ VARCHAR, area__km_2__ VARCHAR, population__2012_ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.