instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_37941 ( "School" text, "City" text, "Team Name" text, "Enrollment" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which city is Lawrenceburg ...
SELECT "City" FROM table_37941 WHERE "IHSAA Football Class" = 'aaa' AND "Enrollment" < '676' AND "School" = 'lawrenceburg'
### Instruction: CREATE TABLE table_204_188 ( id number, "rank" number, "player" text, "points" number, "points defending" number, "points won" number, "new points" number, "withdrew due to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "player" FROM table_204_188 WHERE "player" IN ('kim clijsters', 'nikolay davydenko') AND "withdrew due to" = 'broken wrist'
### Instruction: CREATE TABLE table_20402 ( "Player" text, "Matches" real, "Overs" text, "Maidens" real, "Runs" real, "Wickets" real, "Average" text, "Economy" text, "5w" real, "10w" real, "Best Bowling" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT MAX("5w") FROM table_20402 WHERE "Average" = '21.33'
### Instruction: CREATE TABLE table_75316 ( "Date" text, "Type" text, "Record description" text, "Achievement" text, "Pilot" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Type of mi-10r, and a Record description of altitude with kg (lb) payload, an...
SELECT "Date" FROM table_75316 WHERE "Type" = 'mi-10r' AND "Record description" = 'altitude with kg (lb) payload' AND "Pilot" = 'g.v. alfyorov'
### Instruction: CREATE TABLE table_203_431 ( 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. -- according to this table , did mexi...
SELECT "opponent" FROM table_203_431 WHERE "opponent" IN ('mexico', 'italy') AND "competition" = 'friendly' GROUP BY "opponent" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_45645 ( "Position" real, "best year" text, "best 2-year period" text, "best 3-year period" text, "best 5-year period" text, "best 10-year period" text, "best 15-year period" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT "best 5-year period" FROM table_45645 WHERE "best 15-year period" = 'alekhine; lasker'
### Instruction: CREATE TABLE table_204_914 ( id number, "year" number, "team" text, "games" number, "attempts" number, "yards" number, "ypc" number, "long" number, "tds" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did he score ...
SELECT "team" FROM table_204_914 WHERE "team" IN ('los angeles rams', 'indianapolis colts') GROUP BY "team" ORDER BY SUM("tds") DESC LIMIT 1
### Instruction: CREATE TABLE table_63669 ( "School" text, "City" text, "Team Name" text, "Enrollment 08-09" real, "IHSAA Class" text, "IHSAA Class Football" text, "County" text, "Year Joined (Or Joining)" real, "Previous Conference" text ) -- Using valid SQLite, answer the followi...
SELECT COUNT("Enrollment 08-09") FROM table_63669 WHERE "School" = 'franklin county'
### Instruction: CREATE TABLE table_31296 ( "Round" real, "Country" text, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Rider" text, "Winning Team" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Circuit" FROM table_31296 WHERE "Fastest Lap" = 'Sam Lowes' AND "Winning Rider" = 'Luca Scassa'
### Instruction: CREATE TABLE table_44427 ( "Year" real, "Imports (tonnes)" real, "Exports (tonnes)" real, "Total trade (tonnes)" real, "Vessels entering port" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Total trade (tonnes) wh...
SELECT SUM("Total trade (tonnes)") FROM table_44427 WHERE "Imports (tonnes)" = '111,677' AND "Vessels entering port" < '129'
### Instruction: CREATE TABLE mission ( mission_id number, ship_id number, code text, launched_year number, location text, speed_knots number, fate text ) CREATE TABLE ship ( ship_id number, name text, type text, nationality text, tonnage number ) -- Using valid SQLite...
SELECT DISTINCT T1.fate FROM mission AS T1 JOIN ship AS T2 ON T1.ship_id = T2.ship_id WHERE T2.nationality = "United States"
### Instruction: CREATE TABLE table_6868 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Top-25 when events shows 12, ...
SELECT MIN("Top-25") FROM table_6868 WHERE "Events" = '12' AND "Top-5" = '1' AND "Cuts made" < '11'
### 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, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex
### Instruction: CREATE TABLE table_72751 ( "Rank" real, "City 1" text, "City 2" text, "2012 Passengers (in millions)" text, "2011 Passengers (in millions)" text, "Distance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many passengers (in ...
SELECT "2011 Passengers (in millions)" FROM table_72751 WHERE "2012 Passengers (in millions)" = '6.640'
### Instruction: CREATE TABLE table_73424 ( "Pos" real, "Club" text, "Games played" real, "Red/Yellow cards" real, "Positive play" real, "Respect toward opponents" real, "Respect toward referee" real, "Behaviour of team officials" real, "Points" real, "Score" text, "Average" ...
SELECT MAX("Pos") FROM table_73424 WHERE "Club" = 'West Bromwich Albion'
### Instruction: CREATE TABLE table_73722 ( "Stage" real, "Winner" text, "General Classification" text, "Youth Classification" text, "Mountains Classification" text, "Sprint Classification" text, "Most Courageous" text, "Team Classification" text ) -- Using valid SQLite, answer the fol...
SELECT "Youth Classification" FROM table_73722 WHERE "Sprint Classification" = 'Mark Cavendish' AND "Most Courageous" = 'Maarten Tjallingii'
### Instruction: CREATE TABLE table_11246 ( "Year" text, "Title" text, "US 100" text, "US AC" text, "Lead singer" text, "Album" text, "Label and cat#" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the US 100 rank of Champlin's Chica...
SELECT "US 100" FROM table_11246 WHERE "Lead singer" = 'champlin' AND "Album" = 'chicago 19' AND "US AC" = '1'
### Instruction: CREATE TABLE table_train_23 ( "id" int, "in_another_study" bool, "immune_suppression" bool, "hiv_infection" bool, "fio2" float, "head_injury" bool, "heart_disease" bool, "steroid_therapy" bool, "chemotherapy" bool, "edema" bool, "NOUSE" float ) -- Using val...
SELECT * FROM table_train_23 WHERE fio2 > 0.7
### Instruction: CREATE TABLE table_train_88 ( "id" int, "mini_mental_state_examination_mmse" int, "mild_cognitive_impairment" bool, "body_weight" float, "renal_disease" bool, "memantine" bool, "rivastigmine" bool, "lewy_body_dementia" bool, "NOUSE" float ) -- Using valid SQLite, a...
SELECT * FROM table_train_88 WHERE rivastigmine = 1 OR memantine = 1
### 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 Price, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code
### Instruction: CREATE TABLE table_name_96 ( type VARCHAR, date VARCHAR, president VARCHAR, year VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Type with a Year larger than 2010, and a Location with justus lipsius b...
SELECT type FROM table_name_96 WHERE year > 2010 AND location = "justus lipsius building, brussels" AND president = "herman van rompuy (2nd term)" AND date = "28–29 june"
### Instruction: CREATE TABLE table_22518 ( "Number" real, "Sanskrit" text, "International Alphabet of Sanskrit Transliteration" text, "Sanskrit gloss" text, "Western name" text, "Greek" text, "Gloss" text, "Tattva (Element)" text, "Quality" text, "Ruling Planet" text ) -- Usin...
SELECT "Gloss" FROM table_22518 WHERE "Sanskrit gloss" = 'twins'
### Instruction: CREATE TABLE table_66832 ( "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 foll...
SELECT "Club" FROM table_66832 WHERE "Tries against" = '43' AND "Try bonus" = '9'
### Instruction: CREATE TABLE table_46743 ( "Country" text, "Amateur Era" real, "Open Era" real, "All-time" real, "First title" real, "Last title" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest All-Time, when First Title is be...
SELECT MIN("All-time") FROM table_46743 WHERE "First title" < '1974' AND "Last title" = '1933' AND "Amateur Era" > '2'
### Instruction: CREATE TABLE table_17782 ( "Day (see Irregularities )" text, "Monday First Day" text, "Tuesday Second Day" text, "Wednesday Third Day" text, "Thursday Fourth Day" text, "Friday Fifth Day" text, "Saturday Sixth Day" text, "Sunday Seventh Day" text ) -- Using valid SQLit...
SELECT "Saturday Sixth Day" FROM table_17782 WHERE "Day (see Irregularities )" = 'Croatian'
### Instruction: CREATE TABLE table_38625 ( "Nation" text, "T Score" real, "A Score" real, "E Score" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the total of A Score when the E Score was greater than 9.383, total was less t...
SELECT SUM("A Score") FROM table_38625 WHERE "E Score" > '9.383' AND "Total" < '19.716' AND "T Score" > '4'
### Instruction: CREATE TABLE table_59616 ( "Combined" text, "50 yard Freestyle" text, "100 yard Freestyle" text, "200 yard Freestyle" text, "500 yard Freestyle" text, "100 yard Backstroke" text, "100 yard Butterfly" text ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT "50 yard Freestyle" FROM table_59616 WHERE "100 yard Butterfly" = 'diving'
### Instruction: CREATE TABLE table_895 ( "Model Number" text, "Stepping" text, "Frequency" text, "L2 Cache" text, "HT" text, "Multi 1" text, "V Core" text, "TDP" text, "Socket" text, "Release Date" text, "Part Number(s)" text ) -- Using valid SQLite, answer the following q...
SELECT "Frequency" FROM table_895 WHERE "Part Number(s)" = 'ADO520BIAA5DO'
### Instruction: CREATE TABLE table_204_225 ( id number, "rank" number, "country/territory" text, "miss supranational" number, "1st runner-up" number, "2nd runner-up" number, "3rd runner-up" number, "4th runner-up" number, "semifinalists" number, "total" number ) -- Using valid...
SELECT "1st runner-up" FROM table_204_225 WHERE "country/territory" = 'belarus'
### Instruction: CREATE TABLE table_57574 ( "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 "Gauthier" FROM table_57574 WHERE "Liscumb" = '15'
### Instruction: CREATE TABLE table_80449 ( "Race" text, "Dist (f)" real, "Course" text, "Class" text, "Prize (\u00a3K)" real, "Odds" text, "Runners" real, "Placing" real, "Margin" text, "Time" text, "Jockey" text, "Trainer" text ) -- Using valid SQLite, answer the foll...
SELECT "Runners" FROM table_80449 WHERE "Course" = 'longchamp'
### Instruction: CREATE TABLE table_38472 ( "Storm name" text, "Dates active" text, "Max 1-min wind mph (km/h)" text, "Min. press. ( mbar )" text, "Damage (millions USD )" text, "Deaths" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the...
SELECT "Damage (millions USD )" FROM table_38472 WHERE "Min. press. ( mbar )" = '972' AND "Deaths" = '52'
### Instruction: CREATE TABLE table_35273 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text, "10:30" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 9:30 program airing on the station...
SELECT "9:30" FROM table_35273 WHERE "8:30" = 'the red green show'
### Instruction: CREATE TABLE table_72739 ( "Episode Number" real, "Air Date" text, "Guest Host" text, "Musical Guest (Song performed)" text, "Who knows the most about the guest host? Panelists" text, "Coat Of Cash Wearing Celebrity" text ) -- Using valid SQLite, answer the following questions...
SELECT MIN("Episode Number") FROM table_72739 WHERE "Who knows the most about the guest host? Panelists" = 'Reggie Yates and Kelly Osbourne'
### Instruction: CREATE TABLE table_train_35 ( "id" int, "pregnancy_or_lactation" bool, "glucocorticoid_history" bool, "impaired_consciousness" bool, "hematologic_disease" bool, "glasgow_come_score_gcs" int, "liver_disease" bool, "NOUSE" float ) -- Using valid SQLite, answer the follow...
SELECT * FROM table_train_35 WHERE glucocorticoid_history = 1
### Instruction: CREATE TABLE table_51742 ( "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. -- On what date did the away team ...
SELECT "Date" FROM table_51742 WHERE "Crowd" > '15,601' AND "Away team score" = '13.13 (91)'
### Instruction: CREATE TABLE table_17378 ( "Index (Year)" text, "Author / Editor / Source" text, "Year of publication" text, "Countries sampled" real, "World Ranking (1)" text, "Ranking L.A. (2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- h...
SELECT COUNT("Countries sampled") FROM table_17378 WHERE "Year of publication" = '2007' AND "Ranking L.A. (2)" = '7th'
### Instruction: CREATE TABLE table_18633 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the incumbent with candidates being sam hobbs (d...
SELECT "Incumbent" FROM table_18633 WHERE "Candidates" = 'Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%'
### Instruction: CREATE TABLE table_7824 ( "Country" text, "2010" real, "2011" real, "2012" real, "2013" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of participants in 2013 when there were more than 5 participants in 201...
SELECT MIN("2013") FROM table_7824 WHERE "2010" > '5' AND "Country" = 'germany' AND "2012" < '4'
### Instruction: CREATE TABLE table_55598 ( "Year" real, "Network" text, "Play-by-play" text, "Color commentator(s)" text, "Ice level reporters" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Ice level reporter after 1992 with the color c...
SELECT "Ice level reporters" FROM table_55598 WHERE "Color commentator(s)" = 'john davidson' AND "Play-by-play" = 'marv albert' AND "Year" > '1992'
### Instruction: CREATE TABLE table_79286 ( "TV Station (Operator)" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011 1H" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest 2011 1H ...
SELECT MAX("2011 1H") FROM table_79286 WHERE "2005" > '28'
### Instruction: CREATE TABLE trained_in ( physician VARCHAR, treatment VARCHAR ) CREATE TABLE physician ( employeeid VARCHAR, name VARCHAR ) CREATE TABLE procedures ( name VARCHAR, cost INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find a...
SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
### Instruction: CREATE TABLE table_27884 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Settlement" FROM table_27884 WHERE "Cyrillic Name Other Names" = 'Војводинци (Romanian: Voivodinţ)'
### Instruction: CREATE TABLE table_4884 ( "Year" real, "Aircraft kilometers" text, "Departures" real, "Flying hours" real, "Passengers" real, "Seat factor" text, "Employees" text, "Profit/loss" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT MIN("Year") FROM table_4884 WHERE "Seat factor" = '68%' AND "Flying hours" > '105,579'
### Instruction: CREATE TABLE table_17136 ( "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_17136 WHERE "Production code" = '3T5769'
### 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, MIN(Weight) FROM people GROUP BY Sex ORDER BY MIN(Weight)
### Instruction: CREATE TABLE table_13165 ( "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 SUM("Points") FROM table_13165 WHERE "Goals against" = '35' AND "Losses" < '13'
### Instruction: CREATE TABLE table_24689 ( "Location" text, "July (\u00b0C)" text, "July (\u00b0F)" text, "January (\u00b0C)" text, "January (\u00b0F)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of January ( C) temperat...
SELECT COUNT("January (\u00b0C)") FROM table_24689 WHERE "July (\u00b0C)" = '22/13'
### Instruction: CREATE TABLE table_74628 ( "Club" text, "Total points" text, "Bonus points" text, "Match points" text, "Games" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Diff" text ) -- Using valid SQLite, answer the following questions for the...
SELECT "Match points" FROM table_74628 WHERE "Lost" = '18' AND "Bonus points" = '11'
### Instruction: CREATE TABLE table_4365 ( "Year" real, "Wins" real, "Losses" real, "Percentage" real, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most losses that the Royals had when they had a percentage over 0.461, won ove...
SELECT MAX("Losses") FROM table_4365 WHERE "Percentage" > '0.461' AND "Wins" > '86' AND "Finish" = '2nd' AND "Year" = '1953'
### Instruction: CREATE TABLE table_51446 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which top ten, having less than 12 cuts less th...
SELECT MAX("Top-10") FROM table_51446 WHERE "Cuts made" < '12' AND "Top-5" < '2' AND "Events" < '14'
### Instruction: CREATE TABLE table_4247 ( "Year" real, "Matches" real, "Innings" real, "Not out" real, "Runs" real, "High Score" text, "100" real, "50" real, "Average" text, "Strike rate" text, "Catches/Stumpings" text ) -- Using valid SQLite, answer the following question...
SELECT MIN("Runs") FROM table_4247 WHERE "Average" = '42.36'
### Instruction: CREATE TABLE table_72132 ( "Village (German)" text, "Village (Slovenian)" text, "Number of people 1991" real, "Percent of Slovenes 1991" text, "Percent of Slovenes 1951" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Provide with th...
SELECT "Village (German)" FROM table_72132 WHERE "Village (Slovenian)" = 'Sele Srednji Kot'
### Instruction: CREATE TABLE table_48230 ( "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 "Team" FROM table_48230 WHERE "High rebounds" = 'antawn jamison (10)' AND "Date" = 'november 5'
### Instruction: CREATE TABLE table_dev_58 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "intra_aortic_balloon_pump_iabp" bool, "systemic_arterial_po2" int, "creatinine_clearance_cl" float, "supplemental_oxygen" bool, "age" float, "NOUSE" float ) -- Using valid SQLite...
SELECT * FROM table_dev_58 WHERE pregnancy_or_lactation = 1
### Instruction: CREATE TABLE table_37541 ( "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. -- Which Against is the highest o...
SELECT MAX("Against") FROM table_37541 WHERE "Drawn" > '1' AND "Team" = 'corinthians' AND "Played" < '7'
### Instruction: CREATE TABLE table_train_195 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "allergy_to_perflutren" bool, "heart_disease" bool, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables p...
SELECT * FROM table_train_195 WHERE (gender = 'male' OR gender = 'female') AND (age >= 20 AND age <= 75)
### Instruction: CREATE TABLE table_34582 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" real, "2nd (m)" real, "Points" real, "Overall FHT points" text, "Overall WC points (Rank)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT AVG("Rank") FROM table_34582 WHERE "Points" < '274.4' AND "Name" = 'roman koudelka'
### Instruction: CREATE TABLE table_203_782 ( id number, "year" number, "actor" text, "award" text, "category" text, "role" text, "episode" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the number of awards recei...
SELECT COUNT(*) FROM table_203_782 WHERE "actor" = 'nancy cartwright' AND "year" >= 1992 AND "year" < 2011
### Instruction: CREATE TABLE table_41113 ( "Headphone Model" text, "Headphone Class" text, "Driver-matched dB" real, "Construction" text, "Earpads" text, "Termination" text, "US MSRP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What earp...
SELECT "Earpads" FROM table_41113 WHERE "Driver-matched dB" > '0.05' AND "US MSRP" = '$79'
### Instruction: CREATE TABLE table_66369 ( "Name" text, "Position" text, "League Apps" text, "League Goals" real, "FA Cup Apps" real, "FA Cup Goals" real, "League Cup Apps" text, "League Cup Goals" real, "Total Apps" text, "Total Goals" real ) -- Using valid SQLite, answer the...
SELECT SUM("FA Cup Goals") FROM table_66369 WHERE "Total Apps" = '10 (4)'
### Instruction: CREATE TABLE table_32437 ( "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 SUM("# of Bids") FROM table_32437 WHERE "Win %" = '.500' AND "Conference" = 'ohio valley'
### Instruction: CREATE TABLE table_18083 ( "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_18083 WHERE "Points against" = '522'
### Instruction: CREATE TABLE table_2280 ( "Constituency" text, "Electorate" real, "s Spoilt vote" real, "Total poll (%)" text, "For (%)" text, "Against (%)" text, "\u00b1 Yes side 2008 (%)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Whe...
SELECT "For (%)" FROM table_2280 WHERE "\u00b1 Yes side 2008 (%)" = '+20.3'
### Instruction: CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time ) CREATE TABLE movie ( mid number, title text, year number, director text ) CREATE TABLE reviewer ( rid number, name text ) -- Using valid SQLite, answer the following questions for t...
SELECT T1.title, T1.director FROM movie AS T1 JOIN movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title
### Instruction: CREATE TABLE table_17976 ( "Value" text, "Diameter" text, "Thickness" text, "Mass" text, "Composition" text, "Edge" text, "Obverse" text, "Reverse" text, "first minting" real, "issue" text, "withdrawal" text, "lapse" text ) -- Using valid SQLite, answer...
SELECT "first minting" FROM table_17976 WHERE "Mass" = '3.7 g'
### Instruction: CREATE TABLE table_20017 ( "Census Year" real, "Number of Muslims 000" real, "Population of England and Wales 000" real, "Muslim (% of Total population)" text, "Registered Mosques" real, "Muslims per mosque" real ) -- Using valid SQLite, answer the following questions for the ...
SELECT "Muslim (% of Total population)" FROM table_20017 WHERE "Population of England and Wales 000" = '49634'
### 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 name FROM wine ORDER BY score LIMIT 1
### Instruction: CREATE TABLE table_1752 ( "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 against" FROM table_1752 WHERE "Points for" = '667'
### Instruction: CREATE TABLE accounts ( custid number, name text ) CREATE TABLE checking ( custid number, balance number ) CREATE TABLE savings ( custid number, balance number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name and total ...
SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance
### Instruction: CREATE TABLE table_75570 ( "Region" text, "Country" text, "Total Population (2011 est)" real, "Hindu % of population" text, "Hindu total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Total Population (2011 est) larger than 30,262,...
SELECT "Country" FROM table_75570 WHERE "Total Population (2011 est)" > '30,262,610' AND "Hindu total" = '63,718'
### Instruction: CREATE TABLE table_203_34 ( id number, "season" text, "appearance" number, "interchange" number, "tries" number, "goals" number, "f/g" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which team name had...
SELECT "season" FROM table_203_34 WHERE "season" IN ('bulldogs', 'roosters', 'tigers') GROUP BY "season" ORDER BY SUM("goals") DESC LIMIT 1
### Instruction: CREATE TABLE reservations ( code number, room text, checkin text, checkout text, rate number, lastname text, firstname text, adults number, kids number ) CREATE TABLE rooms ( roomid text, roomname text, beds number, bedtype text, maxoccupancy num...
SELECT kids FROM reservations WHERE firstname = "ROY" AND lastname = "SWEAZY"
### Instruction: CREATE TABLE table_204_132 ( id number, "year" number, "location" text, "men's individual" text, "women's individual" text, "men's team" text, "women's team" text, "mixed team" text, "ref" number ) -- Using valid SQLite, answer the following questions for the table...
SELECT "location" FROM table_204_132 WHERE "year" > (SELECT "year" FROM table_204_132 WHERE "location" = 'tainan') ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE perpetrator ( Perpetrator_ID int, People_ID int, Date text, Year real, Location text, Country text, Killed int, Injured int ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, "Home Town" text ) -- Using valid S...
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*)
### Instruction: CREATE TABLE table_61575 ( "Name" text, "Type" text, "R.A. ( J2000 )" text, "Dec. ( J2000 )" text, "Redshift (km/ s )" text, "Apparent Magnitude" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Dec. (J2000) has a Redshift (...
SELECT "Dec. ( J2000 )" FROM table_61575 WHERE "Redshift (km/ s )" = '1331 ± 3'
### Instruction: CREATE TABLE table_30822 ( "Rank" real, "Rider" text, "Country" text, "Winning span" text, "MotoGP/500cc" real, "350cc" real, "Moto2/250cc" real, "Moto3/125cc" real, "80cc/50cc" real, "Total" real ) -- Using valid SQLite, answer the following questions for the ...
SELECT MIN("MotoGP/500cc") FROM table_30822
### Instruction: CREATE TABLE table_10101 ( "Venue" text, "Hosted" real, "Average" real, "Highest" real, "Lowest" real, "Total" real, "Last Year" text, "Up/Down" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest when the ...
SELECT AVG("Lowest") FROM table_10101 WHERE "Total" < '353,069' AND "Average" > '47,425'
### Instruction: CREATE TABLE table_34961 ( "Eruptions" text, "Country" text, "Location" text, "Year" real, "Volcanic Explosivity Index" text, "Fatalities" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Eruptions have a Location of pacific...
SELECT "Eruptions" FROM table_34961 WHERE "Location" = 'pacific ring of fire' AND "Volcanic Explosivity Index" = '6' AND "Country" = 'peru'
### Instruction: CREATE TABLE table_23088 ( "Rnd" real, "Circuit" text, "LMP1 Winning Team" text, "LMP2 Winning Team" text, "GT2 Winning Team" text, "Challenge Winning Team" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name...
SELECT "LMP1 Winning Team" FROM table_23088 WHERE "Rnd" = '2' AND "LMP2 Winning Team" = 'Adrian Fernández Luis Díaz'
### Instruction: CREATE TABLE table_204_959 ( id number, "club" text, "founded" number, "nickname" text, "location" text, "home ground" text, "entered competition" number, "most recent promotion" number ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "club" FROM table_204_959 WHERE "club" <> 'eltham football club' AND "entered competition" = (SELECT "entered competition" FROM table_204_959 WHERE "club" = 'eltham football club')
### Instruction: CREATE TABLE table_45368 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" real, "Avg. Finish" real, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions fo...
SELECT AVG("Wins") FROM table_45368 WHERE "Top 10" < '0'
### Instruction: CREATE TABLE table_28245 ( "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 COUNT("Localities") FROM table_28245 WHERE "Population density (per km\u00b2)" = '2.5'
### Instruction: CREATE TABLE table_53759 ( "Candidate" text, "Money Raised, 3Q" text, "Loans Received, 3Q" text, "Money Spent, 3Q" text, "Total Receipts" text, "Cash On Hand" text, "Total Debt" text, "After Debt" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Cash On Hand" FROM table_53759 WHERE "After Debt" = '$82,741'
### Instruction: CREATE TABLE table_15082 ( "category" text, "1999" text, "2000" text, "2001" text, "2004" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What car was awarded sub 1 litre in 2000 (won by toyota 1sz-fe 1.0l yaris in 1999)? ### Respo...
SELECT "2000" FROM table_15082 WHERE "1999" = 'toyota 1sz-fe 1.0l yaris' AND "category" = 'sub 1 litre'
### Instruction: CREATE TABLE table_63306 ( "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. -- Which player had a Cross Code Debut of the RL test v Fran...
SELECT "Player" FROM table_63306 WHERE "Cross Code Debut" = 'rl test v france' AND "Year" > '1955' AND "Int'l Debut" = 'ru test v ireland'
### Instruction: CREATE TABLE table_55438 ( "Congress" text, "Short title" text, "Bill number(s)" text, "Date introduced" text, "Sponsor(s)" text, "# of cosponsors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the sponsor for the bill ...
SELECT "Sponsor(s)" FROM table_55438 WHERE "# of cosponsors" < '200' AND "Date introduced" = 'february 28, 2005'
### Instruction: CREATE TABLE table_3038 ( "Character" text, "Original Berkeley Cast" text, "Original Broadway Cast" text, "Original 1st US Tour Cast" text, "Original UK Cast" text, "Original Tokyo / Seoul Tour Cast" text, "Original 3rd US Tour Cast" text ) -- Using valid SQLite, answer th...
SELECT "Original Tokyo / Seoul Tour Cast" FROM table_3038 WHERE "Original 1st US Tour Cast" = 'Nicci Claspell'
### 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(Height) FROM people GROUP BY Sex ORDER BY AVG(Height)
### Instruction: CREATE TABLE table_62318 ( "Golden Rivers" 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 average Wins, when Against is less than 1786, when Loss...
SELECT AVG("Wins") FROM table_62318 WHERE "Against" < '1786' AND "Losses" < '4' AND "Byes" < '2'
### Instruction: CREATE TABLE table_203_93 ( id number, "incumbent" text, "reason for vacancy" text, "appointed successor" text, "date of appointment" text, "elected successor" text, "date of election" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "incumbent" FROM table_203_93 WHERE "date of appointment" < (SELECT "date of appointment" FROM table_203_93 WHERE "incumbent" = 'h. w. whillock') ORDER BY "date of appointment" DESC LIMIT 1
### Instruction: CREATE TABLE table_41907 ( "Single" text, "CCM Chart" text, "Debut" text, "Peak Date" text, "Peak Pos" real, "Total Wks" real, "Spins (since 1998) source: Mediabase" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Sp...
SELECT COUNT("Spins (since 1998) source: Mediabase") FROM table_41907 WHERE "CCM Chart" = 'chr' AND "Peak Pos" < '1'
### Instruction: CREATE TABLE table_25169 ( "Rank" real, "1980-81" text, "1981-82" text, "1982-83" text, "1983-84" text, "1984-85" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many entries for 1983-84 when 1984-85 is Terri Gilreath? ### ...
SELECT COUNT("1983-84") FROM table_25169 WHERE "1984-85" = 'Terri Gilreath'
### Instruction: CREATE TABLE table_3424 ( "Season" text, "Led team in scoring" real, "Led team in rebounding" real, "30 points" real, "20 rebounds" real, "10 rebounds" real, "20-20" real, "Double double" real, "5 blocks" real ) -- Using valid SQLite, answer the following questions...
SELECT "Led team in rebounding" FROM table_3424 WHERE "5 blocks" = '10'
### Instruction: CREATE TABLE table_3913 ( "#" real, "Date" text, "Opponent" text, "Site/Stadium" text, "Score" text, "Win" text, "Loss" text, "Save" text, "Attendance" real, "Overall Record" text, "Pac-10 Record" text ) -- Using valid SQLite, answer the following questions...
SELECT "Overall Record" FROM table_3913 WHERE "Loss" = 'A. Pracher (4-1)'
### Instruction: CREATE TABLE table_19113 ( "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 "Lost" FROM table_19113 WHERE "Club" = 'Colwyn Bay RFC'
### Instruction: CREATE TABLE table_76750 ( "Cap Number" real, "Date" text, "Position" text, "Shirt Number" real, "Home or Away" text, "Venue" text, "Result" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me th...
SELECT MIN("Cap Number") FROM table_76750 WHERE "Date" = '8 february 2009' AND "Shirt Number" > '19'
### Instruction: CREATE TABLE appellations ( no number, appelation text, county text, state text, area text, isava text ) CREATE TABLE grapes ( id number, grape text, color text ) CREATE TABLE wine ( no number, grape text, winery text, appelation text, state tex...
SELECT grape, appelation FROM wine
### Instruction: CREATE TABLE table_train_258 ( "id" int, "gender" string, "autoimmune_disease" bool, "renal_disease" bool, "hepatic_disease" bool, "immune_deficiency_disorder" bool, "active_hepatitis" bool, "body_mass_index_bmi" float, "NOUSE" float ) -- Using valid SQLite, answer...
SELECT * FROM table_train_258 WHERE hepatic_disease = 1 OR active_hepatitis = 1
### Instruction: CREATE TABLE table_47967 ( "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 "Score" FROM table_47967 WHERE "Location/Attendance" = 'groves high school' AND "High assists" = 'giovanni riley (9)'