sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT t1.model FROM car_names AS t1 JOIN cars_data AS t2 ON t1.makeid = t2.id ORDER BY t2.mpg DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the car model with the highest mpg ?It is not neccessary to use all the tables.
SELECT driver FROM table_name_85 WHERE time = "+13.315"
CREATE TABLE INST, Here is a database schema( table schema);
What is name of the drive with a Time of +13.315?It is not neccessary to use all the tables.
SELECT video FROM table_name_75 WHERE channel = 14.2
CREATE TABLE INST, Here is a database schema( table schema);
What is the video ratio on channel 14.2?It is not neccessary to use all the tables.
SELECT MIN(wales) FROM table_10128185_2 WHERE northern_england = 6
CREATE TABLE INST, Here is a database schema( table schema);
How many votes did Wales cast when Northern England cast 6?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Unit = two medicine formation
CREATE TABLE INST, Here is a database schema( table schema);
Where is two medicine formation?.It is not neccessary to use all the tables.
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the sum of totaltk when yards is less than 0?It is not neccessary to use all the tables.
SELECT COUNT Fumble force FROM table WHERE Solo < 2 AND Player = jim laney
CREATE TABLE INST, Here is a database schema( table schema);
How many forced fumbles for jim laney with under 2 solo tackles?.It is not neccessary to use all the tables.
SELECT AVG(no_opinion) FROM table_name_94 WHERE date = "1954 november" AND favorable > 35
CREATE TABLE INST, Here is a database schema( table schema);
What is the average no opinion score during 1954 November that is more favorable than 35?It is not neccessary to use all the tables.
SELECT "airline" FROM table_204_215 ORDER BY "destination(s)" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which airline has the most listed destinations ?It is not neccessary to use all the tables.
SELECT champion FROM table_25563779_4 WHERE national_trophy_rookie = "not held"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the champion if the national trophy/rookie is not held?It is not neccessary to use all the tables.
SELECT Mother Tongue FROM table WHERE Population (2006) = 300
CREATE TABLE INST, Here is a database schema( table schema);
What is the mother tongue language shared by 300 people in 2006?.It is not neccessary to use all the tables.
SELECT AVG Week FROM table WHERE Opponent = philadelphia eagles AND Attendance < 31,066
CREATE TABLE INST, Here is a database schema( table schema);
What was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance?.It is not neccessary to use all the tables.
SELECT 10:30 FROM table WHERE 7:30 = earth: final conflict
CREATE TABLE INST, Here is a database schema( table schema);
Which 10:30 has an 7:30 of earth: final conflict?.It is not neccessary to use all the tables.
SELECT interview_subject FROM table_1566850_8 WHERE date = "1-97"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the interview subject on the date 1-97?It is not neccessary to use all the tables.
SELECT hdtv FROM table_name_54 WHERE content = "timeshift +1 di disney junior"
CREATE TABLE INST, Here is a database schema( table schema);
What is the HDTV when the content shows a timeshift +1 di disney junior?It is not neccessary to use all the tables.
SELECT COUNT(round_of_16) FROM table_26335424_86 WHERE round_of_32 = "Lakpa Tashi Sherpa ( BHU ) W PTS 12-5"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?It is not neccessary to use all the tables.
SELECT 3rd component FROM table WHERE b.p. azeo. (˚C) = 62.1
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the 3rd component for bp azeo of 62.1.It is not neccessary to use all the tables.
SELECT written_by FROM table_21025437_5 WHERE viewers__millions_ = "8.84"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode that had 8.84 million viewers?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_48 WHERE date = "august 12"
CREATE TABLE INST, Here is a database schema( table schema);
Who did they play on August 12?It is not neccessary to use all the tables.
SELECT location FROM table_name_10 WHERE silver = "japan"
CREATE TABLE INST, Here is a database schema( table schema);
Which Location has a Silver of japan?It is not neccessary to use all the tables.
SELECT MIN Silver FROM table WHERE Gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest amount of silver when the gold is less than 0?.It is not neccessary to use all the tables.
SELECT player FROM table_name_86 WHERE country = "west germany"
CREATE TABLE INST, Here is a database schema( table schema);
What Player has a Country of west germany?It is not neccessary to use all the tables.
SELECT paraguay_scorers FROM table_name_1 WHERE date = "june 15, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the Paraguay scorers on June 15 2008?It is not neccessary to use all the tables.
SELECT "Engine \u2020" FROM table_56818 WHERE "Chassis" = 'mp4-13' AND "Driver" = 'david coulthard'
CREATE TABLE INST, Here is a database schema( table schema);
What engine did David Coulthard have in his mp4-13 chassis?It is not neccessary to use all the tables.
SELECT COUNT Election FROM table WHERE # of candidates nominated = 262
CREATE TABLE INST, Here is a database schema( table schema);
What is the election year when the # of candidates nominated was 262?.It is not neccessary to use all the tables.
SELECT street_address FROM table_name_94 WHERE name = "life & casualty tower"
CREATE TABLE INST, Here is a database schema( table schema);
What is the address of the Life & Casualty Tower?It is not neccessary to use all the tables.
SELECT AVG Longitude FROM table WHERE Water (sqmi) = 0.093 AND GEO ID > 3808174460
CREATE TABLE INST, Here is a database schema( table schema);
What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460?.It is not neccessary to use all the tables.
SELECT COUNT(silver) FROM table_name_90 WHERE rank = 3 AND bronze > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many silver medals had a rank of 3 with bronze larger than 0?It is not neccessary to use all the tables.
SELECT COUNT No. in series FROM table WHERE Directed by = Mark K. Samuels
CREATE TABLE INST, Here is a database schema( table schema);
how many episodes has been directed by Mark K. Samuels ?.It is not neccessary to use all the tables.
SELECT COUNT Ave. Attendance FROM table WHERE +/- ave. on prev. season = +645
CREATE TABLE INST, Here is a database schema( table schema);
How many values of attendance occur when ave. on previous season is +645?.It is not neccessary to use all the tables.
SELECT 2013 FROM table_name_87 WHERE 2001 = "wta premier 5 tournaments"
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the 2013 when 2001 was wta premier 5 tournamentsIt is not neccessary to use all the tables.
SELECT pos FROM table_name_23 WHERE year < 1973
CREATE TABLE INST, Here is a database schema( table schema);
What was the position of the teams before 1973?It is not neccessary to use all the tables.
SELECT SUM Played FROM table WHERE Position = 7 AND Drawn < 7
CREATE TABLE INST, Here is a database schema( table schema);
How much Played has a Position of 7, and a Drawn smaller than 7?.It is not neccessary to use all the tables.
SELECT SUM(enrollment) FROM table_name_38 WHERE location = "platteville, wi"
CREATE TABLE INST, Here is a database schema( table schema);
How many people are enrolled in platteville wi?It is not neccessary to use all the tables.
SELECT Release date FROM table WHERE Artist 1 = Wolfgang Gartner
CREATE TABLE INST, Here is a database schema( table schema);
If artist 1 is Wolfgang Gartner, what is the release date?.It is not neccessary to use all the tables.
SELECT Years for Grizzlies FROM table WHERE School/Club Team = providence
CREATE TABLE INST, Here is a database schema( table schema);
What year were the Grizzlies in Providence?.It is not neccessary to use all the tables.
SELECT Class FROM table WHERE City of license = lake oconee, ga
CREATE TABLE INST, Here is a database schema( table schema);
What is the Class where City of license is lake oconee, ga?.It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE Nation = sweden (swe) AND Silver < 1
CREATE TABLE INST, Here is a database schema( table schema);
What's the total of Sweden (SWE) having less than 1 silver?.It is not neccessary to use all the tables.
SELECT Passenger FROM table WHERE Position = 21 AND Points < 49
CREATE TABLE INST, Here is a database schema( table schema);
Which passenger has a position of 21 and less than 49 points?.It is not neccessary to use all the tables.
SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "rhyl and district rfc"
CREATE TABLE INST, Here is a database schema( table schema);
What is Points For when Losing Bonus is "2" when Lost is "8" and when Club is "Rhyl And District RFC"?It is not neccessary to use all the tables.
SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Old Kingdom , Minoan eruption"
CREATE TABLE INST, Here is a database schema( table schema);
When hittite old kingdom minoan eruption is the ubaid period in mesopotamia what is the copper age?It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE React = 0.185
CREATE TABLE INST, Here is a database schema( table schema);
Who was the athlete with react of 0.185?.It is not neccessary to use all the tables.
SELECT COUNT ERP W FROM table WHERE Frequency MHz > 97.7
CREATE TABLE INST, Here is a database schema( table schema);
What's the sum of ERP W with a Frequency MHz that larger than 97.7?.It is not neccessary to use all the tables.
SELECT active FROM table_15905399_1 WHERE iin_ranges = "4"
CREATE TABLE INST, Here is a database schema( table schema);
Is the iin range 4 active?It is not neccessary to use all the tables.
SELECT MIN(clubs_remaining) FROM table_name_65 WHERE round = "second round"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of clubs remaining in the second round?It is not neccessary to use all the tables.
SELECT UserId, COUNT(PostId) AS num_of_comments FROM Comments LEFT JOIN Users ON Comments.Id = Users.Id GROUP BY UserId
CREATE TABLE INST, Here is a database schema( table schema);
number of comments per Customer.It is not neccessary to use all the tables.
SELECT MAX November FROM table WHERE Opponent = @ pittsburgh pirates AND Game > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest November date with an Opponent of @ Pittsburgh Pirates and the game is more than 3?.It is not neccessary to use all the tables.
SELECT date_of_death FROM table_16527640_3 WHERE player = "Archie Roberts"
CREATE TABLE INST, Here is a database schema( table schema);
What day did ARchie Roberts die?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 17–18–6
CREATE TABLE INST, Here is a database schema( table schema);
What score had a record of 17–18–6?.It is not neccessary to use all the tables.
SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE mens_singles = "Ma Long"
CREATE TABLE INST, Here is a database schema( table schema);
How many times has Ma Long won the men's singles?It is not neccessary to use all the tables.
SELECT "Catalog" FROM table_69907 WHERE "Date" = 'december 19, 2001'
CREATE TABLE INST, Here is a database schema( table schema);
Which catalog was published on December 19, 2001?It is not neccessary to use all the tables.
SELECT Semifinalists FROM table WHERE Tournament = montreal
CREATE TABLE INST, Here is a database schema( table schema);
who were the semifinalists for the tournament in montreal?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week > 3 AND Date = 1971-11-07
CREATE TABLE INST, Here is a database schema( table schema);
What is the Result of Week larger than 3 on 1971-11-07?.It is not neccessary to use all the tables.
SELECT decision FROM table_name_53 WHERE record = "29–18–6"
CREATE TABLE INST, Here is a database schema( table schema);
Which Decision has a Record of 29–18–6?It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_95 WHERE total = 11 AND silver > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the team with 11 total medals and more than 4 silver medals has?It is not neccessary to use all the tables.
SELECT COUNT March FROM table WHERE Record = 25-10-9 AND Game > 44
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of March that has 25-10-9 record and a Game more than 44?.It is not neccessary to use all the tables.
SELECT Species FROM table WHERE Gender = male
CREATE TABLE INST, Here is a database schema( table schema);
Which species is male?.It is not neccessary to use all the tables.
SELECT location FROM table_name_55 WHERE event = "deep - 30 impact"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the Deep - 30 Impact event held?It is not neccessary to use all the tables.
SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for when the home/away is away and the opponent is bayhawksIt is not neccessary to use all the tables.
SELECT date FROM table_name_88 WHERE week < 3 AND attendance > 65 OFFSET 904
CREATE TABLE INST, Here is a database schema( table schema);
Of the games before week 3 which had attendance great than 65904?It is not neccessary to use all the tables.
SELECT "City of license" FROM table_39210 WHERE "ERP W" < '500' AND "Class" = 'a' AND "Frequency MHz" > '89.7'
CREATE TABLE INST, Here is a database schema( table schema);
What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?It is not neccessary to use all the tables.
SELECT score FROM table_name_71 WHERE record = "2-32"
CREATE TABLE INST, Here is a database schema( table schema);
When they were 2-32 what did they score?It is not neccessary to use all the tables.
SELECT Republican ticket FROM table WHERE Socialist ticket = frank r. crosswaith
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?.It is not neccessary to use all the tables.
SELECT celebrity FROM table_name_35 WHERE exited = "day 13"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the celebrity who exited on day 13?It is not neccessary to use all the tables.
SELECT Week # FROM table WHERE Theme = The Beatles
CREATE TABLE INST, Here is a database schema( table schema);
Name the week number for the beatles.It is not neccessary to use all the tables.
SELECT Salary range FROM table WHERE Working force of HK = 10.4%
CREATE TABLE INST, Here is a database schema( table schema);
If the working force of HK is 10.4%, what is the salary range?.It is not neccessary to use all the tables.
SELECT Champion FROM table WHERE Second = ramona rahnis AND Third = diana sartor
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner the year Ramona Rahnis finished 2nd and Diana Sartor 3rd?.It is not neccessary to use all the tables.
SELECT Prefecture FROM table WHERE City/Town = Susaki
CREATE TABLE INST, Here is a database schema( table schema);
In what prefecture is Susaki located?.It is not neccessary to use all the tables.
SELECT COUNT(ebit__us_) AS $m_ FROM table_name_35 WHERE revenue__us_$million_ > 434.8 AND net_profit__us_$m_ > 96.4
CREATE TABLE INST, Here is a database schema( table schema);
COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?It is not neccessary to use all the tables.
SELECT rank FROM table_name_66 WHERE total > 3 AND silver > 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the country with total more than 3 and more than 6 silver?It is not neccessary to use all the tables.
SELECT original_airdate FROM table_2501754_2 WHERE viewing_figures_millions = "8.63"
CREATE TABLE INST, Here is a database schema( table schema);
What are the original air date(s) for episodes with 8.63 million viewers?It is not neccessary to use all the tables.
SELECT AVG Starts FROM table WHERE Money list rank = 108 AND Top 25 > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of starts when the money list rank is 108 and the rank in the top 25 is greater than 4?.It is not neccessary to use all the tables.
SELECT MIN Total FROM table
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimum total.It is not neccessary to use all the tables.
SELECT "Winner" FROM table_10647 WHERE "Tournament" = 'london'
CREATE TABLE INST, Here is a database schema( table schema);
Name the winner for london tournamentIt is not neccessary to use all the tables.
SELECT "notable as" FROM table_204_698 WHERE "name" = 'patricia velasquez' INTERSECT SELECT "notable as" FROM table_204_698 WHERE "name" = 'ron vawter'
CREATE TABLE INST, Here is a database schema( table schema);
patricia velasquez and ron vawter both had what career ?It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Team = collé racing AND Points > 206
CREATE TABLE INST, Here is a database schema( table schema);
Who is the driver for team Collé Racing with more than 206 points?.It is not neccessary to use all the tables.
SELECT SUM(capacity) FROM table_name_38 WHERE location = "mogilev"
CREATE TABLE INST, Here is a database schema( table schema);
Which Capacity has a Location of mogilev?It is not neccessary to use all the tables.
SELECT date FROM table_name_96 WHERE score = "2–0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the Competition with a Score of 2–0?It is not neccessary to use all the tables.
SELECT "name" FROM table_40354 WHERE "Calculated" = '56'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the element with a calculated value of 56?It is not neccessary to use all the tables.
SELECT tdp FROM table_24099628_1 WHERE model__list_ = "4x0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the wattage/TDP associated with model name 4x0?It is not neccessary to use all the tables.
SELECT school FROM table_name_72 WHERE player = "delray brooks"
CREATE TABLE INST, Here is a database schema( table schema);
What school did delray brooks go to?It is not neccessary to use all the tables.
SELECT school FROM table_name_82 WHERE height = "6-9"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the school with a height of 6-9It is not neccessary to use all the tables.
SELECT Position in table FROM table WHERE Date of vacancy = 4 November 2008
CREATE TABLE INST, Here is a database schema( table schema);
Which vacancy happened on 4 November 2008?.It is not neccessary to use all the tables.
SELECT Responsible: FROM table WHERE Built: = 2006 AND Vessel: = mf ørland
CREATE TABLE INST, Here is a database schema( table schema);
Which one was built in 2006 on the vessel named mf ørland?.It is not neccessary to use all the tables.
SELECT MP's term FROM table WHERE Member = alfred east category:articles with hcards
CREATE TABLE INST, Here is a database schema( table schema);
What is Member alfred east category:articles with hcards's term?.It is not neccessary to use all the tables.
SELECT MIN(goals) FROM table_name_4 WHERE player = "noel carroll"
CREATE TABLE INST, Here is a database schema( table schema);
Which Goals have a Player of noel carroll?It is not neccessary to use all the tables.
SELECT "Label" FROM table_50738 WHERE "Region" = 'australia'
CREATE TABLE INST, Here is a database schema( table schema);
Which label is in Australia?It is not neccessary to use all the tables.
SELECT COUNT Division FROM table WHERE Team = chongqing lifan AND Apps > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?.It is not neccessary to use all the tables.
SELECT SUM Pocona Municipality (%) FROM table WHERE Puerto Villarroel Municipality (%) > 14.6 AND Pojo Municipality (%) < 88.5
CREATE TABLE INST, Here is a database schema( table schema);
Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5?.It is not neccessary to use all the tables.
SELECT height FROM table_name_34 WHERE storeys < 45 AND building = "scotia centre"
CREATE TABLE INST, Here is a database schema( table schema);
What is the height for less than 45 storeys in Scotia Centre?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Surface = clay AND Tournament = nice
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent in the math that was played in Nice on a clay court?.It is not neccessary to use all the tables.
SELECT japanese_title FROM table_10979230_5 WHERE reference = "KIDS-430"
CREATE TABLE INST, Here is a database schema( table schema);
what are the title in japanese where the reference is kids-430?It is not neccessary to use all the tables.
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006"
CREATE TABLE INST, Here is a database schema( table schema);
what is the county where the market income per capita is $25006?It is not neccessary to use all the tables.
SELECT score FROM table_name_41 WHERE time = "2:28"
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Time of 2:28?It is not neccessary to use all the tables.
SELECT date FROM table_name_68 WHERE tournament = "prijedor"
CREATE TABLE INST, Here is a database schema( table schema);
When was the Prijedor tournament?It is not neccessary to use all the tables.
SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages
CREATE TABLE INST, Here is a database schema( table schema);
What are the maximum duration and resolution of songs grouped and ordered by languages?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_77 WHERE venue = "junction oval"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the away team at Junction Oval?It is not neccessary to use all the tables.
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'dilation of intestine'))
CREATE TABLE INST, Here is a database schema( table schema);
tell me the cost of the dilation of intestine?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick = 23
CREATE TABLE INST, Here is a database schema( table schema);
WHAT POSITION HAS A 23 PICK?.It is not neccessary to use all the tables.
SELECT location FROM table_18461635_1 WHERE county = "Sussex"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the team in Sussex county located?It is not neccessary to use all the tables.