answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT athlete FROM table_22355_20 WHERE rank = 8 AND olympics = "1948–1952" | Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952? | CREATE TABLE table_22355_20 (athlete VARCHAR, rank VARCHAR, olympics VARCHAR) |
SELECT pick FROM table_name_59 WHERE position = "ol" AND round < 6 | What is Pick, when Position is OL, and when Round is less than 6? | CREATE TABLE table_name_59 (pick VARCHAR, position VARCHAR, round VARCHAR) |
SELECT to_par FROM table_name_51 WHERE player = "billy casper" | What was Billy Casper's to par? | CREATE TABLE table_name_51 (to_par VARCHAR, player VARCHAR) |
SELECT MIN(election) FROM table_name_67 WHERE outcome_of_election = "minority in parliament" AND seats = "2" | What is the earliest election with 2 seats and the outcome of the election of minority in parliament? | CREATE TABLE table_name_67 (election INTEGER, outcome_of_election VARCHAR, seats VARCHAR) |
SELECT COUNT(points) FROM table_12807904_5 WHERE points_against = "389" | What amount of points where points were 389? | CREATE TABLE table_12807904_5 (points VARCHAR, points_against VARCHAR) |
SELECT notes FROM table_name_95 WHERE tournament = "hypo-meeting" AND year = 2012 | What is the notes for the hypo-meeting tournament in 2012? | CREATE TABLE table_name_95 (notes VARCHAR, tournament VARCHAR, year VARCHAR) |
SELECT MAX(stars), MIN(stars) FROM Rating | What is the lowest and highest rating star? | CREATE TABLE Rating (stars INTEGER) |
SELECT record FROM table_name_41 WHERE attendance = "70,479" | What is the Record of the game with an Attendance of 70,479? | CREATE TABLE table_name_41 (record VARCHAR, attendance VARCHAR) |
SELECT MAX(points) FROM table_name_64 WHERE position < 1 | What is listed as the highest Points that's got a Position that's smaller than 1? | CREATE TABLE table_name_64 (points INTEGER, position INTEGER) |
SELECT MIN(population_estimate__2013_) FROM table_name_57 WHERE percentage = 23.7 | What is the lowest 2013 population estimate of the province with a 23.7 percentage? | CREATE TABLE table_name_57 (population_estimate__2013_ INTEGER, percentage VARCHAR) |
SELECT result FROM table_19753079_41 WHERE incumbent = "Chris Carney" | When chris carney is the incumbent what are the results? | CREATE TABLE table_19753079_41 (result VARCHAR, incumbent VARCHAR) |
SELECT COUNT(rank) FROM table_name_85 WHERE province = "si sa ket" AND bronze < 14 | What is the rank of Si Sa Ket province with less than 14 bronze medals? | CREATE TABLE table_name_85 (rank VARCHAR, province VARCHAR, bronze VARCHAR) |
SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common type of ships. | CREATE TABLE ship (TYPE VARCHAR) |
SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the most common participant type? | CREATE TABLE participants (participant_type_code VARCHAR) |
SELECT venue FROM table_name_64 WHERE date = "23 july 1992" | I want the venue for 23 july 1992 | CREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR) |
SELECT opponent_number FROM table_name_93 WHERE attendance = "48,000" | Who was the opponent in the game that was attended by 48,000 people? | CREATE TABLE table_name_93 (opponent_number VARCHAR, attendance VARCHAR) |
SELECT COUNT(year) FROM table_name_82 WHERE title = "the queen" AND award = "british academy film award" AND result = "won" | What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won? | CREATE TABLE table_name_82 (year VARCHAR, result VARCHAR, title VARCHAR, award VARCHAR) |
SELECT airport FROM table_name_78 WHERE iata = "nos" | What is the airport name that has nos listed as the IATA? | CREATE TABLE table_name_78 (airport VARCHAR, iata VARCHAR) |
SELECT original_team FROM table_name_37 WHERE background = "clothing company owner" | What is the Original Team of the Clothing Company Owner Candidate? | CREATE TABLE table_name_37 (original_team VARCHAR, background VARCHAR) |
SELECT record FROM table_name_49 WHERE loss = "huffman (6–18)" | What was the record at the game that had a loss of Huffman (6–18)? | CREATE TABLE table_name_49 (record VARCHAR, loss VARCHAR) |
SELECT replaced_by FROM table_17039232_3 WHERE date_of_vacancy = "31 December 2008" AND position_in_table = "1st" | Name the replaced by where date of vacancy is 31 december 2008 where position in table is 1st | CREATE TABLE table_17039232_3 (replaced_by VARCHAR, date_of_vacancy VARCHAR, position_in_table VARCHAR) |
SELECT game FROM table_name_48 WHERE high_rebounds = "chris andersen (12)" | In which game number was Chris Andersen (12) the high rebounds scorer? | CREATE TABLE table_name_48 (game VARCHAR, high_rebounds VARCHAR) |
SELECT score FROM table_name_68 WHERE result = "5-1" | Which Score has a Result of 5-1? | CREATE TABLE table_name_68 (score VARCHAR, result VARCHAR) |
SELECT attendance FROM table_name_52 WHERE record = "2-0" | What was the attendance for record 2-0? | CREATE TABLE table_name_52 (attendance VARCHAR, record VARCHAR) |
SELECT awardee_s_ FROM table_24446718_7 WHERE name_of_award = "Best Editing" | Name the awardee for best editing | CREATE TABLE table_24446718_7 (awardee_s_ VARCHAR, name_of_award VARCHAR) |
SELECT main_use FROM table_name_77 WHERE year < 2004 AND town = "redfield, arkansas" | What is the main use of the structure that was in redfield, arkansas before 2004? | CREATE TABLE table_name_77 (main_use VARCHAR, year VARCHAR, town VARCHAR) |
SELECT SUM(game) FROM table_name_94 WHERE opponent = "@ carolina hurricanes" | Which Game has an Opponent of @ carolina hurricanes? | CREATE TABLE table_name_94 (game INTEGER, opponent VARCHAR) |
SELECT time FROM table_name_74 WHERE res = "win" AND round > 2 AND opponent = "makoto ishikawa" | What is the time of the match with a win result, more than 2 rounds, and Makoto Ishikawa as the opponent? | CREATE TABLE table_name_74 (time VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR) |
SELECT location FROM table_name_46 WHERE team = "south adelaide" | What is the location of South Adelaide? | CREATE TABLE table_name_46 (location VARCHAR, team VARCHAR) |
SELECT competition FROM table_name_79 WHERE date = "nov 23, 2006" | What was being played on Nov 23, 2006? | CREATE TABLE table_name_79 (competition VARCHAR, date VARCHAR) |
SELECT frame_size FROM table_name_74 WHERE max_fps = 120 AND width = 2048 AND height = 1024 | What frame size corresponds the selection with a max fps of 120, a width of 2048, and height of 1024? | CREATE TABLE table_name_74 (frame_size VARCHAR, height VARCHAR, max_fps VARCHAR, width VARCHAR) |
SELECT MIN(chapter) FROM table_name_54 WHERE pinyin = "dehua" AND articles < 16 | Can you tell me the lowest Chapter that has the Pinyin of dehua, and the Articles smaller than 16? | CREATE TABLE table_name_54 (chapter INTEGER, pinyin VARCHAR, articles VARCHAR) |
SELECT AVG(capacity) FROM table_name_28 WHERE club = "bandırma banvit" | What is the capacity of Bandırma Banvit? | CREATE TABLE table_name_28 (capacity INTEGER, club VARCHAR) |
SELECT player FROM table_name_83 WHERE position = "guard/forward" | What player had the position guard/forward? | CREATE TABLE table_name_83 (player VARCHAR, position VARCHAR) |
SELECT COUNT(lead_maragin) FROM table_16751596_13 WHERE dates_administered = "July 17, 2008" | On July 17, 2008, what was the total number of lead maragin? | CREATE TABLE table_16751596_13 (lead_maragin VARCHAR, dates_administered VARCHAR) |
SELECT season FROM table_name_87 WHERE player_of_the_year = "tim mikkelson" | For which season is Tim Mikkelson player of the year? | CREATE TABLE table_name_87 (season VARCHAR, player_of_the_year VARCHAR) |
SELECT team FROM table_23285761_7 WHERE date = "January 26" | Who was the game on January 26 played against? | CREATE TABLE table_23285761_7 (team VARCHAR, date VARCHAR) |
SELECT written_by FROM table_12159115_2 WHERE us_viewers__millions_ = "12.13" | Who's the writer of the episode see by 12.13 million US viewers? | CREATE TABLE table_12159115_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT location_attendance FROM table_name_27 WHERE record = "27-22" | What is the location attendance of the game with a 27-22 record? | CREATE TABLE table_name_27 (location_attendance VARCHAR, record VARCHAR) |
SELECT time FROM table_name_3 WHERE date = "december 15, 2010" | What was the time of December 15, 2010? | CREATE TABLE table_name_3 (time VARCHAR, date VARCHAR) |
SELECT class FROM table_name_79 WHERE part_3 = "*heldun" | What was the class when part 3 was *heldun? | CREATE TABLE table_name_79 (class VARCHAR, part_3 VARCHAR) |
SELECT COUNT(t_c__k_) FROM table_101336_1 WHERE notation = "Tl-2212" | What is the number for t c (k) when the notation is tl-2212? | CREATE TABLE table_101336_1 (t_c__k_ VARCHAR, notation VARCHAR) |
SELECT record FROM table_name_51 WHERE game = 52 | What was the Maple Leafs' record on game 52? | CREATE TABLE table_name_51 (record VARCHAR, game VARCHAR) |
SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = "September 11, 2008" | How many different lead margins were stated in the poll administered on September 11, 2008? | CREATE TABLE table_17538810_10 (lead_margin VARCHAR, dates_administered VARCHAR) |
SELECT SUM(heat) FROM table_name_78 WHERE nationality = "guinea-bissau" AND rank < 33 | How many heats did Runners from Guinea-Bissau run, with rank higher than 33? | CREATE TABLE table_name_78 (heat INTEGER, nationality VARCHAR, rank VARCHAR) |
SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6" | What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6? | CREATE TABLE table_name_41 (tournament VARCHAR, outcome VARCHAR, score VARCHAR) |
SELECT group FROM table_name_99 WHERE height__m_ = 32 AND population = "0" AND island = "faray" | What group on the island of Faray has a Height (m) of 32 and a Population of 0? | CREATE TABLE table_name_99 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR) |
SELECT season FROM table_23014923_1 WHERE intermediate__south__winners = "Southmead Athletic" | What is the year of the season if the intermediate (South) winners is Southmead Athletic? | CREATE TABLE table_23014923_1 (season VARCHAR, intermediate__south__winners VARCHAR) |
SELECT tournament FROM table_name_18 WHERE opponent = "susan sloane" | Which Tournament has an Opponent of susan sloane? | CREATE TABLE table_name_18 (tournament VARCHAR, opponent VARCHAR) |
SELECT series FROM table_name_41 WHERE date = "may 8" | On May 8 what series is it? | CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR) |
SELECT COUNT(height__ft_) FROM table_20669355_2 WHERE hometown = "Warsaw" | How many different heights are there for the contestants from Warsaw? | CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, hometown VARCHAR) |
SELECT country FROM table_name_91 WHERE athlete = "zhang xiuyun" | what is the country for zhang xiuyun? | CREATE TABLE table_name_91 (country VARCHAR, athlete VARCHAR) |
SELECT title FROM table_10470082_6 WHERE storyteller = "Kiki" AND director = "Will Dixon" | What is the name of the episode told by Kiki and directed by Will Dixon? | CREATE TABLE table_10470082_6 (title VARCHAR, storyteller VARCHAR, director VARCHAR) |
SELECT director FROM table_28785738_1 WHERE no_in_season = 11 | Who directed episode 11 of the season? | CREATE TABLE table_28785738_1 (director VARCHAR, no_in_season VARCHAR) |
SELECT series_3 FROM table_name_77 WHERE seat > 4 | What is the series 3 with more than 4 seats? | CREATE TABLE table_name_77 (series_3 VARCHAR, seat INTEGER) |
SELECT constructor FROM table_name_63 WHERE grid = 2 | Who was the Constructor when the Grid was 2? | CREATE TABLE table_name_63 (constructor VARCHAR, grid VARCHAR) |
SELECT MAX(population) FROM table_name_22 WHERE county = "deuel" AND number_of_households < 1 OFFSET 819 | What is the highest population of Deuel county's 1,819 households? | CREATE TABLE table_name_22 (population INTEGER, county VARCHAR, number_of_households VARCHAR) |
SELECT COUNT(season__number) FROM table_26804862_1 WHERE production_code = "3.89" | When 3.89 is the production code how many season numbers are there? | CREATE TABLE table_26804862_1 (season__number VARCHAR, production_code VARCHAR) |
SELECT COUNT(Rank) AS (_number) FROM table_11251109_3 WHERE viewers__m_ = "5.96" | What is the number of rank with the viewership of 5.96 million? | CREATE TABLE table_11251109_3 (Rank VARCHAR, viewers__m_ VARCHAR) |
SELECT date FROM table_name_86 WHERE meet = "world championships" AND nationality = "united states" AND time = "1:46.68" | What is Date, when Meet is "World Championships", when Nationality is "United States", and when Time is "1:46.68"? | CREATE TABLE table_name_86 (date VARCHAR, time VARCHAR, meet VARCHAR, nationality VARCHAR) |
SELECT game_site FROM table_name_31 WHERE attendance = "71,060" | Where was the game played when 71,060 people attended? | CREATE TABLE table_name_31 (game_site VARCHAR, attendance VARCHAR) |
SELECT score FROM table_name_7 WHERE points > 74 AND game = 57 | What is the score when the points are larger than 74 and the game is 57? | CREATE TABLE table_name_7 (score VARCHAR, points VARCHAR, game VARCHAR) |
SELECT position FROM table_name_35 WHERE mls_team = "new england revolution" | What position does the player from the MLS New England Revolution team hold? | CREATE TABLE table_name_35 (position VARCHAR, mls_team VARCHAR) |
SELECT original_vehicle FROM table_name_76 WHERE architecture = "uwhvt homepage" | What original vehicle has uwhvt homepage architecture? | CREATE TABLE table_name_76 (original_vehicle VARCHAR, architecture VARCHAR) |
SELECT timeslot FROM table_19834691_4 WHERE viewers__millions_ = "6.51" | Name the timeslot for 6.51 viewers | CREATE TABLE table_19834691_4 (timeslot VARCHAR, viewers__millions_ VARCHAR) |
SELECT written_by FROM table_2409041_3 WHERE no_in_season = 23 | Who wrote season 23? | CREATE TABLE table_2409041_3 (written_by VARCHAR, no_in_season VARCHAR) |
SELECT player FROM table_name_84 WHERE country = "wales" | What player is from Wales? | CREATE TABLE table_name_84 (player VARCHAR, country VARCHAR) |
SELECT MIN(top_50_ranking) FROM table_22170495_7 WHERE title = "The God-Why-Don't-You-Love-Me Blues" | What is the lowest top 50 ranking that the episode titled "the god-why-don't-you-love-me blues" received? | CREATE TABLE table_22170495_7 (top_50_ranking INTEGER, title VARCHAR) |
SELECT mixed_doubles FROM table_name_68 WHERE year = 2010 | Who all played mixed doubles in 2010? | CREATE TABLE table_name_68 (mixed_doubles VARCHAR, year VARCHAR) |
SELECT MAX(silver) FROM table_name_7 WHERE total = 4 AND nation = "poland" AND gold < 1 | I want to know the highest silver for total of 4 for poland and gold less than 1 | CREATE TABLE table_name_7 (silver INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR) |
SELECT COUNT(area_km_2) FROM table_1606824_1 WHERE pop_density_people_km_2 = "87" | Name the number of area km 2 for population density is 87 | CREATE TABLE table_1606824_1 (area_km_2 VARCHAR, pop_density_people_km_2 VARCHAR) |
SELECT location FROM table_name_27 WHERE opponent = "buffalo sabres" | Where was the game against the buffalo sabres? | CREATE TABLE table_name_27 (location VARCHAR, opponent VARCHAR) |
SELECT COUNT(top_25) FROM table_name_16 WHERE top_10 = 0 AND tournament = "masters tournament" AND top_5 > 0 | What is the total number of top-25 in the Masters Tournament, which has 0 top-10 and more than 0 top-5? | CREATE TABLE table_name_16 (top_25 VARCHAR, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR) |
SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code | Find the number of classes in each school. | CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR) |
SELECT Dependent_name FROM dependent WHERE relationship = 'Spouse' | find all dependent names who have a spouse relation with some employee. | CREATE TABLE dependent (Dependent_name VARCHAR, relationship VARCHAR) |
SELECT score FROM table_name_42 WHERE to_par = "+1" AND player = "curtis strange" | When curtis strange had a to par +1, what was his score? | CREATE TABLE table_name_42 (score VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT production_code FROM table_158088_2 WHERE written_by = "Drew Z. Greenberg" | What is the production code for the episode written by Drew Z. Greenberg? | CREATE TABLE table_158088_2 (production_code VARCHAR, written_by VARCHAR) |
SELECT state_country FROM table_25594271_1 WHERE race_number = "36" | what are all the state/nation where the race number is 36 | CREATE TABLE table_25594271_1 (state_country VARCHAR, race_number VARCHAR) |
SELECT event FROM table_name_55 WHERE opponent = "carlos alexandre pereira" | Which event had Carlos Alexandre Pereira as opponent? | CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR) |
SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch) | List the branch name and city without any registered members. | CREATE TABLE membership_register_branch (name VARCHAR, city VARCHAR, branch_id VARCHAR); CREATE TABLE branch (name VARCHAR, city VARCHAR, branch_id VARCHAR) |
SELECT SUM(laps) FROM table_name_3 WHERE time = "+5.088" AND grid < 17 | What is the total of laps run by the driver with a grid under 17 and a time of +5.088? | CREATE TABLE table_name_3 (laps INTEGER, time VARCHAR, grid VARCHAR) |
SELECT 2009 FROM table_name_79 WHERE 2010 = "a" | What is the 2009 value with a 2010 A value? | CREATE TABLE table_name_79 (Id VARCHAR) |
SELECT team FROM table_name_87 WHERE rank > 8 AND rider = "chris barrett" | Rank larger than 8, and a Rider of chris barrett is what team? | CREATE TABLE table_name_87 (team VARCHAR, rank VARCHAR, rider VARCHAR) |
SELECT opponents FROM table_name_84 WHERE competition = "football league trophy" | Who was the opponent at the Football League Trophy competition? | CREATE TABLE table_name_84 (opponents VARCHAR, competition VARCHAR) |
SELECT head_linesman FROM table_name_46 WHERE date = "1 february 2009" | Who is the head linesman of the game on 1 February 2009? | CREATE TABLE table_name_46 (head_linesman VARCHAR, date VARCHAR) |
SELECT themed_area FROM table_name_12 WHERE name = "troublesome trucks runaway coaster" | Which Themed Area has a Name of troublesome trucks runaway coaster? | CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR) |
SELECT SUM(std_rank) FROM table_name_97 WHERE name = "311 south wacker drive" AND year > 1990 | How much Standard Rank has a Name of 311 south wacker drive, and a Year larger than 1990? | CREATE TABLE table_name_97 (std_rank INTEGER, name VARCHAR, year VARCHAR) |
SELECT COUNT(directed_by) FROM table_11411026_2 WHERE no_in_series = 79 | How many titles were directed in series 79? | CREATE TABLE table_11411026_2 (directed_by VARCHAR, no_in_series VARCHAR) |
SELECT MAX(week) FROM table_23685152_2 WHERE attendance = 20114 | During what week was the game attended by 20114 people? | CREATE TABLE table_23685152_2 (week INTEGER, attendance VARCHAR) |
SELECT COUNT(attendance) FROM table_name_8 WHERE date = "june 24" | what is the number of attendance on june 24 | CREATE TABLE table_name_8 (attendance VARCHAR, date VARCHAR) |
SELECT winter_olympics FROM table_name_38 WHERE country = "japan" | What was the Winter Olympics was Japan as the country? | CREATE TABLE table_name_38 (winter_olympics VARCHAR, country VARCHAR) |
SELECT SUM(week) FROM table_name_20 WHERE date = "october 21, 1974" AND attendance < 50 OFFSET 623 | What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended? | CREATE TABLE table_name_20 (week INTEGER, date VARCHAR, attendance VARCHAR) |
SELECT date_motor_gear_fitted FROM table_2030453_1 WHERE lms_1946_no = 1901 | When was the motor gear of the LMS 1946 no. 1901 model fitted? | CREATE TABLE table_2030453_1 (date_motor_gear_fitted VARCHAR, lms_1946_no VARCHAR) |
SELECT number_of_cars FROM table_name_38 WHERE car__number < 7 AND year_started = 2010 | HOW MANY CARS HAD A CAR # SMALLER THAN 7 AND STARTED ON 2010? | CREATE TABLE table_name_38 (number_of_cars VARCHAR, car__number VARCHAR, year_started VARCHAR) |
SELECT MAX(lane) FROM table_name_44 WHERE mark = "46.65" AND react > 0.251 | What is the highest Lane, when Mark is 46.65, and when React is greater than 0.251? | CREATE TABLE table_name_44 (lane INTEGER, mark VARCHAR, react VARCHAR) |
SELECT points FROM table_16034882_4 WHERE wins = 13 | What is the amount of points for the team with 13 wins? | CREATE TABLE table_16034882_4 (points VARCHAR, wins VARCHAR) |
SELECT number_of_powiats FROM table_1784514_1 WHERE capital = "Mstsislaw" | How many powiats have mstsislaw as a capital? | CREATE TABLE table_1784514_1 (number_of_powiats VARCHAR, capital VARCHAR) |
SELECT format FROM table_name_62 WHERE label = "edsel" AND catalog = "edcd 262" | What format was the release in form the Edsel label, and that was from the EDCD 262 catalog? | CREATE TABLE table_name_62 (format VARCHAR, label VARCHAR, catalog VARCHAR) |
SELECT american FROM table_name_65 WHERE australian = "əʉ" | What does American have if Australia has əʉ? | CREATE TABLE table_name_65 (american VARCHAR, australian VARCHAR) |
SELECT home_team AS score FROM table_name_18 WHERE venue = "victoria park" | What did the team score when playing at home in victoria park? | CREATE TABLE table_name_18 (home_team VARCHAR, venue VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.