instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_name_68 ( position VARCHAR, college VARCHAR, years_exp VARCHAR, weight VARCHAR, number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Position, when Weight is greater than 200, when Number is less than ...
SELECT position FROM table_name_68 WHERE weight > 200 AND number < 44 AND years_exp = "9" AND college = "university of new mexico"
### Instruction: CREATE TABLE table_19436 ( "School Year" text, "Class A" text, "Class AA" text, "Class AAA" text, "Class AAAA" text, "Class AAAAA" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which school years have a class a being lindsay an...
SELECT "School Year" FROM table_19436 WHERE "Class A" = 'Lindsay' AND "Class AAA" = 'Cuero'
### Instruction: CREATE TABLE table_name_4 ( laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and...
SELECT MIN(laps) FROM table_name_4 WHERE manufacturer = "yamaha" AND time_retired = "+1:08.312" AND grid < 20
### Instruction: CREATE TABLE table_54508 ( "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. -- When did the away team have a s...
SELECT "Date" FROM table_54508 WHERE "Away team score" = '11.14 (80)'
### Instruction: CREATE TABLE table_9599 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rounds in the fight in Quebec, Canada again...
SELECT COUNT("Round") FROM table_9599 WHERE "Location" = 'quebec, canada' AND "Opponent" = 'david loiseau'
### Instruction: CREATE TABLE table_75651 ( "Borough or Census Area" 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...
SELECT COUNT("Population") FROM table_75651 WHERE "Median family income" = '$71,278'
### Instruction: CREATE TABLE table_204_147 ( id number, "#" number, "date" text, "opponent" text, "score" text, "win" text, "loss" text, "save" text, "attendance" number, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- w...
SELECT COUNT("save") FROM table_204_147 WHERE "opponent" = 'marlins'
### Instruction: CREATE TABLE table_37329 ( "Unit" text, "Russian" text, "Translation" text, "Ratio" real, "Metric value" text, "Avoirdupois value" text, "Ordinary value" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What unit has an Avoird...
SELECT "Unit" FROM table_37329 WHERE "Avoirdupois value" = '57.602 gr.'
### Instruction: CREATE TABLE table_79565 ( "Year" real, "Competition Description" text, "Location" text, "Apparatus" text, "Rank-Final" text, "Score-Final" real, "Rank-Qualifying" text, "Score-Qualifying" real ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT "Score-Final" FROM table_79565 WHERE "Apparatus" = 'ribbon'
### Instruction: CREATE TABLE table_3928 ( "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 a...
SELECT "Location Attendance" FROM table_3928 WHERE "Team" = 'Utah Jazz'
### Instruction: CREATE TABLE table_40710 ( "Location" text, "Control" text, "Type" text, "Enrollment" real, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the enrollment number for the public institution in Golden, Colorado founde...
SELECT AVG("Enrollment") FROM table_40710 WHERE "Control" = 'public' AND "Location" = 'golden, colorado' AND "Founded" > '1874'
### Instruction: CREATE TABLE table_21344 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real, "Competition" text, "Man of the Match" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue of the game wit...
SELECT "Venue" FROM table_21344 WHERE "Man of the Match" = 'Vaclav Zavoral'
### Instruction: CREATE TABLE table_45286 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes th...
SELECT MIN("Total") FROM table_45286 WHERE "Gold" < '2' AND "Rank" = '4' AND "Bronze" < '1'
### Instruction: CREATE TABLE table_31250 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is t...
SELECT "Original air date" FROM table_31250 WHERE "Directed by" = 'Bruce Seth Green'
### Instruction: CREATE TABLE table_36446 ( "Year" text, "Flagship Station" text, "Play-by-play" text, "Color commentator(s)" text, "Studio host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the flagship station for cedric maxwell and year of...
SELECT "Flagship Station" FROM table_36446 WHERE "Color commentator(s)" = 'cedric maxwell' AND "Year" = '1995-96'
### Instruction: CREATE TABLE table_34325 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Event has a Resolution of lo...
SELECT "Event" FROM table_34325 WHERE "Res." = 'loss' AND "Record" = '12–2'
### Instruction: CREATE TABLE table_78466 ( "Color" text, "mass (g/mol)" text, "Absorb (nm)" text, "Emit (nm)" text, "\u03b5 (M -1 cm -1 )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Emission (in nanometers) has an absorbtion of 593 nm? ...
SELECT "Emit (nm)" FROM table_78466 WHERE "Absorb (nm)" = '593'
### Instruction: CREATE TABLE table_50497 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the place of player peter oosterhuis, who has $7,500? ##...
SELECT "Place" FROM table_50497 WHERE "Money ( $ )" = '7,500' AND "Player" = 'peter oosterhuis'
### Instruction: CREATE TABLE table_8480 ( "Election" real, "Candidate" text, "Number of votes" text, "Share of votes" text, "Outcome of election" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of votes of candidate edward mahama,...
SELECT "Number of votes" FROM table_8480 WHERE "Candidate" = 'edward mahama' AND "Share of votes" = '0.9%'
### Instruction: CREATE TABLE table_78274 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "TD's" real, "Long" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average for wes ours with over 1 reception and under 1 TD? ### Re...
SELECT SUM("Avg.") FROM table_78274 WHERE "Rec." > '1' AND "Player" = 'wes ours' AND "TD's" < '1'
### Instruction: CREATE TABLE table_27347 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. Viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How ma...
SELECT "U.S. Viewers (in millions)" FROM table_27347 WHERE "Title" = 'The Way Through'
### Instruction: CREATE TABLE table_name_26 ( total_seats INTEGER, regional_seats VARCHAR, constituency_seats VARCHAR, party VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the full number of Total Seats with a constituency seat number bigger ...
SELECT SUM(total_seats) FROM table_name_26 WHERE constituency_seats > 0 AND party = "liberal democrat" AND regional_seats < 6
### Instruction: CREATE TABLE table_45661 ( "Country" text, "Skip" text, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real, "Shot %" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the average Stolen Ends which has...
SELECT AVG("Stolen Ends") FROM table_45661 WHERE "Ends Lost" < '35'
### Instruction: CREATE TABLE table_9674 ( "Date" text, "Opponents" text, "H / A" text, "Result F \u2013 A" text, "Attendance" real, "League position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was Notts County the opponent and the...
SELECT "Date" FROM table_9674 WHERE "Opponents" = 'notts county' AND "League position" = '1st'
### Instruction: CREATE TABLE table_79671 ( "School" text, "Location" text, "Mascot" text, "Size" real, "IHSAA Class" text, "County" text, "Year Joined" real, "Previous Conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is t...
SELECT "IHSAA Class" FROM table_79671 WHERE "Location" = 'middlebury, in'
### Instruction: CREATE TABLE table_26453 ( "Song title" text, "Artist" text, "Year" text, "Genre" text, "Single / Pack name" text, "Release date" text, "Family Friendly" text, "Additional Rock Band 3 Features" text ) -- Using valid SQLite, answer the following questions for the tables...
SELECT "Year" FROM table_26453 WHERE "Song title" = 'Red Tandy'
### Instruction: CREATE TABLE table_name_43 ( place VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-7...
SELECT place FROM table_name_43 WHERE country = "united states" AND to_par = "+2" AND score = 73 - 74 - 71 - 72 = 290
### Instruction: CREATE TABLE table_16710 ( "Rnd" real, "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Constructor" FROM table_16710 WHERE "Location" = 'Hockenheimring'
### Instruction: CREATE TABLE table_61556 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of player darren clarke, who has $112,500? ###...
SELECT "Score" FROM table_61556 WHERE "Money ( $ )" = '112,500' AND "Player" = 'darren clarke'
### Instruction: CREATE TABLE table_27683 ( "Casinos" real, "County" text, "Road" text, "1-Jul-08" real, "FY07 $millions" text, "FY08 $millions" text, "FY09 $millions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What road is associated wi...
SELECT "Road" FROM table_27683 WHERE "County" = 'Carson Valley'
### Instruction: CREATE TABLE table_814 ( "Stain" text, "Common use" text, "Nucleus" text, "Cytoplasm" text, "Red blood cell (RBC)" text, "Collagen fibers" text, "Specifically stains" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Pink cytop...
SELECT "Specifically stains" FROM table_814 WHERE "Cytoplasm" = 'Pink'
### Instruction: CREATE TABLE table_42146 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many France bronze have a gold of more than 1 and a rank of 0? ### Re...
SELECT SUM("Bronze") FROM table_42146 WHERE "Gold" > '1' AND "Nation" = 'france' AND "Rank" < '1'
### Instruction: CREATE TABLE table_25364 ( "R" real, "Player" text, "Scottish Premier League" real, "Scottish Cup" real, "Scottish League Cup" real, "Champions League (qualifying)" real, "Europa League" real, "Total" real ) -- Using valid SQLite, answer the following questions for the...
SELECT COUNT("R") FROM table_25364 WHERE "Player" = 'Josh Thompson'
### Instruction: CREATE TABLE table_71891 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at GCM D.O.G....
SELECT "Opponent" FROM table_71891 WHERE "Event" = 'gcm – d.o.g. 4'
### Instruction: CREATE TABLE table_23342 ( "#" real, "Episode" text, "Rating" text, "Share" real, "Rating/Share (18-49)" text, "Viewers (millions)" text, "Rank (Night)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the night rank is 9, ...
SELECT COUNT("Share") FROM table_23342 WHERE "Rank (Night)" = '9'
### Instruction: CREATE TABLE table_71295 ( "Year" real, "Award Show" text, "Category" text, "Recipient(s)" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the recipient when the show was nominated for Most Popular Drama after ...
SELECT "Recipient(s)" FROM table_71295 WHERE "Result" = 'nominated' AND "Category" = 'most popular drama' AND "Year" > '2004'
### Instruction: CREATE TABLE table_204_477 ( id number, "pos" number, "no" number, "driver" text, "team" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which team f...
SELECT "team" FROM table_204_477 ORDER BY "pos" DESC LIMIT 1
### Instruction: CREATE TABLE table_9571 ( "Year" real, "Character" text, "Title" text, "Author" text, "Artist" text, "Imprint" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the title when the imprint is dengeki bunko and the artist is ...
SELECT "Title" FROM table_9571 WHERE "Imprint" = 'dengeki bunko' AND "Artist" = 'kiyotaka haimura'
### Instruction: CREATE TABLE table_70414 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Performance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the earliest year in which long jump was performed in the world indoor ...
SELECT MIN("Year") FROM table_70414 WHERE "Performance" = 'long jump' AND "Competition" = 'world indoor championships' AND "Position" = '5th'
### Instruction: CREATE TABLE table_67205 ( "Year" real, "Denomination" text, "Reverse" text, "Weight" text, "Diameter" text, "Fineness" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the diameter of the 2006 equestrian...
SELECT "Diameter" FROM table_67205 WHERE "Year" = '2006' AND "Reverse" = 'equestrian'
### Instruction: CREATE TABLE table_78604 ( "Letter" text, "Pronunciation spelled free" text, "Pronunciation spelled checked" text, "Example spelled free" text, "Example spelled checked" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Pronunc...
SELECT "Pronunciation spelled free" FROM table_78604 WHERE "Pronunciation spelled checked" = 'ʏ'
### Instruction: CREATE TABLE table_52162 ( "Year" real, "Name" text, "Western States" text, "Vermont" text, "Leadville" text, "Wasatch" text, "Total time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Wasatch time corresponds to a tot...
SELECT "Wasatch" FROM table_52162 WHERE "Total time" = '122:13:40'
### Instruction: CREATE TABLE table_70728 ( "Year" real, "RR class" text, "RR Nos." text, "Builder" text, "Builder Nos." text, "GWR/BR Nos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the builder numbers with RR class of a1 and year les...
SELECT "Builder Nos." FROM table_70728 WHERE "RR class" = 'a1' AND "Year" < '1916'
### Instruction: CREATE TABLE table_54899 ( "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_54899 WHERE "Away team score" = '9.10 (64)'
### Instruction: CREATE TABLE table_17704 ( "Year" real, "Total Region" real, "Biggenden" real, "Eidsvold" real, "Gayndah" real, "Monto" real, "Mundubbera" real, "Perry" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the biggende...
SELECT MAX("Biggenden") FROM table_17704 WHERE "Year" = '1947'
### Instruction: CREATE TABLE table_9077 ( "Country or territory" text, "Area (km\u00b2)" real, "Population" real, "Population density (per km\u00b2)" real, "Capital" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the highest population densi...
SELECT MAX("Population density (per km\u00b2)") FROM table_9077 WHERE "Population" < '6000'
### Instruction: CREATE TABLE table_64243 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "County" text, "Year Joined" real, "Previous Conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Nam...
SELECT "IHSAA Class" FROM table_64243 WHERE "Mascot" = 'pioneers'
### Instruction: CREATE TABLE table_27555 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many millions of viewers...
SELECT "U.S. viewers (million)" FROM table_27555 WHERE "Directed by" = 'Jeffrey Blitz'
### Instruction: CREATE TABLE table_70533 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was time of the game against the Royals with a record...
SELECT "Time" FROM table_70533 WHERE "Opponent" = 'royals' AND "Record" = '81–73'
### Instruction: CREATE TABLE table_50133 ( "Model" text, "Manufacturer" text, "Weight (kg)" real, "Display size (in)" real, "Processor model" text, "Storage type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Display size (in) has a Mode...
SELECT MIN("Display size (in)") FROM table_50133 WHERE "Model" = 'versapro vy10f/bh-l'
### Instruction: CREATE TABLE table_46120 ( "School" text, "Location" text, "Founded" real, "Affiliation" text, "Nickname" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school has a public nickname, founded after 1838 in Harrisonburg, Va? ##...
SELECT "Nickname" FROM table_46120 WHERE "Affiliation" = 'public' AND "Founded" > '1838' AND "Location" = 'harrisonburg, va'
### Instruction: CREATE TABLE table_70672 ( "Volume:Issue" text, "Issue Date(s)" text, "Weeks on Top" real, "Song" text, "Artist" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Issue Date(s) of Volume:Issue of 32:18-19? ### Response:
SELECT "Issue Date(s)" FROM table_70672 WHERE "Volume:Issue" = '32:18-19'
### Instruction: CREATE TABLE table_203_513 ( id number, "no." number, "date" text, "home team" text, "visiting team" text, "goals" text, "score" text, "result" text, "venue" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "competition" FROM table_203_513 WHERE id = 1
### Instruction: CREATE TABLE table_204_909 ( id number, "pollutant" text, "units" text, "emission standard" number, "coal-fired" text, "petroleum coke-fired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the only pollutant that has 0.0...
SELECT "pollutant" FROM table_204_909 WHERE "petroleum coke-fired" = 0
### Instruction: CREATE TABLE table_56633 ( "Series" real, "Year" text, "Winner" text, "Runner-up" text, "Third place" text, "Fourth place" text, "Fifth place" text, "Sixth place" text, "Host" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Sixth place" FROM table_56633 WHERE "Series" = '7'
### Instruction: CREATE TABLE table_58125 ( "Title" text, "Pages" text, "First edition" text, "Second edition" text, "ISBN" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which first edition has 264 pages and the ISBN of 978-0785111832? ### Respon...
SELECT "First edition" FROM table_58125 WHERE "Pages" = '264' AND "ISBN" = '978-0785111832'
### Instruction: CREATE TABLE table_68401 ( "School" text, "Nickname" text, "City" text, "Affiliation" text, "Conference" text, "National Championships" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Conference has a City of boca raton, an...
SELECT "Conference" FROM table_68401 WHERE "City" = 'boca raton' AND "School" = 'florida atlantic university'
### Instruction: CREATE TABLE table_24725 ( "Year" real, "Film" text, "Budget" text, "Domestic Box Office" text, "Foreign Box Office" text, "Total" text, "US DVD sales" text, "Total (with DVD sales)" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "Budget" FROM table_24725 WHERE "Film" = 'Thirteen Ghosts'
### Instruction: CREATE TABLE table_4909 ( "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 home team has a home team s...
SELECT "Home team" FROM table_4909 WHERE "Home team score" = '15.14 (104)'
### Instruction: CREATE TABLE table_26300 ( "Rank" real, "Company Name" text, "2008 Rank" text, "2009 Revenue" text, "North American Brands" text, "World Headquarters" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which comp...
SELECT COUNT("Company Name") FROM table_26300 WHERE "2008 Rank" = 'N/A'
### Instruction: CREATE TABLE table_20165 ( "No. in series" text, "No. in season" text, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Na...
SELECT COUNT("Original air date") FROM table_20165 WHERE "No. in series" = '102'
### Instruction: CREATE TABLE table_64443 ( "Date(s)" text, "Venue" text, "City" text, "Ticket price(s)" text, "Ticket sold / available" text, "Ticket grossing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the ticket price on Septembe...
SELECT "Ticket price(s)" FROM table_64443 WHERE "Date(s)" = 'september 16, 1986'
### Instruction: CREATE TABLE table_38026 ( "Position" text, "Number" real, "Name" text, "Height" text, "Weight" text, "Class" text, "Hometown" text, "Games\u2191" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Games is the lowest ...
SELECT MIN("Games\u2191") FROM table_38026 WHERE "Number" = '98'
### Instruction: CREATE TABLE table_69146 ( "City/Town" text, "July av. T" text, "Rain" text, "Days with rain (year/summer)" text, "Days with frost" real, "Sunlight hours" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many days with frost w...
SELECT SUM("Days with frost") FROM table_69146 WHERE "City/Town" = 'lugo'
### Instruction: CREATE TABLE table_3834 ( "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 a...
SELECT "High assists" FROM table_3834 WHERE "Date" = 'October 5'
### Instruction: CREATE TABLE table_74948 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "TV Time" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Game SIte with ...
SELECT "Game Site" FROM table_74948 WHERE "Opponent" = 'san diego chargers'
### Instruction: CREATE TABLE table_36096 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average week of a game attended by 12,985 with a result of W 38-14? ### ...
SELECT AVG("Week") FROM table_36096 WHERE "Attendance" > '12,985' AND "Result" = 'w 38-14'
### Instruction: CREATE TABLE table_19988 ( "Round" real, "Date" text, "Grand Prix" text, "Circuit" text, "125cc winner" text, "250cc winner" text, "MotoGP winner" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in round 9 ...
SELECT "250cc winner" FROM table_19988 WHERE "Round" = '9'
### Instruction: CREATE TABLE table_train_31 ( "id" int, "allergy_to_insulin" bool, "active_infection" bool, "periodic_paralysis" bool, "receiving_continuous_intravenous_inotropic_support" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT * FROM table_train_31 WHERE allergy_to_insulin = 1
### Instruction: CREATE TABLE table_52119 ( "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 team played away in the ga...
SELECT "Away team" FROM table_52119 WHERE "Home team score" = '7.8 (50)'
### Instruction: CREATE TABLE table_73222 ( "County" text, "Obama%" text, "Obama#" real, "McCain%" text, "McCain#" real, "Others%" text, "Others#" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many numbers were recorded under McCain whe...
SELECT COUNT("McCain#") FROM table_73222 WHERE "Obama%" = '27.2%'
### Instruction: CREATE TABLE table_16332 ( "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 "Directed by" FROM table_16332 WHERE "Title" = 'Escape'
### Instruction: CREATE TABLE table_73565 ( "Order number" text, "Build date" text, "Serial numbers" text, "Country" text, "Railroad" text, "Numbers" text, "Quantity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The serial numbers 713096-7...
SELECT "Country" FROM table_73565 WHERE "Serial numbers" = '713096-713119'
### Instruction: CREATE TABLE table_203_808 ( id number, "rank" number, "peak name" text, "elevation" text, "location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what two peaks are taller than dumlong ? ### Response:
SELECT "peak name" FROM table_203_808 WHERE "elevation" > (SELECT "elevation" FROM table_203_808 WHERE "peak name" = 'dumlong')
### Instruction: CREATE TABLE table_4587 ( "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 is there an Away te...
SELECT "Date" FROM table_4587 WHERE "Away team score" = '10.14 (74)'
### Instruction: CREATE TABLE table_19142 ( "EDO Flight" real, "Shuttle" text, "Mission" text, "Launch Date" text, "Duration" text, "Primary Payload(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the shuttle with primary payload(s) be...
SELECT "Shuttle" FROM table_19142 WHERE "Primary Payload(s)" = 'United States Microgravity Laboratory-1'
### Instruction: CREATE TABLE table_74778 ( "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 away team when the...
SELECT "Away team" FROM table_74778 WHERE "Home team score" = '10.8 (68)'
### Instruction: CREATE TABLE table_30699 ( "Constellation" text, "IAU abbreviation" text, "Other abbreviation" text, "Genitive" text, "Family" text, "Origin" text, "Meaning" text, "Brightest star" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "Origin" FROM table_30699 WHERE "Other abbreviation" = 'Tele'
### Instruction: CREATE TABLE table_203_660 ( id number, "county" text, "obama%" text, "obama#" number, "mccain%" text, "mccain#" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who has the lowest total , barry county or ben...
SELECT "county" FROM table_203_660 WHERE "county" IN ('barry', 'benton') ORDER BY "total" LIMIT 1
### Instruction: CREATE TABLE table_78231 ( "State" text, "Interview" real, "Swimsuit" real, "Evening Gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the lowest interview score from South Dakota with an evening gown less...
SELECT MIN("Interview") FROM table_78231 WHERE "State" = 'south dakota' AND "Evening Gown" < '8.513'
### Instruction: CREATE TABLE table_name_77 ( year INTEGER, rank VARCHAR, floors VARCHAR, height_ft__m_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is t...
SELECT AVG(year) FROM table_name_77 WHERE floors < 23 AND height_ft__m_ = "292 (89)" AND rank < 14
### Instruction: CREATE TABLE table_52497 ( "Block A" text, "BLACK BUSHI" text, "BUSHI" text, "Kaz Hayashi" text, "Kenny Omega" text, "Minoru" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the BUSHI that has kaz hayashi of kai (14:01) ##...
SELECT "BUSHI" FROM table_52497 WHERE "Kaz Hayashi" = 'kai (14:01)'
### Instruction: CREATE TABLE table_name_12 ( samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine cont...
SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = "qingdao suncare nutritional technology"
### Instruction: CREATE TABLE table_52670 ( "Series no." real, "Season no." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production Code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote the s...
SELECT "Written by" FROM table_52670 WHERE "Season no." > '4' AND "Series no." = '49'
### 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 heart_disease = 1
### Instruction: CREATE TABLE table_74529 ( "Year" real, "Winner" text, "Jockey" text, "Trainer" text, "Time" text, "Grade" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which trainer had a time of 1:10.09 with a year less than 2009? ### Resp...
SELECT "Trainer" FROM table_74529 WHERE "Year" < '2009' AND "Time" = '1:10.09'
### Instruction: CREATE TABLE table_61438 ( "Draft" real, "Round" real, "Pick" real, "Player" text, "Nationality" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average draft with a pick larger than 42, and player Grant Eakin after round...
SELECT AVG("Draft") FROM table_61438 WHERE "Pick" > '42' AND "Player" = 'grant eakin' AND "Round" > '8'
### Instruction: CREATE TABLE table_45080 ( "Pick #" real, "Brand (to)" text, "Employee (Real name)" text, "Role" text, "Brand (from)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the employee (real name) when the pick # is higher than 10 ...
SELECT "Employee (Real name)" FROM table_45080 WHERE "Pick #" > '10' AND "Brand (to)" = 'raw'
### Instruction: CREATE TABLE table_44561 ( "Poll Source" text, "Dates administered" text, "Democrat: Carl Levin" text, "Republican: Jack Hoogendyk" text, "Lead Margin" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Dates Administered, when ...
SELECT "Dates administered" FROM table_44561 WHERE "Democrat: Carl Levin" = '61%'
### Instruction: CREATE TABLE table_7317 ( "Outcome" text, "Date" real, "Tournament" text, "Surface" text, "Partner" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Opponent in the...
SELECT "Opponent in the final" FROM table_7317 WHERE "Partner" = 'gastón etlis'
### Instruction: CREATE TABLE table_53739 ( "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 date of the game w...
SELECT "Date" FROM table_53739 WHERE "Home team score" = '7.13 (55)'
### Instruction: CREATE TABLE Rooms ( RoomId VARCHAR, basePrice VARCHAR ) CREATE TABLE Reservations ( firstname VARCHAR, lastname VARCHAR, Room VARCHAR, Rate VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the first and last names of peo...
SELECT T1.firstname, T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0
### Instruction: CREATE TABLE table_name_50 ( position VARCHAR, player VARCHAR, nationality VARCHAR, jersey_number_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Postition, when Nationality is United States, when Jersey Number(s) is 12, an...
SELECT position FROM table_name_50 WHERE nationality = "united states" AND jersey_number_s_ = "12" AND player = "tom black category:articles with hcards"
### Instruction: CREATE TABLE table_56881 ( "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 "Winning driver" FROM table_56881 WHERE "Race" = 'belgian grand prix'
### Instruction: CREATE TABLE table_12130 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the tournament with a clay surface and sofia shapatava as...
SELECT "Tournament" FROM table_12130 WHERE "Surface" = 'clay' AND "Opponent" = 'sofia shapatava'
### Instruction: CREATE TABLE table_13723 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the week when the result was W 38-24 and attendance was less than 43,449? ### ...
SELECT SUM("Week") FROM table_13723 WHERE "Result" = 'w 38-24' AND "Attendance" < '43,449'
### Instruction: CREATE TABLE table_23465864_5 ( mon_24_aug VARCHAR, fri_28_aug VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the value for Monday August 24 if Friday August 28 is 26' 04.60 86.814mph? ### Response:
SELECT mon_24_aug FROM table_23465864_5 WHERE fri_28_aug = "26' 04.60 86.814mph"
### Instruction: CREATE TABLE table_name_41 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340? ### Response:
SELECT AVG(2001) FROM table_name_41 WHERE 2010 > 414 AND 2011 = 7192 AND 2005 > 7340
### Instruction: CREATE TABLE table_59722 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Place, when Score is '66', when Country is 'United States', and when Player is 'Du...
SELECT "Place" FROM table_59722 WHERE "Score" = '66' AND "Country" = 'united states' AND "Player" = 'dudley hart'
### Instruction: CREATE TABLE table_269 ( "Series no." real, "Season no." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production Code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first...
SELECT MIN("Season no.") FROM table_269 WHERE "Written by" = 'Joseph Hampton & Dani Renee'