answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT pos FROM table_name_91 WHERE play_offs = "quarter-final" AND pts = "56" | During the play-off quarter-final which team scored position was the team that scored 56 points? | CREATE TABLE table_name_91 (pos VARCHAR, play_offs VARCHAR, pts VARCHAR) |
SELECT COUNT(player) FROM table_11545282_6 WHERE years_for_jazz = "2006-2007" | How many players have played for Jazz during 2006-2007? | CREATE TABLE table_11545282_6 (player VARCHAR, years_for_jazz VARCHAR) |
SELECT runner_s__up FROM table_name_75 WHERE tournament = "mci classic" | What is Runner(s)-up, when Tournament is MCI Classic? | CREATE TABLE table_name_75 (runner_s__up VARCHAR, tournament VARCHAR) |
SELECT network FROM table_20026849_1 WHERE destination = "Australia" | What network showed the season with Australia as the destination? | CREATE TABLE table_20026849_1 (network VARCHAR, destination VARCHAR) |
SELECT name__wade_giles_ FROM table_name_87 WHERE characters = "廣亨" | What's the name that has the characters 廣亨? | CREATE TABLE table_name_87 (name__wade_giles_ VARCHAR, characters VARCHAR) |
SELECT score FROM table_name_41 WHERE opponent_in_the_final = "olivier delaître" | What is the score of the tournament with olivier delaître as the opponent in the final? | CREATE TABLE table_name_41 (score VARCHAR, opponent_in_the_final VARCHAR) |
SELECT AVG(round) FROM table_name_24 WHERE player = "joe sims" | What round was Joe Sims picked? | CREATE TABLE table_name_24 (round INTEGER, player VARCHAR) |
SELECT ben_tahir FROM table_name_82 WHERE liscumb = "6" AND libweshya = "3" | What Ben-Tahir has a 6 Liscumb and 3 Libweshya? | CREATE TABLE table_name_82 (ben_tahir VARCHAR, liscumb VARCHAR, libweshya VARCHAR) |
SELECT road_team FROM table_name_53 WHERE home_team = "philadelphia" AND result = "105-102" | What is the road team of the game with Philadelphia as the home team with a result of 105-102? | CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR) |
SELECT COUNT(grid) FROM table_name_89 WHERE laps > 54 | How many grid numbers had a lap number bigger than 54? | CREATE TABLE table_name_89 (grid VARCHAR, laps INTEGER) |
SELECT dutch FROM table_name_18 WHERE english = "one" | What is the dutch word for one? | CREATE TABLE table_name_18 (dutch VARCHAR, english VARCHAR) |
SELECT AVG(age), job FROM Person GROUP BY job | What is average age for different job title? | CREATE TABLE Person (job VARCHAR, age INTEGER) |
SELECT district FROM table_1341663_26 WHERE candidates = "Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%" | Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? | CREATE TABLE table_1341663_26 (district VARCHAR, candidates VARCHAR) |
SELECT john_kerry FROM table_name_94 WHERE john_edwards = "20%" | What is John Kerry, when John Edwards is "20%"? | CREATE TABLE table_name_94 (john_kerry VARCHAR, john_edwards VARCHAR) |
SELECT COUNT(representative) FROM table_29486189_4 WHERE first_elected = "2008" AND residence = "Hanover Twp" | how many representatives from hanover twp were first elected in 2008 | CREATE TABLE table_29486189_4 (representative VARCHAR, first_elected VARCHAR, residence VARCHAR) |
SELECT duration FROM table_name_61 WHERE end_time = "21:06" | What is the duration of the flight with end time of 21:06? | CREATE TABLE table_name_61 (duration VARCHAR, end_time VARCHAR) |
SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15 | Which Played has a Position of 3, and a Points smaller than 15? | CREATE TABLE table_name_85 (played VARCHAR, position VARCHAR, points VARCHAR) |
SELECT rank FROM table_name_51 WHERE time = "6:24.35" | What is the rank for the rowers with the time of 6:24.35? | CREATE TABLE table_name_51 (rank VARCHAR, time VARCHAR) |
SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003 | Show the names of buildings except for those having an institution founded in 2003. | CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE building (name VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded VARCHAR) |
SELECT set_1 FROM table_name_25 WHERE set_3 = "16–25" | Which Set 1 has a Set 3 of 16–25? | CREATE TABLE table_name_25 (set_1 VARCHAR, set_3 VARCHAR) |
SELECT player FROM table_name_84 WHERE pos = "qb" AND college = "texas tech" | Which player had a position of QB for Texas Tech? | CREATE TABLE table_name_84 (player VARCHAR, pos VARCHAR, college VARCHAR) |
SELECT COUNT(brief_description) FROM table_229917_2 WHERE fatalities = "0/161" | How many different brief descriptions are there for crashes with 0/161 fatalities? | CREATE TABLE table_229917_2 (brief_description VARCHAR, fatalities VARCHAR) |
SELECT 2009 FROM table_name_60 WHERE 2007 = "lakita hall" | Who attended the school in 2009, that Lakita Hall attended in 2007? | CREATE TABLE table_name_60 (Id VARCHAR) |
SELECT director FROM table_26866519_1 WHERE series__number = 201 | Who directed series episode number 201? | CREATE TABLE table_26866519_1 (director VARCHAR, series__number VARCHAR) |
SELECT chassis FROM table_name_75 WHERE entrant = "lavazza march" AND points = 0.5 | What was the chassis when the entrant was Lavazza March, and the points were 0.5? | CREATE TABLE table_name_75 (chassis VARCHAR, entrant VARCHAR, points VARCHAR) |
SELECT sample_size FROM table_name_35 WHERE date = "may 2-7, 2007" AND democrat = "hillary clinton" | What was the sample size for polling on May 2-7, 2007 for Hillary Clinton? | CREATE TABLE table_name_35 (sample_size VARCHAR, date VARCHAR, democrat VARCHAR) |
SELECT result FROM table_name_90 WHERE category = "best revival of a musical" | What was the result for the nomination of Best Revival of a Musical? | CREATE TABLE table_name_90 (result VARCHAR, category VARCHAR) |
SELECT player FROM table_name_53 WHERE round = "1" | what player is playing on round 1 | CREATE TABLE table_name_53 (player VARCHAR, round VARCHAR) |
SELECT MIN(week) FROM table_13258876_2 WHERE game_site = "Los Angeles Memorial Coliseum" | What week did the Seahawks play at los angeles memorial coliseum? | CREATE TABLE table_13258876_2 (week INTEGER, game_site VARCHAR) |
SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common nationality for journalists. | CREATE TABLE journalist (Nationality VARCHAR) |
SELECT COUNT(team) FROM table_27700530_9 WHERE game = 13 | How many games were numbered 13? | CREATE TABLE table_27700530_9 (team VARCHAR, game VARCHAR) |
SELECT mens_singles FROM table_12194021_1 WHERE mixed_doubles = "Markose Bristow Madhumita Bisht" | What years did Markose Bristow Madhumita Bisht win the mens singles and/or the mixed doubles? | CREATE TABLE table_12194021_1 (mens_singles VARCHAR, mixed_doubles VARCHAR) |
SELECT qual FROM table_name_25 WHERE year = "1960" | Name the qual for year of 1960 | CREATE TABLE table_name_25 (qual VARCHAR, year VARCHAR) |
SELECT driver FROM table_name_8 WHERE date = "16th september 1951" AND race = "dns" | Which Driver has a Date of 16th september 1951, and a Race of dns? | CREATE TABLE table_name_8 (driver VARCHAR, date VARCHAR, race VARCHAR) |
SELECT SUM(bit_depth) FROM table_name_38 WHERE color_sampling = "4:1:1" | What bit depth has 4:1:1 as the color sampling? | CREATE TABLE table_name_38 (bit_depth INTEGER, color_sampling VARCHAR) |
SELECT MIN(attendance) FROM table_name_50 WHERE week = 15 | What was the lowest attendance at a week 15 game? | CREATE TABLE table_name_50 (attendance INTEGER, week VARCHAR) |
SELECT MIN(march) FROM table_name_7 WHERE record = "22-12-6" | What's the smallest March when the record is 22-12-6? | CREATE TABLE table_name_7 (march INTEGER, record VARCHAR) |
SELECT status FROM table_name_77 WHERE name = "anas cheuen" | What is the Status with a Name that is anas cheuen? | CREATE TABLE table_name_77 (status VARCHAR, name VARCHAR) |
SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 | Show the member names which are in both the party with id 3 and the party with id 1. | CREATE TABLE member (member_name VARCHAR, party_id VARCHAR) |
SELECT series FROM table_name_31 WHERE final_placing = "9th" AND podiums = "2" | Which Series has a Final Placing of 9th, and Podiums of 2? | CREATE TABLE table_name_31 (series VARCHAR, final_placing VARCHAR, podiums VARCHAR) |
SELECT AVG(laps) FROM table_name_54 WHERE grid = 16 | What is the average number of laps with 16 grids? | CREATE TABLE table_name_54 (laps INTEGER, grid VARCHAR) |
SELECT 1987 FROM table_name_47 WHERE 1999 = "a" AND 1989 = "a" AND 1997 = "a" | What is the value in 1987 when it is A in 1999, 1989, and 1997? | CREATE TABLE table_name_47 (Id VARCHAR) |
SELECT original_title FROM table_16255245_1 WHERE film_title_used_in_nomination = "The Counterfeiters" | Name the original title for the counterfeiters | CREATE TABLE table_16255245_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT date_aired FROM table_name_35 WHERE network = "rtl televizija" | Which date was the show aired on the RTL Televizija network? | CREATE TABLE table_name_35 (date_aired VARCHAR, network VARCHAR) |
SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9 | Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9? | CREATE TABLE table_name_98 (wins INTEGER, played VARCHAR, losses VARCHAR, position VARCHAR) |
SELECT position FROM table_2897457_1 WHERE player = "Olaf Kolzig" | What position does Olaf Kolzig play? | CREATE TABLE table_2897457_1 (position VARCHAR, player VARCHAR) |
SELECT poll_source FROM table_name_41 WHERE democrat = "hillary clinton" AND margin_of_error < 4.5 AND republican = "john mccain" AND date = "may 2-7, 2007" | Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007? | CREATE TABLE table_name_41 (poll_source VARCHAR, date VARCHAR, republican VARCHAR, democrat VARCHAR, margin_of_error VARCHAR) |
SELECT COUNT(year_of_most_recent_appearance) FROM table_name_95 WHERE corps_name = "suncoast sound" AND number_of_finals_appearances > 7 | What is the year of most recent appearance of the Suncoast sound, who had more than 7 finals appearances? | CREATE TABLE table_name_95 (year_of_most_recent_appearance VARCHAR, corps_name VARCHAR, number_of_finals_appearances VARCHAR) |
SELECT country FROM table_name_16 WHERE player = "vijay singh" | Name the country vijay singh is from | CREATE TABLE table_name_16 (country VARCHAR, player VARCHAR) |
SELECT COUNT(*), city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY COUNT(*) DESC | How many airports are there per city in the United States? Order the cities by decreasing number of airports. | CREATE TABLE airports (city VARCHAR, country VARCHAR) |
SELECT district FROM table_1342292_17 WHERE incumbent = "Robert L. Mouton" | What district is incumbent robert l. mouton from? | CREATE TABLE table_1342292_17 (district VARCHAR, incumbent VARCHAR) |
SELECT group_a_winner FROM table_1137142_1 WHERE group_b_winner = "Modena" | What is the group a winner for modena? | CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_b_winner VARCHAR) |
SELECT date FROM table_name_40 WHERE circuit = "sepang international circuit" AND round = "3" | What was the date for the Sepang International circuit, round 3? | CREATE TABLE table_name_40 (date VARCHAR, circuit VARCHAR, round VARCHAR) |
SELECT score FROM table_name_99 WHERE time = "18:00" AND venue = "african union" | Name the Score which has a Time of 18:00 and a Venue of african union? | CREATE TABLE table_name_99 (score VARCHAR, time VARCHAR, venue VARCHAR) |
SELECT entrant FROM table_name_92 WHERE engine_† = "bmw p82" | who is the entrant when the engine is bmw p82? | CREATE TABLE table_name_92 (entrant VARCHAR, engine_† VARCHAR) |
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Oro Diablo" | Name the total number of director for oro diablo | CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR) |
SELECT COUNT(year) FROM table_2930244_2 WHERE number_of_hurricanes = 3 AND strongest_storm = "Three" | How many years saw 3 hurricanes wherein the strongest storm was level three? | CREATE TABLE table_2930244_2 (year VARCHAR, number_of_hurricanes VARCHAR, strongest_storm VARCHAR) |
SELECT AVG(rank) FROM table_name_59 WHERE group = "a" AND athlete = "yanina karolchyk" AND result > 18 | What is the average rank for Group A athlete Yanina Karolchyk, and a result higher than 18? | CREATE TABLE table_name_59 (rank INTEGER, result VARCHAR, group VARCHAR, athlete VARCHAR) |
SELECT nationality FROM table_name_46 WHERE round > 4 | Name the nationality of the player with round more than 4 | CREATE TABLE table_name_46 (nationality VARCHAR, round INTEGER) |
SELECT COUNT(goals) FROM table_name_48 WHERE result = "0-1" AND date = "march 28, 2007" | How many goals have a result of 0-1 on march 28, 2007? | CREATE TABLE table_name_48 (goals VARCHAR, result VARCHAR, date VARCHAR) |
SELECT COUNT(lost) FROM table_1676073_13 WHERE club = "Cross Keys RFC" | How many losses does Cross Keys RFC have? | CREATE TABLE table_1676073_13 (lost VARCHAR, club VARCHAR) |
SELECT school FROM table_name_32 WHERE player = "rodney purvis" | Which school did player Rodney Purvis belong to? | CREATE TABLE table_name_32 (school VARCHAR, player VARCHAR) |
SELECT social_ao FROM table_name_39 WHERE external_co = "elena buscher" AND president = "harm van leeuwen" | What Social AO has an External CO of elena buscher, and a President of harm van leeuwen? | CREATE TABLE table_name_39 (social_ao VARCHAR, external_co VARCHAR, president VARCHAR) |
SELECT result FROM table_name_38 WHERE week < 8 AND record = "2–3–2" | What was the result of the game with a record of 2–3–2 before week 8? | CREATE TABLE table_name_38 (result VARCHAR, week VARCHAR, record VARCHAR) |
SELECT official_name FROM table_171236_2 WHERE area_km_2 = "295.07" | What's the official name of the place with an Area KM 2 of 295.07 | CREATE TABLE table_171236_2 (official_name VARCHAR, area_km_2 VARCHAR) |
SELECT game_site FROM table_name_59 WHERE week = "divisional playoffs" | Where did they have the divisional playoffs? | CREATE TABLE table_name_59 (game_site VARCHAR, week VARCHAR) |
SELECT score FROM table_name_71 WHERE opponent = "@ seattle" | Which Score has an Opponent of @ seattle? | CREATE TABLE table_name_71 (score VARCHAR, opponent VARCHAR) |
SELECT party FROM table_2668243_20 WHERE incumbent = "Richard Coulter" | What party was represented by incumbent Richard Coulter ? | CREATE TABLE table_2668243_20 (party VARCHAR, incumbent VARCHAR) |
SELECT series FROM table_24998088_1 WHERE position = "7th" | In what series did he have the 7th position? | CREATE TABLE table_24998088_1 (series VARCHAR, position VARCHAR) |
SELECT score FROM table_name_30 WHERE match_no = "15" | What is the score of match 15? | CREATE TABLE table_name_30 (score VARCHAR, match_no VARCHAR) |
SELECT electoral_district FROM table_2676980_4 WHERE total_candidates = 35 | What is the electoral district when total candidates were 35? | CREATE TABLE table_2676980_4 (electoral_district VARCHAR, total_candidates VARCHAR) |
SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT AVG(enrollment) FROM university) | Find the team names of the universities whose enrollments are smaller than the average enrollment size. | CREATE TABLE university (school_id VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, school_id VARCHAR); CREATE TABLE university (enrollment INTEGER) |
SELECT MAX(bronze) FROM table_name_49 WHERE total > 1 AND rank > 1 AND gold > 1 | What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1? | CREATE TABLE table_name_49 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR) |
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared" | How many songs have a shared vocal? | CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) |
SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1 | What is the ERP W number where the frequency is smaller than 91.1? | CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER) |
SELECT AVG(games) FROM table_name_19 WHERE player = "robert hock" AND goals < 24 | What is the average Games, when Player is Robert Hock, and when Goals is less than 24? | CREATE TABLE table_name_19 (games INTEGER, player VARCHAR, goals VARCHAR) |
SELECT constructor FROM table_name_21 WHERE driver = "eric brandon" | who built the car driven by eric brandon? | CREATE TABLE table_name_21 (constructor VARCHAR, driver VARCHAR) |
SELECT MAX(year) FROM table_name_1 WHERE start = "3" AND team = "morgan-mcclure" AND finish = "40" | What's the latest year with a start of 3 and a finish of 40 for the morgan-mcclure team? | CREATE TABLE table_name_1 (year INTEGER, finish VARCHAR, start VARCHAR, team VARCHAR) |
SELECT SUM(number_of_fixtures) FROM table_name_65 WHERE round = "quarter-finals" | What is the sum of Number of fixtures when the rounds shows quarter-finals? | CREATE TABLE table_name_65 (number_of_fixtures INTEGER, round VARCHAR) |
SELECT record FROM table_20010140_9 WHERE game = 20 | What was the record after game 20? | CREATE TABLE table_20010140_9 (record VARCHAR, game VARCHAR) |
SELECT MAX(settlement_amount), MIN(settlement_amount) FROM settlements | What are the maximum and minimum settlement amount on record? | CREATE TABLE settlements (settlement_amount INTEGER) |
SELECT MIN(pick__number) FROM table_28059992_5 WHERE player = "Andy Brereton" | What draft pick number was Andy Brereton? | CREATE TABLE table_28059992_5 (pick__number INTEGER, player VARCHAR) |
SELECT venue FROM table_name_86 WHERE closed = "1996" | Which venue closed in 1996? | CREATE TABLE table_name_86 (venue VARCHAR, closed VARCHAR) |
SELECT extortion_theft_3 FROM table_15652027_1 WHERE united_nations_mission = "United Nations Observer Mission Uganda-Rwanda" | What is the extortion and theft rates where the United Nations Observer Mission Uganda-Rwanda is active? | CREATE TABLE table_15652027_1 (extortion_theft_3 VARCHAR, united_nations_mission VARCHAR) |
SELECT MAX(year) FROM table_name_42 WHERE notes = "team competition" AND venue = "antwerp, belgium" | What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes? | CREATE TABLE table_name_42 (year INTEGER, notes VARCHAR, venue VARCHAR) |
SELECT deleted FROM table_name_8 WHERE name = "anniston army depot (se industrial area)" | On what date was Anniston Army Depot (SE Industrial Area) deleted? | CREATE TABLE table_name_8 (deleted VARCHAR, name VARCHAR) |
SELECT isbn FROM table_name_75 WHERE series = "conan the barbarian" AND title = "queen of the black coast" | What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast? | CREATE TABLE table_name_75 (isbn VARCHAR, series VARCHAR, title VARCHAR) |
SELECT opponent FROM table_name_92 WHERE score = "2-1" | what team had a score of 2-1 | CREATE TABLE table_name_92 (opponent VARCHAR, score VARCHAR) |
SELECT host FROM table_name_95 WHERE _number_of_episodes > 11 | Which host has more than 11 episodes? | CREATE TABLE table_name_95 (host VARCHAR, _number_of_episodes INTEGER) |
SELECT COUNT(year) FROM table_name_28 WHERE record = "3:40.8" | How many years was the record 3:40.8? | CREATE TABLE table_name_28 (year VARCHAR, record VARCHAR) |
SELECT directed_by FROM table_28466323_2 WHERE us_viewers__million_ = "2.01" | Who directed the episode watched by 2.01 million US viewers? | CREATE TABLE table_28466323_2 (directed_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT location_attendance FROM table_23286112_6 WHERE high_points = "Kevin Durant (25)" | Where was the game in which Kevin Durant (25) did the most high points played? | CREATE TABLE table_23286112_6 (location_attendance VARCHAR, high_points VARCHAR) |
SELECT status FROM table_name_10 WHERE athlete = "rené hoppe" | What is the status of rené hoppe? | CREATE TABLE table_name_10 (status VARCHAR, athlete VARCHAR) |
SELECT result FROM table_name_69 WHERE score = "12-22" | What outcome has a score of 12-22? | CREATE TABLE table_name_69 (result VARCHAR, score VARCHAR) |
SELECT number_of_winning_tickets FROM table_20195922_3 WHERE prize__eur_ = "180.00" | What are the number of winning tickets that have 180.00 as the prize (eur)? | CREATE TABLE table_20195922_3 (number_of_winning_tickets VARCHAR, prize__eur_ VARCHAR) |
SELECT player FROM table_name_70 WHERE score < 69 AND country = "united states" | What is Player, when Score is less than 69, and when Country is "United States"? | CREATE TABLE table_name_70 (player VARCHAR, score VARCHAR, country VARCHAR) |
SELECT takuu FROM table_name_83 WHERE north_marquesan = "/vehine/" | What kind of Takuu has a North Marquesan of /vehine/? | CREATE TABLE table_name_83 (takuu VARCHAR, north_marquesan VARCHAR) |
SELECT team_country FROM table_name_54 WHERE year > 1958 AND race_name = "kellogg's tour" | What ream played later than 1958 in the kellogg's tour? | CREATE TABLE table_name_54 (team_country VARCHAR, year VARCHAR, race_name VARCHAR) |
SELECT prefecture FROM table_2518850_4 WHERE city_town = "Susaki" | In what prefecture is Susaki located? | CREATE TABLE table_2518850_4 (prefecture VARCHAR, city_town VARCHAR) |
SELECT date_of_appointment FROM table_11190568_7 WHERE team = "Galway" | When are team Galway's dates of appointment? | CREATE TABLE table_11190568_7 (date_of_appointment VARCHAR, team VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.