answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(no_in_season) FROM table_29152820_1 WHERE no_in_series = 122 | How many episodes are 122 in the series? | CREATE TABLE table_29152820_1 (no_in_season VARCHAR, no_in_series VARCHAR) |
SELECT COUNT(production_code) FROM table_26429543_1 WHERE us_viewers__millions_ = "4.69" | How many different production codes are there for the episode with 4.69 million US viewers? | CREATE TABLE table_26429543_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT AVG(econ) FROM table_name_2 WHERE ovrs > 25.5 AND runs > 703 | Name the average econ for runs more than 703 and ovrs more than 25.5 | CREATE TABLE table_name_2 (econ INTEGER, ovrs VARCHAR, runs VARCHAR) |
SELECT team FROM table_24491017_1 WHERE position = "11th" | What team was he on when he finished in 11th position? | CREATE TABLE table_24491017_1 (team VARCHAR, position VARCHAR) |
SELECT score FROM table_name_78 WHERE home_team = "southern" | What is the score for the southern home team? | CREATE TABLE table_name_78 (score VARCHAR, home_team VARCHAR) |
SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = "andrea de adamich" | what average grid has laps larger than 52 and contains the driver of andrea de adamich? | CREATE TABLE table_name_36 (grid INTEGER, laps VARCHAR, driver VARCHAR) |
SELECT MIN(losses) FROM table_name_24 WHERE wins < 15 AND golden_rivers = "quambatook" AND draws > 0 | What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0? | CREATE TABLE table_name_24 (losses INTEGER, draws VARCHAR, wins VARCHAR, golden_rivers VARCHAR) |
SELECT score FROM table_name_43 WHERE opponent_in_the_final = "marcos daniel" | In what score did the match against Marcos Daniel end? | CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR) |
SELECT AVG(bronze) FROM table_name_85 WHERE silver = 1 AND gold = 5 AND total < 6 | What is the average number of bronze medals with 1 silver, 5 gold, and over 6 total medals? | CREATE TABLE table_name_85 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR) |
SELECT COUNT(team_s_) FROM table_1671401_2 WHERE top_10 = 5 | Name the total number of teams for top 10 being 5 | CREATE TABLE table_1671401_2 (team_s_ VARCHAR, top_10 VARCHAR) |
SELECT AVG(frequency_mhz) FROM table_name_54 WHERE erp_w = 170 | What is the average frequency in MHz for stations with an ERP W of 170? | CREATE TABLE table_name_54 (frequency_mhz INTEGER, erp_w VARCHAR) |
SELECT MAX(no) FROM table_12962773_15 WHERE player = "Andrea Bargnani" | What number is Andrea Bargnani? | CREATE TABLE table_12962773_15 (no INTEGER, player VARCHAR) |
SELECT MIN(week) FROM table_name_43 WHERE opponent = "at san francisco 49ers" | Opponent of at san francisco 49ers had what lowest week? | CREATE TABLE table_name_43 (week INTEGER, opponent VARCHAR) |
SELECT SUM(goals_conceded) FROM table_name_81 WHERE draw > 5 AND points > 21 AND played < 18 | How many goals were conceded by the team with more than 21 points more than 5 draws and less than 18 games played? | CREATE TABLE table_name_81 (goals_conceded INTEGER, played VARCHAR, draw VARCHAR, points VARCHAR) |
SELECT result FROM table_name_15 WHERE attendance = "56,500" | What was the result of the game that had 56,500 in attendance? | CREATE TABLE table_name_15 (result VARCHAR, attendance VARCHAR) |
SELECT april FROM table_name_41 WHERE june = "candice cassidy" | Name the april for candice cassidy | CREATE TABLE table_name_41 (april VARCHAR, june VARCHAR) |
SELECT college FROM table_name_5 WHERE position = "defensive line" AND school = "grant high school" | What college has a position of defensive line and Grant high school? | CREATE TABLE table_name_5 (college VARCHAR, position VARCHAR, school VARCHAR) |
SELECT marriage FROM table_name_74 WHERE spouse = "christian viii" | Name the marriage of the person who is married for christian viii | CREATE TABLE table_name_74 (marriage VARCHAR, spouse VARCHAR) |
SELECT SUM(year) FROM table_name_84 WHERE pages = 244 | Tell me the sum of year for 244 pages | CREATE TABLE table_name_84 (year INTEGER, pages VARCHAR) |
SELECT position FROM table_2850912_10 WHERE nhl_team = "Washington Capitals" | What position was the player who was drafted by the Washington Capitals? | CREATE TABLE table_2850912_10 (position VARCHAR, nhl_team VARCHAR) |
SELECT class FROM table_name_45 WHERE machine = "nsr250" AND points > 97 | What class has nsr250 as the machine, with points greater than 97? | CREATE TABLE table_name_45 (class VARCHAR, machine VARCHAR, points VARCHAR) |
SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the department that has the largest number of students enrolled? | CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) |
SELECT men_doubles FROM table_14903355_2 WHERE womens_doubles = "Caroline Persyn Smids" | Name the men doubles for caroline persyn smids | CREATE TABLE table_14903355_2 (men_doubles VARCHAR, womens_doubles VARCHAR) |
SELECT lmpc_winning_team FROM table_24037660_2 WHERE rnd = 3 | What was the winning team lmpc in rnd 3? | CREATE TABLE table_24037660_2 (lmpc_winning_team VARCHAR, rnd VARCHAR) |
SELECT elevator FROM table_name_29 WHERE title = "bishop of palestrina" | Which Elevator has a Title of bishop of palestrina? | CREATE TABLE table_name_29 (elevator VARCHAR, title VARCHAR) |
SELECT trans_2 FROM table_17085947_32 WHERE total_time = "1:51:19.45" | What is the trans 2 duration if the total time is 1:51:19.45? | CREATE TABLE table_17085947_32 (trans_2 VARCHAR, total_time VARCHAR) |
SELECT MIN(year) FROM table_name_34 WHERE album = "live love in london" | What is the lowest Year with an Album that is live love in London? | CREATE TABLE table_name_34 (year INTEGER, album VARCHAR) |
SELECT batting_team FROM table_11303072_5 WHERE fielding_team = "Durham" | Name the batting team at Durham | CREATE TABLE table_11303072_5 (batting_team VARCHAR, fielding_team VARCHAR) |
SELECT player FROM table_name_81 WHERE position = "shooting guard" | Which player is a shooting guard? | CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR) |
SELECT institution FROM table_24195232_1 WHERE location = "Circleville, Ohio" | What is the institution that was located is circleville, ohio? | CREATE TABLE table_24195232_1 (institution VARCHAR, location VARCHAR) |
SELECT venue FROM table_name_57 WHERE date = "3 september 1972" | What is the venue on 3 September 1972? | CREATE TABLE table_name_57 (venue VARCHAR, date VARCHAR) |
SELECT opening_date FROM table_name_53 WHERE capacity = 100 | What opening date has a capacity of 100? | CREATE TABLE table_name_53 (opening_date VARCHAR, capacity VARCHAR) |
SELECT title FROM table_27117365_1 WHERE no_in_season = 10 | What's the title in the number 10 in the season? | CREATE TABLE table_27117365_1 (title VARCHAR, no_in_season VARCHAR) |
SELECT record FROM table_name_54 WHERE week < 5 AND game_site = "bye" | What is the record of the game before week 5 and a bye game site? | CREATE TABLE table_name_54 (record VARCHAR, week VARCHAR, game_site VARCHAR) |
SELECT COUNT(DISTINCT LOCATION) FROM shop | How many different store locations are there? | CREATE TABLE shop (LOCATION VARCHAR) |
SELECT eliminated FROM table_25920798_2 WHERE finish = "Left Day 9" | Name the left day 9 finish for eliminated | CREATE TABLE table_25920798_2 (eliminated VARCHAR, finish VARCHAR) |
SELECT COUNT(pick__number) FROM table_name_75 WHERE overall = 114 | How many picks have an Overall of 114? | CREATE TABLE table_name_75 (pick__number VARCHAR, overall VARCHAR) |
SELECT date FROM table_name_60 WHERE record = "52-60" | For the record of 52-60 what's the date? | CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR) |
SELECT MAX(podiums) FROM table_name_78 WHERE race = 14 | During race 14, what's the podiums? | CREATE TABLE table_name_78 (podiums INTEGER, race VARCHAR) |
SELECT COUNT(rogers_cable__ottawa_) FROM table_name_58 WHERE digital_psip > 9.1 AND vidéotron__gatineau_ = 14 | What's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vidéotron (Gatineau) of channel 14? | CREATE TABLE table_name_58 (rogers_cable__ottawa_ VARCHAR, digital_psip VARCHAR, vidéotron__gatineau_ VARCHAR) |
SELECT case_type FROM table_name_57 WHERE cartridge_length = "64.77 (2.550)" | Which Case type has a Cartridge length of 64.77 (2.550)? | CREATE TABLE table_name_57 (case_type VARCHAR, cartridge_length VARCHAR) |
SELECT score FROM table_name_24 WHERE surface = "grass" | What was the score of the game that was played on a grass surface? | CREATE TABLE table_name_24 (score VARCHAR, surface VARCHAR) |
SELECT director FROM table_name_27 WHERE title = "2003" | Who is the director when the title is 2003? | CREATE TABLE table_name_27 (director VARCHAR, title VARCHAR) |
SELECT district FROM table_name_3 WHERE first_elected = 1858 AND result = "defeated democratic gain" AND incumbent = "james humphrey" | What district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain? | CREATE TABLE table_name_3 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR) |
SELECT table FROM table_27683516_3 WHERE team = "Slovan Bratislava" | What is the table when the team is slovan bratislava? | CREATE TABLE table_27683516_3 (table VARCHAR, team VARCHAR) |
SELECT resale FROM table_1773908_3 WHERE provider = "Netcologne" | What is the resale category for the provider NetCologne? | CREATE TABLE table_1773908_3 (resale VARCHAR, provider VARCHAR) |
SELECT AVG(game) FROM table_name_24 WHERE attendance = "65,666" | What is the average Game where there were 65,666 in attendance? | CREATE TABLE table_name_24 (game INTEGER, attendance VARCHAR) |
SELECT tc FROM table_name_40 WHERE wins = 1 AND races = 21 | Which T.C. has a Win of 1, and a Race of 21? | CREATE TABLE table_name_40 (tc VARCHAR, wins VARCHAR, races VARCHAR) |
SELECT date FROM table_name_77 WHERE opponent = "motherwell" AND venue = "fir park" | On what date was Motherwell the opponent at Fir Park? | CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, venue VARCHAR) |
SELECT MIN(rank) FROM table_name_24 WHERE total < 1 | What is the rank when the total is less than 1? | CREATE TABLE table_name_24 (rank INTEGER, total INTEGER) |
SELECT home_team AS score FROM table_name_47 WHERE away_team = "melbourne" | Who is the home team when melbourne is the away team? | CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) |
SELECT MAX(population) FROM table_name_86 WHERE per_capita_income = "$17,168" AND number_of_households > 3 OFFSET 287 | What is the highest Population, when Per Capita Income is "$17,168", and when Number of Households is greater than 3,287? | CREATE TABLE table_name_86 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR) |
SELECT MAX(crowd) FROM table_name_94 WHERE home_team = "north melbourne" | What is the largest crowd when north melbourne is the home side? | CREATE TABLE table_name_94 (crowd INTEGER, home_team VARCHAR) |
SELECT language FROM table_name_7 WHERE launch = 2006 AND hanzi = "青海电视台藏语综合频道" | Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道? | CREATE TABLE table_name_7 (language VARCHAR, launch VARCHAR, hanzi VARCHAR) |
SELECT AVG(total) FROM table_name_49 WHERE country = "united states" AND to_par = 9 AND player = "gay brewer" | What is the average total of Gay Brewer from the United States with a to par of 9? | CREATE TABLE table_name_49 (total INTEGER, player VARCHAR, country VARCHAR, to_par VARCHAR) |
SELECT no FROM table_15621965_17 WHERE school_club_team = "Arizona" | Which number belonged to the school team from Arizona? | CREATE TABLE table_15621965_17 (no VARCHAR, school_club_team VARCHAR) |
SELECT name FROM table_name_7 WHERE other = "3 (15)" | Which player has an Other of 3 (15)? | CREATE TABLE table_name_7 (name VARCHAR, other VARCHAR) |
SELECT faith FROM table_name_44 WHERE dcsf_number > 2448 AND name = "holtsmere end" | What faith has a DCSF number bigger than 2448 in Holtsmere End? | CREATE TABLE table_name_44 (faith VARCHAR, dcsf_number VARCHAR, name VARCHAR) |
SELECT COUNT(division) FROM table_name_32 WHERE country = "china" AND apps > 9 AND season = "2008" | What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008? | CREATE TABLE table_name_32 (division VARCHAR, season VARCHAR, country VARCHAR, apps VARCHAR) |
SELECT date FROM table_name_25 WHERE away = "ottawa swans" | On what date were the Ottawa Swans the away team? | CREATE TABLE table_name_25 (date VARCHAR, away VARCHAR) |
SELECT score FROM table_name_81 WHERE country = "canada" | What is Canada's score? | CREATE TABLE table_name_81 (score VARCHAR, country VARCHAR) |
SELECT series_sorted FROM table_1620397_5 WHERE _number = 3 | What series was sorted at number 3? | CREATE TABLE table_1620397_5 (series_sorted VARCHAR, _number VARCHAR) |
SELECT multi_1 FROM table_name_7 WHERE frequency = "2300mhz" AND release_date = "q3 2008" AND model_number = "turion x2 ultra zm-84" | Which Multi 1 has a Frequency of 2300mhz, and a Release date of q3 2008 and a Model number of turion x2 ultra zm-84? | CREATE TABLE table_name_7 (multi_1 VARCHAR, model_number VARCHAR, frequency VARCHAR, release_date VARCHAR) |
SELECT location FROM table_name_13 WHERE method = "decision draw" AND round < 5 | Where was the decision draw before round 5? | CREATE TABLE table_name_13 (location VARCHAR, method VARCHAR, round VARCHAR) |
SELECT district FROM table_2668254_8 WHERE incumbent = "Charles A. Wickliffe" | In what district was the incumbent Charles A. Wickliffe? | CREATE TABLE table_2668254_8 (district VARCHAR, incumbent VARCHAR) |
SELECT date FROM table_name_14 WHERE record = "8–6–3" | On what date was the record 8–6–3? | CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) |
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the customer who has the most orders? | CREATE TABLE orders (customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR) |
SELECT loss FROM table_name_8 WHERE date = "june 22" | Name the loss for june 22 | CREATE TABLE table_name_8 (loss VARCHAR, date VARCHAR) |
SELECT SUM(podiums) FROM table_name_18 WHERE class = "250cc" AND f_laps = 0 | How many Podiums have a Class of 250cc, and an F laps of 0? | CREATE TABLE table_name_18 (podiums INTEGER, class VARCHAR, f_laps VARCHAR) |
SELECT outcome FROM table_name_45 WHERE tournament = "leipzig" AND score = "w/o" | What was the outcome for the match at the leipzig tournament with a score w/o? | CREATE TABLE table_name_45 (outcome VARCHAR, tournament VARCHAR, score VARCHAR) |
SELECT MAX(points) FROM table_name_59 WHERE home = "toronto" AND game__number > 63 | What is the points where Toronto was the home team and the game number was larger than 63? | CREATE TABLE table_name_59 (points INTEGER, home VARCHAR, game__number VARCHAR) |
SELECT AVG(losses) FROM table_name_81 WHERE league = "nfl" AND season = 2011 AND wins < 13 | What is the losses in the NFL in the 2011 season with less than 13 wins? | CREATE TABLE table_name_81 (losses INTEGER, wins VARCHAR, league VARCHAR, season VARCHAR) |
SELECT score FROM table_name_54 WHERE home_team = "shrewsbury town" | When the home team was Shrewsbury town, what was the score? | CREATE TABLE table_name_54 (score VARCHAR, home_team VARCHAR) |
SELECT bayonet_lug FROM table_name_92 WHERE name = "ar-15 lightweight" | Name the bayonet lug with ar-15 lightweight | CREATE TABLE table_name_92 (bayonet_lug VARCHAR, name VARCHAR) |
SELECT result FROM table_name_97 WHERE couple = "steve & anna" | What was the result when the couple was steve & anna? | CREATE TABLE table_name_97 (result VARCHAR, couple VARCHAR) |
SELECT score FROM table_name_25 WHERE date = "21 april 2001" | what is the score for the game on 21 april 2001? | CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR) |
SELECT MAX(rank_by_average) FROM table_name_27 WHERE average = 25.3 AND number_of_dances > 10 | What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances? | CREATE TABLE table_name_27 (rank_by_average INTEGER, average VARCHAR, number_of_dances VARCHAR) |
SELECT attendance FROM table_name_94 WHERE away_team = "hereford united" | What is the Attendance at the Hereford United Away game? | CREATE TABLE table_name_94 (attendance VARCHAR, away_team VARCHAR) |
SELECT MIN(attempts) FROM table_11157122_5 WHERE player = "Charles White" | How many attempts did Charles White make? | CREATE TABLE table_11157122_5 (attempts INTEGER, player VARCHAR) |
SELECT SUM(top_25) FROM table_name_65 WHERE wins < 1 AND events = 12 | Name the top-25 with wins less than 1 and events of 12 | CREATE TABLE table_name_65 (top_25 INTEGER, wins VARCHAR, events VARCHAR) |
SELECT type FROM table_1973842_1 WHERE nickname = "Spirits" | What's the type of the school whose students' name is spirits? | CREATE TABLE table_1973842_1 (type VARCHAR, nickname VARCHAR) |
SELECT chassis FROM table_name_96 WHERE rank = "24th" | Which chassis is ranked 24th? | CREATE TABLE table_name_96 (chassis VARCHAR, rank VARCHAR) |
SELECT score FROM table_name_43 WHERE date = "september 14" | what was the score on september 14 | CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR) |
SELECT MAX(total) FROM table_name_80 WHERE championship < 1 | What is the highest total when there is less than 1 championship? | CREATE TABLE table_name_80 (total INTEGER, championship INTEGER) |
SELECT series_premiere FROM table_name_25 WHERE tv_network_s_ = "acasa tv" | Which series premiered on Acasa TV? | CREATE TABLE table_name_25 (series_premiere VARCHAR, tv_network_s_ VARCHAR) |
SELECT player FROM table_name_35 WHERE score = 68 AND country = "canada" | Which player has 68 as the score and canada as the country? | CREATE TABLE table_name_35 (player VARCHAR, score VARCHAR, country VARCHAR) |
SELECT iata FROM table_name_35 WHERE icao = "hesh" | What is IATA, when ICAO is "Hesh"? | CREATE TABLE table_name_35 (iata VARCHAR, icao VARCHAR) |
SELECT class FROM table_name_66 WHERE no_built = 55 | Which class at 55 built? | CREATE TABLE table_name_66 (class VARCHAR, no_built VARCHAR) |
SELECT opponents FROM table_name_43 WHERE partner = "mashona washington" AND date = "november 21, 2009" | Tell me the opponents for mashona washington november 21, 2009 | CREATE TABLE table_name_43 (opponents VARCHAR, partner VARCHAR, date VARCHAR) |
SELECT position FROM table_name_67 WHERE entrant = "j ampt" | Can you tell me the Position that has the Entrant of j ampt? | CREATE TABLE table_name_67 (position VARCHAR, entrant VARCHAR) |
SELECT AVG(total) FROM table_name_69 WHERE gold = 0 AND rank = "6" | What average total has 0 as the gold, with 6 as the rank? | CREATE TABLE table_name_69 (total INTEGER, gold VARCHAR, rank VARCHAR) |
SELECT MAX(points) FROM table_name_83 WHERE draw = 2 AND played < 18 | What was the highest number of points scored when there was a draw of 2 and when the amount played was 18? | CREATE TABLE table_name_83 (points INTEGER, draw VARCHAR, played VARCHAR) |
SELECT meet FROM table_name_67 WHERE club = "centro de natacon carabobo" | Which Meet has a Club of centro de natacon carabobo? | CREATE TABLE table_name_67 (meet VARCHAR, club VARCHAR) |
SELECT party FROM table_1342218_35 WHERE district = "Ohio 7" | What party does the incumbent from the Ohio 7 district belong to? | CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) |
SELECT to_par FROM table_name_59 WHERE total = 290 | When the total was 290 what was the To par? | CREATE TABLE table_name_59 (to_par VARCHAR, total VARCHAR) |
SELECT place FROM table_1350350_2 WHERE per_capita_income = "$14,793" | who is the the place with per capita income being $14,793 | CREATE TABLE table_1350350_2 (place VARCHAR, per_capita_income VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_22 WHERE team_1 = "sporting" | WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING? | CREATE TABLE table_name_22 (team_1 VARCHAR) |
SELECT root_of_all_evil FROM table_name_33 WHERE original_air_date = "september 3, 2008" | What is the Root of All Evil with an Original air date that is september 3, 2008? | CREATE TABLE table_name_33 (root_of_all_evil VARCHAR, original_air_date VARCHAR) |
SELECT record FROM table_name_30 WHERE loss = "williams (3-1)" | What was the record for the game that had a loss of Williams (3-1)? | CREATE TABLE table_name_30 (record VARCHAR, loss VARCHAR) |
SELECT style FROM table_name_12 WHERE results = "safe" AND choreographer = "nacho pop" | What is the Style of the dance Choreographed by Nacho Pop with result of safe? | CREATE TABLE table_name_12 (style VARCHAR, results VARCHAR, choreographer VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.