answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code
Show all template type codes and the number of documents using each type.
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
SELECT points FROM table_16034882_4 WHERE club = "Piritas Klaipėda"
How many points did piritas klaipėda get?
CREATE TABLE table_16034882_4 (points VARCHAR, club VARCHAR)
SELECT silver FROM table_name_20 WHERE gold = "li ao"
What Silver has a Golf of Li AO?
CREATE TABLE table_name_20 (silver VARCHAR, gold VARCHAR)
SELECT player FROM table_name_36 WHERE gender = "male" AND original_season = "rw: key west"
Who's the player that's male and on the original season of RW: Key West?
CREATE TABLE table_name_36 (player VARCHAR, gender VARCHAR, original_season VARCHAR)
SELECT venue FROM table_name_83 WHERE notes = "2:28:31"
Which Venue has a Notes of 2:28:31?
CREATE TABLE table_name_83 (venue VARCHAR, notes VARCHAR)
SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris"
What District had Republican Incumbent Cathy McMorris?
CREATE TABLE table_name_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT MAX(heat) FROM table_name_16 WHERE rank = 8
Which Heat has a Rank of 8?
CREATE TABLE table_name_16 (heat INTEGER, rank VARCHAR)
SELECT date FROM table_name_41 WHERE opponent = "real españa"
what is the date when the opponent is real españa?
CREATE TABLE table_name_41 (date VARCHAR, opponent VARCHAR)
SELECT score FROM table_17288825_5 WHERE team = "San Antonio"
What is the San Antonio's team score?
CREATE TABLE table_17288825_5 (score VARCHAR, team VARCHAR)
SELECT surface FROM table_name_33 WHERE date = "november 5, 1995"
What surface was the November 5, 1995 match played on?
CREATE TABLE table_name_33 (surface VARCHAR, date VARCHAR)
SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = "Lew Schneider"
How many episodes are written by Lew Schneider?
CREATE TABLE table_25356350_2 (series__number VARCHAR, written_by VARCHAR)
SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865"
What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865?
CREATE TABLE table_name_80 (date_of_birth VARCHAR, party VARCHAR, house_term VARCHAR)
SELECT position FROM table_name_21 WHERE season > 2000 AND level = "tier 3"
What Position has a Season larger than 2000 with a Level of Tier 3?
CREATE TABLE table_name_21 (position VARCHAR, season VARCHAR, level VARCHAR)
SELECT date FROM table_name_40 WHERE player = "wilbert robinson"
Which date is associated with the player Wilbert Robinson?
CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR)
SELECT round FROM table_name_42 WHERE opponent = "andre roberts"
What is the round when the opponent is Andre Roberts?
CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_79 WHERE score = 66 - 73 = 139
WHAT PLAYER HAS A SCORE OF 66-73=139?
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)
SELECT MIN(total) FROM table_name_79 WHERE a_score = 6.5 AND position > 5
Which Total has an A Score of 6.5, and a Position larger than 5?
CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR)
SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlético balboa"
What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?
CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR)
SELECT COUNT(mls_team) FROM table_25518547_4 WHERE player = "Jamel Wallace"
How many mls teams had player jamel wallace?
CREATE TABLE table_25518547_4 (mls_team VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_60 WHERE date = "june 3"
Who did the cubs play on june 3?
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR)
SELECT MAX(pick__number) FROM table_21321804_3
What is the highest number any of the players were picked at?
CREATE TABLE table_21321804_3 (pick__number INTEGER)
SELECT italian FROM table_2077192_2 WHERE english = "frog"
What does the word "frog"in English translate to in Italian?
CREATE TABLE table_2077192_2 (italian VARCHAR, english VARCHAR)
SELECT player FROM table_11545282_17 WHERE years_for_jazz = "2004-05"
What is the player that played 2004-05?
CREATE TABLE table_11545282_17 (player VARCHAR, years_for_jazz VARCHAR)
SELECT COUNT(laps) FROM table_name_18 WHERE rider = "shinya nakano" AND grid < 10
Total laps for Shinya Nakano at smaller than 10 grids.
CREATE TABLE table_name_18 (laps VARCHAR, rider VARCHAR, grid VARCHAR)
SELECT date FROM table_name_87 WHERE against = 22
What is Date, when Against is "22"?
CREATE TABLE table_name_87 (date VARCHAR, against VARCHAR)
SELECT date FROM table_name_7 WHERE attendance = "postponed"
Name the date for postponed attendance
CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR)
SELECT field_goals FROM table_24850487_5 WHERE player = "Stacey Thomas"
How many field goals did Stacey Thomas have?
CREATE TABLE table_24850487_5 (field_goals VARCHAR, player VARCHAR)
SELECT title FROM table_name_36 WHERE number = 4
What is number 4's title?
CREATE TABLE table_name_36 (title VARCHAR, number VARCHAR)
SELECT frequency FROM table_name_92 WHERE city_of_license = "temagami"
What frequency has temagami as the city of license?
CREATE TABLE table_name_92 (frequency VARCHAR, city_of_license VARCHAR)
SELECT prominence__m_ FROM table_name_57 WHERE col__m_ > 738
What is the prominence in m of a col in m greater than 738?
CREATE TABLE table_name_57 (prominence__m_ VARCHAR, col__m_ INTEGER)
SELECT MAX(round) FROM table_name_79 WHERE ground = "telstra dome" AND nominees = "shaun burgoyne"
what round saw the ground of telstra dome and shaun burgoyne as nominees?
CREATE TABLE table_name_79 (round INTEGER, ground VARCHAR, nominees VARCHAR)
SELECT surface FROM table_name_77 WHERE outcome = "runner-up" AND date = "24 february 1997"
What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?
CREATE TABLE table_name_77 (surface VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT city FROM table_name_5 WHERE results¹ = "5:2"
What city held that game with a 5:2 result?
CREATE TABLE table_name_5 (city VARCHAR, results¹ VARCHAR)
SELECT investing_dragon_s_ FROM table_name_31 WHERE episode = "episode 10"
what investing dragons aired on episode 10?
CREATE TABLE table_name_31 (investing_dragon_s_ VARCHAR, episode VARCHAR)
SELECT MIN(old_membership_total) FROM table_27671835_3
What is the smallest number for old membership total?
CREATE TABLE table_27671835_3 (old_membership_total INTEGER)
SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 30
Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.
CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)
SELECT crowd FROM table_name_94 WHERE away_team = "south dragons" AND venue = "gold coast convention centre"
How big was the crowd when the South Dragons were the away team at the Gold Coast Convention Centre?
CREATE TABLE table_name_94 (crowd VARCHAR, away_team VARCHAR, venue VARCHAR)
SELECT COUNT(total) FROM table_name_99 WHERE fa_trophy = 0 AND player = "charlie butler"
How many Total that has a FA Trophy of 0 and a Player of charlie butler?
CREATE TABLE table_name_99 (total VARCHAR, fa_trophy VARCHAR, player VARCHAR)
SELECT gauge FROM table_name_8 WHERE concessionaire = "ferrosur roca"
What was the guage of the concessionaire ferrosur roca?
CREATE TABLE table_name_8 (gauge VARCHAR, concessionaire VARCHAR)
SELECT MAX(episode_number) FROM table_name_89 WHERE guest_host = "jamie oliver"
What is the highest episode number in which Jamie Oliver guest-hosted?
CREATE TABLE table_name_89 (episode_number INTEGER, guest_host VARCHAR)
SELECT qual_1 FROM table_name_93 WHERE name = "alex tagliani"
What did Alex Tagliani get for Qual 1?
CREATE TABLE table_name_93 (qual_1 VARCHAR, name VARCHAR)
SELECT episode FROM table_name_97 WHERE viewers = 6.71
What episode had 6.71 viewers?
CREATE TABLE table_name_97 (episode VARCHAR, viewers VARCHAR)
SELECT player FROM table_11734041_9 WHERE years_for_rockets = "1986-92"
Which player who played for the Rockets for the years 1986-92?
CREATE TABLE table_11734041_9 (player VARCHAR, years_for_rockets VARCHAR)
SELECT parish__prestegjeld_ FROM table_178398_1 WHERE location_of_the_church = "Solvorn"
What parishes are in Solvorn?
CREATE TABLE table_178398_1 (parish__prestegjeld_ VARCHAR, location_of_the_church VARCHAR)
SELECT surface FROM table_name_53 WHERE opponents = "amer delic robert kendrick"
Which type of surface do Amer Delic Robert Kendrick's opponents have?
CREATE TABLE table_name_53 (surface VARCHAR, opponents VARCHAR)
SELECT country FROM table_name_9 WHERE year = 2009 AND publication = "paste"
What country had a paste publication in 2009?
CREATE TABLE table_name_9 (country VARCHAR, year VARCHAR, publication VARCHAR)
SELECT institution FROM table_12434380_1 WHERE mascot = "Blue Devils"
What is the name of the institution with the mascot of blue devils?
CREATE TABLE table_12434380_1 (institution VARCHAR, mascot VARCHAR)
SELECT constructor FROM table_name_67 WHERE time_retired = "+2:06.0"
Who constructed the car that has a Time/Retired of +2:06.0?
CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR)
SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080
What was the capacity percentage when attendance was 71080?
CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, average_attendance VARCHAR)
SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = "+11.2%"
What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ?
CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR)
SELECT fleet_number FROM table_name_23 WHERE model = "orion 01.507"
What is the fleet number of Model Orion 01.507?
CREATE TABLE table_name_23 (fleet_number VARCHAR, model VARCHAR)
SELECT part_3 FROM table_name_31 WHERE part_2 = "*hegait"
What is the part 3 with *hegait in part 2?
CREATE TABLE table_name_31 (part_3 VARCHAR, part_2 VARCHAR)
SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality
What are different nationalities of people and the corresponding number of people from each nation?
CREATE TABLE people (Nationality VARCHAR)
SELECT tournament FROM table_name_25 WHERE 2001 = "a" AND 2006 = "a"
Which tournament's 2001 and 2006s were a?
CREATE TABLE table_name_25 (tournament VARCHAR)
SELECT distance FROM table_name_6 WHERE venue = "seoul, south korea"
How far Venue of seoul, south korea is?
CREATE TABLE table_name_6 (distance VARCHAR, venue VARCHAR)
SELECT college FROM table_name_19 WHERE pick__number = 155
Which college has a pick number of 155?
CREATE TABLE table_name_19 (college VARCHAR, pick__number VARCHAR)
SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = "hank pfister sherwood stewart"
What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?
CREATE TABLE table_name_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR)
SELECT AVG(grid) FROM table_name_10 WHERE laps > 43 AND driver = "oriol servia"
What is Oriol Servia's average Grid on races with more than 43 laps?
CREATE TABLE table_name_10 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT MIN(grid) FROM table_name_32 WHERE laps < 65 AND driver = "tim schenken"
What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?
CREATE TABLE table_name_32 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT MIN(steals) FROM table_25353861_5
What is the fewest steals any player had?
CREATE TABLE table_25353861_5 (steals INTEGER)
SELECT home_ground_s_ FROM table_18752986_1 WHERE nickname = "Swans"
With the nickname the swans, what is the home ground?
CREATE TABLE table_18752986_1 (home_ground_s_ VARCHAR, nickname VARCHAR)
SELECT AVG(injured) FROM death
What is the average number of injuries caused each time?
CREATE TABLE death (injured INTEGER)
SELECT COUNT(year_s__won) FROM table_name_95 WHERE player = "justin leonard" AND to_par < 9
What is the total number of years won by Justin Leonard with a to par under 9?
CREATE TABLE table_name_95 (year_s__won VARCHAR, player VARCHAR, to_par VARCHAR)
SELECT born_died FROM table_name_52 WHERE term_start = "4 november 1943"
Which Born-Died has a Term start of 4 november 1943?
CREATE TABLE table_name_52 (born_died VARCHAR, term_start VARCHAR)
SELECT prize_money FROM table_name_58 WHERE round = "final"
What is the prize money for the final round?
CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR)
SELECT 2008 FROM table_name_12 WHERE 2012 = "q1" AND 2010 = "1r"
What was the position for 2008, where 2012 was q1, and 2010 was 1r?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises"
Who are the members of the club named "Hopkins Student Enterprises"? Show the last name.
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
SELECT COUNT(*) FROM poker_player
How many poker players are there?
CREATE TABLE poker_player (Id VARCHAR)
SELECT tie_no FROM table_name_10 WHERE date = "18 february 1956" AND home_team = "charlton athletic"
What is Tie No, when Date is 18 February 1956, and when Home Team is Charlton Athletic?
CREATE TABLE table_name_10 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT first FROM table_name_30 WHERE dob = "5 february 1979"
Which first was born on 5 february 1979?
CREATE TABLE table_name_30 (first VARCHAR, dob VARCHAR)
SELECT region FROM table_name_49 WHERE format = "cd" AND label = "a&m/canyon"
What is the region of the Catalog that is in cd format and has a label a&m/canyon?
CREATE TABLE table_name_49 (region VARCHAR, format VARCHAR, label VARCHAR)
SELECT theme_song_s_ FROM table_name_23 WHERE romaji_title = "iryu -team medical dragon-2"
What is the Theme Song of Iryu -Team Medical Dragon-2?
CREATE TABLE table_name_23 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
SELECT team_2 FROM table_name_32 WHERE team_1 = "tatung" AND ground = "national pei men senior high school"
What team was 2 when Tatung was team 1 at National Pei Men Senior High School?
CREATE TABLE table_name_32 (team_2 VARCHAR, team_1 VARCHAR, ground VARCHAR)
SELECT location___state FROM table_name_5 WHERE circuit = "adelaide international raceway"
What is the location/state that has adelaide international raceway as the circuit?
CREATE TABLE table_name_5 (location___state VARCHAR, circuit VARCHAR)
SELECT record FROM table_name_59 WHERE date = "september 21"
What record has September 21 as the date?
CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_76 WHERE fastest_lap = "unknown" AND date = "july 19"
What circut has an unknown fastest lap on July 19?
CREATE TABLE table_name_76 (circuit VARCHAR, fastest_lap VARCHAR, date VARCHAR)
SELECT finish FROM table_name_36 WHERE country = "west germany"
What was the finish by the player from West Germany?
CREATE TABLE table_name_36 (finish VARCHAR, country VARCHAR)
SELECT platelet_count FROM table_20592988_1 WHERE bleeding_time = "Prolonged" AND partial_thromboplastin_time = "Unaffected"
What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected?
CREATE TABLE table_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the teacher who teaches the largest number of students.
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR)
SELECT chassis FROM table_name_30 WHERE engine = "weslake v12"
What Chassis had a Weslake v12 in it?
CREATE TABLE table_name_30 (chassis VARCHAR, engine VARCHAR)
SELECT MIN(runs) FROM table_27922491_11 WHERE average = "97.00"
How few runs does the 97.00 average have?
CREATE TABLE table_27922491_11 (runs INTEGER, average VARCHAR)
SELECT rd FROM table_25531112_2 WHERE circuit = "Eastern Creek Raceway"
In what round was the circuit Eastern Creek Raceway?
CREATE TABLE table_25531112_2 (rd VARCHAR, circuit VARCHAR)
SELECT record FROM table_name_24 WHERE method = "ko (head kick)"
What is the record for the Ko (head kick) method?
CREATE TABLE table_name_24 (record VARCHAR, method VARCHAR)
SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as"
Which writer had a producer DKA, JL, AS?
CREATE TABLE table_name_85 (writer VARCHAR, producer_executive_producer VARCHAR)
SELECT player FROM table_name_56 WHERE place = "t7"
Who is the player with a t7 place?
CREATE TABLE table_name_56 (player VARCHAR, place VARCHAR)
SELECT AVG(assists) FROM table_name_18 WHERE club = "iserlohn roosters" AND points = 71 AND goals > 44
What is the average Assists, when Club is Iserlohn Roosters,when Points is 71, and when Goals is greater than 44?
CREATE TABLE table_name_18 (assists INTEGER, goals VARCHAR, club VARCHAR, points VARCHAR)
SELECT team FROM table_name_73 WHERE game = 3
Which team had game 3?
CREATE TABLE table_name_73 (team VARCHAR, game VARCHAR)
SELECT COUNT(gold) FROM table_name_59 WHERE bronze > 27 AND total < 305
What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?
CREATE TABLE table_name_59 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT score FROM table_name_69 WHERE to_par = "–3" AND player = "santiago luna"
Which Score has a To par of –3, and a Player of santiago luna?
CREATE TABLE table_name_69 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT agg FROM table_name_38 WHERE team_1 = "vsadc"
What was the Agg., when Team 1 was VSADC?
CREATE TABLE table_name_38 (agg VARCHAR, team_1 VARCHAR)
SELECT SUM(uci_points) FROM table_name_42 WHERE cyclist = "kim kirchen"
What is the sum of UCI points for Kim Kirchen?
CREATE TABLE table_name_42 (uci_points INTEGER, cyclist VARCHAR)
SELECT branding FROM table_name_33 WHERE call_sign = "ckua-fm-3"
what is the branding when the call sign is ckua-fm-3?
CREATE TABLE table_name_33 (branding VARCHAR, call_sign VARCHAR)
SELECT venue FROM table_name_89 WHERE against = 25
Which Venue has Against of 25?
CREATE TABLE table_name_89 (venue VARCHAR, against VARCHAR)
SELECT games FROM table_name_96 WHERE name = "leandro love"
How many games does leandro love have?
CREATE TABLE table_name_96 (games VARCHAR, name VARCHAR)
SELECT mon_23_aug FROM table_26986076_5 WHERE rider = "Tom Snow 250cc Honda"
When tom snow 250cc honda is the rider what is Monday August 23rd?
CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, rider VARCHAR)
SELECT week__number FROM table_21501564_1 WHERE original_artist = "Sara Bareilles"
What week #(s featured sara bareilles as the original artist?
CREATE TABLE table_21501564_1 (week__number VARCHAR, original_artist VARCHAR)
SELECT high_rebounds FROM table_17104539_10 WHERE record = "11-13"
Who had a high rebound where the associated record is 11-13?
CREATE TABLE table_17104539_10 (high_rebounds VARCHAR, record VARCHAR)
SELECT lyricist_s_ FROM table_name_36 WHERE composer_s_ = "haewon park"
Who was the lyricist for composer Haewon Park?
CREATE TABLE table_name_36 (lyricist_s_ VARCHAR, composer_s_ VARCHAR)
SELECT venue FROM table_name_64 WHERE score = "20½–11½"
what is the venue when the score is 20½–11½?
CREATE TABLE table_name_64 (venue VARCHAR, score VARCHAR)
SELECT park_and_ride_lot FROM table_name_97 WHERE station_name = "temple square"
What is the park & ride lot for the Temple Square station?
CREATE TABLE table_name_97 (park_and_ride_lot VARCHAR, station_name VARCHAR)