answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT reason_for_change FROM table_2159547_3 WHERE vacator = "Robert L. Bacon (R)" | Why did Robert L. Bacon (r) vacate? | CREATE TABLE table_2159547_3 (reason_for_change VARCHAR, vacator VARCHAR) |
SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId | How many countries does each continent have? List the continent id, continent name and the number of countries. | CREATE TABLE COUNTRIES (Continent VARCHAR); CREATE TABLE CONTINENTS (ContId VARCHAR, Continent VARCHAR) |
SELECT heat FROM table_name_1 WHERE time = "15:29.69" | At time 15:29.69 what was the heat? | CREATE TABLE table_name_1 (heat VARCHAR, time VARCHAR) |
SELECT name FROM people WHERE height < (SELECT AVG(height) FROM people) | find the name of people whose height is lower than the average. | CREATE TABLE people (name VARCHAR, height INTEGER) |
SELECT place FROM table_name_86 WHERE player = "momoko ueda" | What was Momoko Ueda's place? | CREATE TABLE table_name_86 (place VARCHAR, player VARCHAR) |
SELECT SUM(number_of_bearers_2009) FROM table_name_3 WHERE rank > 1 AND type = "patronymic" AND etymology = "son of christian" AND number_of_bearers_1971 > 45.984 | What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984? | CREATE TABLE table_name_3 (number_of_bearers_2009 INTEGER, number_of_bearers_1971 VARCHAR, etymology VARCHAR, rank VARCHAR, type VARCHAR) |
SELECT allied_unrelated FROM table_name_61 WHERE allied_related = "common" | What Allied-Unrelated is labeled as "common"? | CREATE TABLE table_name_61 (allied_unrelated VARCHAR, allied_related VARCHAR) |
SELECT SUM(scored) FROM table_name_81 WHERE team = "recoleta" | Which Scored has a Team of recoleta? | CREATE TABLE table_name_81 (scored INTEGER, team VARCHAR) |
SELECT position FROM table_29626583_1 WHERE affiliation = "University of North Carolina Carolina Dynamo" | What is the position for the university of north carolina carolina dynamo affiliation | CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR) |
SELECT city_of_license FROM table_name_42 WHERE erp_w > 3 AND call_sign = "k218dz" | What is City of License, when ERP W is greater than 3, and when Call Sign is K218DZ? | CREATE TABLE table_name_42 (city_of_license VARCHAR, erp_w VARCHAR, call_sign VARCHAR) |
SELECT celli FROM table_2414_1 WHERE section_size = "20 players" | How many cellos are suggested in the reference with section size for 20 players? | CREATE TABLE table_2414_1 (celli VARCHAR, section_size VARCHAR) |
SELECT name FROM table_name_63 WHERE type = "end of contract" AND moving_to = "falkirk" | What is the name for the end of contract because they're moving to Falkirk? | CREATE TABLE table_name_63 (name VARCHAR, type VARCHAR, moving_to VARCHAR) |
SELECT away_team FROM table_name_33 WHERE home_team = "leicester city" | WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY? | CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) |
SELECT composer FROM table_name_8 WHERE duration = "3:31" | What composer has a duration time of 3:31? | CREATE TABLE table_name_8 (composer VARCHAR, duration VARCHAR) |
SELECT movie FROM table_name_20 WHERE co_singers = "selva nambi" | In which movie is Selva Nambi a co-singer? | CREATE TABLE table_name_20 (movie VARCHAR, co_singers VARCHAR) |
SELECT vehicle_id FROM Vehicles | List all vehicle id | CREATE TABLE Vehicles (vehicle_id VARCHAR) |
SELECT season FROM table_name_63 WHERE league = "bcla" AND goals = "6" | What is the Season with goals of 6 and BCLA as the league? | CREATE TABLE table_name_63 (season VARCHAR, league VARCHAR, goals VARCHAR) |
SELECT opponent FROM table_27893892_2 WHERE game_site = "Waldstadion" AND week = 6 | what was the opposition where the field is waldstadion during time 6 | CREATE TABLE table_27893892_2 (opponent VARCHAR, game_site VARCHAR, week VARCHAR) |
SELECT release FROM table_173475_1 WHERE title = "Axis & Allies: D-Day" | What year(s) was axis & allies: d-day released? | CREATE TABLE table_173475_1 (release VARCHAR, title VARCHAR) |
SELECT MAX(games) FROM table_name_75 WHERE team = "ciudad de la laguna" AND points > 357 | What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357? | CREATE TABLE table_name_75 (games INTEGER, team VARCHAR, points VARCHAR) |
SELECT modern_equivalent FROM table_name_15 WHERE pre_1009_province = "sakbang -do" AND province_of_silla = "sakju" | What kind of Modern equivalent that has a Pre-1009 province of sakbang -do, and a Province of Silla of sakju? | CREATE TABLE table_name_15 (modern_equivalent VARCHAR, pre_1009_province VARCHAR, province_of_silla VARCHAR) |
SELECT operating_system_version FROM table_name_18 WHERE storage___flash__ = "128mb" | Which operating system has a storage (flash) of 128MB? | CREATE TABLE table_name_18 (operating_system_version VARCHAR, storage___flash__ VARCHAR) |
SELECT date FROM table_name_47 WHERE venue = "junction oval" | what is the date when the venue is junction oval? | CREATE TABLE table_name_47 (date VARCHAR, venue VARCHAR) |
SELECT role_code FROM ROLES | What are all role codes? | CREATE TABLE ROLES (role_code VARCHAR) |
SELECT iata FROM table_name_20 WHERE icao = "wmkk" | Name the IATA of wmkk | CREATE TABLE table_name_20 (iata VARCHAR, icao VARCHAR) |
SELECT points_against FROM table_14070062_4 WHERE points_for = "743" | was the the score when the tries was 743 | CREATE TABLE table_14070062_4 (points_against VARCHAR, points_for VARCHAR) |
SELECT type FROM table_name_28 WHERE moving_to = "alianza atlético" | what is the type movinig to alianza atlético? | CREATE TABLE table_name_28 (type VARCHAR, moving_to VARCHAR) |
SELECT score FROM table_name_39 WHERE winner = "sanyo wild knights" AND runner_up = "suntory sungoliath" | What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath? | CREATE TABLE table_name_39 (score VARCHAR, winner VARCHAR, runner_up VARCHAR) |
SELECT remixed_by FROM table_name_50 WHERE album = "dance remixes" | Who remixed an album of dance remixes? | CREATE TABLE table_name_50 (remixed_by VARCHAR, album VARCHAR) |
SELECT party FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 6" | What party's candidate was re-elected in the Louisiana 6 district? | CREATE TABLE table_1342149_18 (party VARCHAR, result VARCHAR, district VARCHAR) |
SELECT coach FROM table_name_58 WHERE club = "qadsia" | Who was the coach for qadsia? | CREATE TABLE table_name_58 (coach VARCHAR, club VARCHAR) |
SELECT city___town FROM table_name_36 WHERE icao = "gvma" | In which city is the ICAO gvma? | CREATE TABLE table_name_36 (city___town VARCHAR, icao VARCHAR) |
SELECT report FROM table_15511178_3 WHERE pole_position = "Carl Skerlong" AND winning_team = "Newman Wachs Racing" | Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong | CREATE TABLE table_15511178_3 (report VARCHAR, pole_position VARCHAR, winning_team VARCHAR) |
SELECT district FROM table_2668352_14 WHERE incumbent = "Hugh Glasgow" | Name the district for hugh glasgow | CREATE TABLE table_2668352_14 (district VARCHAR, incumbent VARCHAR) |
SELECT city FROM table_name_29 WHERE country = "spain" AND iata = "ibz" | for country of spain and iata of ibz, what's the city? | CREATE TABLE table_name_29 (city VARCHAR, country VARCHAR, iata VARCHAR) |
SELECT COUNT(womens_singles) FROM table_28138035_4 WHERE year_location = "1999 Rio de Janeiro" | Name the number of womens singles for 1999 rio de janeiro | CREATE TABLE table_28138035_4 (womens_singles VARCHAR, year_location VARCHAR) |
SELECT resultado FROM table_27501971_2 WHERE country = "E.E.U.U" | What was the resultado when E.E.U.U was the country? | CREATE TABLE table_27501971_2 (resultado VARCHAR, country VARCHAR) |
SELECT player FROM table_name_66 WHERE to_par = "+2" | Which player had a to par score of +2? | CREATE TABLE table_name_66 (player VARCHAR, to_par VARCHAR) |
SELECT combined FROM table_name_60 WHERE super_g = 14 | What is the combined of the 14 Super G? | CREATE TABLE table_name_60 (combined VARCHAR, super_g VARCHAR) |
SELECT 2006 FROM table_name_32 WHERE 2007 = "whitney powell" | Who attended the school in 2006, that Whitney Powell attended in 2007? | CREATE TABLE table_name_32 (Id VARCHAR) |
SELECT AVG(week) FROM table_name_94 WHERE date = "november 7, 1976" AND attendance < 46 OFFSET 735 | What is the average week on November 7, 1976 with an attendance less than 46,735? | CREATE TABLE table_name_94 (week INTEGER, date VARCHAR, attendance VARCHAR) |
SELECT MAX(year) FROM table_17516922_1 WHERE sideline_reporters = "Rob Stone and Monica Gonzalez" | What is the last year that had sideline reporters rob stone and monica gonzalez? | CREATE TABLE table_17516922_1 (year INTEGER, sideline_reporters VARCHAR) |
SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio" | What is the Package Option of TV Channel with serial name "Sky Radio"? | CREATE TABLE TV_Channel (Package_Option VARCHAR, series_name VARCHAR) |
SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk" | How tall was the member of Nymburk, who was born in 1982? | CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR) |
SELECT MIN(spike) FROM table_name_69 WHERE weight = 83 AND height > 190 | What is the smallest number of spikes for players with a weight of 83 and height over 190? | CREATE TABLE table_name_69 (spike INTEGER, weight VARCHAR, height VARCHAR) |
SELECT japan FROM table_name_14 WHERE title = "jigsaw land: japan graffiti" | Tell me japan for jigsaw land: japan graffiti | CREATE TABLE table_name_14 (japan VARCHAR, title VARCHAR) |
SELECT loss FROM table_name_82 WHERE att = "16,458" | What loss has 16,458 as an Att.? | CREATE TABLE table_name_82 (loss VARCHAR, att VARCHAR) |
SELECT rank FROM table_name_51 WHERE class = "250cc" AND year = 1983 | What was the rank of the 1983 team in the 250cc class? | CREATE TABLE table_name_51 (rank VARCHAR, class VARCHAR, year VARCHAR) |
SELECT score FROM table_name_70 WHERE result = "1-0" | What's the Score listed that has a Result of 1-0? | CREATE TABLE table_name_70 (score VARCHAR, result VARCHAR) |
SELECT record FROM table_21839208_4 WHERE opponent = "Stampeders" | What was their record when they played the stampeders? | CREATE TABLE table_21839208_4 (record VARCHAR, opponent VARCHAR) |
SELECT home_team FROM table_name_54 WHERE venue = "windy hill" | When playing at Windy Hill, what was the home team? | CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR) |
SELECT tournament_venue__city_ FROM table_24348134_3 WHERE tournament_winner = "Oklahoma" | In what city did oklahoma win the tournament. | CREATE TABLE table_24348134_3 (tournament_venue__city_ VARCHAR, tournament_winner VARCHAR) |
SELECT MIN(wins) FROM table_1507423_4 | What is the maximumum number of wins? | CREATE TABLE table_1507423_4 (wins INTEGER) |
SELECT sport FROM table_name_26 WHERE played = "2008-2010" | What sport was played between the years of 2008-2010? | CREATE TABLE table_name_26 (sport VARCHAR, played VARCHAR) |
SELECT vacator FROM table_224840_4 WHERE date_successor_seated = "November 26, 1800" | Who left office on November 26, 1800? | CREATE TABLE table_224840_4 (vacator VARCHAR, date_successor_seated VARCHAR) |
SELECT 2010 FROM table_name_21 WHERE 2006 < 6.9 AND 2008 > 1.6 AND 2007 = 2 | What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007? | CREATE TABLE table_name_21 (Id VARCHAR) |
SELECT fourth_district FROM table_name_41 WHERE second_district = "kurt van koevering" | Who's the Fourth District with a Second District of kurt van koevering? | CREATE TABLE table_name_41 (fourth_district VARCHAR, second_district VARCHAR) |
SELECT MIN(position) FROM table_16034882_5 | Name the least position | CREATE TABLE table_16034882_5 (position INTEGER) |
SELECT record FROM table_17972193_1 WHERE opponent = "at Los Angeles Raiders" | What was the game record when the opponent was 'at Los Angeles Raiders'? | CREATE TABLE table_17972193_1 (record VARCHAR, opponent VARCHAR) |
SELECT agg FROM table_name_48 WHERE team_1 = "karaorman" | When Karaorman is Team 1, what is the Agg.? | CREATE TABLE table_name_48 (agg VARCHAR, team_1 VARCHAR) |
SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = "It's Going So Badly" | What album was the song It's going so badly on? | CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR) |
SELECT date FROM table_name_32 WHERE livery = "kinneil sandy red" | When was the livery of Kinneil Sandy Red? | CREATE TABLE table_name_32 (date VARCHAR, livery VARCHAR) |
SELECT written_by FROM table_29391888_1 WHERE directed_by = "Kevin Inch" | Who wrote the episode that was directed by Kevin Inch? | CREATE TABLE table_29391888_1 (written_by VARCHAR, directed_by VARCHAR) |
SELECT season FROM table_name_72 WHERE _number_of_teams > 14 AND league = "super rugby" | When was the season that had more teams larger than 14 in the super rugby league? | CREATE TABLE table_name_72 (season VARCHAR, _number_of_teams VARCHAR, league VARCHAR) |
SELECT matches FROM table_name_95 WHERE result = "first group stage" AND year = "1998" | What were the matches where the teams finished in the first group stage, in 1998? | CREATE TABLE table_name_95 (matches VARCHAR, result VARCHAR, year VARCHAR) |
SELECT us_viewers__millions_ FROM table_2828803_1 WHERE production_code = "2T7004" | How many million u.s. viewers watched the episode with a production code of 2t7004? | CREATE TABLE table_2828803_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR) |
SELECT SUM(game) FROM table_name_77 WHERE opponent = "@ boston bruins" | How many games total were played against @ Boston Bruins this season? | CREATE TABLE table_name_77 (game INTEGER, opponent VARCHAR) |
SELECT attendance FROM table_name_70 WHERE result = "w 51-21" | Which Attendance has a Result of w 51-21? | CREATE TABLE table_name_70 (attendance VARCHAR, result VARCHAR) |
SELECT baltimore_group FROM table_name_13 WHERE virion_shape = "icosahedral" AND envelopment = "non-enveloped" AND replication_site = "cytoplasm" AND family = "astroviridae" | Which Baltimore group has a viron shape of icosahedral, replicates in the cytoplasm, is non-enveloped, and is from the astroviridae family? | CREATE TABLE table_name_13 (baltimore_group VARCHAR, family VARCHAR, replication_site VARCHAR, virion_shape VARCHAR, envelopment VARCHAR) |
SELECT MAX(gold) FROM table_name_28 WHERE total > 3 AND bronze < 3 AND nation = "belarus" AND silver > 2 | what is the highest gold count when total is more than 3, bronze less than 3, and nation of belarus with silver count more than 2? | CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) |
SELECT home_team AS score FROM table_name_42 WHERE away_team = "richmond" | What was the score of the home team when Richmond was the away team? | CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) |
SELECT catalog FROM table_name_98 WHERE region = "united states" | What is the catalog with the region of the United States? | CREATE TABLE table_name_98 (catalog VARCHAR, region VARCHAR) |
SELECT finish FROM table_name_41 WHERE win_percentage > 0.598 AND wins < 53 | Which finish had a win percentage that was more than 0.598 and also had less than 53 wins? | CREATE TABLE table_name_41 (finish VARCHAR, win_percentage VARCHAR, wins VARCHAR) |
SELECT score FROM table_name_1 WHERE record = "34–17–11–2" | What was the score of the game with a record of 34–17–11–2? | CREATE TABLE table_name_1 (score VARCHAR, record VARCHAR) |
SELECT SUM(position) FROM table_name_36 WHERE drawn = 10 AND lost < 25 AND goal_difference = "+20" AND played < 42 | What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42? | CREATE TABLE table_name_36 (position INTEGER, played VARCHAR, goal_difference VARCHAR, drawn VARCHAR, lost VARCHAR) |
SELECT tankers FROM table_name_9 WHERE hazmat = "–" AND platforms = "–" AND staffing = "volunteer" | Which Tankers have a Hazmat of –, and Platforms of –, and a Staffing of volunteer? | CREATE TABLE table_name_9 (tankers VARCHAR, staffing VARCHAR, hazmat VARCHAR, platforms VARCHAR) |
SELECT 1 AS st_leg FROM table_name_27 WHERE team_2 = "portol drac palma mallorca" | What is the 1st leg for team 2 Portol Drac Palma Mallorca? | CREATE TABLE table_name_27 (team_2 VARCHAR) |
SELECT location___state FROM table_name_5 WHERE circuit = "wanneroo raceway" | What is the location/state of the race on the Wanneroo raceway? | CREATE TABLE table_name_5 (location___state VARCHAR, circuit VARCHAR) |
SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010) | find the names of museums which have more staff than the minimum staff number of all museums opened after 2010. | CREATE TABLE museum (name VARCHAR, num_of_staff INTEGER, open_year INTEGER) |
SELECT defective_year FROM table_28985631_1 WHERE numbered_month = "Eighth" | What is the defective year for the eighth numbered month? | CREATE TABLE table_28985631_1 (defective_year VARCHAR, numbered_month VARCHAR) |
SELECT MAX(week) FROM table_name_83 WHERE result = "l 14-3" | What was the latest week with a result of l 14-3? | CREATE TABLE table_name_83 (week INTEGER, result VARCHAR) |
SELECT MAX(attendance) FROM table_name_63 WHERE record = "1-1-0" | What is the largest number in attendance when the record is 1-1-0? | CREATE TABLE table_name_63 (attendance INTEGER, record VARCHAR) |
SELECT team FROM table_name_78 WHERE high_rebounds = "carl landry (11)" | What is Team, when High Rebounds is "Carl Landry (11)"? | CREATE TABLE table_name_78 (team VARCHAR, high_rebounds VARCHAR) |
SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34 | How many games have more than 288 goals and less than 34 losses? | CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR) |
SELECT team FROM table_name_17 WHERE date = "december 30" | Which team was the opponent on December 30? | CREATE TABLE table_name_17 (team VARCHAR, date VARCHAR) |
SELECT species FROM table_name_58 WHERE genes = "3,441" | Which species has 3,441 genes? | CREATE TABLE table_name_58 (species VARCHAR, genes VARCHAR) |
SELECT SUM(lane) FROM table_name_82 WHERE reaction_time < 0.218 AND time > 44.74 AND nationality = "great britain" | What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74? | CREATE TABLE table_name_82 (lane INTEGER, nationality VARCHAR, reaction_time VARCHAR, time VARCHAR) |
SELECT AVG(attendance) FROM table_name_86 WHERE date = "april 24" | What is the average attendance on april 24? | CREATE TABLE table_name_86 (attendance INTEGER, date VARCHAR) |
SELECT club FROM table_name_88 WHERE draws < 8 AND points = 37 AND goals_for < 71 | What club has less than 8 draws, 37 points, and less than 71 goals? | CREATE TABLE table_name_88 (club VARCHAR, goals_for VARCHAR, draws VARCHAR, points VARCHAR) |
SELECT MAX(cuts_made) FROM table_name_36 WHERE tournament = "pga championship" AND events > 3 | How many cuts did he make at the PGA championship in 3 events? | CREATE TABLE table_name_36 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR) |
SELECT COUNT(college) FROM table_10975034_4 WHERE position = "DB" | How many colleges have a DB position? | CREATE TABLE table_10975034_4 (college VARCHAR, position VARCHAR) |
SELECT player FROM table_name_66 WHERE score = 69 - 72 - 68 = 209 | what player scored 69-72-68=209? | CREATE TABLE table_name_66 (player VARCHAR, score VARCHAR) |
SELECT STRUCT(high) FROM table_1942366_9 WHERE STRUCT(low) = "250.5" | What's the C_{high} when the C_{low} value is 250.5? | CREATE TABLE table_1942366_9 (high VARCHAR, low VARCHAR) |
SELECT circuit FROM table_name_41 WHERE winning_constructor = "alfa romeo" | Which circuit did alfa romeo win? | CREATE TABLE table_name_41 (circuit VARCHAR, winning_constructor VARCHAR) |
SELECT county, COUNT(*), SUM(enrollment) FROM school GROUP BY county | Show each county along with the number of schools and total enrollment in each county. | CREATE TABLE school (county VARCHAR, enrollment INTEGER) |
SELECT winning_constructor FROM table_1137704_2 WHERE fastest_lap = "Riccardo Patrese" AND location = "Interlagos" | who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos | CREATE TABLE table_1137704_2 (winning_constructor VARCHAR, fastest_lap VARCHAR, location VARCHAR) |
SELECT AVG(pick) FROM table_name_62 WHERE hometown_school = "atlanta, ga" | What was the pick # of the player who has a hometown/school of Atlanta, GA? | CREATE TABLE table_name_62 (pick INTEGER, hometown_school VARCHAR) |
SELECT capacity FROM table_name_15 WHERE stadium = "city park stadium" | Tell me the capacity for city park stadium | CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR) |
SELECT last_year FROM table_1161065_28 WHERE venue = "Manuka Oval" | What was the attendance last year at Manuka Oval? | CREATE TABLE table_1161065_28 (last_year VARCHAR, venue VARCHAR) |
SELECT home_team AS score FROM table_name_11 WHERE venue = "victoria park" | When the VFL played Victoria Park what was the home team score? | CREATE TABLE table_name_11 (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.