answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(silver) FROM table_name_23 WHERE total < 15 AND rank < 5 AND bronze = 4 AND gold < 3 | How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3? | CREATE TABLE table_name_23 (silver VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR, rank VARCHAR) |
SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery" | What is the address of the location "UK Gallery"? | CREATE TABLE LOCATIONS (Address VARCHAR, Location_Name VARCHAR) |
SELECT COUNT(no_in_season) FROM table_25604014_5 WHERE directed_by = "David Carson" | How many episodes directed by david carson? | CREATE TABLE table_25604014_5 (no_in_season VARCHAR, directed_by VARCHAR) |
SELECT crowd FROM table_name_25 WHERE venue = "kardinia park" | What was the attendance at the Kardinia Park game? | CREATE TABLE table_name_25 (crowd VARCHAR, venue VARCHAR) |
SELECT mens_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi" | who won mens doubles when zhou mi won womens singles | CREATE TABLE table_20361783_1 (mens_doubles VARCHAR, womens_singles VARCHAR) |
SELECT player FROM table_11734041_1 WHERE school_club_team_country = "Australia" | What was the player name who came from Australia? | CREATE TABLE table_11734041_1 (player VARCHAR, school_club_team_country VARCHAR) |
SELECT fencing_victories__pts_ FROM table_name_78 WHERE equestrian_time__pts_ = "67.88 (1144)" | Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)? | CREATE TABLE table_name_78 (fencing_victories__pts_ VARCHAR, equestrian_time__pts_ VARCHAR) |
SELECT mens_singles FROM table_14903491_1 WHERE mixed_doubles = "Jeliazko Valkov Dobrinka Peneva" | Name the mens singles for jeliazko valkov dobrinka peneva | CREATE TABLE table_14903491_1 (mens_singles VARCHAR, mixed_doubles VARCHAR) |
SELECT original_artist FROM table_15796072_1 WHERE order__number = "9" | Who was the original artist when the order number is 9? | CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR) |
SELECT region FROM table_name_37 WHERE date = "april 30, 2004" AND catalog = "nebdj058" | What region is dated April 30, 2004, and cataloged Nebdj058? | CREATE TABLE table_name_37 (region VARCHAR, date VARCHAR, catalog VARCHAR) |
SELECT winner FROM table_11621915_1 WHERE tournament = "Kroger Senior Classic" | what's the winner with tournament value of kroger senior classic | CREATE TABLE table_11621915_1 (winner VARCHAR, tournament VARCHAR) |
SELECT enrollment FROM table_name_39 WHERE ihsaa_class = "a" AND mascot = "vikings" | What is the enrollment at the school with IHSAA class A and where mascot is the Vikings? | CREATE TABLE table_name_39 (enrollment VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) |
SELECT opponent FROM table_name_96 WHERE week > 8 AND attendance = "72,190" | Who was the opponent after week 8 that had 72,190 people in attendance? | CREATE TABLE table_name_96 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) |
SELECT results FROM table_13643154_2 WHERE gto_winning_team = "Steve Millen" | Name the results for steve millen | CREATE TABLE table_13643154_2 (results VARCHAR, gto_winning_team VARCHAR) |
SELECT iata FROM table_name_14 WHERE airport = "beijing capital international airport" | What is the IATA for Beijing Capital International Airport? | CREATE TABLE table_name_14 (iata VARCHAR, airport VARCHAR) |
SELECT last_performance FROM table_19189856_1 WHERE performer = "Leon Varkas category:Articles with hCards" | what is the last performance of leon varkas category:articles with hcards | CREATE TABLE table_19189856_1 (last_performance VARCHAR, performer VARCHAR) |
SELECT grid FROM table_name_21 WHERE laps = 2 | what is the grid when the laps is 2? | CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR) |
SELECT skipper FROM table_name_90 WHERE points = "78" | Which skipper has 78 points? | CREATE TABLE table_name_90 (skipper VARCHAR, points VARCHAR) |
SELECT date FROM table_17001658_7 WHERE team = "Milwaukee" | What date was the opposing team Milwaukee? | CREATE TABLE table_17001658_7 (date VARCHAR, team VARCHAR) |
SELECT 2009 FROM table_name_35 WHERE 2007 = "2r" AND tournament = "wimbledon" | Name the 2009 for 2007 of 2r and tournament of wimbledon | CREATE TABLE table_name_35 (tournament VARCHAR) |
SELECT COUNT(lost) FROM table_name_3 WHERE tied < 5 AND goals_for > 330 | What is the total number of losses for teams with less than 5 ties and more than 330 goals for? | CREATE TABLE table_name_3 (lost VARCHAR, tied VARCHAR, goals_for VARCHAR) |
SELECT inception FROM table_name_47 WHERE assets_us$billion = "25.5" AND abbreviation = "psf" | What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf? | CREATE TABLE table_name_47 (inception VARCHAR, assets_us$billion VARCHAR, abbreviation VARCHAR) |
SELECT away_team AS score FROM table_name_28 WHERE home_team = "north melbourne" | What is the away team's score when north melbourne is the home team? | CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR) |
SELECT date FROM table_20745746_1 WHERE _number = "7" | What is the date of game 7? | CREATE TABLE table_20745746_1 (date VARCHAR, _number VARCHAR) |
SELECT SUM(rank) FROM table_name_32 WHERE bronze < 1 AND nation = "switzerland (sui)" AND total < 2 | What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2? | CREATE TABLE table_name_32 (rank INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) |
SELECT series AS premiere FROM table_15823956_1 WHERE series = "Pilot" | When was series premiere on the pilot episode | CREATE TABLE table_15823956_1 (series VARCHAR) |
SELECT total_score FROM table_name_14 WHERE year = 2012 | What is the total score for the year 2012? | CREATE TABLE table_name_14 (total_score VARCHAR, year VARCHAR) |
SELECT MIN(attendance) FROM table_name_39 WHERE season = "2010-11" AND score = "2–0" | What is the attendance in the game in the 2010-11 season, when the score was 2–0? | CREATE TABLE table_name_39 (attendance INTEGER, season VARCHAR, score VARCHAR) |
SELECT successor FROM table_225205_4 WHERE reason_for_change = "Died November 11, 1845" | Who is the successor when the reason for change is died November 11, 1845? | CREATE TABLE table_225205_4 (successor VARCHAR, reason_for_change VARCHAR) |
SELECT date FROM table_name_47 WHERE team = "@ new orleans" | What date has @ new orleans as the team? | CREATE TABLE table_name_47 (date VARCHAR, team VARCHAR) |
SELECT COUNT(played) FROM table_name_25 WHERE drawn = 3 AND position > 4 | How many played have 3 as the drawn, and a position greater than 4? | CREATE TABLE table_name_25 (played VARCHAR, drawn VARCHAR, position VARCHAR) |
SELECT MIN(crowd) FROM table_name_47 WHERE home_team = "richmond" | What was the smallest crowd size for a home game for Richmond? | CREATE TABLE table_name_47 (crowd INTEGER, home_team VARCHAR) |
SELECT location FROM table_23486853_8 WHERE date = "March 20" | What is every location for the date of March 20? | CREATE TABLE table_23486853_8 (location VARCHAR, date VARCHAR) |
SELECT away_team AS score FROM table_name_59 WHERE away_team = "carlton" | What is Away team Carlton's score? | CREATE TABLE table_name_59 (away_team VARCHAR) |
SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id | Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program. | CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) |
SELECT production_code FROM table_24938621_3 WHERE us_viewers__million_ = "5.43" | What is the production code of the episode that had 5.43 million viewers? | CREATE TABLE table_24938621_3 (production_code VARCHAR, us_viewers__million_ VARCHAR) |
SELECT percent_yes FROM table_120778_2 WHERE voted_yes = 2410119 | what's the percent yes where voted yes is 2410119 | CREATE TABLE table_120778_2 (percent_yes VARCHAR, voted_yes VARCHAR) |
SELECT attendance FROM table_name_66 WHERE venue = "ryavallen" | Which Attendance that has a Venue of ryavallen? | CREATE TABLE table_name_66 (attendance VARCHAR, venue VARCHAR) |
SELECT round FROM table_name_7 WHERE venue = "a" AND attendance > 14 OFFSET 314 | What round was at the A venue with a attendance more than 14,314? | CREATE TABLE table_name_7 (round VARCHAR, venue VARCHAR, attendance VARCHAR) |
SELECT round FROM table_name_55 WHERE method = "submission (single wing choke)" | What Round has the Method of Submission (Single Wing Choke)? | CREATE TABLE table_name_55 (round VARCHAR, method VARCHAR) |
SELECT losingteam FROM table_name_82 WHERE cup_finaldate = "20 august 1989" | What team lost on 20 August 1989? | CREATE TABLE table_name_82 (losingteam VARCHAR, cup_finaldate VARCHAR) |
SELECT type_of_record FROM table_21436373_6 WHERE result_games = "9 games (57,144 avg.)" | Which type of record has result/games of 9 games (57,144 avg.) | CREATE TABLE table_21436373_6 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT position FROM table_name_98 WHERE event = "discus" AND year = 2013 | What is the position for Discus in 2013? | CREATE TABLE table_name_98 (position VARCHAR, event VARCHAR, year VARCHAR) |
SELECT date FROM table_name_19 WHERE competition = "1986 fifa world cup" | What is the date of the 1986 FIFA World Cup? | CREATE TABLE table_name_19 (date VARCHAR, competition VARCHAR) |
SELECT side FROM table_name_89 WHERE inscription = "orcagna" | Which side has Orcagna as the inscription? | CREATE TABLE table_name_89 (side VARCHAR, inscription VARCHAR) |
SELECT poll_year FROM table_name_34 WHERE third = "the ting tings" | WHAT IS THE POLL YEAR WITH A THIRD OF THE TING TINGS? | CREATE TABLE table_name_34 (poll_year VARCHAR, third VARCHAR) |
SELECT author FROM table_name_1 WHERE last_issue = "ongoing" | What is the Author of the Title with an Ongoing Last Issue? | CREATE TABLE table_name_1 (author VARCHAR, last_issue VARCHAR) |
SELECT SUM(season) FROM table_name_21 WHERE venue = "donington park" AND second = "brazil" | What is the sum of season when the venue was donington park, and Brazil came in second? | CREATE TABLE table_name_21 (season INTEGER, venue VARCHAR, second VARCHAR) |
SELECT COUNT(episode_no) FROM table_25046766_1 WHERE written_by = "Don Inglis and Ralph Smart" | When don inglis and ralph smart are the writers how many episode numbers are there? | CREATE TABLE table_25046766_1 (episode_no VARCHAR, written_by VARCHAR) |
SELECT mascot FROM table_name_91 WHERE county = "78 switzerland" | who is the mascot of the county 78 switzerland? | CREATE TABLE table_name_91 (mascot VARCHAR, county VARCHAR) |
SELECT MAX(pop_¹) FROM table_name_11 WHERE prefecture = "tottori" | Name the highest pop for tottori | CREATE TABLE table_name_11 (pop_¹ INTEGER, prefecture VARCHAR) |
SELECT college FROM table_name_43 WHERE team = "new york jets" | The New York Jets picked someone from what college? | CREATE TABLE table_name_43 (college VARCHAR, team VARCHAR) |
SELECT games FROM table_name_61 WHERE assists = "127" | How many games were played by the player with 127 assists? | CREATE TABLE table_name_61 (games VARCHAR, assists VARCHAR) |
SELECT MAX(wins) FROM table_1697190_2 | how many times did Casey Martin win? | CREATE TABLE table_1697190_2 (wins INTEGER) |
SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award" | What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award? | CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR) |
SELECT COUNT(rain) FROM table_12837_1 WHERE sunlight_hours = 1966 | How many rain figures are provided for sunlight hours in 1966? | CREATE TABLE table_12837_1 (rain VARCHAR, sunlight_hours VARCHAR) |
SELECT former_team FROM table_name_72 WHERE pick > 20 | Which Former Team has a Pick larger than 20? | CREATE TABLE table_name_72 (former_team VARCHAR, pick INTEGER) |
SELECT away_team FROM table_name_60 WHERE score = "103-94" | What away team had a 103-94 score? | CREATE TABLE table_name_60 (away_team VARCHAR, score VARCHAR) |
SELECT COUNT(ends_lost) FROM table_name_72 WHERE shot_pct = 88 AND ends_won = 31 | How many ends lost when shot % is 88 and ends won are 31? | CREATE TABLE table_name_72 (ends_lost VARCHAR, shot_pct VARCHAR, ends_won VARCHAR) |
SELECT SUM(lost) FROM table_name_18 WHERE points > 16 AND drawn < 1 | What's the lost when there were more than 16 points and had a drawn less than 1? | CREATE TABLE table_name_18 (lost INTEGER, points VARCHAR, drawn VARCHAR) |
SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" | What are the names of the tourist attractions that can be accessed by bus? | CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, How_to_Get_There VARCHAR) |
SELECT team FROM table_name_18 WHERE home_run = 27 | Which team has a Home Run of 27? | CREATE TABLE table_name_18 (team VARCHAR, home_run VARCHAR) |
SELECT i_o_bus FROM table_name_46 WHERE socket = "socket g1bga-1288" | What is I/O bus when socket is socket g1bga-1288? | CREATE TABLE table_name_46 (i_o_bus VARCHAR, socket VARCHAR) |
SELECT result FROM table_name_46 WHERE opponent = "pat lawlor" | What was the result of the match against Pat Lawlor? | CREATE TABLE table_name_46 (result VARCHAR, opponent VARCHAR) |
SELECT type FROM table_name_79 WHERE transfer_window = "summer" AND name = "bulykin" | What is the type of bulykin, which has a summer transfer window? | CREATE TABLE table_name_79 (type VARCHAR, transfer_window VARCHAR, name VARCHAR) |
SELECT score FROM table_name_71 WHERE date = "april 6" | What is the Score on April 6? | CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR) |
SELECT COUNT(attendance) FROM table_name_87 WHERE opponent = "minnesota vikings" | What is the Attendance of the game against Minnesota Vikings? | CREATE TABLE table_name_87 (attendance VARCHAR, opponent VARCHAR) |
SELECT name FROM table_name_55 WHERE acquisition_via = "import" AND number > 22 | What is the name of the player acquired via import and larger than 22? | CREATE TABLE table_name_55 (name VARCHAR, acquisition_via VARCHAR, number VARCHAR) |
SELECT score FROM table_name_92 WHERE date = "8 sep 1990" | What is the score of the game on 8 Sep 1990? | CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) |
SELECT away_team FROM table_name_28 WHERE home_team = "sydney spirit" | who is the away team when the home team is sydney spirit? | CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR) |
SELECT date FROM table_name_28 WHERE high_rebounds = "amar'e stoudemire (13)" | What is Date, when High Rebounds is "Amar'e Stoudemire (13)"? | CREATE TABLE table_name_28 (date VARCHAR, high_rebounds VARCHAR) |
SELECT pole_position FROM table_29162856_1 WHERE fastest_lap = "Matt Davies" | Who had the pole position when matt davies had the fastest lap? | CREATE TABLE table_29162856_1 (pole_position VARCHAR, fastest_lap VARCHAR) |
SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc" | How many tries were there for club cwmtwrch rfc? | CREATE TABLE table_name_52 (tries_against VARCHAR, club VARCHAR) |
SELECT AVG(pubs_2011) FROM table_name_52 WHERE location = "mumbai" AND totals_07_11 < 1025 | What is the average PUBS 11 value in Mumbai, which has a 07-11 totals less than 1025? | CREATE TABLE table_name_52 (pubs_2011 INTEGER, location VARCHAR, totals_07_11 VARCHAR) |
SELECT home_team FROM table_name_50 WHERE date = "may 20" | what team played on may 20 on the home side | CREATE TABLE table_name_50 (home_team VARCHAR, date VARCHAR) |
SELECT points FROM table_name_68 WHERE division = "ebl div1" AND played = "22" | What's the points when the division is ebl div1 with 22 played? | CREATE TABLE table_name_68 (points VARCHAR, division VARCHAR, played VARCHAR) |
SELECT home FROM table_name_34 WHERE record = "4-16-7" | What home team had a record of 4-16-7? | CREATE TABLE table_name_34 (home VARCHAR, record VARCHAR) |
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200 | Find all airlines that have fewer than 200 flights. | CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR) |
SELECT elevation_m FROM table_27435931_1 WHERE year = "September 2009" | what was the elevation in september 2009? | CREATE TABLE table_27435931_1 (elevation_m VARCHAR, year VARCHAR) |
SELECT surface FROM table_27877656_7 WHERE score = "6–4, 6–1" AND edition = "2011 Europe/Africa Group IIIB" | For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface | CREATE TABLE table_27877656_7 (surface VARCHAR, score VARCHAR, edition VARCHAR) |
SELECT opponent FROM table_name_98 WHERE year = 1976 | Who is the opponent in 1976? | CREATE TABLE table_name_98 (opponent VARCHAR, year VARCHAR) |
SELECT COUNT(group_stage) FROM table_19412902_1 WHERE play_off = 0 AND clubs = 12 | which group stage was there 0 play-offs and 12 clubs played in it | CREATE TABLE table_19412902_1 (group_stage VARCHAR, play_off VARCHAR, clubs VARCHAR) |
SELECT score FROM table_name_38 WHERE visitor = "philadelphia" | What was the score when philadelphia visited? | CREATE TABLE table_name_38 (score VARCHAR, visitor VARCHAR) |
SELECT gross FROM table_name_33 WHERE territory = "united kingdom" | What is the gross in the United Kingdom? | CREATE TABLE table_name_33 (gross VARCHAR, territory VARCHAR) |
SELECT shuji_kondo FROM table_name_2 WHERE pepe_michinoku = "sabin (14:43)" | What is the Shuji Kondo value related to a PEPE Michinoku value of sabin (14:43)? | CREATE TABLE table_name_2 (shuji_kondo VARCHAR, pepe_michinoku VARCHAR) |
SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = "Oliver Tompsett" | How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast? | CREATE TABLE table_19529639_3 (second_national_tour_year_2 VARCHAR, original_west_end_cast VARCHAR) |
SELECT location FROM table_name_11 WHERE date = "december 10, 1963" | What is the Location with a Date that is december 10, 1963? | CREATE TABLE table_name_11 (location VARCHAR, date VARCHAR) |
SELECT place FROM table_name_78 WHERE score = 71 - 69 = 140 | What was the place for the player whose final score was 71-69=140? | CREATE TABLE table_name_78 (place VARCHAR, score VARCHAR) |
SELECT AVG(attendance) FROM table_name_57 WHERE week = 4 | What is the attendance in week 4? | CREATE TABLE table_name_57 (attendance INTEGER, week VARCHAR) |
SELECT incumbent FROM table_28898948_3 WHERE reason = "Death" AND by_election = 1881 | When 1881 is the by-election and death is the reason who is the incumbent? | CREATE TABLE table_28898948_3 (incumbent VARCHAR, reason VARCHAR, by_election VARCHAR) |
SELECT nominee FROM table_15162479_8 WHERE net_vote = "34.46%" | What nominees had a net vote of 34.46%? | CREATE TABLE table_15162479_8 (nominee VARCHAR, net_vote VARCHAR) |
SELECT SUM(total) FROM table_name_14 WHERE silver > 1 AND rank = 9 AND bronze > 0 | What is the sum of Total, when Silver is greater than 1, when Rank is 9, and when Bronze is greater than 0? | CREATE TABLE table_name_14 (total INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) |
SELECT player FROM table_name_1 WHERE school_club_team_country = "illinois" | Which player plays for Illinois? | CREATE TABLE table_name_1 (player VARCHAR, school_club_team_country VARCHAR) |
SELECT title FROM table_name_90 WHERE no_in_series = 168 | What is the title of Melsrose Place episode number 168? | CREATE TABLE table_name_90 (title VARCHAR, no_in_series VARCHAR) |
SELECT date FROM table_12262182_2 WHERE titles = "WBC Flyweight (112)" | What is the date of the match for the wbc flyweight (112) title? | CREATE TABLE table_12262182_2 (date VARCHAR, titles VARCHAR) |
SELECT away_team FROM table_name_53 WHERE home_team = "leatherhead" | What was the away team that played against home team Leatherhead? | CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR) |
SELECT directed_by FROM table_11820086_1 WHERE us_viewers__millions_ = "2.57" | Who directed the episode that was viewed by 2.57 million people in the U.S.? | CREATE TABLE table_11820086_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT record FROM table_name_35 WHERE time = "1:44" | What was the record of the match that had a time of 1:44? | CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR) |
SELECT vacator FROM table_2159571_2 WHERE reason_for_change = "Resigned December 31, 1959" | Who is every vacator with reason for change as resigned December 31, 1959? | CREATE TABLE table_2159571_2 (vacator VARCHAR, reason_for_change VARCHAR) |
SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = "pinehouse" | Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse? | CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.