answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT SUM(pages) FROM table_name_30 WHERE vol__number < 8 AND isbn = "1-40122-892-5" | How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have? | CREATE TABLE table_name_30 (pages INTEGER, vol__number VARCHAR, isbn VARCHAR) |
SELECT team FROM table_17382360_7 WHERE date = "February 18" | what team play in february 18 in the supersonic season | CREATE TABLE table_17382360_7 (team VARCHAR, date VARCHAR) |
SELECT classification FROM table_2266990_2 WHERE title = "Fish Rap Live!" | What classifications does Fish Rap live! has? | CREATE TABLE table_2266990_2 (classification VARCHAR, title VARCHAR) |
SELECT introductory_phrase FROM table_14835674_1 WHERE production_code = 4005 | What was the inroductory phase for the episode with production code 4005? | CREATE TABLE table_14835674_1 (introductory_phrase VARCHAR, production_code VARCHAR) |
SELECT score FROM table_name_30 WHERE result = "5–0" | What was the score of the game that had a result of 5–0? | CREATE TABLE table_name_30 (score VARCHAR, result VARCHAR) |
SELECT date FROM table_name_21 WHERE team = "golden state" | Can you tell me the Date that has the Team of golden state? | CREATE TABLE table_name_21 (date VARCHAR, team VARCHAR) |
SELECT SUM(population__2008_) FROM table_name_55 WHERE korean = "함흥" | What is the 2008 population in 함흥 (Ham Hyung)? | CREATE TABLE table_name_55 (population__2008_ INTEGER, korean VARCHAR) |
SELECT player FROM table_name_67 WHERE no_s_ = "20" | What player had numbers of 20 | CREATE TABLE table_name_67 (player VARCHAR, no_s_ VARCHAR) |
SELECT primary_sponsor_s_ FROM table_name_78 WHERE driver_s_ = "mark martin" | What is the primary sponsor of driver Mark Martin? | CREATE TABLE table_name_78 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) |
SELECT MIN(championships) FROM table_name_94 WHERE years_won = "1971" | Who won the ABA Championship in 1971? | CREATE TABLE table_name_94 (championships INTEGER, years_won VARCHAR) |
SELECT score FROM table_name_68 WHERE year > 1978 AND champion = "stefan edberg" | What was the score when stefan edberg won after 1978? | CREATE TABLE table_name_68 (score VARCHAR, year VARCHAR, champion VARCHAR) |
SELECT written_by FROM table_25716399_1 WHERE no_in_season = 14 | Who was the writer for season 14? | CREATE TABLE table_25716399_1 (written_by VARCHAR, no_in_season VARCHAR) |
SELECT res FROM table_name_66 WHERE time = "4:15" | What was the result when the time was 4:15? | CREATE TABLE table_name_66 (res VARCHAR, time VARCHAR) |
SELECT third FROM table_name_56 WHERE nation = "germany" | Who is the third alternate for Germany? | CREATE TABLE table_name_56 (third VARCHAR, nation VARCHAR) |
SELECT MAX(year_s_) FROM table_17766232_7 WHERE spokesperson = "Colin Berry" | What was the latest year that Colin Berry was the spokesperson? | CREATE TABLE table_17766232_7 (year_s_ INTEGER, spokesperson VARCHAR) |
SELECT AVG(ranking) FROM table_name_53 WHERE nationality = "saudi arabia" AND years = "2000–" | What was the average ranking of Saudi Arabia in the years of 2000–? | CREATE TABLE table_name_53 (ranking INTEGER, nationality VARCHAR, years VARCHAR) |
SELECT result FROM table_19753079_35 WHERE district = "New York 8" | Name the result for new york 8 | CREATE TABLE table_19753079_35 (result VARCHAR, district VARCHAR) |
SELECT title FROM Movie WHERE director = 'Steven Spielberg' | Find the titles of all movies directed by steven spielberg. | CREATE TABLE Movie (title VARCHAR, director VARCHAR) |
SELECT tues_25_aug FROM table_23465864_3 WHERE rank = 6 | When 6 is the rank what is the time for Tuesday August 25th? | CREATE TABLE table_23465864_3 (tues_25_aug VARCHAR, rank VARCHAR) |
SELECT T1.title, T1.credits, T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) > 1 | Find the title, credit, and department name of courses that have more than one prerequisites? | CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, dept_name VARCHAR, course_id VARCHAR) |
SELECT MAX(arabs_2001) FROM table_1939367_1 WHERE province = "Manitoba" | If the province is Manitoba, what is the Arabs 2001 number? | CREATE TABLE table_1939367_1 (arabs_2001 INTEGER, province VARCHAR) |
SELECT COUNT(tournament) FROM table_2417741_1 WHERE year = 1999 | When 1999 is the year how many tournaments are there? | CREATE TABLE table_2417741_1 (tournament VARCHAR, year VARCHAR) |
SELECT accolade FROM table_name_44 WHERE publication = "under the radar" | Which Accolade had a publication of Under the Radar? | CREATE TABLE table_name_44 (accolade VARCHAR, publication VARCHAR) |
SELECT population FROM table_1333612_1 WHERE country = "Chile" | what's the population with country being chile | CREATE TABLE table_1333612_1 (population VARCHAR, country VARCHAR) |
SELECT COUNT(minor_sponsors) FROM table_187239_1 WHERE kit_manufacturer = "Olympikus" AND period = "2011" | When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there? | CREATE TABLE table_187239_1 (minor_sponsors VARCHAR, kit_manufacturer VARCHAR, period VARCHAR) |
SELECT date FROM table_name_68 WHERE runner_up_skip = "binia feltscher-beeli" | What date shows Binia Feltscher-Beeli as the runner-up skip? | CREATE TABLE table_name_68 (date VARCHAR, runner_up_skip VARCHAR) |
SELECT region FROM table_name_71 WHERE japanese = "八尾" | What region has the symbol 八尾? | CREATE TABLE table_name_71 (region VARCHAR, japanese VARCHAR) |
SELECT record FROM table_name_75 WHERE score = "111-89" | What record has the score 111-89? | CREATE TABLE table_name_75 (record VARCHAR, score VARCHAR) |
SELECT score FROM table_name_83 WHERE country = "canada" AND place = "t8" | what's the score in canada with place of t8? | CREATE TABLE table_name_83 (score VARCHAR, country VARCHAR, place VARCHAR) |
SELECT total FROM table_name_27 WHERE rank_points = "olympic bronze medalist" | Which Total has an olympic bronze medalist? | CREATE TABLE table_name_27 (total VARCHAR, rank_points VARCHAR) |
SELECT COUNT(*), account_id FROM Financial_transactions | How many transaction does each account have? Show the number and account id. | CREATE TABLE Financial_transactions (account_id VARCHAR) |
SELECT driving_force_ex FROM table_name_87 WHERE gt_force = "yes" AND g27_racing_wheel = "16" | GT Force of yes, and a G27 Racing Wheel of 16 involves which driving force ex? | CREATE TABLE table_name_87 (driving_force_ex VARCHAR, gt_force VARCHAR, g27_racing_wheel VARCHAR) |
SELECT method_of_elimination FROM table_24628683_2 WHERE time = "24:02" | What was the method of elimination in the chamber with a time of 24:02? | CREATE TABLE table_24628683_2 (method_of_elimination VARCHAR, time VARCHAR) |
SELECT game_1 FROM table_name_88 WHERE position = "fullback" | Which Game 1 has a fullback? | CREATE TABLE table_name_88 (game_1 VARCHAR, position VARCHAR) |
SELECT partner FROM table_2259502_2 WHERE score = "1-6, 2-6" | Who were the partners in games where the score was 1-6, 2-6? | CREATE TABLE table_2259502_2 (partner VARCHAR, score VARCHAR) |
SELECT winner_and_score FROM table_name_54 WHERE week = "april 22" | Who is the winner and score during the week of April 22? | CREATE TABLE table_name_54 (winner_and_score VARCHAR, week VARCHAR) |
SELECT SUM(losses) FROM table_name_9 WHERE manager = "jim hoff" AND wins < 12 | What was Jim Hoff's sum of losses and a wins smaller than 12? | CREATE TABLE table_name_9 (losses INTEGER, manager VARCHAR, wins VARCHAR) |
SELECT MAX(innings) FROM table_20367820_16 WHERE average = "36.48" | What is the innings when the average is 36.48? | CREATE TABLE table_20367820_16 (innings INTEGER, average VARCHAR) |
SELECT attendance FROM table_name_37 WHERE date = "13 april 1903" | How many Attendances on 13 april 1903? | CREATE TABLE table_name_37 (attendance VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_67 WHERE result = "win" AND date = "aug 7" | What is Opponent, when Result is Win, and when Date is Aug 7? | CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR, date VARCHAR) |
SELECT time_of_airing_on_channel_4 FROM table_name_74 WHERE episode_number > 106 AND title = "marry me a little" | What time did Channel 4 air an episode number larger than 106 with the title of Marry Me A Little? | CREATE TABLE table_name_74 (time_of_airing_on_channel_4 VARCHAR, episode_number VARCHAR, title VARCHAR) |
SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = "3X6704" | Name the viewers for production code for 3x6704 | CREATE TABLE table_22347090_5 (us_viewers__million_ VARCHAR, production_code VARCHAR) |
SELECT enrollment FROM table_name_4 WHERE primary_conference = "mid-hoosier" AND county = "16 decatur" AND ihsaa_class = "aa" | Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa? | CREATE TABLE table_name_4 (enrollment VARCHAR, ihsaa_class VARCHAR, primary_conference VARCHAR, county VARCHAR) |
SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros" | What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35? | CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR) |
SELECT date FROM table_name_77 WHERE week = 3 | What date is week 3? | CREATE TABLE table_name_77 (date VARCHAR, week VARCHAR) |
SELECT COUNT(high_points) FROM table_13762472_3 WHERE team = "New Orleans/Oklahoma City" | How many players scored the most points when the opposing team was New Orleans/Oklahoma City? | CREATE TABLE table_13762472_3 (high_points VARCHAR, team VARCHAR) |
SELECT player FROM table_name_5 WHERE pba_team = "red bull thunder" | Which player has a PBA team of Red Bull Thunder? | CREATE TABLE table_name_5 (player VARCHAR, pba_team VARCHAR) |
SELECT MIN(year) FROM table_name_74 WHERE gold = "south korea" AND bronze = "malaysia" | What was the first year that South Korea won gold and Malaysia won bronze? | CREATE TABLE table_name_74 (year INTEGER, gold VARCHAR, bronze VARCHAR) |
SELECT hole FROM table_name_75 WHERE country = "united states" AND player = "mike reid" | How many holes did Mike Reid from United States have? | CREATE TABLE table_name_75 (hole VARCHAR, country VARCHAR, player VARCHAR) |
SELECT SUM(floors) FROM table_name_73 WHERE built > 2006 AND rank = 12 | What's the total number of floors built after 2006, and have a rank of 12? | CREATE TABLE table_name_73 (floors INTEGER, built VARCHAR, rank VARCHAR) |
SELECT broadcast_area FROM table_2638104_1 WHERE channel = 1 | What is the broadcast are for channel 1? | CREATE TABLE table_2638104_1 (broadcast_area VARCHAR, channel VARCHAR) |
SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65" | When was the 'first season of current spell in top division' if the first season in top division is in 1964-65? | CREATE TABLE table_18143210_2 (first_season_of_current_spell_in_top_division VARCHAR, first_season_in_top_division VARCHAR) |
SELECT MIN(miss_international) FROM table_29942205_1 WHERE rank = 1 | How many women has reached the title of Miss International representing the country ranked as number 1? | CREATE TABLE table_29942205_1 (miss_international INTEGER, rank VARCHAR) |
SELECT COUnT AS n FROM table_13770460_3 WHERE ends = "1 year" | How many numbers are ending in 1 year? | CREATE TABLE table_13770460_3 (COUnT VARCHAR, ends VARCHAR) |
SELECT AVG(season) FROM table_name_14 WHERE f_laps = 1 AND poles < 0 | What is the average Season, when F/Laps is 1, and when Poles is less than 0? | CREATE TABLE table_name_14 (season INTEGER, f_laps VARCHAR, poles VARCHAR) |
SELECT h_a_n FROM table_name_12 WHERE score = "108-102" | What was the H/A/N for the game that ended in a score of 108-102? | CREATE TABLE table_name_12 (h_a_n VARCHAR, score VARCHAR) |
SELECT attendance FROM table_21269143_1 WHERE round = "23" | Name the attendace for 23 round | CREATE TABLE table_21269143_1 (attendance VARCHAR, round VARCHAR) |
SELECT original_air_date FROM table_name_58 WHERE no_in_series > 3 | What the air dates for the episodes are episode 3 in the series? | CREATE TABLE table_name_58 (original_air_date VARCHAR, no_in_series INTEGER) |
SELECT source FROM table_name_97 WHERE moving_from = "port vale" | What is the source of the move from Port Vale? | CREATE TABLE table_name_97 (source VARCHAR, moving_from VARCHAR) |
SELECT viewers__in_millions_ FROM table_1723080_1 WHERE broadcast_date = "1August1964" | How many viewers were there on 1august1964? | CREATE TABLE table_1723080_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR) |
SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community" | What is the highest enrollment for rochester community school? | CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR) |
SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" | Find the names of catalog entries with level number 8. | CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, catalog_level_number VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR) |
SELECT COUNT(winning_driver) FROM table_10706961_2 WHERE fastest_lap = "56.920" | How many winning drivers were there in the race that had a fastest lap time of 56.920? | CREATE TABLE table_10706961_2 (winning_driver VARCHAR, fastest_lap VARCHAR) |
SELECT MAX(points_for) FROM table_name_25 WHERE record = "12–2" AND points_against > 6 | What is the highest Points when the record was 12–2, and the Points Against are larger than 6? | CREATE TABLE table_name_25 (points_for INTEGER, record VARCHAR, points_against VARCHAR) |
SELECT season FROM table_name_21 WHERE score = "2–1" AND winners = "rangers" | In which season did the Rangers win with a score of 2–1? | CREATE TABLE table_name_21 (season VARCHAR, score VARCHAR, winners VARCHAR) |
SELECT advisor, COUNT(*) FROM Student GROUP BY advisor | Show all advisors and corresponding number of students. | CREATE TABLE Student (advisor VARCHAR) |
SELECT COUNT(week) FROM table_name_52 WHERE date = "november 25, 2001" | November 25, 2001 was what week of the season? | CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR) |
SELECT fastest_lap FROM table_30134667_2 WHERE location = "Bowmanville, Ontario" | Who had the fastest lap in bowmanville, ontario? | CREATE TABLE table_30134667_2 (fastest_lap VARCHAR, location VARCHAR) |
SELECT best FROM table_name_4 WHERE matches > 11 AND runs = 1088 | Name the best when runs of 1088 and matches more than 11 | CREATE TABLE table_name_4 (best VARCHAR, matches VARCHAR, runs VARCHAR) |
SELECT series_premiere FROM table_29799700_2 WHERE alternante_title = "Miłość i przeznaczenie" | What was the premiere date for the episode whose alternate title was miłość i przeznaczenie? | CREATE TABLE table_29799700_2 (series_premiere VARCHAR, alternante_title VARCHAR) |
SELECT AVG(apps) FROM table_name_73 WHERE team = "smederevo" | Name the average apps for smederevo | CREATE TABLE table_name_73 (apps INTEGER, team VARCHAR) |
SELECT first_name, last_name, salary FROM employees WHERE first_name LIKE '%m' | Display the first and last name, and salary for those employees whose first name is ending with the letter m. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR) |
SELECT SUM(money___) AS £__ FROM table_name_90 WHERE player = "payne stewart" | What is the total amount of money that Payne Stewart has? | CREATE TABLE table_name_90 (money___ INTEGER, player VARCHAR) |
SELECT time FROM table_name_39 WHERE lane = 7 | What was the time of the person in lane 7? | CREATE TABLE table_name_39 (time VARCHAR, lane VARCHAR) |
SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming' | Find the name of the instructors who taught C Programming course before. | CREATE TABLE teaches (id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR) |
SELECT date FROM table_27734577_11 WHERE team = "Boston" | What date did the Hawks play against Boston? | CREATE TABLE table_27734577_11 (date VARCHAR, team VARCHAR) |
SELECT AVG(laps) FROM table_name_72 WHERE time_retired = "+ 4 laps" AND grid > 18 | Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? | CREATE TABLE table_name_72 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) |
SELECT venue FROM table_name_15 WHERE score = "10-0" AND date = "1997-06-22" | what is the venue when the score is 10-0 on 1997-06-22? | CREATE TABLE table_name_15 (venue VARCHAR, score VARCHAR, date VARCHAR) |
SELECT school_club_team FROM table_10015132_9 WHERE player = "Trey Johnson" | What school/club team is Trey Johnson on? | CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR) |
SELECT MIN(ties_played) FROM table_10295819_2 WHERE years_played = 6 | Name the minimum tiesplayed for 6 years | CREATE TABLE table_10295819_2 (ties_played INTEGER, years_played VARCHAR) |
SELECT time_retired FROM table_name_98 WHERE grid = "14" | What's the time/retired for a grid of 14? | CREATE TABLE table_name_98 (time_retired VARCHAR, grid VARCHAR) |
SELECT MAX(crowd) FROM table_name_11 WHERE venue = "mcg" | What was the attendance when VFL played MCG? | CREATE TABLE table_name_11 (crowd INTEGER, venue VARCHAR) |
SELECT MIN(played) FROM table_name_52 WHERE points > 32 AND wins > 18 | What is the lowest played number when points are larger than 32, and a wins are larger than 18? | CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, wins VARCHAR) |
SELECT album FROM table_name_66 WHERE number = 10 | Which album is #10? | CREATE TABLE table_name_66 (album VARCHAR, number VARCHAR) |
SELECT rank FROM table_name_78 WHERE start = "totals" | Which rank is the start of totals? | CREATE TABLE table_name_78 (rank VARCHAR, start VARCHAR) |
SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1 | Find the stories of the building with the largest height. | CREATE TABLE buildings (Stories VARCHAR, Height VARCHAR) |
SELECT serbian_league_east FROM table_12283621_6 WHERE serbian_league_belgrade = "Kolubara" | What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade? | CREATE TABLE table_12283621_6 (serbian_league_east VARCHAR, serbian_league_belgrade VARCHAR) |
SELECT commissioned FROM table_name_78 WHERE laid_down = "6 september 2003" | What is Commissioned, when Laid Down is "6 September 2003"? | CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR) |
SELECT shoots FROM table_name_62 WHERE player = "craig peacock a" | What shows for shoots for craig peacock a? | CREATE TABLE table_name_62 (shoots VARCHAR, player VARCHAR) |
SELECT player FROM table_name_29 WHERE score = 68 - 67 - 75 = 210 | Who is the player with a 68-67-75=210 score? | CREATE TABLE table_name_29 (player VARCHAR, score VARCHAR) |
SELECT MAX(game) FROM table_21091162_1 WHERE opponent = "Air Force" | How many games have Air Force as the opponent? | CREATE TABLE table_21091162_1 (game INTEGER, opponent VARCHAR) |
SELECT record FROM table_name_60 WHERE date = "february 21, 2008" | What is the record of the game on February 21, 2008? | CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR) |
SELECT main_places FROM table_name_91 WHERE regions = "streymoy" AND area > 6.1 | What are the main places for the streymoy region with an area of larger than 6.1? | CREATE TABLE table_name_91 (main_places VARCHAR, regions VARCHAR, area VARCHAR) |
SELECT winning_team FROM table_name_46 WHERE winning_pitcher = "chris young" AND location = "arlington" | Which winning team has a winning pitcher of Chris Young and was played in Arlington? | CREATE TABLE table_name_46 (winning_team VARCHAR, winning_pitcher VARCHAR, location VARCHAR) |
SELECT constructor FROM table_name_55 WHERE grid < 3 AND time_retired = "1:34:31.522" | Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522? | CREATE TABLE table_name_55 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) |
SELECT result_margin FROM table_24919137_2 WHERE broadcaster = "Fox Sports 1" AND venue = "MCG" | What is the result/margin when fox sports 1 broadcast the game played at mcg? | CREATE TABLE table_24919137_2 (result_margin VARCHAR, broadcaster VARCHAR, venue VARCHAR) |
SELECT res FROM table_name_96 WHERE opponent = "jeff monson" | What is the result of the match with Jeff Monson as opponent? | CREATE TABLE table_name_96 (res VARCHAR, opponent VARCHAR) |
SELECT home_team AS score FROM table_name_39 WHERE away_team = "footscray" | What was the home teams score against the away team footscray? | CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) |
SELECT SUM(bronze) FROM table_name_51 WHERE nation = "west germany" | How many bronzes have west germany as the nation? | CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR) |
SELECT result FROM table_name_51 WHERE venue = "a" | Tell me the result for venue of a | CREATE TABLE table_name_51 (result VARCHAR, venue VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.