answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT team FROM table_name_39 WHERE wrestler = "doug basham" | Who is Doug Basham's team? | CREATE TABLE table_name_39 (team VARCHAR, wrestler VARCHAR) |
SELECT date FROM table_name_27 WHERE game = 23 | What is the date of game 23? | CREATE TABLE table_name_27 (date VARCHAR, game VARCHAR) |
SELECT date_of_appointment FROM table_name_53 WHERE outgoing_manager = "javier aguirre" | What was the date of appointment for javier aguirre's replacement? | CREATE TABLE table_name_53 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
SELECT muzzle_device FROM table_12834315_5 WHERE colt_model_no = "LE1020" | What is the muzzle device on the colt model le1020? | CREATE TABLE table_12834315_5 (muzzle_device VARCHAR, colt_model_no VARCHAR) |
SELECT date FROM table_name_11 WHERE away_team = "essendon" | On what Date did the Away team essendon play? | CREATE TABLE table_name_11 (date VARCHAR, away_team VARCHAR) |
SELECT high_assists FROM table_name_85 WHERE high_rebounds = "nick collison (11)" | What is the high assists score of Nick Collison (11)? | CREATE TABLE table_name_85 (high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT candidates FROM table_1342315_10 WHERE district = "Georgia 4" | Who ran for office at the Georgia 4 district in this election? | CREATE TABLE table_1342315_10 (candidates VARCHAR, district VARCHAR) |
SELECT laps FROM table_name_67 WHERE time_retired = "+1 lap" AND driver = "jean-christophe boullion" | How many laps does jean-christophe boullion have with a time/retired of +1 lap? | CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR) |
SELECT attendance FROM table_name_28 WHERE date = "january 2, 2005" | What's the attendance for the game held on January 2, 2005? | CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR) |
SELECT writer_s_ FROM table_13403120_1 WHERE prodcode = "30-17" | who is the writer of the episode with prod.code 30-17 | CREATE TABLE table_13403120_1 (writer_s_ VARCHAR, prodcode VARCHAR) |
SELECT us_viewers__million_ FROM table_2602958_3 WHERE no = 38 | How many viewers in millions for episode number 38? | CREATE TABLE table_2602958_3 (us_viewers__million_ VARCHAR, no VARCHAR) |
SELECT title FROM table_25800134_4 WHERE season__number = 33 | What is the title of #33? | CREATE TABLE table_25800134_4 (title VARCHAR, season__number VARCHAR) |
SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade | For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade. | CREATE TABLE list (grade VARCHAR, classroom VARCHAR) |
SELECT name FROM table_name_21 WHERE length__ft_ = 71 | Who has a length of 71 ft? | CREATE TABLE table_name_21 (name VARCHAR, length__ft_ VARCHAR) |
SELECT score FROM table_15872814_4 WHERE date = "December 28" | Name the score for december 28 | CREATE TABLE table_15872814_4 (score VARCHAR, date VARCHAR) |
SELECT college FROM table_16575609_5 WHERE player = "Dante Luciani" | Where did Dante Luciani attend college? | CREATE TABLE table_16575609_5 (college VARCHAR, player VARCHAR) |
SELECT telugu_తెలుగు FROM table_1408397_3 WHERE mongolian = "Хонгорцог" | What is the Telugu word for хонгорцог in Mongolian? | CREATE TABLE table_1408397_3 (telugu_తెలుగు VARCHAR, mongolian VARCHAR) |
SELECT LOCATION FROM station GROUP BY LOCATION HAVING COUNT(*) = 1 | Show all locations with only 1 station. | CREATE TABLE station (LOCATION VARCHAR) |
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' | which countries' tv channels are playing some cartoon written by Todd Casey? | CREATE TABLE TV_Channel (country VARCHAR, id VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, written_by VARCHAR) |
SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS | How many distinct transaction types are used in the transactions? | CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR) |
SELECT venue FROM table_17120964_9 WHERE date = "22nd" | what was the venue where the date was the 22nd? | CREATE TABLE table_17120964_9 (venue VARCHAR, date VARCHAR) |
SELECT engine FROM table_name_73 WHERE points > 62 AND entrant = "rebaque" | What is the Motor that has a Focuses bigger than 62, and a Participant of rebaque? | CREATE TABLE table_name_73 (engine VARCHAR, points VARCHAR, entrant VARCHAR) |
SELECT attendance FROM table_name_76 WHERE date = "bye" | What is the attendance of the game that had a date listed as Bye? | CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR) |
SELECT apple FROM table_3002894_4 WHERE sonnet = "4 MB" | When 4 mb is the sonnet what is the apple? | CREATE TABLE table_3002894_4 (apple VARCHAR, sonnet VARCHAR) |
SELECT surface FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas" | What was the surface for the opponents in the final with fitzgerald vilas? | CREATE TABLE table_22597626_17 (surface VARCHAR, opponents_in_the_final VARCHAR) |
SELECT AVG(round) FROM table_name_8 WHERE event = "ufc on fox: velasquez vs. dos santos" | What is the round for the ufc on fox: velasquez vs. dos santos event? | CREATE TABLE table_name_8 (round INTEGER, event VARCHAR) |
SELECT AVG(weight), MIN(weight), sex FROM people GROUP BY sex | Find the average and minimum weight for each gender. | CREATE TABLE people (sex VARCHAR, weight INTEGER) |
SELECT gwr_nos FROM table_name_56 WHERE quantity = 4 | What GWR is associated with 4? | CREATE TABLE table_name_56 (gwr_nos VARCHAR, quantity VARCHAR) |
SELECT record FROM table_name_22 WHERE event = "pride shockwave 2004" | What Record has an Event of Pride Shockwave 2004? | CREATE TABLE table_name_22 (record VARCHAR, event VARCHAR) |
SELECT COUNT(overall) FROM table_name_26 WHERE position = "safety" AND round > 1 | What is the total of overall values with a safety position in a round greater than 1? | CREATE TABLE table_name_26 (overall VARCHAR, position VARCHAR, round VARCHAR) |
SELECT album FROM table_name_27 WHERE year = "june 1998" | Which album was on June 1998? | CREATE TABLE table_name_27 (album VARCHAR, year VARCHAR) |
SELECT record FROM table_name_79 WHERE game = 36 | What is Record, when Game is "36"? | CREATE TABLE table_name_79 (record VARCHAR, game VARCHAR) |
SELECT winning_applicant FROM table_name_45 WHERE block = "10d" AND ensemble_name = "muxco lincolnshire" | Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D? | CREATE TABLE table_name_45 (winning_applicant VARCHAR, block VARCHAR, ensemble_name VARCHAR) |
SELECT car__number FROM table_name_72 WHERE driver = "brendan gaughan" | What is Brendan Gaughan's Car #? | CREATE TABLE table_name_72 (car__number VARCHAR, driver VARCHAR) |
SELECT class FROM table_1745843_6 WHERE part_1 = "lesan" | What's the class of the verb whose part 1 is lesan? | CREATE TABLE table_1745843_6 (class VARCHAR, part_1 VARCHAR) |
SELECT MAX(season__number) FROM table_25131572_3 WHERE written_by = "Daegan Fryklind" | What is the highest season# for the writer Daegan Fryklind? | CREATE TABLE table_25131572_3 (season__number INTEGER, written_by VARCHAR) |
SELECT school FROM table_name_73 WHERE soccer = "yes" AND tennis = "yes" AND indoor_track = "yes" | Which school has yes for soccer, tennis and indoor track. | CREATE TABLE table_name_73 (school VARCHAR, indoor_track VARCHAR, soccer VARCHAR, tennis VARCHAR) |
SELECT height_ft__m_ FROM table_name_12 WHERE floors < 11 | What is the hight in ft and m of the building with less than 11 floors? | CREATE TABLE table_name_12 (height_ft__m_ VARCHAR, floors INTEGER) |
SELECT opponent FROM table_name_66 WHERE date = "november 20, 1995" | Who is the opponent of the game played on November 20, 1995? | CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR) |
SELECT attendance FROM table_name_39 WHERE week = 2 | What was the attendance for week 2? | CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR) |
SELECT high_rebounds FROM table_27756314_10 WHERE date = "March 25" | Who had high rebounds when the date was march 25? | CREATE TABLE table_27756314_10 (high_rebounds VARCHAR, date VARCHAR) |
SELECT country FROM table_name_69 WHERE year = 2012 | What was the country in the year 2012? | CREATE TABLE table_name_69 (country VARCHAR, year VARCHAR) |
SELECT fate_and_location FROM table_name_3 WHERE ship = "ringstad" | What was the fate and location of the Ringstad? | CREATE TABLE table_name_3 (fate_and_location VARCHAR, ship VARCHAR) |
SELECT SUM(laps) FROM table_name_1 WHERE year = 2011 | What is the total laps for the year 2011? | CREATE TABLE table_name_1 (laps INTEGER, year VARCHAR) |
SELECT COUNT(2004) FROM table_name_47 WHERE 2005 < 56 AND 2006 = 14 | What Country has a number smaller than 56 in 2005 and of 14 in 2006? | CREATE TABLE table_name_47 (Id VARCHAR) |
SELECT score FROM table_name_58 WHERE player = "raymond floyd" | What was Raymond Floyd's score? | CREATE TABLE table_name_58 (score VARCHAR, player VARCHAR) |
SELECT MAX(rank) FROM table_name_35 WHERE bronze < 2 AND gold > 1 AND silver < 1 | What is the highest rank with less than 2 bronze, more than 1 gold, and less than 1 silver? | CREATE TABLE table_name_35 (rank INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) |
SELECT college_junior_club_team FROM table_name_43 WHERE nhl_team = "new york rangers" AND position = "defence" | What is the college/junior/club team of the defence player drafted by the New York Rangers? | CREATE TABLE table_name_43 (college_junior_club_team VARCHAR, nhl_team VARCHAR, position VARCHAR) |
SELECT high_assists FROM table_name_85 WHERE score = "w 71-56" | Which High assists has a Score of w 71-56? | CREATE TABLE table_name_85 (high_assists VARCHAR, score VARCHAR) |
SELECT home_team AS score FROM table_name_76 WHERE away_team = "essendon" | Which home team has an Away team of essendon? | CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR) |
SELECT result FROM table_name_73 WHERE attendance = "54,110" | What was the result of the game attended by 54,110? | CREATE TABLE table_name_73 (result VARCHAR, attendance VARCHAR) |
SELECT disbanded FROM table_name_73 WHERE league = "ahl" | Which disbanded is in the ahl league? | CREATE TABLE table_name_73 (disbanded VARCHAR, league VARCHAR) |
SELECT COUNT(high_assists) FROM table_17325937_8 WHERE team = "San Antonio" | How many assists were made in the game against San Antonio? | CREATE TABLE table_17325937_8 (high_assists VARCHAR, team VARCHAR) |
SELECT season FROM table_2311410_1 WHERE winning_profit___aud__ = "$15,000" | What season had a winning profit of $15,000? | CREATE TABLE table_2311410_1 (season VARCHAR, winning_profit___aud__ VARCHAR) |
SELECT result FROM table_1342218_43 WHERE incumbent = "Milton H. West" | What was the result for the incumbent Milton H. West? | CREATE TABLE table_1342218_43 (result VARCHAR, incumbent VARCHAR) |
SELECT MIN(safeties) FROM table_25642873_2 | What is the smallest number of safeties? | CREATE TABLE table_25642873_2 (safeties INTEGER) |
SELECT player FROM table_name_73 WHERE college = "appalachian state" | What is the Player from appalachian state? | CREATE TABLE table_name_73 (player VARCHAR, college VARCHAR) |
SELECT MIN(game) FROM table_name_13 WHERE score = "129–105" | What Game had a Score of 129–105? | CREATE TABLE table_name_13 (game INTEGER, score VARCHAR) |
SELECT record_label FROM table_name_46 WHERE title = "诀别诗" | Which Record label has a Title of 诀别诗? | CREATE TABLE table_name_46 (record_label VARCHAR, title VARCHAR) |
SELECT high_points FROM table_23274514_6 WHERE date = "January 2" | Who had the highest points on January 2? | CREATE TABLE table_23274514_6 (high_points VARCHAR, date VARCHAR) |
SELECT listed FROM table_name_34 WHERE name = "oakachoy covered bridge" | When was the oakachoy covered bridge listed? | CREATE TABLE table_name_34 (listed VARCHAR, name VARCHAR) |
SELECT COUNT(directed_by) FROM table_26961951_4 WHERE written_by = "Alison McDonald" | How many episodes were written by Alison McDonald? | CREATE TABLE table_26961951_4 (directed_by VARCHAR, written_by VARCHAR) |
SELECT score FROM table_name_12 WHERE time = "18:00" AND set_3 = "13–25" | What is the score with a time at 18:00 and a score for set 3 of 13–25? | CREATE TABLE table_name_12 (score VARCHAR, time VARCHAR, set_3 VARCHAR) |
SELECT verb_meaning FROM table_name_26 WHERE part_1 = "*haldaną *fanhaną" | What is the verb meaning of *haldaną *fanhaną in part 1? | CREATE TABLE table_name_26 (verb_meaning VARCHAR, part_1 VARCHAR) |
SELECT title FROM table_name_79 WHERE year = "1991" | What is the title in 1991? | CREATE TABLE table_name_79 (title VARCHAR, year VARCHAR) |
SELECT nhl_team FROM table_2679061_1 WHERE player = "John MacLean" | what is the nhl team for the player john maclean? | CREATE TABLE table_2679061_1 (nhl_team VARCHAR, player VARCHAR) |
SELECT mascot FROM table_name_76 WHERE school = "logansport community" | Which Mascot has a School of logansport community? | CREATE TABLE table_name_76 (mascot VARCHAR, school VARCHAR) |
SELECT competition FROM table_name_86 WHERE score = "4-3" | Which competition had a 4-3 score? | CREATE TABLE table_name_86 (competition VARCHAR, score VARCHAR) |
SELECT MAX(goals_for) FROM table_name_1 WHERE drawn < 4 | What is the most goals for when there are fewer than 4 draws? | CREATE TABLE table_name_1 (goals_for INTEGER, drawn INTEGER) |
SELECT soap_opera FROM table_name_33 WHERE years = "1960–1965, 1965–1983, 1984–2010" | What soap opera was on 1960–1965, 1965–1983, 1984–2010? | CREATE TABLE table_name_33 (soap_opera VARCHAR, years VARCHAR) |
SELECT MAX(won__pg_) FROM table_name_85 WHERE goals_conceded__gc_ < 21 AND played__pj_ < 18 | What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played? | CREATE TABLE table_name_85 (won__pg_ INTEGER, goals_conceded__gc_ VARCHAR, played__pj_ VARCHAR) |
SELECT surface FROM table_name_31 WHERE opponent = "jiří vaněk" | What is Surface, when Opponent is "Jiří Vaněk"? | CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR) |
SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Mein Name Ist Bach" | What was the language of "Mein Name Ist Bach"? | CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT us_viewers__millions_ FROM table_12159115_3 WHERE directed_by = "Tawnia McKiernan" | How many viewers, in millions, were for the episode directed by Tawnia McKiernan? | CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) |
SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY COUNT(*) DESC LIMIT 1 | Which song has the most vocals? | CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) |
SELECT COUNT(first_elected) FROM table_name_76 WHERE result = "re-elected" AND party = "republican" AND district = "illinois 4" | How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4? | CREATE TABLE table_name_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) |
SELECT pole_position FROM table_1132568_3 WHERE grand_prix = "French grand_prix" | Who is in the pole position for the French Grand Prix? | CREATE TABLE table_1132568_3 (pole_position VARCHAR, grand_prix VARCHAR) |
SELECT MIN(norwegian_americans__1980_) FROM table_1182314_5 WHERE state = "Rhode Island" | what is the minimum norwegian americans (1980) where state is rhode island | CREATE TABLE table_1182314_5 (norwegian_americans__1980_ INTEGER, state VARCHAR) |
SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787" | What Year has a Tyre of D, and Chassis of Mazda 787? | CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR) |
SELECT finalist FROM table_19651669_1 WHERE season = "2007-08" | Who was the finalist in the season 2007-08? | CREATE TABLE table_19651669_1 (finalist VARCHAR, season VARCHAR) |
SELECT MIN(year) FROM table_1529260_2 | What is the lowest year listed? | CREATE TABLE table_1529260_2 (year INTEGER) |
SELECT MIN(overall) FROM table_name_7 WHERE college = "oregon state" | What is the smallest overall for Oregon State? | CREATE TABLE table_name_7 (overall INTEGER, college VARCHAR) |
SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50 | What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7? | CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR) |
SELECT date FROM table_name_83 WHERE surface = "hard" AND score = "6–4, 2–6, 3–6" | What date was the match on a hard surface with a score of 6–4, 2–6, 3–6? | CREATE TABLE table_name_83 (date VARCHAR, surface VARCHAR, score VARCHAR) |
SELECT short_stem FROM table_name_56 WHERE perfect_stem = "poztu" | What is the short stem for the word that has a perfect stem of poztu? | CREATE TABLE table_name_56 (short_stem VARCHAR, perfect_stem VARCHAR) |
SELECT venue FROM table_name_52 WHERE competition = "european championships" AND notes = "61.46 m" | Where was European Championships held with notes of 61.46 m? | CREATE TABLE table_name_52 (venue VARCHAR, competition VARCHAR, notes VARCHAR) |
SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by | Find the number of cartoons directed by each of the listed directors. | CREATE TABLE cartoon (Directed_by VARCHAR) |
SELECT MIN(wins) FROM table_name_93 WHERE games_played = 7 AND goals_against < 46 AND goals_for > 34 | What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34? | CREATE TABLE table_name_93 (wins INTEGER, goals_for VARCHAR, games_played VARCHAR, goals_against VARCHAR) |
SELECT MAX(top_5) FROM table_name_29 WHERE top_25 < 4 AND cuts_made > 3 AND wins < 0 | what is the highest top-5 when the top-25 is less than 4, cuts made is more than 3 and wins is 0? | CREATE TABLE table_name_29 (top_5 INTEGER, wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) |
SELECT SUM(bronze) FROM table_name_27 WHERE gold < 0 | What's the Bronze cumulative number for less than 0 gold? | CREATE TABLE table_name_27 (bronze INTEGER, gold INTEGER) |
SELECT SUM(clubs_involved) FROM table_name_88 WHERE clubs_remaining = 2 | How many clubs are involved when the clubs remaining are 2? | CREATE TABLE table_name_88 (clubs_involved INTEGER, clubs_remaining VARCHAR) |
SELECT AVG(total) FROM table_name_93 WHERE gold = 2 AND silver < 1 | What is the average total medals of the team with 2 gold and less than 1 silver? | CREATE TABLE table_name_93 (total INTEGER, gold VARCHAR, silver VARCHAR) |
SELECT MIN(field_goals) FROM table_24908692_5 WHERE assists = 84 | What is the minimum number of field goals associated with exactly 84 assists? | CREATE TABLE table_24908692_5 (field_goals INTEGER, assists VARCHAR) |
SELECT position FROM table_name_31 WHERE college = "colorado" | Which Position has a College of colorado? | CREATE TABLE table_name_31 (position VARCHAR, college VARCHAR) |
SELECT AVG(played) FROM table_name_81 WHERE goals_conceded < 16 | What is the mean played number where the goals conceded is less than 16? | CREATE TABLE table_name_81 (played INTEGER, goals_conceded INTEGER) |
SELECT males FROM table_name_44 WHERE percentage___percentage_ = "87.5" | Which language do 87.5% of males speak? | CREATE TABLE table_name_44 (males VARCHAR, percentage___percentage_ VARCHAR) |
SELECT no_5 FROM table_name_17 WHERE no_6 = "mason" AND no_10 = "jackson" | Who was No. 5 when No. 6 Mason and No. 10 Jackson? | CREATE TABLE table_name_17 (no_5 VARCHAR, no_6 VARCHAR, no_10 VARCHAR) |
SELECT MAX(average) FROM table_name_45 WHERE state = "texas" AND swimsuit > 8.839 | What is the highest mean number for Texas when the swimsuit stat was more than 8.839? | CREATE TABLE table_name_45 (average INTEGER, state VARCHAR, swimsuit VARCHAR) |
SELECT project_id, COUNT(*) FROM Documents GROUP BY project_id | Show project ids and the number of documents in each project. | CREATE TABLE Documents (project_id VARCHAR) |
SELECT podiums FROM table_name_38 WHERE f_laps = "0" AND points = "39" | What listing for Podiums has 0 F/laps and 39 points? | CREATE TABLE table_name_38 (podiums VARCHAR, f_laps VARCHAR, points VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.