answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT series_ep FROM table_name_22 WHERE segment_c = "stetson hats (part 1)" | What series episode has stetson hats (part 1) under segment C? | CREATE TABLE table_name_22 (series_ep VARCHAR, segment_c VARCHAR) |
SELECT plural FROM table_name_85 WHERE meaning = "night" | What is the plural for the Meaning of night? | CREATE TABLE table_name_85 (plural VARCHAR, meaning VARCHAR) |
SELECT average FROM table_21991074_1 WHERE club = "Chesterfield Spires" | What is Chesterfield Spires average? | CREATE TABLE table_21991074_1 (average VARCHAR, club VARCHAR) |
SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f" | Who is the player that plays position f from Fort Wayne Pistons? | CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR) |
SELECT MAX(geo_id) FROM table_18600760_12 WHERE land___sqmi__ = "35.999" | What is the geo id of the land at 35.999? | CREATE TABLE table_18600760_12 (geo_id INTEGER, land___sqmi__ VARCHAR) |
SELECT record FROM table_name_89 WHERE boxscore = "w2" AND loss = "kline (2–3)" | Which record has a Boxscore of w2, and a Loss of kline (2–3)? | CREATE TABLE table_name_89 (record VARCHAR, boxscore VARCHAR, loss VARCHAR) |
SELECT COUNT(written_by) FROM table_27155243_4 WHERE episode__number = 3 | How many items appear in the written by column in episode 3? | CREATE TABLE table_27155243_4 (written_by VARCHAR, episode__number VARCHAR) |
SELECT 1987 AS _88 FROM table_name_24 WHERE points = 136 | What is 1987-88, when Points is "136"? | CREATE TABLE table_name_24 (points VARCHAR) |
SELECT country_region FROM table_13779832_1 WHERE presenters = "Heikki Paasonen Jukka Rossi (Xtra Factor)" | what's the country/region with presenters being heikki paasonen jukka rossi (xtra factor) | CREATE TABLE table_13779832_1 (country_region VARCHAR, presenters VARCHAR) |
SELECT team FROM table_name_88 WHERE wins > 10 AND champion = "mat mladin" | Which team had more than 10 wins with a champion of Mat Mladin? | CREATE TABLE table_name_88 (team VARCHAR, wins VARCHAR, champion VARCHAR) |
SELECT smoke_point FROM table_name_97 WHERE total_fat = "100g" AND monounsaturated_fat = "46g" | What is the smoke point with a total fat of 100g, and monounsaturated fat of 46g? | CREATE TABLE table_name_97 (smoke_point VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR) |
SELECT MIN(age) FROM table_26263322_1 WHERE result = "Fired in week 8" | What is the age when the result is fired in week 8 | CREATE TABLE table_26263322_1 (age INTEGER, result VARCHAR) |
SELECT attendance FROM table_name_11 WHERE home_team = "arsenal" | What was the attendance for Arsenal? | CREATE TABLE table_name_11 (attendance VARCHAR, home_team VARCHAR) |
SELECT billboard_peak FROM table_name_52 WHERE title = "god & guns" | Where did god & guns peak on the Billboard? | CREATE TABLE table_name_52 (billboard_peak VARCHAR, title VARCHAR) |
SELECT MAX(latitude) FROM table_name_4 WHERE ansi_code > 1759541 AND pop__2010_ = 72 | What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72? | CREATE TABLE table_name_4 (latitude INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR) |
SELECT ties FROM table_name_23 WHERE goals_against < 33 | What are the number of Ties for games with Goals Against smaller than 33? | CREATE TABLE table_name_23 (ties VARCHAR, goals_against INTEGER) |
SELECT other_awards FROM table_1825751_14 WHERE delegate = "Milagros Gutierrez" | How many awards did milagros gutierrez win? | CREATE TABLE table_1825751_14 (other_awards VARCHAR, delegate VARCHAR) |
SELECT T1.Museum_Details, T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID | What are the details and opening hours of the museums? | CREATE TABLE TOURIST_ATTRACTIONS (Opening_Hours VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE MUSEUMS (Museum_Details VARCHAR, Museum_ID VARCHAR) |
SELECT rank FROM table_name_83 WHERE total > 2 AND gold = 2 | What is the rank of the country with more than 2 medals, and 2 gold medals? | CREATE TABLE table_name_83 (rank VARCHAR, total VARCHAR, gold VARCHAR) |
SELECT position FROM table_name_98 WHERE series = "macau grand prix" AND season < 2007 | What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007? | CREATE TABLE table_name_98 (position VARCHAR, series VARCHAR, season VARCHAR) |
SELECT finish FROM table_name_3 WHERE country = "united states" AND to_par = "+21" | What is Finish, when Country is "United States", and when To Par is "+21"? | CREATE TABLE table_name_3 (finish VARCHAR, country VARCHAR, to_par VARCHAR) |
SELECT surface FROM table_name_95 WHERE date = "july 5, 2009" | What is the surface of the match on July 5, 2009? | CREATE TABLE table_name_95 (surface VARCHAR, date VARCHAR) |
SELECT production_company FROM table_name_61 WHERE producer_s_ = "sam mccarthy" | For which production company did Sam Mccarthy produce? | CREATE TABLE table_name_61 (production_company VARCHAR, producer_s_ VARCHAR) |
SELECT player FROM table_name_7 WHERE country = "zimbabwe" | Who plays for Zimbabwe? | CREATE TABLE table_name_7 (player VARCHAR, country VARCHAR) |
SELECT team FROM table_name_8 WHERE make = "buick regal" AND driver = "bobby hillin jr. (r)" | What team does bobby hillin jr. (r) drive a buick regal for? | CREATE TABLE table_name_8 (team VARCHAR, make VARCHAR, driver VARCHAR) |
SELECT date FROM table_name_16 WHERE winning_score = –16(67 - 70 - 69 - 66 = 272) | What day was the winning score –16 (67-70-69-66=272)? | CREATE TABLE table_name_16 (date VARCHAR, winning_score VARCHAR) |
SELECT vote_percentage FROM table_26375386_20 WHERE couple = "Gary and Maria" | What is the vote percentage for the couple gary and maria? | CREATE TABLE table_26375386_20 (vote_percentage VARCHAR, couple VARCHAR) |
SELECT score FROM table_name_76 WHERE player = "jeff maggert" | What is Score, when Player is "Jeff Maggert"? | CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR) |
SELECT latitude FROM table_name_83 WHERE year_built = 1901 | What is the Latitude of the monument built in 1901? | CREATE TABLE table_name_83 (latitude VARCHAR, year_built VARCHAR) |
SELECT score FROM table_20745759_1 WHERE date = "March 29, 1997" | Name the score for march 29, 1997 | CREATE TABLE table_20745759_1 (score VARCHAR, date VARCHAR) |
SELECT name FROM instructor WHERE salary > (SELECT MIN(salary) FROM instructor WHERE dept_name = 'Biology') | Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department. | CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR) |
SELECT MIN(crowd) FROM table_name_44 WHERE away_team = "richmond" | What is the smallest crowd when richmond is away? | CREATE TABLE table_name_44 (crowd INTEGER, away_team VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_92 WHERE nationality = "sweden" | Which College/Junior/Club Team (League) are from sweden? | CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR) |
SELECT mountain_pass FROM table_name_87 WHERE rank = 21 | What is the Mountain Pass with a 21 Rank? | CREATE TABLE table_name_87 (mountain_pass VARCHAR, rank VARCHAR) |
SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M' | Find the total number of students living in the male dorm (with gender M). | CREATE TABLE dorm (dormid VARCHAR, gender VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR) |
SELECT score FROM table_name_56 WHERE tournament = "rabat" AND opponent_in_the_final = "frederico gil" | What is the Score of the Rabat Tournament with Opponent in the final of Frederico Gil? | CREATE TABLE table_name_56 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) |
SELECT MIN(week) FROM table_name_66 WHERE attendance = 51 OFFSET 499 | What is the lowest week that has 51,499 as the attendance? | CREATE TABLE table_name_66 (week INTEGER, attendance VARCHAR) |
SELECT frequency FROM table_name_14 WHERE release_price___usd__ = "$383" AND sspec_number = "sr15f(c0)" | What is the frequency of the processor released at $383, with a sSpec of sr15f(c0)? | CREATE TABLE table_name_14 (frequency VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR) |
SELECT money_spent, _2q FROM table_name_84 WHERE candidate = "john mccain" | Name the money spent for 2Q having candidate of john mccain | CREATE TABLE table_name_84 (money_spent VARCHAR, _2q VARCHAR, candidate VARCHAR) |
SELECT gold FROM table_name_28 WHERE bronze > 1 AND total < 10 AND silver = 3 | What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3? | CREATE TABLE table_name_28 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR) |
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1 | Find the name of the ships that have more than one captain. | CREATE TABLE captain (ship_id VARCHAR); CREATE TABLE ship (name VARCHAR, ship_id VARCHAR) |
SELECT name FROM table_name_37 WHERE lane < 4 AND mark = "52.64" | what is the name when the lane is less than 4 and mark is 52.64? | CREATE TABLE table_name_37 (name VARCHAR, lane VARCHAR, mark VARCHAR) |
SELECT home_team AS score FROM table_name_28 WHERE venue = "junction oval" | What's the home team for the junction oval venue? | CREATE TABLE table_name_28 (home_team VARCHAR, venue VARCHAR) |
SELECT republican_seat_plurality FROM table_name_18 WHERE state_ranked_in_partisan_order = "north carolina" | What is the Republican seat plurality of North Carolina? | CREATE TABLE table_name_18 (republican_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR) |
SELECT date_of_vacancy FROM table_name_80 WHERE outgoing_manager = "tommy mclean" | What is the Date of vacancy for Tommy McLean? | CREATE TABLE table_name_80 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) |
SELECT MIN(join_date) FROM table_26466528_1 | Name the least join date | CREATE TABLE table_26466528_1 (join_date INTEGER) |
SELECT recipient FROM table_name_78 WHERE date = "12/11/03" | What movie won with a date of 12/11/03 | CREATE TABLE table_name_78 (recipient VARCHAR, date VARCHAR) |
SELECT city, _region FROM table_name_35 WHERE arena = "dalhús" | What is the city and region of the team in the dalhús arena? | CREATE TABLE table_name_35 (city VARCHAR, _region VARCHAR, arena VARCHAR) |
SELECT COUNT(location_attendance) FROM table_17621978_11 WHERE date = "April 24" | Name the number of location attendance for april 24 | CREATE TABLE table_17621978_11 (location_attendance VARCHAR, date VARCHAR) |
SELECT duration FROM table_name_20 WHERE test_flight = "taxi test #2" | What is Duration, when Test Flight is Taxi Test #2? | CREATE TABLE table_name_20 (duration VARCHAR, test_flight VARCHAR) |
SELECT no_yds FROM table_13237088_28 WHERE ast = 8 | List all number of yards with an AST of 8. | CREATE TABLE table_13237088_28 (no_yds VARCHAR, ast VARCHAR) |
SELECT MAX(week) FROM table_name_66 WHERE date = "october 21, 1956" | What's the highest week for the day of October 21, 1956? | CREATE TABLE table_name_66 (week INTEGER, date VARCHAR) |
SELECT 3 AS rd_place FROM table_name_41 WHERE venue = "pardubice" | Who was the 3rd place team at Pardubice? | CREATE TABLE table_name_41 (venue VARCHAR) |
SELECT score FROM table_11961582_4 WHERE date = "December 8" | What was the score of the game played on December 8? | CREATE TABLE table_11961582_4 (score VARCHAR, date VARCHAR) |
SELECT COUNT(monarch) FROM table_24046134_1 WHERE crowned = "23 May 1059" | Name the total number of monarchs for 23 may 1059 crowned | CREATE TABLE table_24046134_1 (monarch VARCHAR, crowned VARCHAR) |
SELECT MAX(sellouts) FROM table_name_89 WHERE year = 2008 AND total_for_year < 161 OFFSET 369 | What is the maximum sellouts for the 2008 year, with less than 161,369 total for year? | CREATE TABLE table_name_89 (sellouts INTEGER, year VARCHAR, total_for_year VARCHAR) |
SELECT vacator FROM table_225200_4 WHERE reason_for_change = "Resigned February 26, 1836 because of ill health" | Name the vacator for resigned february 26, 1836 because of ill health | CREATE TABLE table_225200_4 (vacator VARCHAR, reason_for_change VARCHAR) |
SELECT attendance FROM table_name_65 WHERE date = "november 6, 1960" | What was the Attendance on November 6, 1960? | CREATE TABLE table_name_65 (attendance VARCHAR, date VARCHAR) |
SELECT period FROM table_name_29 WHERE chart = "g-music j-pop/k-pop chart" | Name the period for Chart of g-music j-pop/k-pop chart | CREATE TABLE table_name_29 (period VARCHAR, chart VARCHAR) |
SELECT MIN(gold) FROM table_name_56 WHERE rank > 9 | What nation has the lowest gold average that has a rank over 9? | CREATE TABLE table_name_56 (gold INTEGER, rank INTEGER) |
SELECT COUNT(game) FROM table_name_7 WHERE attendance = 18 OFFSET 568 | What is the total number of Game, when Attendance is "18,568"? | CREATE TABLE table_name_7 (game VARCHAR, attendance VARCHAR) |
SELECT class FROM table_name_85 WHERE vessel_name = "hyundai smart" | What is the class of vessel of the ship Hyundai Smart? | CREATE TABLE table_name_85 (class VARCHAR, vessel_name VARCHAR) |
SELECT revenue__£million_ FROM table_18304259_1 WHERE earnings_per_share__p_ = "8.9" | Name the revenue for eps being 8.9 | CREATE TABLE table_18304259_1 (revenue__£million_ VARCHAR, earnings_per_share__p_ VARCHAR) |
SELECT crowd FROM table_name_31 WHERE away_team = "carlton" | How many people were in the crowd for a game than had carlton as the visiting team? | CREATE TABLE table_name_31 (crowd VARCHAR, away_team VARCHAR) |
SELECT at_columbia FROM table_name_2 WHERE last_5_meetings = "ku, 4-1" | What is the record at Columbia when KU, 4-1 is the record for the last 5 minutes? | CREATE TABLE table_name_2 (at_columbia VARCHAR, last_5_meetings VARCHAR) |
SELECT COUNT(gold) FROM table_name_49 WHERE nation = "egypt" AND silver < 0 | What is the total number of gold medals Egypt, who has less than 0 silver, has? | CREATE TABLE table_name_49 (gold VARCHAR, nation VARCHAR, silver VARCHAR) |
SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_Staff WHERE role_code = 'researcher') | List the project details of the projects which did not hire any staff for a researcher role. | CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR); CREATE TABLE Project_Staff (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR) |
SELECT MAX(attendance) FROM table_name_64 WHERE date = "25 january 2004" | Name the most attendance for 25 january 2004 | CREATE TABLE table_name_64 (attendance INTEGER, date VARCHAR) |
SELECT away_team FROM table_24887326_8 WHERE home_team = "Coventry City" | Who played as the away team when coventry city was the home team? | CREATE TABLE table_24887326_8 (away_team VARCHAR, home_team VARCHAR) |
SELECT nationality FROM table_name_96 WHERE time = "1:55.35" | What nationality has 1:55.35 as the time? | CREATE TABLE table_name_96 (nationality VARCHAR, time VARCHAR) |
SELECT written_by FROM table_28196105_1 WHERE _number = 18 | Who wrote episode number 18? | CREATE TABLE table_28196105_1 (written_by VARCHAR, _number VARCHAR) |
SELECT us_viewers__millions_ FROM table_21634403_2 WHERE directed_by = "Frank Waldeck" | How many U.S. viewers watched the episode directed by Frank Waldeck? | CREATE TABLE table_21634403_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) |
SELECT team FROM table_name_74 WHERE home_city = "velika" | What team has a home city of Velika? | CREATE TABLE table_name_74 (team VARCHAR, home_city VARCHAR) |
SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 5 | What is the lowest Goals Against by a team with more than 5 wins? | CREATE TABLE table_name_18 (goals_against INTEGER, wins INTEGER) |
SELECT MAX(game) FROM table_name_99 WHERE date = "january 5" | What is the highest game that has January 5 as the date? | CREATE TABLE table_name_99 (game INTEGER, date VARCHAR) |
SELECT date FROM table_name_28 WHERE circuit = "portland international raceway" | When was the circuit portland international raceway? | CREATE TABLE table_name_28 (date VARCHAR, circuit VARCHAR) |
SELECT lap_length FROM table_name_50 WHERE category = "grand prix fia" | What is the Lap Length of the race with a Grand Prix Fia Category? | CREATE TABLE table_name_50 (lap_length VARCHAR, category VARCHAR) |
SELECT SUM(amount_piad), AVG(amount_piad) FROM claim_headers | Find the total and average amount paid in claim headers. | CREATE TABLE claim_headers (amount_piad INTEGER) |
SELECT event FROM table_name_17 WHERE nationality = "guadeloupe" | What's the event of Guadeloupe? | CREATE TABLE table_name_17 (event VARCHAR, nationality VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_7 WHERE team_1 = "pelister" | What 2nd leg has pelister as team 1? | CREATE TABLE table_name_7 (team_1 VARCHAR) |
SELECT LOCATION FROM school ORDER BY Founded DESC | List the locations of schools in descending order of founded year. | CREATE TABLE school (LOCATION VARCHAR, Founded VARCHAR) |
SELECT MIN(floors) FROM table_name_41 WHERE street_address = "921 sw sixth avenue" | What's the least amount of floors at 921 sw sixth avenue? | CREATE TABLE table_name_41 (floors INTEGER, street_address VARCHAR) |
SELECT pick__number FROM table_14650162_1 WHERE college = "Florida State" | What is the pick number of the player whose college is Florida State? | CREATE TABLE table_14650162_1 (pick__number VARCHAR, college VARCHAR) |
SELECT COUNT(directed_by) FROM table_23918997_1 WHERE written_by = "Brent Fletcher & Miranda Kwok" | How many directors worked on the episode written by Brent Fletcher & Miranda Kwok? | CREATE TABLE table_23918997_1 (directed_by VARCHAR, written_by VARCHAR) |
SELECT co_drivers FROM table_name_59 WHERE team = "toyota racing" AND year > 2012 | Who was the co-driver for Toyota Racing after the year 2012? | CREATE TABLE table_name_59 (co_drivers VARCHAR, team VARCHAR, year VARCHAR) |
SELECT language_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Everlasting Moments" | What language was spoken in Everlasting Moments? | CREATE TABLE table_18994724_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT party FROM table_1342359_5 WHERE incumbent = "William E. Evans" | what's the party with incumbent being william e. evans | CREATE TABLE table_1342359_5 (party VARCHAR, incumbent VARCHAR) |
SELECT shoulder FROM table_name_36 WHERE length = "57.85 (2.278)" | What is the shoulder measurement of the gun with a length of 57.85 (2.278)? | CREATE TABLE table_name_36 (shoulder VARCHAR, length VARCHAR) |
SELECT entrant FROM table_name_80 WHERE engine = "talbot l6" AND driver = "eugène chaboud" | What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver? | CREATE TABLE table_name_80 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) |
SELECT opponent FROM table_name_67 WHERE week = 8 | Who was the opponent during week 8? | CREATE TABLE table_name_67 (opponent VARCHAR, week VARCHAR) |
SELECT opponent FROM table_name_5 WHERE attendance = "76,202" | What opponent has 76,202 attendance ? | CREATE TABLE table_name_5 (opponent VARCHAR, attendance VARCHAR) |
SELECT division_championships FROM table_1952065_4 WHERE teams_with_division_titles = "Pittsburgh Steelers" | How many division championships did the Pittsburgh Steelers have? | CREATE TABLE table_1952065_4 (division_championships VARCHAR, teams_with_division_titles VARCHAR) |
SELECT MAX(founded) FROM table_27816698_2 WHERE nickname = "Titans" | When was the Titans founded? | CREATE TABLE table_27816698_2 (founded INTEGER, nickname VARCHAR) |
SELECT SUM(crowd) FROM table_name_92 WHERE away_team = "hawthorn" | What was the attendance of the Hawthorn as the away team? | CREATE TABLE table_name_92 (crowd INTEGER, away_team VARCHAR) |
SELECT round FROM table_23449363_1 WHERE clubs_involved = 32 | Which rounds had 32 clubs involved? | CREATE TABLE table_23449363_1 (round VARCHAR, clubs_involved VARCHAR) |
SELECT MAX(points) FROM table_name_49 WHERE goals_against = 354 AND games < 82 | What is the most points when the goals against are 354 and games less than 82? | CREATE TABLE table_name_49 (points INTEGER, goals_against VARCHAR, games VARCHAR) |
SELECT team FROM table_name_18 WHERE result = "lost" AND interim_head_coach = "dewayne walker" | Which team lost under interim head coach, Dewayne Walker? | CREATE TABLE table_name_18 (team VARCHAR, result VARCHAR, interim_head_coach VARCHAR) |
SELECT title FROM table_name_40 WHERE transliteration = "u lyudey-to v domu" | What Title has a Transliteration of u lyudey-to v domu? | CREATE TABLE table_name_40 (title VARCHAR, transliteration VARCHAR) |
SELECT AVG(capacity) FROM table_name_85 WHERE city = "london" AND stadium = "queen's club" | Which Capacity has a City of london, and a Stadium of queen's club? | CREATE TABLE table_name_85 (capacity INTEGER, city VARCHAR, stadium VARCHAR) |
SELECT AVG(place) FROM table_name_81 WHERE team = "once municipal" AND lost > 3 | What's the place that Once Municipal has a lost greater than 3? | CREATE TABLE table_name_81 (place INTEGER, team VARCHAR, lost VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.