answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = "Presentation" | What are the template ids with template type description "Presentation". | CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR); CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR) |
SELECT MIN(attendance) FROM table_name_97 WHERE home = "los angeles" | What is the least number of people to attend a game when Los Angeles was the home team? | CREATE TABLE table_name_97 (attendance INTEGER, home VARCHAR) |
SELECT english FROM table_name_26 WHERE dutch = "tong" | Which English has Dutch of tong? | CREATE TABLE table_name_26 (english VARCHAR, dutch VARCHAR) |
SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = "+15%" | What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15% | CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR) |
SELECT COUNT(silver) FROM table_name_4 WHERE rank = 7 | How much Silver has a Rank of 7? | CREATE TABLE table_name_4 (silver VARCHAR, rank VARCHAR) |
SELECT attendance FROM table_name_48 WHERE home_team = "shrewsbury town" | What is the attendance date of the game home team Shrewsbury Town played? | CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR) |
SELECT ben_tahir FROM table_11447995_2 WHERE bello = "51" | What is Ben-Tahir when Bello is 51? | CREATE TABLE table_11447995_2 (ben_tahir VARCHAR, bello VARCHAR) |
SELECT tournament FROM table_name_93 WHERE 2010 = "q2" AND 2009 = "1r" | What is the tournament when 2010 is q2, and 2009 is 1r? | CREATE TABLE table_name_93 (tournament VARCHAR) |
SELECT record FROM table_name_33 WHERE home = "nuggets" | What is the record when the Nuggets are the home team? | CREATE TABLE table_name_33 (record VARCHAR, home VARCHAR) |
SELECT COUNT(week) FROM table_name_57 WHERE date = "september 17, 2000" | How many weeks did a game happen on September 17, 2000? | CREATE TABLE table_name_57 (week VARCHAR, date VARCHAR) |
SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = "Tim Schlattmann" | What's the series number of the episode written by Tim Schlattmann? | CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR) |
SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez' | Find the names of all directors whose movies are rated by Sarah Martinez. | CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (director VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) |
SELECT north_america FROM table_name_83 WHERE japan = "january 23, 2013" | Tell me north america for january 23, 2013 | CREATE TABLE table_name_83 (north_america VARCHAR, japan VARCHAR) |
SELECT location_attendance FROM table_17311759_6 WHERE team = "Orlando" | Where was the game held and what was the attendance when they played Orlando? | CREATE TABLE table_17311759_6 (location_attendance VARCHAR, team VARCHAR) |
SELECT COUNT(team) FROM table_27713030_16 WHERE high_rebounds = "Chris Bosh , LeBron James (8)" | How many teams were there when chris bosh , lebron james (8) had the high rebounds? | CREATE TABLE table_27713030_16 (team VARCHAR, high_rebounds VARCHAR) |
SELECT team FROM table_name_36 WHERE run_1 = "1:17.44" | Which team has run 1 of 1:17.44? | CREATE TABLE table_name_36 (team VARCHAR, run_1 VARCHAR) |
SELECT production_code FROM table_20726262_3 WHERE usviewers__million_ = "3.38" | What was the production code for the episode with 3.38 million viewers? | CREATE TABLE table_20726262_3 (production_code VARCHAR, usviewers__million_ VARCHAR) |
SELECT 1 AS st_party FROM table_name_34 WHERE election = "1857" | What is the 1st party during the 1857 election? | CREATE TABLE table_name_34 (election VARCHAR) |
SELECT pole_position FROM table_name_33 WHERE team = "arting team impul" AND round = 3 | On round 3 for Arting Team Impul, who held pole position? | CREATE TABLE table_name_33 (pole_position VARCHAR, team VARCHAR, round VARCHAR) |
SELECT result FROM table_name_98 WHERE category = "best orchestrations" | What is the result for the best orchestrations category? | CREATE TABLE table_name_98 (result VARCHAR, category VARCHAR) |
SELECT MAX(Population), MIN(Population) FROM county | Return the maximum and minimum population among all counties. | CREATE TABLE county (Population INTEGER) |
SELECT opponent FROM table_name_20 WHERE date = "april 14" | Which opponent has a Date of april 14? | CREATE TABLE table_name_20 (opponent VARCHAR, date VARCHAR) |
SELECT h___a FROM table_name_4 WHERE date = "29 july 1992" | What was the H/A on 29 july 1992? | CREATE TABLE table_name_4 (h___a VARCHAR, date VARCHAR) |
SELECT undecided FROM table_name_51 WHERE goldberg = "6%" | What is the undecided percentage of the poll where Goldberg had 6%? | CREATE TABLE table_name_51 (undecided VARCHAR, goldberg VARCHAR) |
SELECT MIN(crowd) FROM table_name_14 WHERE away_team = "carlton" | What was the smallest crowd for a Carlton away game? | CREATE TABLE table_name_14 (crowd INTEGER, away_team VARCHAR) |
SELECT place FROM table_name_84 WHERE score = 66 AND country = "united states" AND player = "dudley hart" | What is Place, when Score is "66", when Country is "United States", and when Player is "Dudley Hart"? | CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR) |
SELECT record FROM table_14951643_1 WHERE result = "W 21–7" | what's the record with result being w 21–7 | CREATE TABLE table_14951643_1 (record VARCHAR, result VARCHAR) |
SELECT 2009 FROM table_name_51 WHERE tournament = "french open" | Which 2009 tournament was french open? | CREATE TABLE table_name_51 (tournament VARCHAR) |
SELECT MAX(laps) FROM table_name_9 WHERE grid > 9 AND driver = "jan heylen" | Name the most laps for grid more than 9 and the driver being jan heylen | CREATE TABLE table_name_9 (laps INTEGER, grid VARCHAR, driver VARCHAR) |
SELECT ihsaa_football_class FROM table_name_17 WHERE enrollment = 406 | Which IHSAA Football Class has an Enrollment of 406? | CREATE TABLE table_name_17 (ihsaa_football_class VARCHAR, enrollment VARCHAR) |
SELECT COUNT(points) FROM table_25352324_5 WHERE player = "Sophia Witherspoon" | How many values for points have Sophia Witherspoon as the player? | CREATE TABLE table_25352324_5 (points VARCHAR, player VARCHAR) |
SELECT MAX(may_2012) FROM table_name_26 WHERE may_2010 < 3 | In May 2010, which party had a turnout of less than 3, but also the hightest turnout in May 2012? | CREATE TABLE table_name_26 (may_2012 INTEGER, may_2010 INTEGER) |
SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell" | In 1955 which party did Thomas Mitchell belong to? | CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR) |
SELECT name FROM table_name_38 WHERE reported_age = "111 years, 66 days" | Who has a reported age of 111 years, 66 days? | CREATE TABLE table_name_38 (name VARCHAR, reported_age VARCHAR) |
SELECT title FROM table_26448179_4 WHERE us_viewers__millions_ = "3.2" | What is the title of the episode watched by 3.2 million viewers? | CREATE TABLE table_26448179_4 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT name FROM table_name_31 WHERE title = "ruler" | Who held the title of Ruler? | CREATE TABLE table_name_31 (name VARCHAR, title VARCHAR) |
SELECT season FROM table_27631002_1 WHERE f_laps = 0 AND races = 2 | Which season had f/laps is 0 and races is 2? | CREATE TABLE table_27631002_1 (season VARCHAR, f_laps VARCHAR, races VARCHAR) |
SELECT AVG(bronze) FROM table_name_97 WHERE gold < 16 AND rank = "10" AND nation = "italy" | Which Bronze has a Gold smaller than 16, a Rank of 10, and a Nation of italy? | CREATE TABLE table_name_97 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR) |
SELECT series FROM table_name_60 WHERE saturday = "alice levine jamie east" | In what series did Alice Levine Jamie East give a presentation on Saturday? | CREATE TABLE table_name_60 (series VARCHAR, saturday VARCHAR) |
SELECT team FROM table_name_46 WHERE constructor = "yamaha" | Who does Yamaha Construct for? | CREATE TABLE table_name_46 (team VARCHAR, constructor VARCHAR) |
SELECT result FROM table_25030512_24 WHERE incumbent = "Barney Frank" | Name the result for barney frank | CREATE TABLE table_25030512_24 (result VARCHAR, incumbent VARCHAR) |
SELECT time FROM table_name_81 WHERE bike = "yamaha yzf-r6" AND grid > 1 AND rider = "david salom" | What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was larger than 1? | CREATE TABLE table_name_81 (time VARCHAR, rider VARCHAR, bike VARCHAR, grid VARCHAR) |
SELECT SUM(wins) FROM table_name_79 WHERE team = "sweden" AND played < 5 | What is the sum of Wins, when Team is Sweden, and when Played is less than 5? | CREATE TABLE table_name_79 (wins INTEGER, team VARCHAR, played VARCHAR) |
SELECT manufacturer FROM table_name_93 WHERE grid = "11" | Which manufacturer is grid 11? | CREATE TABLE table_name_93 (manufacturer VARCHAR, grid VARCHAR) |
SELECT COUNT(engine) FROM table_15491596_1 WHERE no = 48 | How many cars used number 48? | CREATE TABLE table_15491596_1 (engine VARCHAR, no VARCHAR) |
SELECT MAX(live_births_2006) FROM table_name_6 WHERE county = "cumbria" AND tfr_2006 > 1.76 | In 2006, what is the highest number for Live births in the County of Cumbria that has a TFR larger than 1.76? | CREATE TABLE table_name_6 (live_births_2006 INTEGER, county VARCHAR, tfr_2006 VARCHAR) |
SELECT finish FROM table_name_91 WHERE to_par = "+2" | What was the finish for the golfer with a To par of +2? | CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR) |
SELECT MAX(vote__percentage) FROM table_name_53 WHERE election = "1946" | Name the most vote % with election of 1946 | CREATE TABLE table_name_53 (vote__percentage INTEGER, election VARCHAR) |
SELECT Party, COUNT(*) FROM representative GROUP BY Party | What are the different parties of representative? Show the party name and the number of representatives in each party. | CREATE TABLE representative (Party VARCHAR) |
SELECT record FROM table_name_42 WHERE score = "7–5" | What was the record at the game with a score of 7–5? | CREATE TABLE table_name_42 (record VARCHAR, score VARCHAR) |
SELECT MIN(prize_money___) AS $__ FROM table_name_96 WHERE events = 21 | What is the least amount of prize money when there are 21 events? | CREATE TABLE table_name_96 (prize_money___ INTEGER, events VARCHAR) |
SELECT time FROM table_name_58 WHERE track_number < 4 AND song_title = "you're my everything" | Name the time with track number less than 4 for you're my everything | CREATE TABLE table_name_58 (time VARCHAR, track_number VARCHAR, song_title VARCHAR) |
SELECT milan___san_remo FROM table_name_81 WHERE liège_bastogne_liège = "danilo di luca ( ita )" | Name the Milan – San Remo which has a Liège–Bastogne–Liège of danilo di luca ( ita )? | CREATE TABLE table_name_81 (milan___san_remo VARCHAR, liège_bastogne_liège VARCHAR) |
SELECT to_par FROM table_name_93 WHERE player = "retief goosen" | what is the to par for retief goosen? | CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR) |
SELECT lineup FROM table_name_12 WHERE match = "27" | What is the Lineup from a Match that is 27? | CREATE TABLE table_name_12 (lineup VARCHAR, match VARCHAR) |
SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 1996 | Whose term expired in 1996 and was from the province of Central Highlands? | CREATE TABLE table_name_74 (name VARCHAR, province VARCHAR, term_expires VARCHAR) |
SELECT devices_per_channel FROM table_name_19 WHERE name = "sata revision 3.0" | What is the Devices per channel where the Name is sata revision 3.0? | CREATE TABLE table_name_19 (devices_per_channel VARCHAR, name VARCHAR) |
SELECT MIN(mccain_number) FROM table_20799587_1 WHERE county = "Scott" | How many votes did McCain get in Scott? | CREATE TABLE table_20799587_1 (mccain_number INTEGER, county VARCHAR) |
SELECT COUNT(DISTINCT client) FROM web_client_accelerator | How many different kinds of clients are supported by the web clients accelerators? | CREATE TABLE web_client_accelerator (client VARCHAR) |
SELECT result FROM table_name_50 WHERE week = 8 | What was the Result on Week 8? | CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR) |
SELECT mountains_classification FROM table_28538368_2 WHERE general_classification = "Alberto Contador Kanstantsin Sivtsov" AND points_classification = "Alessandro Petacchi" AND winner = "Mark Cavendish" | When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification? | CREATE TABLE table_28538368_2 (mountains_classification VARCHAR, winner VARCHAR, general_classification VARCHAR, points_classification VARCHAR) |
SELECT service_charge FROM table_name_38 WHERE number_made = 456 | What is the service charge of the boat howitzers with 456 made? | CREATE TABLE table_name_38 (service_charge VARCHAR, number_made VARCHAR) |
SELECT candidates FROM table_1342256_32 WHERE district = "New York 29" | Who are the contenders In the New York 29 polling area race? | CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR) |
SELECT COUNT(rank) FROM table_26375386_16 WHERE vote_percentage = "9.5%" | How many couples had a vote percentage of 9.5%? | CREATE TABLE table_26375386_16 (rank VARCHAR, vote_percentage VARCHAR) |
SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18' | What are the staff roles of the staff who | CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR, date_to VARCHAR) |
SELECT COUNT(tournament) FROM table_11622840_1 WHERE score = "206 (-7)" | How many tournaments recorded a score of 206 (-7)? | CREATE TABLE table_11622840_1 (tournament VARCHAR, score VARCHAR) |
SELECT MIN(league_cup) FROM table_name_71 WHERE premier_league = 1 AND total < 5 | What is the lowest league cup with a premier League of 1, and the total is less than 5? | CREATE TABLE table_name_71 (league_cup INTEGER, premier_league VARCHAR, total VARCHAR) |
SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984 | Name the annual rainfail for 2002 population being 493984 | CREATE TABLE table_22854436_1 (average_annual_rainfall__mm_ VARCHAR, population__2002_census_data_ VARCHAR) |
SELECT ethnic_group FROM table_name_94 WHERE buddhist = "0.19%" | Name the ethnic group with a buddhist of 0.19% | CREATE TABLE table_name_94 (ethnic_group VARCHAR, buddhist VARCHAR) |
SELECT SUM(roll) FROM table_name_53 WHERE area = "karaka" | What was the sum roll of Karaka area? | CREATE TABLE table_name_53 (roll INTEGER, area VARCHAR) |
SELECT original_air_date FROM table_25716399_1 WHERE us_viewers__millions_ = "5.60" | What was the original air date where there were u.s. viewers (millions) is 5.60? | CREATE TABLE table_25716399_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT date FROM table_name_25 WHERE week = 4 | What day did they play on week 4? | CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR) |
SELECT points_for FROM table_name_50 WHERE club = "cambrian welfare rfc" | How many pints does the Cambrian Welfare RFC have? | CREATE TABLE table_name_50 (points_for VARCHAR, club VARCHAR) |
SELECT number FROM table_14125006_1 WHERE astronaut = "Yurchikhin Fyodor Yurchikhin" | What's Yurchikhin Fyodor Yurchikhin's number? | CREATE TABLE table_14125006_1 (number VARCHAR, astronaut VARCHAR) |
SELECT gold FROM table_name_2 WHERE event = "time trial details" AND silver = "simon richardson great britain (gbr)" | Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)? | CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR) |
SELECT opponent FROM table_name_4 WHERE round = "1" AND event = "the ultimate fighter 2 finale" | Who was the opponent in the 1 round fight in the Ultimate Fighter 2 Finale? | CREATE TABLE table_name_4 (opponent VARCHAR, round VARCHAR, event VARCHAR) |
SELECT county FROM table_name_36 WHERE median_household_income = "$46,872" | What County has a Median household income of $46,872? | CREATE TABLE table_name_36 (county VARCHAR, median_household_income VARCHAR) |
SELECT name FROM table_name_33 WHERE qual_2 = "1:46.025" | What name has a qual 2 of 1:46.025? | CREATE TABLE table_name_33 (name VARCHAR, qual_2 VARCHAR) |
SELECT city_of_license FROM table_name_7 WHERE call_sign = "k215es" | Name the city of license for call sign of k215es | CREATE TABLE table_name_7 (city_of_license VARCHAR, call_sign VARCHAR) |
SELECT MAX(cuts_made) FROM table_24330912_1 WHERE top_10s = 0 | When 0 is the top 10's what is the highest amount of cuts made? | CREATE TABLE table_24330912_1 (cuts_made INTEGER, top_10s VARCHAR) |
SELECT COUNT(date) FROM table_12206918_2 WHERE opponent = "Pernell Whitaker" | How many times was pernell whitaker an opponent? | CREATE TABLE table_12206918_2 (date VARCHAR, opponent VARCHAR) |
SELECT gross_mw FROM table_name_56 WHERE operation_start = "2015" | Operation start of 2015 has what gross mw? | CREATE TABLE table_name_56 (gross_mw VARCHAR, operation_start VARCHAR) |
SELECT result FROM table_name_34 WHERE date = "16 november 2003" | What was the result on 16 November 2003? | CREATE TABLE table_name_34 (result VARCHAR, date VARCHAR) |
SELECT MIN(attendance) FROM table_26401898_2 | Name the most attendance | CREATE TABLE table_26401898_2 (attendance INTEGER) |
SELECT COUNT(sp) + fs FROM table_name_28 WHERE places = 60 AND points > 151.66 | Name the total number of SP+FS for places of 60 and points more than 151.66 | CREATE TABLE table_name_28 (fs VARCHAR, sp VARCHAR, places VARCHAR, points VARCHAR) |
SELECT SUM(founded) FROM table_name_18 WHERE stadium = "hiram bithorn stadium" AND club = "atlético de san juan fc" | What year was the team Club of atlético de san juan fc who plays at hiram bithorn stadium founded. | CREATE TABLE table_name_18 (founded INTEGER, stadium VARCHAR, club VARCHAR) |
SELECT club FROM table_name_27 WHERE runners_up = "13" | Which club had 13 runners-up? | CREATE TABLE table_name_27 (club VARCHAR, runners_up VARCHAR) |
SELECT chassis FROM table_name_88 WHERE year = 1971 | Which Chassis was featured in the year 1971? | CREATE TABLE table_name_88 (chassis VARCHAR, year VARCHAR) |
SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3 | Which makers designed more than 3 car models? List full name and the id. | CREATE TABLE MODEL_LIST (Maker VARCHAR); CREATE TABLE CAR_MAKERS (FullName VARCHAR, Id VARCHAR) |
SELECT winnings FROM table_1875157_1 WHERE position = "33rd" | How many wins in the season he finished 33rd | CREATE TABLE table_1875157_1 (winnings VARCHAR, position VARCHAR) |
SELECT COUNT(points) FROM table_14342480_7 WHERE position = "Right tackle" | How many points were scored by someone who's position was right tackle? | CREATE TABLE table_14342480_7 (points VARCHAR, position VARCHAR) |
SELECT SUM(year) FROM table_name_25 WHERE result = "6th" AND venue = "munich, west germany" | What year is the result 6th in munich, west germany? | CREATE TABLE table_name_25 (year INTEGER, result VARCHAR, venue VARCHAR) |
SELECT yacht FROM table_14882588_3 WHERE sail_number = "6952" | What were all Yachts with a sail number of 6952? | CREATE TABLE table_14882588_3 (yacht VARCHAR, sail_number VARCHAR) |
SELECT home_team AS score FROM table_name_55 WHERE home_team = "footscray" | In the match where footscray was the home team, how much did they score? | CREATE TABLE table_name_55 (home_team VARCHAR) |
SELECT 1996 FROM table_name_4 WHERE 1994 = "lq" AND 1992 = "3r" | What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R? | CREATE TABLE table_name_4 (Id VARCHAR) |
SELECT country FROM table_name_29 WHERE total = 302 | What country has 302 as the total? | CREATE TABLE table_name_29 (country VARCHAR, total VARCHAR) |
SELECT directed___undirected FROM table_name_83 WHERE name = "mfinder" AND basis = "network-centric" | What is the directed/undirected for mfinder, which has a network-centric basis? | CREATE TABLE table_name_83 (directed___undirected VARCHAR, name VARCHAR, basis VARCHAR) |
SELECT label FROM table_name_37 WHERE date = "1988" AND format = "cd" | What label released a CD in 1988? | CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR, format VARCHAR) |
SELECT icao FROM table_name_76 WHERE airport = "fiumicino airport" | for fiumicino airport what is the icao? | CREATE TABLE table_name_76 (icao VARCHAR, airport VARCHAR) |
SELECT MAX(transit_passengers) FROM table_13836704_8 WHERE freight__metric_tonnes_ = 171078 | Name the transit passengers for 171078 | CREATE TABLE table_13836704_8 (transit_passengers INTEGER, freight__metric_tonnes_ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.