question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Show the names of members and the decoration themes they have.
CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Decoration_Theme VARCHAR, Member_ID VARCHAR)
SELECT T1.Name, T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID
What is the station type of smni tv-26 naga
CREATE TABLE table_12547903_2 (station_type VARCHAR, branding VARCHAR)
SELECT station_type FROM table_12547903_2 WHERE branding = "SMNI TV-26 Naga"
What is the confederation when there are 4 places remaining in the finals?
CREATE TABLE table_23995075_2 (confederation VARCHAR, remaining_places_in_finals VARCHAR)
SELECT confederation FROM table_23995075_2 WHERE remaining_places_in_finals = "4"
What was the two-round score for Bob Tway?
CREATE TABLE table_name_45 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_45 WHERE player = "bob tway"
what is the minimum overall attendance where the goals scored were 19?
CREATE TABLE table_27708484_3 (overall_attendance INTEGER, overall_goals_scored VARCHAR)
SELECT MIN(overall_attendance) FROM table_27708484_3 WHERE overall_goals_scored = 19
How many years were g Tyres and Minardi m187 used?
CREATE TABLE table_name_82 (year INTEGER, tyres VARCHAR, chassis VARCHAR)
SELECT AVG(year) FROM table_name_82 WHERE tyres = "g" AND chassis = "minardi m187"
What is the result of the home game on August 14?
CREATE TABLE table_name_25 (result VARCHAR, home_away VARCHAR, date VARCHAR)
SELECT result FROM table_name_25 WHERE home_away = "home" AND date = "august 14"
What was the score of Richmond when they were the away team?
CREATE TABLE table_name_62 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_62 WHERE away_team = "richmond"
How many silver medals did the country that won 20 gold medals win in the 1955 Pan American Games?
CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR)
SELECT SUM(silver) FROM table_name_62 WHERE gold = 20
What is the transfer period for habarugira?
CREATE TABLE table_name_16 (transfer_window VARCHAR, name VARCHAR)
SELECT transfer_window FROM table_name_16 WHERE name = "habarugira"
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–10?
CREATE TABLE table_name_4 (set_1 VARCHAR, score VARCHAR, set_3 VARCHAR)
SELECT set_1 FROM table_name_4 WHERE score = "3–0" AND set_3 = "15–10"
Name the most number for new england blazers
CREATE TABLE table_16227492_1 (_number INTEGER, opponent VARCHAR)
SELECT MAX(_number) FROM table_16227492_1 WHERE opponent = "New England Blazers"
On which air date was Robert the test-taker?
CREATE TABLE table_name_31 (air_date VARCHAR, test_taker VARCHAR)
SELECT air_date FROM table_name_31 WHERE test_taker = "robert"
What was the Purse ($) total for Iowa?
CREATE TABLE table_name_88 (purse__ VARCHAR, location VARCHAR)
SELECT COUNT(purse__) AS $__ FROM table_name_88 WHERE location = "iowa"
Which entrant has a Mclaren m7c Chassis?
CREATE TABLE table_name_62 (entrant VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_62 WHERE chassis = "mclaren m7c"
What was the date of the game when Colorado was the visiting team and Chicago was the home team?
CREATE TABLE table_name_36 (date VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT date FROM table_name_36 WHERE visitor = "colorado" AND home = "chicago"
What is the result of the game where the opponent is Innsbrucker Kilmarnock CSK VVS Samara?
CREATE TABLE table_27654988_1 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_27654988_1 WHERE opponent = "Innsbrucker Kilmarnock CSK VVS Samara"
What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8?
CREATE TABLE table_name_7 (time VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time FROM table_name_7 WHERE laps < 18 AND grid > 8 AND rider = "loic napoleone"
Which Population (2004) has a Moroccan population larger than 234506?
CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER)
SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506
which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?
CREATE TABLE table_23117208_3 (no_in_season INTEGER, directed_by VARCHAR)
SELECT MAX(no_in_season) FROM table_23117208_3 WHERE directed_by = "Constantine Makris"
What game was on May 25?
CREATE TABLE table_17355408_12 (game VARCHAR, date VARCHAR)
SELECT game FROM table_17355408_12 WHERE date = "May 25"
Which municipalities located in the county of Finnmark have populations bigger than 6187.0?
CREATE TABLE table_157826_1 (municipality VARCHAR, county VARCHAR, population VARCHAR)
SELECT municipality FROM table_157826_1 WHERE county = "Finnmark" AND population > 6187.0
From writer Denne Bart Petitclerc, what is the maximum season number?
CREATE TABLE table_19852975_4 (season__number INTEGER, writer_s_ VARCHAR)
SELECT MAX(season__number) FROM table_19852975_4 WHERE writer_s_ = "Denne Bart Petitclerc"
Which county has a median household income of $98,090?
CREATE TABLE table_1447085_1 (county VARCHAR, median_house__hold_income VARCHAR)
SELECT county FROM table_1447085_1 WHERE median_house__hold_income = "$98,090"
How often does a train leave sealdah?
CREATE TABLE table_12095519_1 (frequency VARCHAR, origin VARCHAR)
SELECT frequency FROM table_12095519_1 WHERE origin = "Sealdah"
What is the Away team when the match score was norths 19 manly 4?
CREATE TABLE table_name_54 (away_team VARCHAR, match_score VARCHAR)
SELECT away_team FROM table_name_54 WHERE match_score = "norths 19 manly 4"
What is the title of the episode directed by Linda Mendoza?
CREATE TABLE table_25548505_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_25548505_1 WHERE directed_by = "Linda Mendoza"
What was the max character (per page row) of the encoding with a bit rate of 6.203?
CREATE TABLE table_1926240_1 (max_characters__per_page_row_ INTEGER, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT MAX(max_characters__per_page_row_) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203"
what is other names when death is may 23, 1821?
CREATE TABLE table_name_36 (other_names VARCHAR, death VARCHAR)
SELECT other_names FROM table_name_36 WHERE death = "may 23, 1821"
Name the number of semifinals for tt2
CREATE TABLE table_18646111_13 (semifinals VARCHAR, class VARCHAR)
SELECT COUNT(semifinals) FROM table_18646111_13 WHERE class = "TT2"
What is the incumbent from 1941?
CREATE TABLE table_1342233_24 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1342233_24 WHERE first_elected = 1941
What was the Nominated Work earlier than 2003?
CREATE TABLE table_name_85 (nominated_work VARCHAR, year INTEGER)
SELECT nominated_work FROM table_name_85 WHERE year < 2003
Find the total number of students in each department.
CREATE TABLE student (dept_name VARCHAR)
SELECT COUNT(*), dept_name FROM student GROUP BY dept_name
What was the score of the away team at the the glenferrie oval?
CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_67 WHERE venue = "glenferrie oval"
Which Nanquan has a Nandao smaller than 9.44, and a Rank smaller than 9, and a Total larger than 18.68?
CREATE TABLE table_name_27 (nanquan INTEGER, total VARCHAR, nandao VARCHAR, rank VARCHAR)
SELECT MIN(nanquan) FROM table_name_27 WHERE nandao < 9.44 AND rank < 9 AND total > 18.68
What score in the final has hard as the surface, and june 13, 2011 as the date?
CREATE TABLE table_name_57 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_57 WHERE surface = "hard" AND date = "june 13, 2011"
What is the Chassis of the Honda Engine with a Motorola sponsor?
CREATE TABLE table_name_47 (chassis VARCHAR, engine VARCHAR, sponsor VARCHAR)
SELECT chassis FROM table_name_47 WHERE engine = "honda" AND sponsor = "motorola"
What are the colors for the enrollment of 2020?
CREATE TABLE table_27653955_1 (colors VARCHAR, enrollment VARCHAR)
SELECT colors FROM table_27653955_1 WHERE enrollment = 2020
In which competition was the score 3-0?
CREATE TABLE table_name_79 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_79 WHERE score = "3-0"
what is the result for 1970 at yankee stadium?
CREATE TABLE table_name_7 (result VARCHAR, year VARCHAR, location VARCHAR)
SELECT result FROM table_name_7 WHERE year = 1970 AND location = "yankee stadium"
Which team had the fastest lap of 1:13.516?
CREATE TABLE table_name_47 (winning_team VARCHAR, fastest_lap VARCHAR)
SELECT winning_team FROM table_name_47 WHERE fastest_lap = "1:13.516"
What is the time for the second qualification where the best time was 1:20.772?
CREATE TABLE table_name_38 (qual_2 VARCHAR, best VARCHAR)
SELECT qual_2 FROM table_name_38 WHERE best = "1:20.772"
What is the nationality of the player that plays forward and is from depaul?
CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_19 WHERE position = "forward" AND school_club_team = "depaul"
What is the high lap total for françois cevert?
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR)
SELECT MAX(laps) FROM table_name_71 WHERE driver = "françois cevert"
How many events are there?
CREATE TABLE event (Id VARCHAR)
SELECT COUNT(*) FROM event
What are the most laps for the Qual position of 7 in the OC class?
CREATE TABLE table_name_62 (laps INTEGER, class VARCHAR, qual_pos VARCHAR)
SELECT MAX(laps) FROM table_name_62 WHERE class = "oc" AND qual_pos = 7
Which catalogue has a formate of "CD Remastered with 3 bonus tracks"?
CREATE TABLE table_name_39 (catalogue VARCHAR, format VARCHAR)
SELECT catalogue FROM table_name_39 WHERE format = "cd remastered with 3 bonus tracks"
How may players played for the Grizzlies from 2000-2002?
CREATE TABLE table_16494599_1 (no VARCHAR, years_for_grizzlies VARCHAR)
SELECT COUNT(no) FROM table_16494599_1 WHERE years_for_grizzlies = "2000-2002"
What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1?
CREATE TABLE table_name_52 (high_score INTEGER, inns VARCHAR, average VARCHAR, stump VARCHAR, catches VARCHAR)
SELECT SUM(high_score) FROM table_name_52 WHERE stump = 0 AND catches = 4 AND average < 56.1 AND inns > 14
Who in series 5 corresponds to Deborah Meaden in series 3?
CREATE TABLE table_name_57 (series_5 VARCHAR, series_3 VARCHAR)
SELECT series_5 FROM table_name_57 WHERE series_3 = "deborah meaden"
When did they play Utah at home?
CREATE TABLE table_name_38 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_38 WHERE home = "utah"
What was the result of Sopot (pol)?
CREATE TABLE table_name_33 (result VARCHAR, location VARCHAR)
SELECT result FROM table_name_33 WHERE location = "sopot (pol)"
Name the region for 39.2% vehicle
CREATE TABLE table_25042332_27 (region VARCHAR, vehicle VARCHAR)
SELECT region FROM table_25042332_27 WHERE vehicle = "39.2%"
What is Fuzzy Zoeller's Score?
CREATE TABLE table_name_56 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_56 WHERE player = "fuzzy zoeller"
What language was spoken in Everlasting Moments?
CREATE TABLE table_18994724_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT language_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Everlasting Moments"
What date did a game have a time of 3:44?
CREATE TABLE table_name_55 (date VARCHAR, time VARCHAR)
SELECT date FROM table_name_55 WHERE time = "3:44"
In what season was the winner Dado Dolabella?
CREATE TABLE table_25214321_1 (season INTEGER, winner VARCHAR)
SELECT MAX(season) FROM table_25214321_1 WHERE winner = "Dado Dolabella"
What is the name of the position of the person whose hometown is Queens, NY?
CREATE TABLE table_name_45 (position VARCHAR, hometown VARCHAR)
SELECT position FROM table_name_45 WHERE hometown = "queens, ny"
Where does South Melbourne play?
CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_52 WHERE away_team = "south melbourne"
On what Date is the Winning Score 71-69-68-70=278?
CREATE TABLE table_name_60 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_60 WHERE winning_score = 71 - 69 - 68 - 70 = 278
What production had Angela Lansbury as Rose and Barrie Ingham as Herbie?
CREATE TABLE table_name_53 (productions VARCHAR, rose VARCHAR, herbie VARCHAR)
SELECT productions FROM table_name_53 WHERE rose = "angela lansbury" AND herbie = "barrie ingham"
What is the Nation with a Date that is may 6, 1991?
CREATE TABLE table_name_51 (nation VARCHAR, date VARCHAR)
SELECT nation FROM table_name_51 WHERE date = "may 6, 1991"
I want to know the final score for december 27
CREATE TABLE table_name_74 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_name_74 WHERE date = "december 27"
Name the driver for talbot l6
CREATE TABLE table_21977704_1 (driver VARCHAR, engine VARCHAR)
SELECT driver FROM table_21977704_1 WHERE engine = "Talbot L6"
What is the total overall number of the ot position player with a pick greater than 5?
CREATE TABLE table_name_59 (overall VARCHAR, position VARCHAR, pick VARCHAR)
SELECT COUNT(overall) FROM table_name_59 WHERE position = "ot" AND pick > 5
What was the Goal in Stade Roi Baudouin, Brussels?
CREATE TABLE table_name_81 (goal INTEGER, venue VARCHAR)
SELECT AVG(goal) FROM table_name_81 WHERE venue = "stade roi baudouin, brussels"
Which country is Pete Cooper, who made $816, from?
CREATE TABLE table_name_32 (country VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT country FROM table_name_32 WHERE money___$__ = 816 AND player = "pete cooper"
What is the label for the catalog of none, and is in the United Kingdom?
CREATE TABLE table_name_12 (label VARCHAR, catalog VARCHAR, region VARCHAR)
SELECT label FROM table_name_12 WHERE catalog = "none" AND region = "united kingdom"
What is Pro Debut, when Tournament is greater than 11, and when Highest Rank is "Maegashira 1"?
CREATE TABLE table_name_68 (pro_debut VARCHAR, tournaments VARCHAR, highest_rank VARCHAR)
SELECT pro_debut FROM table_name_68 WHERE tournaments > 11 AND highest_rank = "maegashira 1"
Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets?
CREATE TABLE table_name_78 (leader_at_the_summit VARCHAR, finish VARCHAR, start VARCHAR, stage VARCHAR, category VARCHAR)
SELECT leader_at_the_summit FROM table_name_78 WHERE stage > 14 AND category = 1 AND start = "saint-girons" AND finish = "cauterets"
In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?
CREATE TABLE table_10725629_2 (report VARCHAR, pole_position VARCHAR, winning_team VARCHAR)
SELECT report FROM table_10725629_2 WHERE pole_position = "Michael Andretti" AND winning_team = "Galles-Kraco Racing"
How many NHL teams is Denis Pederson a draft pick for?
CREATE TABLE table_2781227_1 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(nhl_team) FROM table_2781227_1 WHERE player = "Denis Pederson"
IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT?
CREATE TABLE table_1566852_3 (date VARCHAR, interview_subject VARCHAR)
SELECT COUNT(date) FROM table_1566852_3 WHERE interview_subject = "Harrison Ford"
What location is Jimmy Smith fighting in?
CREATE TABLE table_name_72 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_72 WHERE opponent = "jimmy smith"
Name the written by for john trefor
CREATE TABLE table_2430014_6 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_2430014_6 WHERE directed_by = "John Trefor"
What was the manner of departure for notts county with an incoming manager of martin allen
CREATE TABLE table_26914759_3 (manner_of_departure VARCHAR, team VARCHAR, incoming_manager VARCHAR)
SELECT manner_of_departure FROM table_26914759_3 WHERE team = "Notts County" AND incoming_manager = "Martin Allen"
What is the earliest Year when the City is Peabody?
CREATE TABLE table_name_2 (year INTEGER, city VARCHAR)
SELECT MIN(year) FROM table_name_2 WHERE city = "peabody"
What is English Meaning, when Case Suffix (Case) is "-sa (dative)"?
CREATE TABLE table_name_40 (english_meaning VARCHAR, case_suffix__case_ VARCHAR)
SELECT english_meaning FROM table_name_40 WHERE case_suffix__case_ = "-sa (dative)"
Which team has an unknown coach and location of Athelstone?
CREATE TABLE table_name_98 (team VARCHAR, coach VARCHAR, location VARCHAR)
SELECT team FROM table_name_98 WHERE coach = "unknown" AND location = "athelstone"
What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?
CREATE TABLE table_name_34 (season INTEGER, team VARCHAR, series VARCHAR)
SELECT MAX(season) FROM table_name_34 WHERE team = "prema powerteam" AND series = "masters of formula three"
What average gold has China (chn) as the nation with a bronze greater than 1?
CREATE TABLE table_name_63 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_63 WHERE nation = "china (chn)" AND bronze > 1
What nationality is hamzah idris?
CREATE TABLE table_name_28 (nationality VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_28 WHERE name = "hamzah idris"
What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25?
CREATE TABLE table_name_35 (tournament VARCHAR, top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)
SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1
During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?
CREATE TABLE table_name_64 (years VARCHAR, engine_code VARCHAR, model VARCHAR)
SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)"
What is the lowest founded that has bizerte athletic f.c. as the club?
CREATE TABLE table_name_42 (founded INTEGER, club VARCHAR)
SELECT MIN(founded) FROM table_name_42 WHERE club = "bizerte athletic f.c."
How many Laps did Bob Wollek have?
CREATE TABLE table_name_5 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_5 WHERE driver = "bob wollek"
What is the document id with 1 to 2 paragraphs?
CREATE TABLE Paragraphs (document_id VARCHAR)
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2
What is the result for rounds under 2 against D.J. Linderman?
CREATE TABLE table_name_44 (res VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_44 WHERE round < 2 AND opponent = "d.j. linderman"
What is Style, when Choreographer(s) is Dave Scott?
CREATE TABLE table_name_17 (style VARCHAR, choreographer_s_ VARCHAR)
SELECT style FROM table_name_17 WHERE choreographer_s_ = "dave scott"
find the number of different programs that are broadcast during night time.
CREATE TABLE broadcast (program_id VARCHAR, time_of_day VARCHAR)
SELECT COUNT(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night'
Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?
CREATE TABLE table_29162856_1 (pole_position VARCHAR, winning_rider VARCHAR, fastest_lap VARCHAR)
SELECT pole_position FROM table_29162856_1 WHERE winning_rider = "Rob Guiver" AND fastest_lap = "Kyle Ryde"
What is the Mkhedruli symbol for the Asomtavruli ⴒ?
CREATE TABLE table_name_41 (mkhedruli VARCHAR, asomtavruli VARCHAR)
SELECT mkhedruli FROM table_name_41 WHERE asomtavruli = "ⴒ"
what is the number of series where the airdate is december 26, 1964?
CREATE TABLE table_25800134_9 (series__number VARCHAR, airdate VARCHAR)
SELECT COUNT(series__number) FROM table_25800134_9 WHERE airdate = "December 26, 1964"
Name the position for brazil 2008 with goals of 0 1
CREATE TABLE table_name_6 (position VARCHAR, goals VARCHAR, country VARCHAR, period VARCHAR)
SELECT position FROM table_name_6 WHERE country = "brazil" AND period = "2008" AND goals = "0 1"
On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m?
CREATE TABLE table_name_60 (route INTEGER, rank VARCHAR, elevation VARCHAR)
SELECT MAX(route) FROM table_name_60 WHERE rank < 33 AND elevation = "11,312 feet 3448 m"
What was the number of races in the season in which the team placed on the 14th position?
CREATE TABLE table_19741316_1 (races INTEGER, position VARCHAR)
SELECT MIN(races) FROM table_19741316_1 WHERE position = "14th"
Who is the passenger in 2009 season with 17 races?
CREATE TABLE table_name_55 (passenger VARCHAR, season VARCHAR, races VARCHAR)
SELECT passenger FROM table_name_55 WHERE season = "2009" AND races = 17
What is Result, when Opponent is Cincinnati Bengals?
CREATE TABLE table_name_32 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_32 WHERE opponent = "cincinnati bengals"
Name the density for pennsbury village
CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR)
SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = "Pennsbury Village"
Name the round 16 for did not advance and light flyweight
CREATE TABLE table_17417383_6 (round_of_16 VARCHAR, quarterfinals VARCHAR, event VARCHAR)
SELECT round_of_16 FROM table_17417383_6 WHERE quarterfinals = "Did not advance" AND event = "Light flyweight"