instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_78556 ( "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("Losses") FROM table_78556 WHERE "Goal Difference" = '-16' AND "Wins" < '8'
### Instruction: CREATE TABLE table_3423 ( "Player" text, "G" real, "Solo TK" real, "Asst. TK" real, "Total TK" real, "Sack" text, "YdL" real, "INT" real, "Yards" real, "ForFum" real, "FumRec" real, "TD" real ) -- Using valid SQLite, answer the following questions for t...
SELECT "FumRec" FROM table_3423 WHERE "Player" = 'Reed Doughty'
### Instruction: CREATE TABLE table_39734 ( "Rank" real, "Country" text, "UNWTO Region" text, "International tourism expenditure (2012)" text, "International tourism expenditure (2011)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Internatio...
SELECT "International tourism expenditure (2012)" FROM table_39734 WHERE "International tourism expenditure (2011)" = '$33.3 billion'
### Instruction: CREATE TABLE table_41426 ( "Tournament" text, "2003" text, "2004" text, "2012" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from t...
SELECT "2003" FROM table_41426 WHERE "2012" = '1r' AND "2004" = '2r' AND "Tournament" = 'australian open'
### Instruction: CREATE TABLE table_28497 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the number of weeks that had a Billboard Hot 10...
SELECT COUNT("Week #") FROM table_28497 WHERE "Theme" = 'Billboard Hot 100 Hits' AND "Order #" = '3' AND "Original artist" = 'Sixpence None the Richer'
### Instruction: CREATE TABLE table_30249 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many m...
SELECT "U.S. viewers (million)" FROM table_30249 WHERE "Directed by" = 'Roger Young' AND "Written by" = 'Debra J. Fisher'
### Instruction: CREATE TABLE table_75612 ( "State" text, "Literacy Rate (%) - [2013 Estimate]" real, "Literacy Rate (%) - 2001 Census" real, "Literacy Rate (%) - 2011 Census" real, "% Increase" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What wa...
SELECT "Literacy Rate (%) - 2001 Census" FROM table_75612 WHERE "% Increase" = '12.66%'
### Instruction: CREATE TABLE table_41984 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the set 5 of the match with a set...
SELECT "Set 5" FROM table_41984 WHERE "Set 2" = '26-24' AND "Set 1" = '27-25'
### Instruction: CREATE TABLE table_61986 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the area of the village with a census ranking of 1,442 of 5...
SELECT MAX("Area km 2") FROM table_61986 WHERE "Status" = 'village' AND "Census Ranking" = '1,442 of 5,008' AND "Population" < '1,778'
### Instruction: CREATE TABLE table_16228 ( "1st players choice" text, "2nd players choice" text, "Probability 1st player wins" text, "Probability 2nd player wins" text, "Probability of a draw" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ...
SELECT "Probability 2nd player wins" FROM table_16228 WHERE "2nd players choice" = 'R RB' AND "Probability 1st player wins" = '5.18%'
### Instruction: CREATE TABLE table_6745 ( "Buechel & Manhart spelling (pronunciation)" text, "Ullrich" text, "Brandon University" text, "Deloria & Boas" text, "Dakota Mission" text, "Rood & Taylor" text, "Riggs" text, "Williamson" text, "University of Minnesota" text, "White Hat...
SELECT "Deloria & Boas" FROM table_6745 WHERE "University of Minnesota" = 'ṭ'
### Instruction: CREATE TABLE table_77520 ( "Team" text, "Games Played" real, "Wins" real, "Losses" real, "Ties" real, "Goals For" real, "Goals Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of goals for whe...
SELECT COUNT("Goals For") FROM table_77520 WHERE "Ties" > '0' AND "Goals Against" > '35' AND "Wins" < '2'
### Instruction: CREATE TABLE table_72005 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total of Goals...
SELECT SUM("Goals Scored") FROM table_72005 WHERE "Points" < '27' AND "Team" = 'c.d. atlético balboa'
### Instruction: CREATE TABLE table_23167 ( "RPM" real, "Standard HP" text, "Standard torque (lb/ft)" text, "Standard speed (6th gear)" text, "Modified speed (6th gear)" real, "Modified HP" text, "Modified torque (lb/ft)" text ) -- Using valid SQLite, answer the following questions for the...
SELECT MAX("Modified speed (6th gear)") FROM table_23167 WHERE "Standard speed (6th gear)" = '98'
### Instruction: CREATE TABLE table_26305 ( "No." real, "Episode" text, "Rating" text, "Share" real, "Rating/share (18-49)" text, "Viewers (millions)" text, "Rank (timeslot)" real, "Rank (night)" real ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "Rating/share (18-49)" FROM table_26305 WHERE "Viewers (millions)" = '5.90'
### Instruction: CREATE TABLE table_25034 ( "Year" text, "Network" text, "Play-by-play" text, "Color commentator(s)" text, "Ice level reporters" text, "Studio host" text, "Studio analysts" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which...
SELECT "Play-by-play" FROM table_25034 WHERE "Studio analysts" = 'Mike Milbury' AND "Ice level reporters" = 'Darren Pang'
### Instruction: CREATE TABLE table_52265 ( "model" text, "cylinders/ valves" text, "displacement cc" real, "max. power kW (PS) at rpm" text, "max. torque (Nm) at rpm" text, "engine code" text, "top speed (km/h)" real, "production period" text ) -- Using valid SQLite, answer the follow...
SELECT SUM("top speed (km/h)") FROM table_52265 WHERE "model" = '1.8 20v t'
### Instruction: CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) -- Using valid SQLite, answer the following questions for t...
SELECT Class, COUNT(Class) FROM Ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM captain) GROUP BY Class ORDER BY COUNT(Class) DESC
### Instruction: CREATE TABLE table_7399 ( "Model number" text, "Frequency" text, "L2 cache" text, "Multi 1" text, "Voltage" text, "Socket" text, "Release date" text, "Order part number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Whi...
SELECT "Model number" FROM table_7399 WHERE "Frequency" = '2000mhz' AND "Voltage" = '0.75-1.2'
### 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 COUNT(*) FROM appellations WHERE county = "Napa"
### Instruction: CREATE TABLE assignedto ( scientist number, project text ) CREATE TABLE scientists ( ssn number, name text ) CREATE TABLE projects ( code text, name text, hours number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ...
SELECT T2.name, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.ssn WHERE T2.hours = (SELECT MIN(hours) FROM projects)
### Instruction: CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT title, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY MIN(T1.stars) DESC
### Instruction: CREATE TABLE table_1860 ( "Class" text, "Team" text, "103lbs" text, "112lbs" text, "119lbs" text, "125lbs" text, "130lbs" text, "135lbs" text, "140lbs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team includ...
SELECT "Team" FROM table_1860 WHERE "103lbs" = 'Tallon Ricci (White Pine)'
### Instruction: CREATE TABLE table_34148 ( "Rank" text, "Common of" text, "Population" real, "Area (km 2 )" real, "Density (inhabitants/km 2 )" real, "Altitude (mslm)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people have an Altit...
SELECT COUNT("Population") FROM table_34148 WHERE "Altitude (mslm)" > '302' AND "Area (km 2 )" = '29.2'
### Instruction: CREATE TABLE table_35488 ( "Position" real, "Team" text, "Points" real, "Played" real, "Won by 2 or more goals difference" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT MAX("Played") FROM table_35488 WHERE "Lost" > '2' AND "Team" = 'palmeiras' AND "Drawn" < '1'
### Instruction: CREATE TABLE table_34894 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" real, "2nd (m)" real, "Points" real, "Overall WC points (Rank)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 2nd (m) has a 1st (m) of...
SELECT AVG("2nd (m)") FROM table_34894 WHERE "1st (m)" = '120.5' AND "Points" < '249.9'
### Instruction: CREATE TABLE table_61758 ( "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 MAX("Goals against") FROM table_61758 WHERE "Position" > '19' AND "Goals for" < '36'
### Instruction: CREATE TABLE table_59532 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Venue, when Status is '2007 Rugby World Cup', when Against is less than 22,...
SELECT "Venue" FROM table_59532 WHERE "Status" = '2007 rugby world cup' AND "Against" < '22' AND "Date" = '08/09/2007'
### 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 Sex, MIN(Weight) FROM people GROUP BY Sex ORDER BY MIN(Weight)
### Instruction: CREATE TABLE table_9116 ( "Club" text, "Played" 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, answer the follo...
SELECT "Losing bonus" FROM table_9116 WHERE "Played" = '20' AND "Points for" = '353'
### Instruction: CREATE TABLE editor ( Editor_ID int, Name text, Age real ) CREATE TABLE journal_committee ( Editor_ID int, Journal_ID int, Work_Type text ) CREATE TABLE journal ( Journal_ID int, Date text, Theme text, Sales int ) -- Using valid SQLite, answer the following q...
SELECT T1.Name, T1.Editor_ID FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID ORDER BY T1.Name
### Instruction: CREATE TABLE ENROLLED_IN ( Grade VARCHAR, StuID VARCHAR ) CREATE TABLE STUDENT ( LName VARCHAR, StuID VARCHAR ) CREATE TABLE GRADECONVERSION ( gradepoint INTEGER, lettergrade VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- F...
SELECT AVG(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = "Smith"
### Instruction: CREATE TABLE table_15224 ( "Animal" text, "Bahia" real, "Pernambuco" real, "Cear\u00e1" real, "Rio G do Norte" real, "Alagoas" real, "Northeast Total" text, "BR Ranking & %" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT MIN("Pernambuco") FROM table_15224 WHERE "Northeast Total" = '119978'
### Instruction: CREATE TABLE table_64223 ( "Brazil 100%" text, "White 47.73%" text, "Black 7.61%" text, "Yellow 1.09%" text, "Brown (Multiracial) 43.13%" text, "Indians 0,43%" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Yellow fer...
SELECT "Yellow 1.09%" FROM table_64223 WHERE "Brazil 100%" = '0,43407'
### Instruction: CREATE TABLE table_name_87 ( rank VARCHAR, date_of_official_foundation_of_municipality VARCHAR, province VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Rank, when Date of Official Foundation of Municipality is...
SELECT COUNT(rank) FROM table_name_87 WHERE date_of_official_foundation_of_municipality > 1926 AND province = "sistan and baluchestan" AND 2006 > 567449
### Instruction: CREATE TABLE table_38144 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Events larger than 22, and a Earnings ( $ ) of 1,543,192, and a R...
SELECT MIN("Wins") FROM table_38144 WHERE "Events" > '22' AND "Earnings ( $ )" = '1,543,192' AND "Rank" < '2'
### Instruction: CREATE TABLE table_train_237 ( "id" int, "fasting_c_peptide" float, "fasting_plasma_glucose" int, "smoking" bool, "body_mass_index_bmi" float, "serum_25_oh_d_levels" int, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT * FROM table_train_237 WHERE fasting_plasma_glucose <= 260
### Instruction: CREATE TABLE table_57573 ( "Ward" text, "Bello" text, "Ben-Tahir" text, "Doucet" text, "Furtenbacher" text, "Gauthier" text, "Haydon" text, "Larter" text, "Lawrance" text, "Libweshya" text, "Liscumb" text ) -- Using valid SQLite, answer the following questi...
SELECT "Haydon" FROM table_57573 WHERE "Ben-Tahir" = '33'
### Instruction: CREATE TABLE buildings ( id number, name text, city text, height number, stories number, status text ) CREATE TABLE companies ( id number, name text, headquarters text, industry text, sales_billion number, profits_billion number, assets_billion numbe...
SELECT COUNT(DISTINCT industry) FROM companies
### Instruction: CREATE TABLE table_78956 ( "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 MAX("Goals for") FROM table_78956 WHERE "Goals against" > '51' AND "Played" < '30'
### Instruction: CREATE TABLE table_29821 ( "Game" real, "Date" text, "Team" 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 provided ...
SELECT COUNT("Team") FROM table_29821 WHERE "High assists" = 'John Wall (9)' AND "Score" = 'W 97–83 (OT)'
### Instruction: CREATE TABLE table_77474 ( "Year" real, "Championship" text, "Partner" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the most recent year gardnar mulloy played as a partner and s...
SELECT MAX("Year") FROM table_77474 WHERE "Partner" = 'gardnar mulloy' AND "Score" = '12–10, 8–10, 12–10, 6–2'
### Instruction: CREATE TABLE management ( department_ID int, head_ID int, temporary_acting text ) CREATE TABLE department ( Department_ID int, Name text, Creation text, Ranking int, Budget_in_Billions real, Num_Employees real ) CREATE TABLE head ( head_ID int, name text, ...
SELECT Name, Budget_in_Billions FROM department ORDER BY Name DESC
### Instruction: CREATE TABLE table_59304 ( "Country" text, "Electricity production (Kw/h, billion)" real, "% Coal" real, "% Natural gas" real, "% Oil" real, "% Hydropower" real, "% Other renewable" real, "% Nuclear power" real ) -- Using valid SQLite, answer the following questions fo...
SELECT MAX("% Hydropower") FROM table_59304 WHERE "% Coal" = '4.9' AND "% Nuclear power" > '0'
### Instruction: CREATE TABLE storm ( Storm_ID int, Name text, Dates_active text, Max_speed int, Damage_millions_USD real, Number_Deaths int ) CREATE TABLE region ( Region_id int, Region_code text, Region_name text ) CREATE TABLE affected_region ( Region_id int, Storm_ID in...
SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1
### Instruction: CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar ) CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE geographic ( city_name varchar, county...
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'alameda' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
### Instruction: CREATE TABLE table_name_89 ( name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which name had a bodyweight bigger than 89.64, a total (k...
SELECT name FROM table_name_89 WHERE bodyweight > 89.64 AND total__kg_ > 310 AND clean_ & _jerk < 207.5 AND snatch > 165
### 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(Height) FROM people GROUP BY Sex ORDER BY SUM(Height) DESC
### Instruction: CREATE TABLE table_train_44 ( "id" int, "pregnancy_or_lactation" bool, "severe_sepsis" bool, "corticosteroid_therapy" bool, "immune_suppression" bool, "hepatic_disease" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the follow...
SELECT * FROM table_train_44 WHERE severe_sepsis = 1 OR septic_shock = 1
### Instruction: CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE has_allergy ( stuid number, allergy text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) -- U...
SELECT T2.allergytype, COUNT(*) FROM has_allergy AS T1 JOIN allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype
### Instruction: CREATE TABLE table_24969 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT "U.S. viewers (millions)" FROM table_24969 WHERE "Title" = 'Now You Lift Your Eyes to the Sun'
### Instruction: CREATE TABLE table_203_338 ( id number, "#" number, "title" text, "date" text, "director" text, "story" text, "synopsis" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the next cartoon directed by r...
SELECT "title" FROM table_203_338 WHERE "director" = 'robert mckimson' AND "date" > (SELECT "date" FROM table_203_338 WHERE "title" = 'le quiet squad') ORDER BY "date" LIMIT 1
### Instruction: CREATE TABLE wedding ( Church_ID int, Male_ID int, Female_ID int, Year int ) CREATE TABLE church ( Church_ID int, Name text, Organized_by text, Open_Date int, Continuation_of text ) CREATE TABLE people ( People_ID int, Name text, Country text, Is_Ma...
SELECT Country, COUNT(*) FROM people GROUP BY Country ORDER BY COUNT(*)
### Instruction: CREATE TABLE table_25195 ( "June 10-11" text, "March 27-29" text, "January 15-16" text, "November 3" text, "August 21-22" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What value can you find under the column 'august 21-22' and the...
SELECT "August 21-22" FROM table_25195 WHERE "June 10-11" = 'June 11, 1983'
### Instruction: CREATE TABLE table_204_639 ( id number, "poll company" text, "source" text, "publication date" text, "psuv" number, "opposition" number, "undecided" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the next publicat...
SELECT "source" FROM table_204_639 WHERE id = (SELECT id FROM table_204_639 WHERE "publication date" = 'june 2010' AND "source" = 'radio nacional de venezuela') + 1
### Instruction: CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE College ( cName varchar(20), state varchar(2), enr numeric(5,0) ) CREATE TABLE Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS ...
SELECT cName, MIN(enr) FROM College GROUP BY state
### Instruction: CREATE TABLE table_3507 ( "Year" real, "Qatari Male" real, "Qatari Female" real, "Total Qatari" real, "Non Qatari Male" real, "Non Qatari Female" real, "Total Non Qatar" real, "Total Male" real, "Total Female" real, "Grand Total" real ) -- Using valid SQLite, a...
SELECT "Total Non Qatar" FROM table_3507 WHERE "Grand Total" = '5814'
### Instruction: CREATE TABLE table_name_50 ( engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total engine capacity of the a4 transm...
SELECT COUNT(engine_capacity) FROM table_name_50 WHERE transmission = "a4" AND mpg_us_urban > 19 AND mpg_us_extra_urban > 38.6 AND model = "aveo"
### Instruction: CREATE TABLE table_204_549 ( id number, "series\nnumber" text, "key" text, "composed" text, "published" text, "opus no." text, "brown" text, "kobylanska" text, "chominski" text, "dedication" text, "notes" text ) -- Using valid SQLite, answer the following q...
SELECT "published" - "composed" FROM table_204_549 WHERE "series\nnumber" = '1-4'
### Instruction: CREATE TABLE table_204_543 ( id number, "national team" text, "title(s)\nrepresented" text, "first\nworn" number, "number\nof stars" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- germany first wore them in 1996 ...
SELECT "national team" FROM table_204_543 WHERE "first\nworn" > (SELECT "first\nworn" FROM table_204_543 WHERE "national team" = 'germany') ORDER BY "first\nworn" LIMIT 1
### Instruction: CREATE TABLE table_27279050_3 ( last_current_driver_s__3_november_2013 VARCHAR, first_driver_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the last/current driver(s) 3 november 2013 when first driver(s) is marlon st ckinger , kota...
SELECT last_current_driver_s__3_november_2013 FROM table_27279050_3 WHERE first_driver_s_ = "Marlon Stöckinger , Kotaro Sakurai ( 2011 )"
### Instruction: CREATE TABLE table_73032 ( "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 "Township" FROM table_73032 WHERE "GEO ID" = '3807116660'
### Instruction: 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 ) CREATE TABLE train_station ( Train_ID int, Station_ID int ) CREATE TABLE trai...
SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY Location DESC
### Instruction: CREATE TABLE table_66754 ( "Name of System" text, "Location" text, "Traction Type" text, "Date (From)" text, "Date (To)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what location did the event that used electric traction and s...
SELECT "Location" FROM table_66754 WHERE "Name of System" = 'atm (1880–1911) geta (1911–1944)' AND "Traction Type" = 'electric'
### Instruction: CREATE TABLE table_203_592 ( id number, "institution" text, "location" text, "athletic nickname" text, "undergraduate enrollment" number, "graduate enrollment" number, "total enrollment" number, "2013 endowment\n(and us rank)" text, "academic staff" number, "mott...
SELECT "graduate enrollment" FROM table_203_592 WHERE "institution" = 'yale university'
### Instruction: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ...
SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name
### Instruction: CREATE TABLE table_204_885 ( id number, "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "agg." text, "bye" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was their last...
SELECT "opponent" FROM table_204_885 WHERE "competition" = 'uefa cup' AND "season" = '2007-08' ORDER BY id DESC LIMIT 1
### Instruction: CREATE TABLE table_204_161 ( id number, "name" text, "1968 cf\ndesignator" text, "place of\nmanufacture" text, "primary\nrole(s)" text, "service\nperiod" text, "#\nused" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which...
SELECT "name" FROM table_204_161 WHERE "name" IN ('hawker hart', 'hawker hind') ORDER BY "#\nused" DESC LIMIT 1
### Instruction: CREATE TABLE table_54363 ( "Candidate" text, "Contributions" real, "Loans Received" real, "All Receipts" real, "Operating Expenditures" real, "All Disbursements" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most Re...
SELECT MAX("All Receipts") FROM table_54363 WHERE "Candidate" = 'barack obama' AND "All Disbursements" < '85,176,289'
### Instruction: CREATE TABLE table_22812 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions fo...
SELECT "Year" FROM table_22812 WHERE "Team(s)" = '#14 FitzBradshaw Racing'
### Instruction: CREATE TABLE table_56013 ( "Agent" text, "Melting / boiling point" text, "Effectiveness as blood agent" real, "Persistence, open area" real, "Persistence, enclosed area" real, "Field stability" real, "Storage stability" real, "Toxicity as blood agent" real ) -- Using v...
SELECT COUNT("Field stability") FROM table_56013 WHERE "Agent" = 'cyanogen bromide' AND "Effectiveness as blood agent" > '9'
### Instruction: CREATE TABLE table_27545 ( "Authority" text, "Rate or precept" text, "Budget limit (\u00a3m)" text, "Budget plans (\u00a3m)" text, "Rate limit (p)" text, "Rate change (%)" text, "Desired rate (p)" text, "Desired rate change (%)" text ) -- Using valid SQLite, answer the...
SELECT "Rate limit (p)" FROM table_27545 WHERE "Desired rate (p)" = '162'
### Instruction: CREATE TABLE table_204_455 ( id number, "rd." number, "grand prix" text, "date" text, "location" text, "pole position" text, "fastest lap" text, "winning driver" text, "constructor" text, "report" text ) -- Using valid SQLite, answer the following questions for...
SELECT COUNT(*) FROM table_204_455 WHERE "rd." < (SELECT "rd." FROM table_204_455 WHERE "pole position" = 'alain prost' ORDER BY "rd." LIMIT 1)
### Instruction: CREATE TABLE table_14737 ( "Unit" text, "Reactor type" text, "Net capacity" text, "Gross capacity" text, "Construction started" text, "Electricity grid" text, "Commercial operation" text, "Shutdown" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "Net capacity" FROM table_14737 WHERE "Gross capacity" = '1,126 mw' AND "Unit" = 'tianwan-4'
### Instruction: CREATE TABLE ship ( ship_id number, name text, type text, nationality text, tonnage number ) CREATE TABLE mission ( mission_id number, ship_id number, code text, launched_year number, location text, speed_knots number, fate text ) -- Using valid SQLite...
SELECT type FROM ship WHERE tonnage > 6000 INTERSECT SELECT type FROM ship WHERE tonnage < 4000
### Instruction: CREATE TABLE table_1731 ( "N" real, "P" text, "Name" text, "EU" text, "Country" text, "Age" real, "Type" text, "Moving from" text, "Transfer window" text, "Ends" text, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following ques...
SELECT "Name" FROM table_1731 WHERE "Type" = 'Free Agent' AND "Country" = 'NGR ENG'
### 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 Date_of_Birth, Height FROM people ORDER BY Height
### Instruction: CREATE TABLE table_204_334 ( id number, "opposition" text, "matches" number, "won" number, "drawn" number, "lost" number, "for" number, "against" number, "win%" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which te...
SELECT "opposition" FROM table_204_334 WHERE "opposition" <> 'delhi wizards' AND "win%" = (SELECT "win%" FROM table_204_334 WHERE "opposition" = 'delhi wizards')
### Instruction: CREATE TABLE table_40550 ( "Race" text, "Pole position" text, "Fastest lap" text, "Most laps led" text, "Winning driver" text, "Winning team" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Winning D...
SELECT "Winning driver" FROM table_40550 WHERE "Most laps led" = 'dario franchitti' AND "Pole position" = 'hélio castroneves'
### Instruction: CREATE TABLE table_1635 ( "Period" text, "% trains arriving within 5 mins of scheduled time (over three months)" text, "Change over same quarter the previous year" text, "% trains arriving within 5 mins of scheduled time Moving Annual Average (MAA)" text, "Change over previous year ...
SELECT "Period" FROM table_1635 WHERE "% trains arriving within 5 mins of scheduled time Moving Annual Average (MAA)" = '89.6%'
### Instruction: CREATE TABLE table_57781 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when the Golden State Wa...
SELECT "Score" FROM table_57781 WHERE "Visitor" = 'golden state warriors' AND "Attendance" > '18,997' AND "Date" = '3/7'
### Instruction: CREATE TABLE market ( market_id number, district text, num_of_employees number, num_of_shops number, ranking number ) CREATE TABLE phone ( name text, phone_id number, memory_in_g number, carrier text, price number ) CREATE TABLE phone_market ( market_id num...
SELECT name FROM phone WHERE carrier = "Sprint" OR carrier = "TMobile"
### Instruction: CREATE TABLE table_74170 ( "Game" real, "Date" text, "Team" 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 provided ...
SELECT "High assists" FROM table_74170 WHERE "Location Attendance" = 'Madison Square Garden 19,763' AND "Record" = '39–38'
### Instruction: CREATE TABLE table_40032 ( "Country" text, "Men's race" real, "Women's race" real, "Men's wheelchair" real, "Women's Wheelchair" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the Country is Mexico, Women's ra...
SELECT AVG("Total") FROM table_40032 WHERE "Men's race" > '0' AND "Country" = 'mexico' AND "Women's race" < '0'
### Instruction: CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar ) CREATE TABLE geographic ( city_name varchar, county varchar, region varchar ) CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name ...
SELECT COUNT(*) FROM geographic, restaurant WHERE geographic.region = 'bay area' AND restaurant.city_name = geographic.city_name AND restaurant.food_type = 'chinese'
### Instruction: CREATE TABLE table_60991 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT MIN("Position") FROM table_60991 WHERE "Points 1" = '39' AND "Goals Against" > '49'
### Instruction: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ...
SELECT Name, COUNT(Name) FROM Products WHERE Price <= 200 GROUP BY Name ORDER BY Name
### Instruction: CREATE TABLE table_44113 ( "Year" real, "Regional GVA" real, "Agriculture" real, "Industry" real, "Services" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Services, when Year is greater than 2003, when Industry ...
SELECT AVG("Services") FROM table_44113 WHERE "Year" > '2003' AND "Industry" > '1,465' AND "Regional GVA" > '9,432'
### Instruction: CREATE TABLE table_10226 ( "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. -- Where was the game played when ...
SELECT "Venue" FROM table_10226 WHERE "Crowd" > '14,534' AND "Home team score" = '13.22 (100)'
### Instruction: CREATE TABLE table_204_722 ( id number, "season" text, "series" text, "team" text, "races" number, "wins" number, "poles" number, "f/lap" number, "podiums" number, "points" number, "position" text ) -- Using valid SQLite, answer the following questions for ...
SELECT "team" FROM table_204_722 WHERE "team" <> 'carlin motorsport' AND "season" = 2011
### Instruction: CREATE TABLE table_41748 ( "Variant id" text, "5\u2019UTR splice" text, "Coding" text, "3\u2019UTR sequence" text, "GenBank id" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 5'utr splice's coding is 1a 2, when the Variant id ...
SELECT "5\u2019UTR splice" FROM table_41748 WHERE "Coding" = '1a 2' AND "Variant id" = 'abd''1a 2'
### Instruction: CREATE TABLE table_17823 ( "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 COUNT("Points for") FROM table_17823 WHERE "Lost" = '12'
### Instruction: CREATE TABLE table_11159 ( "Name" text, "Bodyweight" real, "Snatch" real, "Clean & jerk" text, "Total (kg)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the name of the athlete with a Snatch larger than 140, Bodyweight smal...
SELECT "Name" FROM table_11159 WHERE "Snatch" > '140' AND "Bodyweight" < '84.55' AND "Clean & jerk" = '192.5'
### Instruction: CREATE TABLE table_58706 ( "Year" real, "Binibining Pilipinas-Universe" text, "Binibining Pilipinas-International" text, "Miss Maja Pilipinas" text, "Binibining Pilipinas-Tourism" text, "First runner-up" text, "Second runner-up" text ) -- Using valid SQLite, answer the fol...
SELECT "First runner-up" FROM table_58706 WHERE "Miss Maja Pilipinas" = 'nanette prodigalidad'
### Instruction: CREATE TABLE table_12645 ( "South West DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Wins, when Losses is less than 10, whe...
SELECT COUNT("Wins") FROM table_12645 WHERE "Losses" < '10' AND "Against" < '1253' AND "Byes" < '0'
### Instruction: CREATE TABLE table_64988 ( "Name" text, "Position" text, "League Apps" text, "League Goals" real, "FA Cup Apps" real, "FA Cup Goals" real, "League Cup Apps" real, "League Cup Goals" real, "Total Apps" text, "Total Goals" real ) -- Using valid SQLite, answer the...
SELECT COUNT("League Cup Apps") FROM table_64988 WHERE "League Goals" < '0'
### Instruction: CREATE TABLE table_203_94 ( id number, "year" number, "player" text, "country" text, "score" text, "to par" number, "margin\nof victory" text, "course" text, "location" text, "purse ($)" number, "winner's\nshare ($)" number ) -- Using valid SQLite, answer t...
SELECT COUNT(*) FROM table_203_94 WHERE "course" = 'cog hill golf & country club'
### Instruction: CREATE TABLE table_14118 ( "Title" text, "Series" text, "Director" text, "Production Number" text, "Release date" text, "reissue?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the production number that has no reissue ...
SELECT "Production Number" FROM table_14118 WHERE "reissue?" = 'no' AND "Series" = 'lt' AND "Director" = 'robert mckimson' AND "Title" = 'the up-standing sitter'
### Instruction: CREATE TABLE table_17848 ( "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 "Points for" FROM table_17848 WHERE "Tries for" = '29'
### Instruction: CREATE TABLE table_8777 ( "Tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "Career SR" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For ...
SELECT "Tournament" FROM table_8777 WHERE "1990" = '0 / 4'