sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID
CREATE TABLE INST, Here is a database schema( table schema);
List the date theme and sales of the journal which did not have any of the listed editors serving on committee.It is not neccessary to use all the tables.
SELECT Mintage FROM table WHERE Theme = cowboy
CREATE TABLE INST, Here is a database schema( table schema);
How many cowboy coins were minted?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.admityear < "2165"
CREATE TABLE INST, Here is a database schema( table schema);
find out the number of patients with admission location as transfer from hosp/extram who were admitted before the year 2165.It is not neccessary to use all the tables.
SELECT score FROM table_name_9 WHERE away_team = "hull city"
CREATE TABLE INST, Here is a database schema( table schema);
What score has hull city as the away team?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Total > 285 AND Finish = t30
CREATE TABLE INST, Here is a database schema( table schema);
Total larger than 285, and a Finish of t30 belongs to what player?.It is not neccessary to use all the tables.
SELECT MAX Silver FROM table WHERE Gold = 1 AND Nation = djibouti AND Total < 3
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3?.It is not neccessary to use all the tables.
SELECT date FROM table_name_69 WHERE surface = "carpet" AND partner = "marty riessen"
CREATE TABLE INST, Here is a database schema( table schema);
When did Marty Riessen team up with a partner during a match on a carpet surface?It is not neccessary to use all the tables.
SELECT AVG Number FROM table WHERE Artist = black milk
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number for Black Milk?.It is not neccessary to use all the tables.
SELECT Const. Amd.? FROM table WHERE % YES = 57.91%
CREATE TABLE INST, Here is a database schema( table schema);
Was the constitution amended with a 57.91% vote of yes?.It is not neccessary to use all the tables.
SELECT SUM Mintage FROM table WHERE Artist = pierre leduc
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of all mintage created by Pierre Leduc?.It is not neccessary to use all the tables.
SELECT TMS AS number FROM table_1166023_1 WHERE builder = "NZR Addington" AND year_built = 1913
CREATE TABLE INST, Here is a database schema( table schema);
What tms were built nzr addington in the year 1913It is not neccessary to use all the tables.
SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate"
CREATE TABLE INST, Here is a database schema( table schema);
What was the event with leonardo chocolate in 2009?It is not neccessary to use all the tables.
SELECT artist FROM table_name_28 WHERE draw > 6 AND place > 14
CREATE TABLE INST, Here is a database schema( table schema);
What artist has more than 6 draws and in a place higher than 14?It is not neccessary to use all the tables.
SELECT MAX First elected FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest first elected?.It is not neccessary to use all the tables.
SELECT team FROM table_22669044_8 WHERE score = "W 115–104 (OT)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team for w 115–104 (ot)It is not neccessary to use all the tables.
SELECT attendance FROM table_name_12 WHERE date = "october 22, 2000"
CREATE TABLE INST, Here is a database schema( table schema);
what is the attendance when the date is october 22 2000?It is not neccessary to use all the tables.
SELECT pluperfect FROM table WHERE perfect = si bio/la; bio/la si
CREATE TABLE INST, Here is a database schema( table schema);
What is the pluperfect for the perfect si bio/la; bio/la si?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2182" AND procedures.short_title = "Coronar arteriogr-1 cath"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose year of birth is less than 2182 and procedure short title is coronar arteriogr-1 cath?It is not neccessary to use all the tables.
SELECT COUNT(tries_against) FROM table_name_48 WHERE team = "dinamo bucureşti" AND tries_for < 19
CREATE TABLE INST, Here is a database schema( table schema);
How many Tries against have a Team of dinamo bucureşti and Tries for smaller than 19?It is not neccessary to use all the tables.
SELECT Real AS name FROM table_name_95 WHERE defining_characteristics = "shortest band member"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the person with the defining characteristic of the shortest band member?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Outgoing manager = Alireza Mansourian
CREATE TABLE INST, Here is a database schema( table schema);
What team did Alireza mansourian leave?.It is not neccessary to use all the tables.
SELECT catalog__number FROM table_name_8 WHERE label = "atlantic records" AND region = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalog number of the album whose label is Atlantic Records and region is the United States?It is not neccessary to use all the tables.
SELECT COUNT Category FROM table WHERE Start = brioude AND Stage < 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the category for the year when Brioude started and the stage is less than 7?.It is not neccessary to use all the tables.
SELECT director FROM table_14330096_3 WHERE total_number = 14
CREATE TABLE INST, Here is a database schema( table schema);
Who is the director of the episode that corresponds to the total episodes number 14?It is not neccessary to use all the tables.
SELECT DISTINCT country FROM artist
CREATE TABLE INST, Here is a database schema( table schema);
What are all distinct country for artists?It is not neccessary to use all the tables.
SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport"
CREATE TABLE INST, Here is a database schema( table schema);
Which country contains the Shanghai Pudong International airport?It is not neccessary to use all the tables.
SELECT "Leading scorer" FROM table_56787 WHERE "Visitor" = 'trail blazers'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the leading scorer that was a visitor of the Trail Blazers?It is not neccessary to use all the tables.
SELECT income_poverty_f FROM table_13618358_1 WHERE services_ & _cons_truction_b = "72.5"
CREATE TABLE INST, Here is a database schema( table schema);
How low was the income where services is 72.5?It is not neccessary to use all the tables.
SELECT SUM(altitude__mslm_) FROM table_name_85 WHERE density__inhabitants_km_2__ < 1233 AND rank = "9th"
CREATE TABLE INST, Here is a database schema( table schema);
Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233 and a Rank of 9th?It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE Tournament = indian wells
CREATE TABLE INST, Here is a database schema( table schema);
Which 2011's tournament was Indian Wells?.It is not neccessary to use all the tables.
SELECT "Region" FROM table_57964 WHERE "Date" = 'june 8, 2004'
CREATE TABLE INST, Here is a database schema( table schema);
What region is the catalogue released on June 8, 2004 from?It is not neccessary to use all the tables.
SELECT Date To FROM table WHERE Name = james chester
CREATE TABLE INST, Here is a database schema( table schema);
When was james chester loaned out until ?.It is not neccessary to use all the tables.
SELECT Area FROM table WHERE Decile = 9 AND Roll = 31
CREATE TABLE INST, Here is a database schema( table schema);
Which area has a Decile of 9, and a Roll of 31?.It is not neccessary to use all the tables.
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID
CREATE TABLE INST, Here is a database schema( table schema);
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, and I want to list by the bar from low to high.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Score = 18.1
CREATE TABLE INST, Here is a database schema( table schema);
What club had a score of 18.1?.It is not neccessary to use all the tables.
SELECT Games FROM table WHERE Medal = bronze AND Event = men's 1500 m freestyle
CREATE TABLE INST, Here is a database schema( table schema);
At which games did Tunisia win a bronze in the men's 1500 m freestyle?.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Transmission = 4-speed automatic AND Acceleration 0–100km/h (0–62mph) = 10.4 s
CREATE TABLE INST, Here is a database schema( table schema);
What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?.It is not neccessary to use all the tables.
SELECT region__year_ FROM table_name_98 WHERE no_2 = "jacob" AND no_10 = "ryan"
CREATE TABLE INST, Here is a database schema( table schema);
In what region and year was Jacob the number 2 name and Ryan the number 10 name?It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Year = 1949
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of laps that were completed in 1949?.It is not neccessary to use all the tables.
SELECT icb_sector FROM table_168274_1 WHERE ticker_symbol = "AI"
CREATE TABLE INST, Here is a database schema( table schema);
Name the icb sector for aiIt is not neccessary to use all the tables.
SELECT country FROM table_name_38 WHERE place = "t1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a Place of t1?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Run 1 = 1:17.44
CREATE TABLE INST, Here is a database schema( table schema);
Which team has run 1 of 1:17.44?.It is not neccessary to use all the tables.
SELECT Other FROM table WHERE Firefox = 21.22%
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox?.It is not neccessary to use all the tables.
SELECT golden_point_s__scorer FROM table_name_53 WHERE away = "sydney roosters" AND home = "cronulla sharks"
CREATE TABLE INST, Here is a database schema( table schema);
What Golden point(s) scorer has the Away Sydney Roosters and Home Cronulla Sharks?It is not neccessary to use all the tables.
SELECT Original Broadway Performer FROM table WHERE Original West End Performer = Sharon D. Clarke
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Broadway equivalent of Sharon D. Clarke's character?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_52 WHERE away_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What was North Melbourne's score when they were the home team?It is not neccessary to use all the tables.
SELECT goals¹ FROM table_24565004_20 WHERE name = "Daniel Sanchez"
CREATE TABLE INST, Here is a database schema( table schema);
Name the goals for daniel sanchezIt is not neccessary to use all the tables.
SELECT attendance FROM table_name_49 WHERE loss = "ayala (6-12)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance at the game that had a loss of Ayala (6-12)?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE To par = –4
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player with a To par of –4?.It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE U.S. viewers (million) = 1.19
CREATE TABLE INST, Here is a database schema( table schema);
Who directed an episode with 1.19 million? .It is not neccessary to use all the tables.
SELECT nationality FROM table_14209245_9 WHERE college_junior_club_team__league_ = "Seattle Thunderbirds (WHL)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the player whose college/junior/club team (league) is Seattle Thunderbirds (WHL)?It is not neccessary to use all the tables.
SELECT administrative_capital FROM table_1966992_1 WHERE census_2006_population = 249425
CREATE TABLE INST, Here is a database schema( table schema);
What is the administrative capital that has a 2006 census population of 249425?It is not neccessary to use all the tables.
SELECT round FROM table_name_9 WHERE opponent = "celtic" AND date = "24 february 1900"
CREATE TABLE INST, Here is a database schema( table schema);
What round did the celtic played away on 24 february 1900?It is not neccessary to use all the tables.
SELECT COUNT(processor_speed__mhz_) FROM table_15261_1 WHERE part_number = "A80486DX4-75"
CREATE TABLE INST, Here is a database schema( table schema);
What is the processor speed (mhz) for part number a80486dx4-75?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Tournament = italy f28
CREATE TABLE INST, Here is a database schema( table schema);
On what type of surface was the tournament of Italy f28?.It is not neccessary to use all the tables.
SELECT MAX Asts FROM table WHERE From = 2010 AND Rebs < 76
CREATE TABLE INST, Here is a database schema( table schema);
What is the high assist total for players from 2010 and under 76 rebounds?.It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_61 WHERE silver = 1 AND total > 3 AND gold > 2
CREATE TABLE INST, Here is a database schema( table schema);
What rank has 1 silver more than 2 gold and a total larger than 3?It is not neccessary to use all the tables.
SELECT Number & name FROM table WHERE Date = 1964
CREATE TABLE INST, Here is a database schema( table schema);
What is the name and number in 1964?.It is not neccessary to use all the tables.
SELECT SUM(byes) FROM table_name_70 WHERE draws = 1 AND wins = 5 AND losses < 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of byes that are associated with 1 draw 5 wins and fewer than 12 losses?It is not neccessary to use all the tables.
SELECT hometown FROM table_27529608_21 WHERE name_name_of_act = "PLUtonic"
CREATE TABLE INST, Here is a database schema( table schema);
What is the hometown of Plutonic?It is not neccessary to use all the tables.
SELECT mkhedruli FROM table_name_41 WHERE asomtavruli = "ⴒ"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Mkhedruli symbol for the Asomtavruli ⴒ?It is not neccessary to use all the tables.
SELECT College FROM table WHERE Player = Bob LaRose
CREATE TABLE INST, Here is a database schema( table schema);
What college did Bob Larose attend?.It is not neccessary to use all the tables.
SELECT Fastest lap FROM table WHERE Grand Prix = European Grand Prix
CREATE TABLE INST, Here is a database schema( table schema);
who is the the fastest lap with grand prix being european grand prix.It is not neccessary to use all the tables.
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the high schooler who has the greatest number of friends?It is not neccessary to use all the tables.
SELECT COUNT(location) FROM table_16734640_1 WHERE institution = "Georgia Perimeter College"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number location of georgia perimeter collegeIt is not neccessary to use all the tables.
SELECT "Result" FROM table_28856 WHERE "District" = 'Pennsylvania 6'
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for district pennsylvania 6?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Act = Performance of "Lost" by Anouk
CREATE TABLE INST, Here is a database schema( table schema);
During the act, Performance of "Lost" by Anouk, what was the result?.It is not neccessary to use all the tables.
SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge"
CREATE TABLE INST, Here is a database schema( table schema);
How tall is the Anqing Bridge which opened prior to 2011?It is not neccessary to use all the tables.
SELECT type FROM table_name_79 WHERE transfer_window = "summer" AND name = "bulykin"
CREATE TABLE INST, Here is a database schema( table schema);
What is the type of bulykin, which has a summer transfer window?It is not neccessary to use all the tables.
SELECT COUNT Title FROM table WHERE Written by = Alexander Woo AND Directed by = Scott Winant
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were written by Alexander Woo and directed by Scott Winant?.It is not neccessary to use all the tables.
SELECT score FROM table_name_14 WHERE attendance = 303
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Attendance is "303"?It is not neccessary to use all the tables.
SELECT name_designation FROM table_name_79 WHERE status = "under development"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name/designation for the under development status?It is not neccessary to use all the tables.
SELECT week__number FROM table_23871828_1 WHERE original_artist = "Whitney Houston"
CREATE TABLE INST, Here is a database schema( table schema);
In what week was the original singer Whitney Houston.It is not neccessary to use all the tables.
SELECT venue FROM table_name_6 WHERE result = "won 5-0"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game with a result of won 5-0?It is not neccessary to use all the tables.
SELECT Established FROM table WHERE Institution = north jersey phoenix
CREATE TABLE INST, Here is a database schema( table schema);
What is the year established of North Jersey Phoenix?.It is not neccessary to use all the tables.
SELECT Final score FROM table WHERE Date = 2009-02-26
CREATE TABLE INST, Here is a database schema( table schema);
what is the final score when the date is 2009-02-26?.It is not neccessary to use all the tables.
SELECT player FROM table_name_22 WHERE school_club_team = "illinois"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Player for School/Club Team Illinois?It is not neccessary to use all the tables.
SELECT placement_in_miss_universe FROM table_name_3 WHERE delegate = "armi barbara quiray crespo"
CREATE TABLE INST, Here is a database schema( table schema);
Which Placement in Miss Universe is armi barbara quiray crespo?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Tracy" AND t3.lname = "Kim"
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of clubs where "Tracy Kim" is a member.It is not neccessary to use all the tables.
SELECT Role FROM table WHERE Casino Theatre 1888 = George Broderick
CREATE TABLE INST, Here is a database schema( table schema);
How many roles include George Broderick in the casino 1888 theater?.It is not neccessary to use all the tables.
SELECT MIN Position FROM table WHERE Goals against = 53 AND Points = 26 AND Goal Difference > -11
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest position of the club with 53 goals against, 26 points, and a -11 goal difference?.It 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.admityear < "2194" AND diagnoses.long_title = "Hypopotassemia"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose admission year is less than 2194 and diagnoses long title is hypopotassemia?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Date of Birth = 1982-01-29
CREATE TABLE INST, Here is a database schema( table schema);
Who is born on 1982-01-29?.It is not neccessary to use all the tables.
SELECT SUM Share FROM table WHERE Air Date = november 19, 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the total share for an episode with an air date of November 19, 2007?.It is not neccessary to use all the tables.
SELECT us_viewers__millions_ FROM table_17482534_1 WHERE written_by = "Warren Lieberstein & Halsted Sullivan"
CREATE TABLE INST, Here is a database schema( table schema);
How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?It is not neccessary to use all the tables.
SELECT play_by_play FROM table_name_61 WHERE network = "abc" AND year > 1998
CREATE TABLE INST, Here is a database schema( table schema);
Who was the play by play commentator for ABC after 1998?It is not neccessary to use all the tables.
SELECT 2013 FROM table_name_16 WHERE 2012 = "2r"
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 2013 when 2012 is 2r?It is not neccessary to use all the tables.
SELECT Top Speed FROM table WHERE Model Name = d14/4 supreme d14/4 sports & bushman
CREATE TABLE INST, Here is a database schema( table schema);
Which Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman?.It is not neccessary to use all the tables.
SELECT "Position" FROM table_72791 WHERE "Player" = 'Kevin Edwards'
CREATE TABLE INST, Here is a database schema( table schema);
Which position did kevin edwards play forIt is not neccessary to use all the tables.
SELECT parent_magazine FROM table_name_78 WHERE title = "dengeki g's festival! deluxe"
CREATE TABLE INST, Here is a database schema( table schema);
What is the parent magazine of Dengeki g's festival! deluxe?It is not neccessary to use all the tables.
SELECT Total FROM table WHERE League a = 79 (221)
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total when the league shows 79 (221)?.It is not neccessary to use all the tables.
SELECT AVG Vertical Relief (ft) FROM table WHERE Peak Name = tower near mead wood road entrance AND Elevation (ft) > 1,410
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean vertical relief in feet when the Peak Name is Tower near mead wood road entrance and the elevation in feet is more than 1,410?.It is not neccessary to use all the tables.
SELECT MIN Number FROM table WHERE Western name = aquarius
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number for the english word Aquarius?.It is not neccessary to use all the tables.
SELECT IATA FROM table WHERE Country = united kingdom AND Airport = ringway airport
CREATE TABLE INST, Here is a database schema( table schema);
What is the IATA for Ringway Airport in the United Kingdom?.It is not neccessary to use all the tables.
SELECT MIN Reg GP FROM table WHERE Rd # > 2 AND Pick # = 80 AND Pl GP > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?.It is not neccessary to use all the tables.
SELECT MAX(week) FROM table_name_66 WHERE date = "november 8, 1970"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Week when Date is "November 8 1970"?It is not neccessary to use all the tables.
SELECT week_1 FROM table_name_64 WHERE week_2 = "mandy lynn"
CREATE TABLE INST, Here is a database schema( table schema);
Which week 1 had a week 2 of Mandy Lynn?It is not neccessary to use all the tables.
SELECT SUM 1956 FROM table WHERE County = vâlcea AND 2011 < 371714
CREATE TABLE INST, Here is a database schema( table schema);
Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?.It is not neccessary to use all the tables.
SELECT MAX(demographic.age) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dod_year < "2138.0"
CREATE TABLE INST, Here is a database schema( table schema);
what is maximum age of patients whose ethnicity is black/african american and year of death is less than 2138?It is not neccessary to use all the tables.
SELECT Netflix FROM table WHERE Series Ep. = 15-01
CREATE TABLE INST, Here is a database schema( table schema);
What is the Netflix episode for series episode 15-01?.It is not neccessary to use all the tables.