instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_24315 ( "Episode" real, "Title" text, "Directed by" text, "Written by" text, "Originalairdate" text, "Viewing Figures (millions) Sourced by BARB ; includes ITV1 HD and ITV1 +1" text ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT "Directed by" FROM table_24315 WHERE "Viewing Figures (millions) Sourced by BARB ; includes ITV1 HD and ITV1 +1" = '7.35'
### Instruction: CREATE TABLE table_22550 ( "Rank" real, "Name" text, "Tenure" text, "Leagues" text, "Attempts" real, "Completions" real, "Comp %" text, "Touchdowns" real, "Interceptions" real, "Yardage" real, "QB Rating" text ) -- Using valid SQLite, answer the following q...
SELECT "Leagues" FROM table_22550 WHERE "Comp %" = '54.0'
### Instruction: CREATE TABLE table_26036 ( "Pos" real, "No." real, "Driver" text, "Team" text, "Chassis/Engine" text, "Laps" real, "Time/Retired" text, "Grid" real, "Laps Led" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT COUNT("No.") FROM table_26036 WHERE "Chassis/Engine" = 'Lola T92/00/ Buick'
### Instruction: CREATE TABLE table_77846 ( "Episode" text, "Air Date" text, "Timeslot" text, "Rating" text, "Share" text, "18\u201349 (Rating/Share)" text, "Viewers (m)" real, "Rank (#)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "Rank (#)" FROM table_77846 WHERE "Air Date" = 'may 19, 2009'
### Instruction: CREATE TABLE table_12548 ( "Position" real, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT MAX("Wins") FROM table_12548 WHERE "Goals for" > '39' AND "Points" < '25'
### Instruction: CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real ) CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, ...
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight)
### Instruction: CREATE TABLE table_28727 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "U.S. air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "Title" FROM table_28727 WHERE "Directed by" = 'Christopher Petry' AND "Production code" = '3X6006'
### Instruction: CREATE TABLE table_62908 ( "Rank" real, "Actor" text, "Character" text, "Soap Opera" text, "Years" text, "Duration" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What soap opera was on 1960 1965, 1965 1983, 1984 2010? ### Res...
SELECT "Soap Opera" FROM table_62908 WHERE "Years" = '1960–1965, 1965–1983, 1984–2010'
### Instruction: CREATE TABLE table_26215 ( "Song 1 title" text, "Artist 1" text, "Song 2 title" text, "Artist 2" text, "Mix artist" text, "Guitar part?" text, "Level" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are thebmix artists wh...
SELECT "Mix artist" FROM table_26215 WHERE "Artist 1" = 'Tears for Fears' AND "Artist 2" = 'Eric Prydz'
### Instruction: CREATE TABLE table_32506 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the home team that sco...
SELECT "Home team" FROM table_32506 WHERE "Crowd" > '10,000' AND "Home team score" = '13.13 (91)'
### Instruction: CREATE TABLE table_45557 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT AVG("Goals against") FROM table_45557 WHERE "Points" = '43' AND "Draws" > '9'
### Instruction: CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) -- Using valid SQLite, answer the following ...
SELECT Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY SUM(Revenue)
### Instruction: CREATE TABLE table_35152 ( "Season" text, "Record" text, "Pct." real, "Games" real, "Attendance" real, "Average" real, "Sellouts" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many attendance numbers had more than 15 ga...
SELECT COUNT("Attendance") FROM table_35152 WHERE "Games" > '15' AND "Sellouts" > '8' AND "Season" = '2011-12'
### Instruction: CREATE TABLE table_17820 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite,...
SELECT "Tries for" FROM table_17820 WHERE "Drawn" = '3'
### Instruction: CREATE TABLE table_73480 ( "Player" text, "Games Played" real, "Minutes" real, "Field Goals" real, "Three Pointers" real, "Free Throws" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Points" real ) -- Using valid SQLite, answer the fo...
SELECT MIN("Games Played") FROM table_73480 WHERE "Steals" = '50'
### Instruction: CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stock int ) CREATE TABLE market ( Market_ID int, District text, Num_of_employees int, Num_of_shops real, Ranking int ) CREATE TABLE phone ( Name text, Phone_ID int, Memory_in_G int, Carrie...
SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier
### Instruction: CREATE TABLE table_73968 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Patient Portrayer" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT COUNT("Patient Portrayer") FROM table_73968 WHERE "Directed by" = 'Craig Zisk' AND "Written by" = 'Brad Falchuk'
### Instruction: CREATE TABLE table_25229 ( "Stage" real, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text, "Team classification" text, "Combativity award" text ) -- Using valid SQLite, answer...
SELECT "General classification" FROM table_25229 WHERE "Young rider classification" = 'Salvatore Commesso' AND "Winner" = 'Erik Dekker'
### Instruction: CREATE TABLE table_6166 ( "County" text, "Per capita income" text, "Median household income" text, "Median family income" text, "Population" real, "Number of households" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Popul...
SELECT MIN("Population") FROM table_6166 WHERE "Median family income" = '$74,905' AND "Number of households" < '145,790'
### Instruction: CREATE TABLE table_203_723 ( id number, "year" number, "song" text, "us hot 100" number, "us msr" number, "us a.c." number, "can" number, "uk singles" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- wh...
SELECT "song" FROM table_203_723 WHERE "year" > (SELECT "year" FROM table_203_723 WHERE "song" = '"all she wrote"') ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_38146 ( "School" text, "Location" text, "Mascot" text, "Enrollment (2010)" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mascot ...
SELECT "Mascot" FROM table_38146 WHERE "Enrollment (2010)" < '980' AND "School" = 'heritage'
### Instruction: CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height re...
SELECT Name, Height FROM people ORDER BY Name DESC
### Instruction: CREATE TABLE table_76287 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT "High assists" FROM table_76287 WHERE "Game" < '13' AND "Score" = 'w 75-66'
### Instruction: CREATE TABLE table_30133_3 ( gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38? ### Respon...
SELECT 1985 FROM table_30133_3 WHERE gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ = "369.38"
### Instruction: CREATE TABLE table_45243 ( "Season" real, "Series" text, "Team" text, "Races" text, "Wins" text, "Poles" text, "F/Laps" text, "Podiums" text, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Points" FROM table_45243 WHERE "Races" = '11' AND "Season" > '2008'
### Instruction: CREATE TABLE furniture ( furniture_id number, name text, num_of_component number, market_rate number ) CREATE TABLE manufacturer ( manufacturer_id number, open_year number, name text, num_of_factories number, num_of_shops number ) CREATE TABLE furniture_manufacte (...
SELECT name, manufacturer_id FROM manufacturer ORDER BY open_year
### Instruction: CREATE TABLE table_12058 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what venue did the away team...
SELECT "Venue" FROM table_12058 WHERE "Crowd" > '12,786' AND "Away team score" = '12.9 (81)'
### Instruction: CREATE TABLE table_6518 ( "Nation" text, "Removal treaty (year signed)" text, "Years of major emigration" text, "Total number emigrated or forcibly removed" text, "Number stayed in Southeast" text, "Deaths from warfare" text ) -- Using valid SQLite, answer the following questi...
SELECT "Number stayed in Southeast" FROM table_6518 WHERE "Total number emigrated or forcibly removed" = 'over 4,000'
### Instruction: CREATE TABLE table_17752 ( "Clinical Status" text, "Compound Name" text, "Trademark" text, "Marine Organism \u03b1" text, "Chemical Class" text, "Molecular Target" text, "Clinical Trials \u03b2" text, "Disease Area" text ) -- Using valid SQLite, answer the following qu...
SELECT "Molecular Target" FROM table_17752 WHERE "Trademark" = 'Irvalec ®'
### Instruction: CREATE TABLE table_17429 ( "Model/Engine" text, "Capacity" text, "Cylinders/Valves" text, "Power/rpm" text, "Torque (Nm)/rpm" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the model with torque of n m (lb ft)/*n m (lb ft) @1750...
SELECT "Power/rpm" FROM table_17429 WHERE "Torque (Nm)/rpm" = 'N·m (lb·ft)/*N·m (lb·ft) @1750'
### Instruction: CREATE TABLE table_21212 ( "No." real, "Hanyu" text, "Tongyong" text, "Pe\u030dh-\u014de-j\u012b" text, "Chinese" text, "Area (km\u00b2)" text, "No. of villages" real, "Population (2010)" real ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT COUNT("Tongyong") FROM table_21212 WHERE "Hanyu" = 'Qiaotou'
### Instruction: CREATE TABLE camera_lens ( id int, brand text, name text, focal_length_mm real, max_aperture real ) CREATE TABLE photos ( id int, camera_lens_id int, mountain_id int, color text, name text ) CREATE TABLE mountain ( id int, name text, Height real, ...
SELECT brand, COUNT(brand) FROM camera_lens GROUP BY brand
### Instruction: CREATE TABLE table_57328 ( "Council" text, "2003 result" text, "Notional control (based on 2003 results)" text, "2007 result" text, "Details" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which council has a notional control of noc...
SELECT "Council" FROM table_57328 WHERE "Notional control (based on 2003 results)" = 'noc' AND "2007 result" = 'no overall control (snp + ld)'
### Instruction: CREATE TABLE table_203_654 ( id number, "position" number, "team" text, "points" number, "played" number, "won" number, "drawn" number, "lost" number, "for" number, "against" number, "difference" number ) -- Using valid SQLite, answer the following question...
SELECT COUNT("team") FROM table_203_654 WHERE "points" > (SELECT "points" FROM table_203_654 WHERE "team" = 'silex')
### Instruction: CREATE TABLE table_27513 ( "Song" text, "Singer" text, "Co-Singers" text, "Music Director" text, "Lyricist" text, "Co-Stars" text, "Movie/Album" text, "Year" real, "Additional Info" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "Movie/Album" FROM table_27513 WHERE "Song" = 'Dil De De Nahin Nahin Dil Le Le'
### Instruction: CREATE TABLE table_name_83 ( profits__billion_ INTEGER, company VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Profits (billion $), when Market Value (billion...
SELECT MIN(profits__billion_) AS $_ FROM table_name_83 WHERE market_value__billion_$_ < 201.3 AND headquarters = "united states" AND company = "jpmorgan chase"
### Instruction: CREATE TABLE table_train_24 ( "id" int, "systolic_blood_pressure_sbp" int, "do_not_resuscitate_dnr" bool, "temperature" float, "hypotension" bool, "cardiac_arrest" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables p...
SELECT * FROM table_train_24 WHERE hypotension = 1 OR systolic_blood_pressure_sbp < 100
### Instruction: CREATE TABLE table_9213 ( "Model Number" text, "sSpec Number" text, "Frequency" text, "L2 Cache" text, "Mult" text, "Voltage" text, "Socket" text, "Release Date" text, "Part Number(s)" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT "Release Date" FROM table_9213 WHERE "sSpec Number" = 'sl5xl, sl657, sl6by, sl6jp'
### Instruction: CREATE TABLE table_2955 ( "Vehicle" text, "Operating mode" text, "EPA rated All-electric range" text, "EPA rated combined fuel economy" text, "Clean electric grid California (San Francisco)" text, "U.S. national average electric mix" text, "Dirty electric grid Rocky Mountain...
SELECT "EPA rated combined fuel economy" FROM table_2955 WHERE "Vehicle" = 'Nissan Leaf'
### Instruction: CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real ) CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY COUNT(*) DESC
### Instruction: CREATE TABLE table_35053 ( "gzip" text, "bzip2" text, "LHA/LZH" text, "StuffIt" text, "StuffIt X" text, "ISO/CD Image" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ISO/CD image value associated with StuffitX of no,...
SELECT "ISO/CD Image" FROM table_35053 WHERE "StuffIt X" = 'no' AND "gzip" = 'yes' AND "LHA/LZH" = 'yes'
### Instruction: CREATE TABLE wrestler ( Wrestler_ID int, Name text, Reign text, Days_held text, Location text, Event text ) CREATE TABLE Elimination ( Elimination_ID text, Wrestler_ID text, Team text, Eliminated_By text, Elimination_Move text, Time text ) -- Using val...
SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team ORDER BY COUNT(Team) DESC
### Instruction: CREATE TABLE table_56547 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT COUNT("Position") FROM table_56547 WHERE "Points" = '30-8' AND "Goals for" > '25'
### Instruction: CREATE TABLE table_44737 ( "Coach" text, "First Yr" real, "Last Yr" real, "W-L%" real, "G > .500" real, "Yr plyf" real, "G plyf" real, "W plyf" real, "L plyf" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is th...
SELECT COUNT("Yr plyf") FROM table_44737 WHERE "G plyf" < '0'
### Instruction: CREATE TABLE table_13223187_1 ( michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR, drury_hotels_most_aggressive_rider_red_jersey VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many michelob ultra mountains classificat...
SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = "Darren Lill"
### Instruction: CREATE TABLE table_train_185 ( "id" int, "dyscrasia" bool, "bleeding" int, "panic_disorder" bool, "renal_disease" bool, "anxiety" bool, "creatinine_clearance_cl" float, "alcohol_abuse" bool, "retinopathy" bool, "NOUSE" float ) -- Using valid SQLite, answer the ...
SELECT * FROM table_train_185 WHERE anxiety = 1 OR panic_disorder = 1
### Instruction: CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height re...
SELECT Name, Weight FROM people ORDER BY Name DESC
### Instruction: CREATE TABLE grapes ( id number, grape text, color text ) CREATE TABLE wine ( no number, grape text, winery text, appelation text, state text, name text, year number, price number, score number, cases number, drink text ) CREATE TABLE appellatio...
SELECT area, county FROM appellations
### Instruction: CREATE TABLE table_train_5 ( "id" int, "pregnancy_or_lactation" bool, "severe_sepsis" bool, "protein_c" int, "liver_disease" bool, "chronic_respiratory_disease" bool, "child_pugh_score" int, "septic_shock" bool, "myocardial_infarction" bool, "NOUSE" float ) -- ...
SELECT * FROM table_train_5 WHERE pregnancy_or_lactation = 1
### Instruction: CREATE TABLE table_54767 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Circuit" FROM table_54767 WHERE "Pole position" = 'jack brabham' AND "Fastest lap" = 'graham hill'
### Instruction: CREATE TABLE table_204_130 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what venue is previous to gin sio ...
SELECT "venue" FROM table_204_130 WHERE "date" < (SELECT "date" FROM table_204_130 WHERE "venue" = 'ginasio chico neto, maringa') ORDER BY "date" DESC LIMIT 1
### Instruction: CREATE TABLE table_18188 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the party with candidates jerry weller (r) 51.77...
SELECT "Party" FROM table_18188 WHERE "Candidates" = 'Jerry Weller (R) 51.77% Clem Balanoff (D) 48.23%'
### Instruction: CREATE TABLE table_57394 ( "Poll source" text, "Date(s) administered" text, "Sample size" real, "Margin of Error" text, "Tom Campbell" text, "Carly Fiorina" text, "Chuck DeVore" text, "Other" text, "Unde- cided" text ) -- Using valid SQLite, answer the following qu...
SELECT "Chuck DeVore" FROM table_57394 WHERE "Other" = '4%'
### Instruction: CREATE TABLE table_203_584 ( id number, "date" text, "race name" text, "d(f)" number, "course" text, "prize (\u00a3)" number, "odds" text, "runners" number, "place" number, "margin" number, "winner/runner-up" text, "time" text, "jockey" text ) -- Us...
SELECT COUNT(*) FROM table_203_584 WHERE "place" = 1
### Instruction: CREATE TABLE table_16089 ( "Character" text, "Australia & New Zealand (Sydney - first run, Melbourne, Auckland)" text, "London" text, "Toronto / Broadway" text, "Brazil" text, "UK Tour" text, "US Tour" text, "Italy (Milan, Rome, Trieste)" text ) -- Using valid SQLite, ...
SELECT "Toronto / Broadway" FROM table_16089 WHERE "UK Tour" = 'n/a'
### Instruction: CREATE TABLE train ( Train_ID int, Name text, Time text, Service text ) CREATE TABLE station ( Station_ID int, Name text, Annual_entry_exit real, Annual_interchanges real, Total_Passengers real, Location text, Main_Services text, Number_of_Platforms int ...
SELECT Location, AVG(Number_of_Platforms) FROM station GROUP BY Location
### Instruction: CREATE TABLE table_34954 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the women's singles befor...
SELECT "Women's singles" FROM table_34954 WHERE "Year" < '1965' AND "Mixed doubles" = 'kaj lindfors ann-louise von essen'
### Instruction: CREATE TABLE student ( id VARCHAR, dept_name VARCHAR ) CREATE TABLE advisor ( i_id VARCHAR, s_id VARCHAR ) CREATE TABLE instructor ( name VARCHAR, salary VARCHAR, id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find t...
SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'
### Instruction: CREATE TABLE table_9214 ( "Model Number" text, "sSpec Number" text, "Frequency" text, "L2 Cache" text, "Mult" text, "Voltage" text, "Socket" text, "Release Date" text, "Part Number(s)" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT "Socket" FROM table_9214 WHERE "Part Number(s)" = 'rk80530pz001256'
### Instruction: CREATE TABLE table_38018 ( "2005" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2013" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the 2009 value for a total over 1 and ...
SELECT "2009" FROM table_38018 WHERE "Total" > '1' AND "2010" = '4th'
### Instruction: CREATE TABLE table_3024 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text ) -- Using valid SQLite, answer the following questions for the tables provid...
SELECT COUNT("Conference Player of the Year") FROM table_3024 WHERE "Regular Season Winner" = 'Florida , Kentucky & Georgia (East) Alabama (West)'
### Instruction: CREATE TABLE table_30902 ( "Episode" real, "First Air Date" text, "Rating (18\u201349)" text, "Share (18\u201349)" real, "Viewers (millions)" text, "Rank (timeslot)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When there are ...
SELECT "Share (18\u201349)" FROM table_30902 WHERE "Viewers (millions)" = '9.28'
### Instruction: CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Movie ( mID int, title text, year int, director text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT title, AVG(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY AVG(stars)
### Instruction: CREATE TABLE table_1999 ( "Season" real, "Timeslot" text, "Season premiere" text, "Season finale" text, "TV season" text, "Rank" text, "U.S. viewers (in millions)" text, "Rating (adults 18\u201349)" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "Season finale" FROM table_1999 WHERE "U.S. viewers (in millions)" = '2.02'
### Instruction: CREATE TABLE table_39354 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent i...
SELECT "Opponents in the final" FROM table_39354 WHERE "Partner" = 'katarina srebotnik' AND "Championship" = 'wimbledon (4)'
### Instruction: CREATE TABLE table_71278 ( "Rank" real, "Team" text, "Country" text, "Value ($M)" real, "Debt as %of value" real, "% change on year" text, "Revenue ($M)" real, "Operating income($m)" real ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT COUNT("Value ($M)") FROM table_71278 WHERE "Rank" > '6' AND "% change on year" = '-27'
### Instruction: CREATE TABLE table_27538 ( "Season" text, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("F/Laps") FROM table_27538 WHERE "Position" = '10th' AND "Races" < '9.0'
### Instruction: CREATE TABLE table_48377 ( "Country" text, "Year" real, "Total" real, "Hydroelectricity" real, "Wind Power" real, "Biomass and Waste" text, "Solar" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum hydroelec...
SELECT MIN("Hydroelectricity") FROM table_48377 WHERE "Total" < '116.4' AND "Solar" > '18.637'
### Instruction: CREATE TABLE table_63127 ( "Player" text, "Int'l Debut" text, "Year" real, "Cross Code Debut" text, "Date" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the Cross Code Debut of rl 1st test great b...
SELECT "Date" FROM table_63127 WHERE "Cross Code Debut" = 'rl 1st test great britain v australia' AND "Int'l Debut" = 'ru five nations v ireland'
### Instruction: CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real ) CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, ...
SELECT Sex, SUM(Weight) FROM people GROUP BY Sex ORDER BY Sex DESC
### Instruction: CREATE TABLE table_train_2 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "diabetic" string, "electro_systolic_process" bool, "degenerative_pathology" bool, "neurological_disease" bool, "cardiomyopathy" bool, "NOUSE" float ) -- Using valid SQLite, answ...
SELECT * FROM table_train_2 WHERE neurological_disease = 1 OR degenerative_pathology = 1
### Instruction: CREATE TABLE table_204_352 ( id number, "pos" text, "no" number, "rider" text, "manufacturer" text, "laps" number, "time" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who perfomed th...
SELECT "rider" FROM table_204_352 WHERE "rider" IN ('marco simoncelli', 'hiroshi aoyama') ORDER BY "laps" DESC LIMIT 1
### Instruction: CREATE TABLE table_17801 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite,...
SELECT "Try bonus" FROM table_17801 WHERE "Tries for" = '64'
### Instruction: CREATE TABLE table_57059 ( "VCTP" text, "VCA 155" text, "VCTM" text, "VCPC" text, "VCLC" text, "VCRT" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP...
SELECT "VCTP" FROM table_57059 WHERE "VCRT" = '7.62mm (0.3in) fn mag 60-20 machine gun'
### Instruction: CREATE TABLE table_12371 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT MIN("Draws") FROM table_12371 WHERE "Club" = 'burgos cf' AND "Position" > '8'
### Instruction: CREATE TABLE table_40357 ( "Position" text, "Jersey #" real, "Name" text, "Height (cm)" real, "Weight (kg)" real, "Birthdate" text, "Birthplace" text, "2008\u20132009 Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT COUNT("Height (cm)") FROM table_40357 WHERE "Birthdate" = 'september 2, 1973'
### Instruction: CREATE TABLE table_22723 ( "Rank" real, "Metropolitan Statistical Area" text, "Total Population (2010)" real, "Indian American Population (2010)" real, "% Indian American" text, "Asian American Population (2010)" real, "% Asian American" text, "Combined Statistical Area"...
SELECT "% Asian American" FROM table_22723 WHERE "Indian American Population (2010)" = '23526'
### Instruction: CREATE TABLE table_22487 ( "Township" text, "County" text, "Pop. (2010)" real, "Land ( sqmi )" text, "Water (sqmi)" text, "Latitude" text, "Longitude" text, "GEO ID" real, "ANSI code" real ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT COUNT("ANSI code") FROM table_22487 WHERE "Latitude" = '48.142938'
### Instruction: CREATE TABLE table_56529 ( "Year" text, "Starts" real, "Cuts made" real, "Wins" real, "Top 10" real, "Top 25" real, "Earnings ($)" real, "Money list rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highes...
SELECT MAX("Top 25") FROM table_56529 WHERE "Money list rank" = '232' AND "Cuts made" < '2'
### Instruction: CREATE TABLE table_47313 ( "Year" text, "Indians admitted" real, "Pakistanis admitted" real, "Sri Lankans admitted" real, "Bangladeshis admitted" real, "Nepalis admitted" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many B...
SELECT AVG("Bangladeshis admitted") FROM table_47313 WHERE "Nepalis admitted" = '714' AND "Pakistanis admitted" > '13,575'
### Instruction: CREATE TABLE table_28246 ( "Metropolitan ring" text, "Localities" real, "Total" real, "Jews and others 1" real, "Thereof: Jews" real, "Arabs" real, "Population density (per km\u00b2)" text, "Annual Population growth rate" text ) -- Using valid SQLite, answer the follow...
SELECT "Metropolitan ring" FROM table_28246 WHERE "Thereof: Jews" = '30600'
### Instruction: CREATE TABLE table_204_675 ( id number, "year" number, "game of the year" text, "abstract strategy" text, "advanced strategy" text, "family" text, "family card" text, "family strategy" text, "party" text, "puzzle" text, "word" text, "historical simulation...
SELECT COUNT("year") FROM table_204_675 WHERE "year" IS NULL
### Instruction: CREATE TABLE table_22082 ( "#" real, "Date" text, "Opponent" text, "Score" text, "Site/Stadium" text, "Win" text, "Loss" text, "Save" text, "Attendance" real, "Overall Record" text, "NCAAT Record" text ) -- Using valid SQLite, answer the following questions...
SELECT "NCAAT Record" FROM table_22082 WHERE "Date" = 'June 21'
### Instruction: CREATE TABLE table_55479 ( "Tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the categorization in 2009 when it was 2R in 2008 a...
SELECT "2009" FROM table_55479 WHERE "2008" = '2r' AND "2011" = '2r'
### Instruction: CREATE TABLE table_20699 ( "Year" real, "Lansing (LAN)" text, "Detroit (DTW)" text, "Grand Rapids (GRR)" text, "Flint (FNT)" text, "Kalamazoo (AZO)" text, "Saginaw (MBS)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When L...
SELECT "Detroit (DTW)" FROM table_20699 WHERE "Lansing (LAN)" = '$433.59'
### Instruction: CREATE TABLE table_4078 ( "Couple" text, "Style" text, "Music" text, "Trine Dehli Cleve" real, "Tor Fl\u00f8ysvik" real, "Karianne Gulliksen" real, "Christer Tornell" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT MAX("Christer Tornell") FROM table_4078 WHERE "Trine Dehli Cleve" = '9'
### Instruction: CREATE TABLE table_47968 ( "Date" text, "Opponent" text, "Home / Away" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the table...
SELECT "High points" FROM table_47968 WHERE "Opponent" = 'mid-michigan destroyers' AND "Date" = 'january 3'
### Instruction: CREATE TABLE table_train_158 ( "id" int, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "moca_score" int, "diastolic_blood_pressure_dbp" int, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questio...
SELECT * FROM table_train_158 WHERE age >= 45 AND age <= 75
### Instruction: CREATE TABLE table_54161 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the outcome of the Tournament ...
SELECT "Outcome" FROM table_54161 WHERE "Tournament" = 'lugano , switzerland wta virginia slims' AND "Opponent in the final" = 'bonnie gadusek'
### Instruction: CREATE TABLE table_train_159 ( "id" int, "hemoglobin_a1c_hba1c" float, "estimated_glomerular_filtration_rate_egfr" int, "kidney_disease" bool, "serum_triglyceride" int, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the followin...
SELECT * FROM table_train_159 WHERE body_mass_index_bmi < 45
### Instruction: CREATE TABLE table_3692 ( "Model" text, "Speed (GHz)" text, "L3 Cache (MB)" real, "QPI speed (GT/s)" text, "DDR3 Clock (MHz)" real, "TDP (W)" real, "Cores" real, "Threads" real, "Turbo-Boost" text ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT COUNT("QPI speed (GT/s)") FROM table_3692 WHERE "Model" = 'L5506'
### Instruction: CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, ...
SELECT Year_Join, COUNT(Year_Join) FROM artist WHERE Country <> 'United States' GROUP BY Name
### Instruction: CREATE TABLE table_36926 ( "Name" text, "GP-GS" text, "Effic" real, "Cmp-Att-Int" text, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13? ### Respo...
SELECT SUM("Avg/G") FROM table_36926 WHERE "Effic" > '129.73' AND "Cmp-Att-Int" = '333-500-13'
### Instruction: CREATE TABLE table_41340 ( "Week" real, "Date" text, "Time" text, "Opponent" text, "Result" text, "Game site" text, "NFL Recap" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Opponent with a ti...
SELECT "Opponent" FROM table_41340 WHERE "Time" = '2:05 p.m.' AND "Result" = 'w 26–20'
### Instruction: CREATE TABLE table_name_18 ( _number_of_constituency_votes INTEGER, _number_of_candidates VARCHAR, election VARCHAR, leader VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest # Of Constituency Votes, when Election is ...
SELECT MAX(_number_of_constituency_votes) FROM table_name_18 WHERE election < 1976 AND leader = "eisaku satō" AND _number_of_candidates < 328
### Instruction: CREATE TABLE table_45882 ( "Conference" text, "# of Bids" real, "Record" text, "Win %" text, "Round of 32" text, "Sweet Sixteen" text, "Elite Eight" text, "Final Four" text, "Championship Game" text ) -- Using valid SQLite, answer the following questions for the ta...
SELECT "Championship Game" FROM table_45882 WHERE "# of Bids" = '4' AND "Win %" = '.600'
### Instruction: CREATE TABLE table_69113 ( "City" text, "Jan." text, "Feb." text, "Mar." text, "Apr." text, "Jun." text, "Jul." text, "Aug." text, "Sep." text, "Oct." text, "Nov." text, "Dec." text ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT "City" FROM table_69113 WHERE "Feb." = '66 °f / 18.9 °c'
### Instruction: CREATE TABLE table_40119 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number of Points are show...
SELECT COUNT("Points") FROM table_40119 WHERE "Drawn" < '2' AND "Team" = 'paulistano' AND "Against" < '15'
### Instruction: CREATE TABLE table_23067 ( "Previous season 2007/2008" text, "Team" text, "Town" text, "Arena (capacity)" text, "Website" text, "Head Coach" text, "Foreign Players (max. 2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wha...
SELECT COUNT("Arena (capacity)") FROM table_23067 WHERE "Head Coach" = 'Yuriy Korotkevich'
### Instruction: CREATE TABLE journalist ( journalist_ID int, Name text, Nationality text, Age text, Years_working int ) CREATE TABLE event ( Event_ID int, Date text, Venue text, Name text, Event_Attendance int ) CREATE TABLE news_report ( journalist_ID int, Event_ID in...
SELECT Nationality, SUM(Age) FROM journalist GROUP BY Nationality ORDER BY SUM(Age)