sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT price_range FROM HOTELS WHERE star_rating_code = "5"
CREATE TABLE INST, Here is a database schema( table schema);
Show the price ranges of hotels with 5 star ratings.It is not neccessary to use all the tables.
SELECT country FROM table_name_43 WHERE place = "t10" AND player = "rod pampling"
CREATE TABLE INST, Here is a database schema( table schema);
What country was the player rod pampling from who placed t10?It is not neccessary to use all the tables.
SELECT Actor FROM table WHERE Year < 1971
CREATE TABLE INST, Here is a database schema( table schema);
What actor was nominated for or won an award before 1971?.It is not neccessary to use all the tables.
SELECT Member countries FROM table WHERE Area (km²) = 49,036
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the country that has an Area (km²) of 49,036?.It is not neccessary to use all the tables.
SELECT high_hill_zone FROM table_name_87 WHERE mid_hill_zone = "slightly warm temperature"
CREATE TABLE INST, Here is a database schema( table schema);
Which mid-hill zone has a slightly warm temperature?It is not neccessary to use all the tables.
SELECT electorate FROM table_name_16 WHERE first_elected = "1974" AND party = "country"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Electorate when the year for First elected is 1974 and when the Party is Country?It is not neccessary to use all the tables.
SELECT 12:30 pm FROM table WHERE 8:00 am = the today show with katie couric & matt lauer
CREATE TABLE INST, Here is a database schema( table schema);
What 12:30 pm has an 8:00 am of the today show with katie couric & matt lauer?.It is not neccessary to use all the tables.
SELECT population FROM table_171250_2 WHERE area_km_2 = "715.58"
CREATE TABLE INST, Here is a database schema( table schema);
What is the population that has an area of 715.58?It is not neccessary to use all the tables.
SELECT MAX(pinoresinol) FROM table_1831262_2 WHERE foodstuff = "Wheat bran"
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum number of pinorinol in wheat bran?It is not neccessary to use all the tables.
SELECT AVG(draw) FROM table_name_47 WHERE match > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of draws for teams with more than 10 matches?It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_28 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest crowd at windy hill?It is not neccessary to use all the tables.
SELECT city_of_license FROM table_name_20 WHERE class = "a"
CREATE TABLE INST, Here is a database schema( table schema);
What city has the A Class licence?It is not neccessary to use all the tables.
SELECT MAX Team wins FROM table WHERE Nation = sweden AND Individual wins < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Team Win is from sweden and has a Individual win smaller than 1.It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_31 WHERE album = "da baddest bitch"
CREATE TABLE INST, Here is a database schema( table schema);
What was the average Year of release for the Album "Da Baddest Bitch"?It is not neccessary to use all the tables.
SELECT Opening date FROM table WHERE Classification = musical AND Theatre = adelphi theatre
CREATE TABLE INST, Here is a database schema( table schema);
What is the opening date of the musical at the adelphi theatre?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 11.11 (77)
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the game when the home team score is 11.11 (77)?.It is not neccessary to use all the tables.
SELECT COUNT(april) FROM table_name_98 WHERE record = "42–22–12–3" AND points < 99
CREATE TABLE INST, Here is a database schema( table schema);
How many days in April has a record of 42–22–12–3 and less than 99 points?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Date = november 17, 1961
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of all attendance on November 17, 1961?.It is not neccessary to use all the tables.
SELECT english FROM table_name_48 WHERE bulgarian = "бяха чули"
CREATE TABLE INST, Here is a database schema( table schema);
What's the English Pluperfect when the Bulgarian is бяха чули?It is not neccessary to use all the tables.
SELECT MIN(episode__number) FROM table_2501754_4
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest episode number?It is not neccessary to use all the tables.
SELECT school_club_team FROM table_name_83 WHERE pick = 46
CREATE TABLE INST, Here is a database schema( table schema);
Which school of club team has a pick of 46?It is not neccessary to use all the tables.
SELECT SUM Speed (km/h) FROM table WHERE Pilot = john egginton
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of speed in km per hour reached by John Egginton?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Game site = bye AND Week > 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for week more than 1 and game site of bye.It is not neccessary to use all the tables.
SELECT Last Year FROM table WHERE Capacity > 2,250 AND Club = bandırma banvit
CREATE TABLE INST, Here is a database schema( table schema);
What is the last year when capacity was larger than 2,250, for Bandırma Banvit?.It is not neccessary to use all the tables.
SELECT ground FROM table_name_59 WHERE away_team = "sydney"
CREATE TABLE INST, Here is a database schema( table schema);
What was the ground for away team sydney?It is not neccessary to use all the tables.
SELECT SUM(round) FROM table_name_13 WHERE position = "kicker"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds had a position of kicker?It is not neccessary to use all the tables.
SELECT Snatch FROM table WHERE Marcin Dołęga ( POL ) = 430kg
CREATE TABLE INST, Here is a database schema( table schema);
What is the snatch when Marcin Dołęga ( POL ) was 430kg?.It is not neccessary to use all the tables.
SELECT Team #2 FROM table WHERE Team #1 = Liverpool
CREATE TABLE INST, Here is a database schema( table schema);
Who played against team 1 Liverpool? .It is not neccessary to use all the tables.
SELECT AVG Total FROM table WHERE Player = ian baker-finch
CREATE TABLE INST, Here is a database schema( table schema);
count the the average Total of ian baker-finch?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Place = t5 AND Country = united states
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Place of t5, and a Country of united states?.It is not neccessary to use all the tables.
SELECT place FROM table_name_82 WHERE country = "new zealand"
CREATE TABLE INST, Here is a database schema( table schema);
What is the place of the player from New Zealand?It is not neccessary to use all the tables.
SELECT Starting from FROM table WHERE Name of the prabandham = Amalanadhi piran
CREATE TABLE INST, Here is a database schema( table schema);
Name the starting from amalanadhi piran.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Catalog = nebdj068
CREATE TABLE INST, Here is a database schema( table schema);
Catalog Nebdj068 was released when?.It is not neccessary to use all the tables.
SELECT location_s_ FROM table_2064747_1 WHERE accreditation = "COE"
CREATE TABLE INST, Here is a database schema( table schema);
What schools are accredited by COE?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Margin of victory = 4 strokes
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Margin Of Victory is 4 Strokes?.It is not neccessary to use all the tables.
SELECT MIN SP+FS FROM table WHERE Name = miljan begovic AND Placings > 189
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest value for SP+FS for Miljan Begovic with a greater than 189 place?.It is not neccessary to use all the tables.
SELECT position FROM table_11677100_3 WHERE player = "Kerry Wood"
CREATE TABLE INST, Here is a database schema( table schema);
What position does Kerry Wood play in?It is not neccessary to use all the tables.
SELECT date FROM table_name_94 WHERE surface = "clay"
CREATE TABLE INST, Here is a database schema( table schema);
On which date did the tournament final with the clay surface take place?It is not neccessary to use all the tables.
SELECT COUNT(platform) FROM table_1569516_1 WHERE operator = "Southern" AND service_pattern = "All stations via Clapham Junction"
CREATE TABLE INST, Here is a database schema( table schema);
How many platforms have a southern opertator and the pattern is all stations via clapham junction?It is not neccessary to use all the tables.
SELECT MIN(number_of_dances) FROM table_name_83 WHERE place < 2 AND average < 27.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of dances with a less than 2 place and an average smaller than 27.5?It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Class = 250cc AND Rank = 13th AND Year > 1955
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Points for 250cc class, ranked 13th, later than 1955?.It is not neccessary to use all the tables.
SELECT State FROM table WHERE Current Governor = susana martinez
CREATE TABLE INST, Here is a database schema( table schema);
What state is susana martinez from?.It is not neccessary to use all the tables.
SELECT series FROM table_name_95 WHERE opponent = "edmonton oilers" AND game = 3
CREATE TABLE INST, Here is a database schema( table schema);
Opponent of edmonton oilers and a Game of 3 is what series?It is not neccessary to use all the tables.
SELECT assists FROM table_name_36 WHERE total_points = "2"
CREATE TABLE INST, Here is a database schema( table schema);
How many assists were there when the total points was 2?It is not neccessary to use all the tables.
SELECT avg_finish FROM table_2182562_1 WHERE winnings = "$71,200"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average finish when winnings equals $71200?It is not neccessary to use all the tables.
SELECT COUNT(school) FROM table_17429402_7 WHERE last_occ_championship = "2006"
CREATE TABLE INST, Here is a database schema( table schema);
How many schools won their last occ championship in 2006?It is not neccessary to use all the tables.
SELECT DISTINCT flight_id FROM flight WHERE (((((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 26 AND DATE_DAYalias0.month_number = 7 AND DATE_DAYalias0.year = 1991)) AND meal_code IN (SELECT FOOD_SERVICEalias0.meal_code FROM food_service AS FOOD_SERVICEalias0)) AND to_airport IN (SELECT AIRPORT_SERVICEalias1.airport_code FROM airport_service AS AIRPORT_SERVICEalias1 WHERE AIRPORT_SERVICEalias1.city_code IN (SELECT CITYalias1.city_code FROM city AS CITYalias1 WHERE CITYalias1.city_name = 'SEATTLE'))) AND from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'CHICAGO'))) AND departure_time BETWEEN 0 AND 800) AND airline_code = 'CO')
CREATE TABLE INST, Here is a database schema( table schema);
give me a combination of CO flights from CHICAGO to SEATTLE that have meals early saturday morningIt is not neccessary to use all the tables.
SELECT Mountain Peak FROM table WHERE Region = baja california AND Location = 28.1301°n 115.2206°w
CREATE TABLE INST, Here is a database schema( table schema);
Which Mountain Peak has a Region of baja california, and a Location of 28.1301°n 115.2206°w?.It is not neccessary to use all the tables.
SELECT MIN(extra_points) FROM table_name_26 WHERE player = "rheinschild" AND touchdowns > 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Extra points is the lowest one that has a Player of rheinschild, and Touchdowns larger than 1?It is not neccessary to use all the tables.
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "July 31, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
On July 31 2008 what are the Democrat: Vivian Davis Figures percentages?It is not neccessary to use all the tables.
SELECT season FROM table_22383603_1 WHERE no = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the year range of season 4?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = december 25
CREATE TABLE INST, Here is a database schema( table schema);
On December 25, what was the record?.It is not neccessary to use all the tables.
SELECT Try bonus FROM table WHERE Played = played
CREATE TABLE INST, Here is a database schema( table schema);
What is the try bonus of the club with played?.It is not neccessary to use all the tables.
SELECT release_date FROM table_10979230_5 WHERE reference = "KIDS-270"
CREATE TABLE INST, Here is a database schema( table schema);
What release date is when kids-270 is a reference?It is not neccessary to use all the tables.
SELECT best 10-year period FROM table WHERE best 15-year period = Capablanca
CREATE TABLE INST, Here is a database schema( table schema);
Which people had the best 10-year period when Capablanca had the best 15-year period?.It is not neccessary to use all the tables.
SELECT COUNT Elementary schools FROM table WHERE District-wide = 31851
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of elementary schools for 31851.It is not neccessary to use all the tables.
SELECT Runner(s)-up FROM table WHERE Year = 2008
CREATE TABLE INST, Here is a database schema( table schema);
Who was the runner-up when the year was 2008?.It is not neccessary to use all the tables.
SELECT commissioned FROM table_name_88 WHERE builder = "scotts, greenock"
CREATE TABLE INST, Here is a database schema( table schema);
when was it commissioned when the destroyer was built by scotts greenock?It is not neccessary to use all the tables.
SELECT Runner-up FROM table WHERE Champion = björn borg AND Year > 1978
CREATE TABLE INST, Here is a database schema( table schema);
Who was the runner-up, when the champion was Björn Borg after 1978?.It is not neccessary to use all the tables.
SELECT MAX(applications) FROM table_20007413_3 WHERE year = "1986"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most applications for 1986It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "16" AND diagnoses.icd9_code = "5781"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose days of hospital stay is greater than 16 and diagnoses icd9 code is 5781?It is not neccessary to use all the tables.
SELECT year_built__converted * _ FROM table_name_14 WHERE no_built__converted * _ = "10"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the year built for number built of 10It is not neccessary to use all the tables.
SELECT MIN(total_goals) FROM table_27170987_5 WHERE league_goals = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of total goals for a player with 6 league goals?It is not neccessary to use all the tables.
SELECT written_by FROM table_22269839_1 WHERE production_code = "7ACX08"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the title with the production code is 7acx08?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Competition = european championships AND Position = 5th
CREATE TABLE INST, Here is a database schema( table schema);
Which Event has 5th Position in the European Championships Competition?.It is not neccessary to use all the tables.
SELECT score FROM table_11964047_9 WHERE record = "35–33"
CREATE TABLE INST, Here is a database schema( table schema);
what's the score where record is 35–33It is not neccessary to use all the tables.
SELECT formula FROM table_name_72 WHERE prefix = "alkyl-"
CREATE TABLE INST, Here is a database schema( table schema);
Which Formula has a Prefix of alkyl-?It is not neccessary to use all the tables.
SELECT driver FROM table_name_61 WHERE constructor = "maserati" AND laps > 23 AND grid > 7
CREATE TABLE INST, Here is a database schema( table schema);
Which driver for Maserati has more laps than 23 and a grid greater than 7?It is not neccessary to use all the tables.
SELECT games FROM table_name_64 WHERE name = "manuel felix diaz"
CREATE TABLE INST, Here is a database schema( table schema);
Which Games had a Name of manuel felix diaz?It is not neccessary to use all the tables.
SELECT COUNT Losses FROM table WHERE Against = 2195 AND Draws > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many total losses does the team have with an against of 2195 and the draws were greater than 0?.It is not neccessary to use all the tables.
SELECT COUNT(wins) FROM table_name_81 WHERE top_25 < 4 AND top_10 < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Wins when Top-25 is less than 4 and when Top-10 is less than 1?It is not neccessary to use all the tables.
SELECT co_champions FROM table_name_49 WHERE solo = 3 AND mrc_championships > 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the co-champions value when solo was 3 and MRC Championships is greater than 3?It is not neccessary to use all the tables.
SELECT result FROM table_1342370_23 WHERE incumbent = "William Madison Whittington"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the election featuring william madison whittington?It is not neccessary to use all the tables.
SELECT Download FROM table WHERE Week = 44
CREATE TABLE INST, Here is a database schema( table schema);
What's the Download information for the song from Week 44?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Score = 3 - 2
CREATE TABLE INST, Here is a database schema( table schema);
Score of 3 - 2 had what record?.It is not neccessary to use all the tables.
SELECT MIN(events) FROM table_name_14 WHERE cuts_made = 17 AND top_25 < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest events that have 17 as the cuts made with a top-25 less than 8?It is not neccessary to use all the tables.
SELECT MIN Draft FROM table WHERE Nationality = usa AND Player = justin martin
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest draft of player justin martin from the USA?.It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Round = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the method when the round shows 3?.It is not neccessary to use all the tables.
SELECT COUNT Population (2010) FROM table WHERE Municipality = Cavinti
CREATE TABLE INST, Here is a database schema( table schema);
How many different counts of the population in Cavinti in 2010 are there?.It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Venue = princes park
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest crowd at princes park?.It is not neccessary to use all the tables.
SELECT identifier FROM table_name_17 WHERE power = "22500 watts"
CREATE TABLE INST, Here is a database schema( table schema);
what is the identifier when the power is 22500 watts?It is not neccessary to use all the tables.
SELECT Date From FROM table WHERE Position = mf AND Name = toumani diagouraga
CREATE TABLE INST, Here is a database schema( table schema);
What date did Toumani Diagouraga, who played position MF, start?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Year = 1981 AND Overall Pick = 148
CREATE TABLE INST, Here is a database schema( table schema);
In 1981 which team picked overall 148?.It is not neccessary to use all the tables.
SELECT COUNT(18 AS _49) FROM table_name_1 WHERE air_date = "july 2, 2009" AND viewers > 3.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the total 18-49 for the episode that aired on July 2 2009 with more than 3.5 viewers?It is not neccessary to use all the tables.
SELECT MIN Pop. Density FROM table WHERE Village = Mongmong-Toto-Maite
CREATE TABLE INST, Here is a database schema( table schema);
What is the population density of mongmong-toto-maite?.It is not neccessary to use all the tables.
SELECT SUM Matches FROM table WHERE Overs < 59.1 AND Economy Rate > 6.78
CREATE TABLE INST, Here is a database schema( table schema);
How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate?.It is not neccessary to use all the tables.
SELECT date FROM table_name_1 WHERE score = "6–4"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the score 6–4?It is not neccessary to use all the tables.
SELECT Old Bulgarian name - Meaning FROM table WHERE Bulgarian name ( Transliteration ) = avgust
CREATE TABLE INST, Here is a database schema( table schema);
What's the old Bulgarian word for avgust?.It is not neccessary to use all the tables.
SELECT location FROM table_name_31 WHERE partner = "app" AND population_served > 2000 AND design_flow__lpm_ = 375
CREATE TABLE INST, Here is a database schema( table schema);
What Location has a Partner of app a Population Served larger than 2000 and a Design flow (LPM) of 375?It is not neccessary to use all the tables.
SELECT COUNT(title) FROM table_234886_2 WHERE original_air_date = "November 17, 1998"
CREATE TABLE INST, Here is a database schema( table schema);
How many titles have an original air date of November 17 1998?It is not neccessary to use all the tables.
SELECT Set 2 FROM table WHERE Set 3 = 25–20 AND Time = 13:45
CREATE TABLE INST, Here is a database schema( table schema);
Which Set 2 has a Set 3 of 25–20, and a Time of 13:45?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL
CREATE TABLE INST, Here is a database schema( table schema);
how many patients were admitted?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Bronze = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the silver medal count of the team that finished with 8 bronze medals?.It is not neccessary to use all the tables.
SELECT player FROM table_name_27 WHERE score = 70
CREATE TABLE INST, Here is a database schema( table schema);
With a score of 70 this player's name is listed as what?It is not neccessary to use all the tables.
SELECT position FROM table_16575609_5 WHERE pick__number = 34
CREATE TABLE INST, Here is a database schema( table schema);
What position is the player drafted with pick 34?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_16 WHERE us_cham_rank < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Year is the lowest one that has a US Cham Rank smaller than 1?It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Player = bernhard langer
CREATE TABLE INST, Here is a database schema( table schema);
What is the total for Bernhard Langer?.It is not neccessary to use all the tables.
SELECT location FROM table_name_4 WHERE frequency = "102.5 fm"
CREATE TABLE INST, Here is a database schema( table schema);
Which Location has a Frequency of 102.5 fm?It is not neccessary to use all the tables.
SELECT COUNT Series # FROM table WHERE Directed by = Sean McNamara AND Title = "Blue in the Face"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes titled "Blue in the face" were directed by Sean McNamara?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_51076 WHERE "Venue" = 'away' AND "Opponent" = 'swindon wildcats'
CREATE TABLE INST, Here is a database schema( table schema);
When did they play the swindon wildcats away?It is not neccessary to use all the tables.