answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT MIN(laps) FROM table_name_8 WHERE grid > 3 AND time = "39:24.967" | What was the number of Laps with a Grid of more than 3 and Time of 39:24.967? | CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR, time VARCHAR) |
SELECT home_team AS score FROM table_name_30 WHERE away_team = "hawthorn" | What did the home team score against the away team Hawthorn? | CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR) |
SELECT captain FROM table_25527255_2 WHERE kit_manufacturer = "Nike" | Who is the captain of the team whose kit manufacturer is Nike? | CREATE TABLE table_25527255_2 (captain VARCHAR, kit_manufacturer VARCHAR) |
SELECT 2012 FROM table_name_69 WHERE 2013 = "2r" AND 2009 = "3r" | Name the 2012 with 2013 of 2r and 2009 of 3r | CREATE TABLE table_name_69 (Id VARCHAR) |
SELECT school FROM table_24540893_6 WHERE position = "RB" | What school did the rb drafted attend? | CREATE TABLE table_24540893_6 (school VARCHAR, position VARCHAR) |
SELECT MAX(opponents) FROM table_21094951_1 WHERE record = "2-0" | Name the opponents for record being 2-0 | CREATE TABLE table_21094951_1 (opponents INTEGER, record VARCHAR) |
SELECT MIN(share) FROM table_name_8 WHERE air_date = "march 21, 2008" AND viewers > 5.15 | What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15? | CREATE TABLE table_name_8 (share INTEGER, air_date VARCHAR, viewers VARCHAR) |
SELECT AVG(pick__number) FROM table_name_40 WHERE round < 7 AND college = "tennessee" | What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee? | CREATE TABLE table_name_40 (pick__number INTEGER, round VARCHAR, college VARCHAR) |
SELECT position_in_e4s_ratings_b FROM table_22170495_6 WHERE original_airing_on_channel_4 = "June 30, 2010" | What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4? | CREATE TABLE table_22170495_6 (position_in_e4s_ratings_b VARCHAR, original_airing_on_channel_4 VARCHAR) |
SELECT MIN(goals_for) FROM table_name_98 WHERE ties > 0 | What is the score of Goal For which has a Ties larger 0? | CREATE TABLE table_name_98 (goals_for INTEGER, ties INTEGER) |
SELECT position FROM table_name_22 WHERE round > 14 AND school_club_team = "north texas" | Which Position has a Round larger than 14, and a School/Club Team of north texas? | CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, school_club_team VARCHAR) |
SELECT AVG(entrants) FROM table_name_21 WHERE winner = "frank gary" | How many entrants did the events won by Frank Gary average? | CREATE TABLE table_name_21 (entrants INTEGER, winner VARCHAR) |
SELECT score FROM table_name_8 WHERE visitor = "hartford whalers" AND date = "april 11" | What is the score of the visiting Hartford Whalers game from April 11? | CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR, date VARCHAR) |
SELECT location FROM table_name_63 WHERE capacity = "65,000" AND opening = "2016" | What place can sit 65,000 and opens 2016? | CREATE TABLE table_name_63 (location VARCHAR, capacity VARCHAR, opening VARCHAR) |
SELECT MAX(points) FROM table_name_96 WHERE player = "emmitt smith" | What are the highest points that Emmitt Smith had? | CREATE TABLE table_name_96 (points INTEGER, player VARCHAR) |
SELECT SUM(year) FROM table_name_74 WHERE opponent_in_the_final = "welby van horn" | How many years have an Opponent in the final of welby van horn? | CREATE TABLE table_name_74 (year INTEGER, opponent_in_the_final VARCHAR) |
SELECT MIN(races) FROM table_name_93 WHERE pole < 2 AND season = "2007" | WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007? | CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR) |
SELECT pc_demo FROM table_2490289_1 WHERE c64_demo = "Tower Power (Camelot)" | What won best pc demo when tower power (camelot) won best c64 demo? | CREATE TABLE table_2490289_1 (pc_demo VARCHAR, c64_demo VARCHAR) |
SELECT date FROM table_name_50 WHERE total = "25–45" | On what date was the total 25–45? | CREATE TABLE table_name_50 (date VARCHAR, total VARCHAR) |
SELECT MIN(total_produced) FROM table_name_47 WHERE model = "m-420" | What is the smallest total produced with a model of M-420? | CREATE TABLE table_name_47 (total_produced INTEGER, model VARCHAR) |
SELECT candidate_status FROM table_name_46 WHERE state = "macedonia" | What is the candidate status of macedonia? | CREATE TABLE table_name_46 (candidate_status VARCHAR, state VARCHAR) |
SELECT score FROM table_name_93 WHERE goal = 16 | What was the score with a goal of 16? | CREATE TABLE table_name_93 (score VARCHAR, goal VARCHAR) |
SELECT AVG(pos) FROM table_name_93 WHERE h_a_n = "neutral" AND inn > 2 | What is the position with a neutral H/A/N and more than 2 innings? | CREATE TABLE table_name_93 (pos INTEGER, h_a_n VARCHAR, inn VARCHAR) |
SELECT runner_up FROM table_name_12 WHERE rank = 7 | What is the runner-up for rank of 7? | CREATE TABLE table_name_12 (runner_up VARCHAR, rank VARCHAR) |
SELECT AVG(rank_by_average) FROM table_name_43 WHERE total > 245 AND average = 27.1 AND number_of_dances < 15 | What is the rank by average where the total was larger than 245 and the average was 27.1 with fewer than 15 dances? | CREATE TABLE table_name_43 (rank_by_average INTEGER, number_of_dances VARCHAR, total VARCHAR, average VARCHAR) |
SELECT result FROM table_name_17 WHERE week = 12 | What is the week 12 result? | CREATE TABLE table_name_17 (result VARCHAR, week VARCHAR) |
SELECT elimination AS Move FROM table_name_28 WHERE wrestler = "regal" | What is the Elimination move listed against Regal? | CREATE TABLE table_name_28 (elimination VARCHAR, wrestler VARCHAR) |
SELECT MIN(geo_id) FROM table_18600760_15 | what is the lowest geo id? | CREATE TABLE table_18600760_15 (geo_id INTEGER) |
SELECT score FROM table_name_1 WHERE competition = "2010 world cup qualifying" | what is the score for the 2010 world cup qualifying? | CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR) |
SELECT MAX(matches) FROM table_name_22 WHERE round = "third round" | What is the highest number of matches that has a round of Third Round? | CREATE TABLE table_name_22 (matches INTEGER, round VARCHAR) |
SELECT region FROM table_name_92 WHERE label = "universal music group" | What was the region when the label was the universal music group? | CREATE TABLE table_name_92 (region VARCHAR, label VARCHAR) |
SELECT date FROM table_name_94 WHERE result = "w" AND score = "3-0" | Which Date has a Result of w, and a Score of 3-0? | CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR, score VARCHAR) |
SELECT state_served FROM table_name_27 WHERE party = "federalist" AND representative = "samuel thatcher" | Which state did Samuel Thatcher of the Federalist party represent? | CREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR) |
SELECT nationality FROM table_name_57 WHERE ranking = 4 | What is the Nationality that shows 4 as the ranking? | CREATE TABLE table_name_57 (nationality VARCHAR, ranking 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 date FROM table_name_73 WHERE home_team = "portland" AND game = "game 1" | On what date was the game 1 played at Portland? | CREATE TABLE table_name_73 (date VARCHAR, home_team VARCHAR, game VARCHAR) |
SELECT COUNT(year) FROM table_name_63 WHERE award = "tony award" AND nominee = "terry johnson" | In what year was Terry Johnson nominated for a Tony award? | CREATE TABLE table_name_63 (year VARCHAR, award VARCHAR, nominee VARCHAR) |
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE below_60_percentage_of_median_income = "24.4%" | What is the median income for the region where 24.4% pf people make below 60% of the median income? | CREATE TABLE table_25042332_16 (median_income___intl INTEGER, below_60_percentage_of_median_income VARCHAR) |
SELECT MIN(year) FROM table_name_28 WHERE rank > 85 | What is the lowest Year, when Rank is greater than 85? | CREATE TABLE table_name_28 (year INTEGER, rank INTEGER) |
SELECT version FROM table_name_99 WHERE format = "cd" | What is the Version of the CD release? | CREATE TABLE table_name_99 (version VARCHAR, format VARCHAR) |
SELECT MIN(events) FROM table_name_56 WHERE top_5 > 1 | What is the lowest value for Events, when the value for Top-5 is greater than 1? | CREATE TABLE table_name_56 (events INTEGER, top_5 INTEGER) |
SELECT mixed_doubles FROM table_name_93 WHERE year = 2006 | Which mixed doubles was featured in 2006? | CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR) |
SELECT MIN(year) FROM table_name_60 WHERE total_score = "305" | What's the year with a score of 305? | CREATE TABLE table_name_60 (year INTEGER, total_score VARCHAR) |
SELECT visitor FROM table_name_17 WHERE date = "march 26" | What visitor has march 26 as the date? | CREATE TABLE table_name_17 (visitor VARCHAR, date VARCHAR) |
SELECT game FROM table_name_98 WHERE result = "112-100" | What game had the result of 112-100? | CREATE TABLE table_name_98 (game VARCHAR, result VARCHAR) |
SELECT high_rebounds FROM table_name_57 WHERE high_assists = "jason kidd (8)" AND score = "w 105–95 (ot)" | Who had the high rebounds when the score was w 105–95 (ot) and Jason Kidd (8) had the high assists? | CREATE TABLE table_name_57 (high_rebounds VARCHAR, high_assists VARCHAR, score VARCHAR) |
SELECT episode FROM table_2102782_1 WHERE run_time = "25:05" | Name the episode for run time 25:05 | CREATE TABLE table_2102782_1 (episode VARCHAR, run_time VARCHAR) |
SELECT dept_name, building FROM department ORDER BY budget DESC | List the names and buildings of all departments sorted by the budget from large to small. | CREATE TABLE department (dept_name VARCHAR, building VARCHAR, budget VARCHAR) |
SELECT COUNT(general_classification) FROM table_27573848_18 WHERE stage = 5 | How many different people had a General Classification on Stage 5? | CREATE TABLE table_27573848_18 (general_classification VARCHAR, stage VARCHAR) |
SELECT date FROM table_27700530_10 WHERE record = "18–12" | What is the date where the record was 18–12? | CREATE TABLE table_27700530_10 (date VARCHAR, record VARCHAR) |
SELECT number FROM table_12206918_2 WHERE opponent = "Iran Barkley" | How many times was iran barkley an opponent? | CREATE TABLE table_12206918_2 (number VARCHAR, opponent VARCHAR) |
SELECT 1977 FROM table_name_84 WHERE 1978 = "4.1" | what is 1977 when 1978 is 4.1? | CREATE TABLE table_name_84 (Id VARCHAR) |
SELECT poles FROM table_name_99 WHERE races < 16 | What is Poles, when Races is less than 16? | CREATE TABLE table_name_99 (poles VARCHAR, races INTEGER) |
SELECT date_and_opponent FROM table_name_4 WHERE position = "f" AND career_games = "123 games" | Name the Date and an Opponent which has a f Position and Career Games of 123 games? | CREATE TABLE table_name_4 (date_and_opponent VARCHAR, position VARCHAR, career_games VARCHAR) |
SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1" | What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1? | CREATE TABLE table_name_79 (abbreviation VARCHAR, inception VARCHAR, assets_us$billion VARCHAR) |
SELECT AVG(sinclair_coefficient) FROM table_name_61 WHERE sinclair_total = 477.2772023 AND weight_class__kg_ > 105 | What is the average sinclair coefficient with a Sinclair Total of 477.2772023, and a Weight Class (kg) larger than 105? | CREATE TABLE table_name_61 (sinclair_coefficient INTEGER, sinclair_total VARCHAR, weight_class__kg_ VARCHAR) |
SELECT height_ft___m FROM table_name_28 WHERE year > 1983 AND name = "phoenix tower" | What is the height that has a year after 1983 and is named Phoenix Tower? | CREATE TABLE table_name_28 (height_ft___m VARCHAR, year VARCHAR, name VARCHAR) |
SELECT venue FROM table_name_96 WHERE result = "23rd" | Which venue led to a result of 23rd? | CREATE TABLE table_name_96 (venue VARCHAR, result VARCHAR) |
SELECT MIN(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE species_in_peru = 1000 | what's the minimum species in the peruvian amazon with species in peru of 1000 | CREATE TABLE table_11727969_1 (species_in_the_peruvian_amazon INTEGER, species_in_peru VARCHAR) |
SELECT COUNT(location_attendance) FROM table_27902171_8 WHERE record = "36-29" | Name the number of location attendance for 36-29 record | CREATE TABLE table_27902171_8 (location_attendance VARCHAR, record VARCHAR) |
SELECT COUNT(upper_index_kcal__nm_3) FROM table_name_59 WHERE fuel_gas = "iso-butane" AND lower_index_mj__nm_3 < 84.71 | What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71? | CREATE TABLE table_name_59 (upper_index_kcal__nm_3 VARCHAR, fuel_gas VARCHAR, lower_index_mj__nm_3 VARCHAR) |
SELECT directed_by, COUNT(*) FROM film GROUP BY directed_by | List all directors along with the number of films directed by each director. | CREATE TABLE film (directed_by VARCHAR) |
SELECT MIN(position) FROM table_27781212_1 WHERE points = 31 | what is the minimum position with 31 points? | CREATE TABLE table_27781212_1 (position INTEGER, points VARCHAR) |
SELECT location_attendance FROM table_27704187_7 WHERE team = "Detroit" | Where was the game against Detroit played? | CREATE TABLE table_27704187_7 (location_attendance VARCHAR, team VARCHAR) |
SELECT runner_up FROM table_name_90 WHERE venue = "tartu, estonia" | For the event held in Tartu, Estonia, what is the name of the runner-up? | CREATE TABLE table_name_90 (runner_up VARCHAR, venue VARCHAR) |
SELECT song_name FROM song ORDER BY resolution | Give me a list of the names of all songs ordered by their resolution. | CREATE TABLE song (song_name VARCHAR, resolution VARCHAR) |
SELECT MIN(goals) FROM table_name_98 WHERE years = "2008-present" AND player = "tony beltran" AND rank > 7 | What is the smallest number of goals for the player from 2008-present named tony beltran, ranked lower than 7? | CREATE TABLE table_name_98 (goals INTEGER, rank VARCHAR, years VARCHAR, player VARCHAR) |
SELECT SUM(pos) FROM table_name_41 WHERE make = "chevrolet" AND driver = "jack sprague" AND car__number < 2 | Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2? | CREATE TABLE table_name_41 (pos INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR) |
SELECT margin_of_victory FROM table_name_29 WHERE country = "south africa" | What is south africa's margin of victory? | CREATE TABLE table_name_29 (margin_of_victory VARCHAR, country VARCHAR) |
SELECT to_par FROM table_name_79 WHERE player = "mike weir" | What is Mike Weir's To par? | CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR) |
SELECT date FROM table_name_49 WHERE visiting_team = "st. louis rams" AND result = "26-0" | When was the game that had the St. Louis Rams as visiting team and resulted in a score of 26-0? | CREATE TABLE table_name_49 (date VARCHAR, visiting_team VARCHAR, result VARCHAR) |
SELECT location_attendance FROM table_17355628_10 WHERE high_assists = "Chucky Atkins , Russell Westbrook (4)" | Name the location attendance for chucky atkins , russell westbrook (4) | CREATE TABLE table_17355628_10 (location_attendance VARCHAR, high_assists VARCHAR) |
SELECT player FROM table_name_44 WHERE to_par = "+2" AND country = "spain" | Who is the player from Spain that has a +2 to par? | CREATE TABLE table_name_44 (player VARCHAR, to_par VARCHAR, country VARCHAR) |
SELECT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" | List the hardware model name and company name for the phone whose screen mode type is "Graphics." | CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR) |
SELECT circuit FROM table_name_10 WHERE event = "international procar meeting" | Which Circuit has an Event of international procar meeting? | CREATE TABLE table_name_10 (circuit VARCHAR, event VARCHAR) |
SELECT SUM(population) FROM table_name_66 WHERE median_household_income = "$37,759" | How many people have a Median household income of $37,759? | CREATE TABLE table_name_66 (population INTEGER, median_household_income VARCHAR) |
SELECT away_team AS score FROM table_name_84 WHERE away_team = "st kilda" | How many points did the away team of st kilda score? | CREATE TABLE table_name_84 (away_team VARCHAR) |
SELECT team FROM table_name_56 WHERE series = "astc round 1" | WHAT IS THE TEAM WITH astc round 1? | CREATE TABLE table_name_56 (team VARCHAR, series VARCHAR) |
SELECT episode FROM table_19930660_3 WHERE rufus_guest = "Chris Addison" | Which episodes have Chris Addison as Rufus's guest? | CREATE TABLE table_19930660_3 (episode VARCHAR, rufus_guest VARCHAR) |
SELECT resident_state FROM table_name_83 WHERE election_year = 1864 | What is the resident state for the president elected in 1864? | CREATE TABLE table_name_83 (resident_state VARCHAR, election_year VARCHAR) |
SELECT T2.title, T2.film_id, T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY COUNT(*) DESC LIMIT 1 | Which film has the most number of actors or actresses? List the film name, film id and description. | CREATE TABLE film_actor (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR, description VARCHAR) |
SELECT stolen_ends_against FROM table_name_36 WHERE blank_ends_f_a = "4/7" AND country = "china" | What is the stolen ends against for a bank ends f/a of 4/7, and a country of china? | CREATE TABLE table_name_36 (stolen_ends_against VARCHAR, blank_ends_f_a VARCHAR, country VARCHAR) |
SELECT MAX(money___) AS $__ FROM table_name_22 WHERE player = "bernhard langer" | what is the highest money ($) for bernhard langer? | CREATE TABLE table_name_22 (money___ INTEGER, player VARCHAR) |
SELECT friday FROM table_18173916_8 WHERE tuesday = "414 Insanely Twisted Shadow Planet" | which episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday? | CREATE TABLE table_18173916_8 (friday VARCHAR, tuesday VARCHAR) |
SELECT segment_c FROM table_15187735_1 WHERE segment_d = "Fluorescent Tubes" | What was segment C when segment D was fluorescent tubes? | CREATE TABLE table_15187735_1 (segment_c VARCHAR, segment_d VARCHAR) |
SELECT original_airdate FROM table_24222929_3 WHERE episode_number_production_number = "4 1-04" | When did the fourth episode of the season (4 1-04) first air? | CREATE TABLE table_24222929_3 (original_airdate VARCHAR, episode_number_production_number VARCHAR) |
SELECT ground FROM table_name_93 WHERE home_team = "brisbane lions" | What is the name of the home stadium of Brisbane Lions? | CREATE TABLE table_name_93 (ground VARCHAR, home_team VARCHAR) |
SELECT MIN(february) FROM table_name_32 WHERE points < 57 | What's the lowest February for less than 57 points? | CREATE TABLE table_name_32 (february INTEGER, points INTEGER) |
SELECT first_elected FROM table_1341843_19 WHERE incumbent = "Edwin E. Willis" | What's the year of the first election of the district whose incumbent is Edwin E. Willis? | CREATE TABLE table_1341843_19 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT COUNT(rank) FROM table_name_88 WHERE goals = "562-506" AND seasons < 13 | What is the rank number with 562-506 goals before season 13? | CREATE TABLE table_name_88 (rank VARCHAR, goals VARCHAR, seasons VARCHAR) |
SELECT MIN(kerry_number) FROM table_name_38 WHERE others_number = 106 AND bush_number < 3 OFFSET 188 | What is the lowest Kerry#, when Others# is "106", and when Bush# is less than 3,188? | CREATE TABLE table_name_38 (kerry_number INTEGER, others_number VARCHAR, bush_number VARCHAR) |
SELECT won_promotion FROM table_2119448_3 WHERE lost_promotion_playoffs = "Kalmar FF" | Name the won promotion for kalmar ff | CREATE TABLE table_2119448_3 (won_promotion VARCHAR, lost_promotion_playoffs VARCHAR) |
SELECT jockey FROM table_name_59 WHERE post_time_odds = "34-1" | Who was the jockey that had post time odds of 34-1? | CREATE TABLE table_name_59 (jockey VARCHAR, post_time_odds VARCHAR) |
SELECT election_date FROM table_name_49 WHERE member = "william richmond category:articles with hcards" | What is the Election date for Member william richmond category:articles with hcards? | CREATE TABLE table_name_49 (election_date VARCHAR, member VARCHAR) |
SELECT degree FROM table_name_90 WHERE award_year = 1965 AND award = "chemistry" | Tell me the degree for chemistry 1965 | CREATE TABLE table_name_90 (degree VARCHAR, award_year VARCHAR, award VARCHAR) |
SELECT result FROM table_name_71 WHERE date = "october 15, 1995" | Name the Result on october 15, 1995? | CREATE TABLE table_name_71 (result VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_8 WHERE tournament = "phuket , thailand" | What is Opponent, when Tournament is "Phuket , Thailand"? | CREATE TABLE table_name_8 (opponent VARCHAR, tournament VARCHAR) |
SELECT AVG(game) FROM table_name_32 WHERE date = "december 17" | What is the average game that has December 17 as the date? | CREATE TABLE table_name_32 (game INTEGER, date VARCHAR) |
SELECT team FROM table_1769428_2 WHERE date = "June 27" | What was the represented team on June 27? | CREATE TABLE table_1769428_2 (team VARCHAR, date VARCHAR) |
SELECT height_in_ft FROM table_name_80 WHERE school_club_team_country = "valparaiso" | Name the height in feet for the player from valparaiso | CREATE TABLE table_name_80 (height_in_ft VARCHAR, school_club_team_country VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.