instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_18009 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("Original air date") FROM table_18009 WHERE "Title" = 'Circus, Circus'
### Instruction: CREATE TABLE table_22223 ( "Enzyme" text, "Location" text, "Substrate" text, "Product" text, "Chromosome" text, "EC" text, "OMIM" real, "Porphyria" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many porphyria have s...
SELECT COUNT("Porphyria") FROM table_22223 WHERE "Substrate" = 'δ-Aminolevulinic acid'
### Instruction: CREATE TABLE table_23495 ( "Ostrich" text, "Hamerkop" text, "Hadeda Ibis" text, "African Spoonbill" text, "Whitefaced Duck" text, "Knobbilled Duck" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Hadeda Ibis when the ...
SELECT "Hadeda Ibis" FROM table_23495 WHERE "Knobbilled Duck" = 'Pied Crow'
### Instruction: CREATE TABLE table_43217 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player in the United States had a total of 286 and won in 20...
SELECT "Player" FROM table_43217 WHERE "Country" = 'united states' AND "Total" = '286' AND "Year(s) won" = '2003'
### Instruction: CREATE TABLE table_35594 ( "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 "Date" FROM table_35594 WHERE "Game" > '53' AND "Team" = 'toronto'
### Instruction: CREATE TABLE table_22488 ( "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_22488 WHERE "County" = 'Kidder'
### Instruction: CREATE TABLE table_8294 ( "LB&SC Number" real, "Built" text, "S.R. Number" real, "Withdrawal" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the withdrawal when the lb&sc number is less than 16 and the s.r. num...
SELECT "Withdrawal" FROM table_8294 WHERE "LB&SC Number" < '16' AND "S.R. Number" = '2011'
### Instruction: CREATE TABLE table_5505 ( "Name" text, "Lifespan" text, "Country" text, "Wins" real, "Majors" real, "Winning span" text, "Span (years)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What lifespan has a majors greater than 1...
SELECT "Lifespan" FROM table_5505 WHERE "Majors" > '1' AND "Name" = 'fuzzy zoeller'
### Instruction: CREATE TABLE table_2657 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the surfa...
SELECT "Surface" FROM table_2657 WHERE "Championship" = 'US Open' AND "Year" = '1979'
### Instruction: CREATE TABLE table_79667 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest amount of bronze china, which has more than 1 gold and ...
SELECT MAX("Bronze") FROM table_79667 WHERE "Gold" > '1' AND "Nation" = 'china' AND "Total" > '11'
### Instruction: CREATE TABLE table_41522 ( "Position" text, "Jersey #" real, "Name" text, "Height (cm)" real, "Weight (kg)" real, "Birthdate" text, "Birthplace" text, "Previous Club/Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT MIN("Weight (kg)") FROM table_41522 WHERE "Jersey #" = '10'
### Instruction: CREATE TABLE table_21985 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original U.S. air date" text, "Prod. code" text, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the table...
SELECT "Written by" FROM table_21985 WHERE "No. in season" = '3'
### Instruction: CREATE TABLE table_61484 ( "Clubs" text, "Seasons at this level" text, "Settlements" text, "Season joined league" text, "Position in 1959\u20131960" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which club was in Position 1 in 1959...
SELECT "Clubs" FROM table_61484 WHERE "Position in 1959\u20131960" = '1'
### Instruction: CREATE TABLE table_122 ( "Club" text, "Position in 2012" text, "First season" text, "Number of seasons" real, "First season of current spell" real, "Titles" real, "Last title" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT "First season" FROM table_122 WHERE "Position in 2012" = '2nd in Superettan'
### Instruction: CREATE TABLE table_25254 ( "Stage" real, "Winner" text, "General Classification" text, "Mountains Classification" text, "Sprint Classification" text, "Team Classification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the ...
SELECT MAX("Stage") FROM table_25254 WHERE "General Classification" = 'Alejandro Valverde' AND "Team Classification" = 'Astana' AND "Winner" = 'Greg Henderson'
### Instruction: CREATE TABLE table_32926 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team did the Brows play against on October 20, 1963 to a crowd larger than 55,096?...
SELECT "Opponent" FROM table_32926 WHERE "Attendance" > '55,096' AND "Date" = 'october 20, 1963'
### Instruction: CREATE TABLE table_203_814 ( id number, "season" number, "head coach" text, "overall record" text, "conference record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was head coach of the team after archie stalcup ? ### Respon...
SELECT "head coach" FROM table_203_814 WHERE "season" > (SELECT "season" FROM table_203_814 WHERE "head coach" = 'archie stalcup' ORDER BY "season" DESC LIMIT 1) ORDER BY "season" LIMIT 1
### Instruction: CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) -- Using valid SQLite, answer the following questions for t...
SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY COUNT(*) DESC
### Instruction: CREATE TABLE table_3375 ( "Skip (Club)" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the ...
SELECT MAX("Stolen Ends") FROM table_3375 WHERE "Ends Won" = '32'
### Instruction: CREATE TABLE table_name_75 ( city_of_license__market VARCHAR, channel___tv___rf__ VARCHAR, owned_since VARCHAR, affiliation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city of license/market has an owned since before 2011,and...
SELECT city_of_license__market FROM table_name_75 WHERE owned_since < 2011 AND affiliation = "abc" AND channel___tv___rf__ = "9 (22)"
### Instruction: CREATE TABLE table_60055 ( "Team" text, "Wins" text, "Losses" text, "Points" text, "WPct." text, "G.F." text, "G.A." text, "Assists" text, "Penalties" text, "P.I.M." text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "WPct." FROM table_60055 WHERE "Wins" = 'wins'
### Instruction: CREATE TABLE table_27888 ( "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 "Population (2011)" FROM table_27888 WHERE "Settlement" = 'Pavliš'
### Instruction: CREATE TABLE table_24310 ( "Competition" text, "Round" text, "Opponent" text, "Result" text, "Score" text, "Home/Away" text, "Venue" text, "Attendance" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
SELECT "Venue" FROM table_24310 WHERE "Score" = '34-18'
### Instruction: CREATE TABLE table_40492 ( "Rank" real, "City" text, "Airport" text, "Passengers" real, "Carriers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the airport with primary carrier of US Airways with a 2 ranking and more than...
SELECT "Airport" FROM table_40492 WHERE "Passengers" > '51,000' AND "Carriers" = 'us airways' AND "Rank" = '2'
### Instruction: CREATE TABLE table_204_833 ( id number, "game" number, "date" text, "team" text, "score" text, "high points" text, "high rebounds" text, "high assists" text, "location\nattendance" text, "record" text ) -- Using valid SQLite, answer the following questions for ...
SELECT "high points" FROM table_204_833 ORDER BY "high points" DESC LIMIT 1
### Instruction: CREATE TABLE table_55967 ( "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 above. -- On wha...
SELECT "Date" FROM table_55967 WHERE "High points" = 'suns' AND "Record" = '33–13'
### Instruction: CREATE TABLE table_name_10 ( voice_actor__harmony_gold_ova_dub_ VARCHAR, voice_actor__adv_tv_sentai_ova_dub_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the voice actor (harmony gold ova dub) of the character with a voice actor (ad...
SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_10 WHERE voice_actor__adv_tv_sentai_ova_dub_ = "kim prause"
### Instruction: CREATE TABLE table_17923 ( "Position" real, "Club" text, "Played" real, "Won" real, "Drawn" real, "Lost" real, "Pts For" real, "Pts Agst" real, "B.P." real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT COUNT("Won") FROM table_17923 WHERE "Pts For" = '616'
### Instruction: CREATE TABLE school ( school_name VARCHAR, school_id VARCHAR ) CREATE TABLE budget ( budgeted VARCHAR, invested VARCHAR, school_id VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show each school name, its budge...
SELECT T2.school_name, T1.budgeted, T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002
### Instruction: CREATE TABLE candidate ( candidate_id number, people_id number, poll_source text, date text, support_rate number, consider_rate number, oppose_rate number, unsure_rate number ) CREATE TABLE people ( people_id number, sex text, name text, date_of_birth te...
SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
### Instruction: CREATE TABLE table_20032 ( "Position" real, "Team" text, "Points" real, "Played" real, "Won" real, "Drawn" real, "Lost" real, "For" real, "Against" real, "Difference" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT COUNT("Against") FROM table_20032 WHERE "Difference" = '11'
### Instruction: CREATE TABLE table_68278 ( "Territory" text, "Abbr." text, "Capital" text, "Acquired" real, "Territorial status" text, "Population ( 2010 )" real, "House seat" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the popu...
SELECT MAX("Population ( 2010 )") FROM table_68278 WHERE "Territory" = 'puerto rico'
### Instruction: CREATE TABLE table_63593 ( "Draw" real, "Language" text, "Artist" text, "English translation" text, "Place" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total ranking when there are less than 16 draw...
SELECT SUM("Place") FROM table_63593 WHERE "Draw" < '16' AND "English translation" = 'in love with you' AND "Points" < '1'
### Instruction: CREATE TABLE table_203_346 ( id number, "date" text, "location" text, "venue" text, "opening act" text, "supporting" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in which venue was the next performance after the one at verdun ...
SELECT "venue" FROM table_203_346 WHERE "date" > (SELECT "date" FROM table_203_346 WHERE "venue" = 'verdun auditorium') ORDER BY "date" LIMIT 1
### Instruction: CREATE TABLE table_50326 ( "Season" text, "North" text, "South" text, "East" text, "West" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north? ### Response...
SELECT "Season" FROM table_50326 WHERE "South" = 'esc holzkirchen' AND "West" = 'esv buchloe' AND "North" = 'ehc bayreuth'
### Instruction: CREATE TABLE table_38087 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Time ( ET )" text, "Result" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record has a Week smaller than 15, and a...
SELECT "Record" FROM table_38087 WHERE "Week" < '15' AND "Opponent" = 'at new york jets'
### Instruction: CREATE TABLE table_203_452 ( 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. -- who finished...
SELECT "driver" FROM table_203_452 WHERE "pos" = (SELECT "pos" FROM table_203_452 WHERE "driver" = 'will power') + 1
### Instruction: CREATE TABLE table_203_655 ( id number, "goal" 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. -- besides belgium what other team...
SELECT "opponent" FROM table_203_655 WHERE "opponent" <> 'belgium' AND "date" = 2001
### Instruction: CREATE TABLE table_1107 ( "Season" text, "Champions (Premier League titles)" text, "Runners-up" text, "Third place" text, "Player(s) (Club)" text, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the team scored 17 an...
SELECT "Season" FROM table_1107 WHERE "Goals" = '17' AND "Runners-up" = 'Slavija'
### Instruction: CREATE TABLE table_79865 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Round larger than 6, and a Pick # smaller than 25, and a College of s...
SELECT "Position" FROM table_79865 WHERE "Round" > '6' AND "Pick #" < '25' AND "College" = 'southern illinois'
### Instruction: CREATE TABLE table_25523 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is the number of the season epi...
SELECT "No. in season" FROM table_25523 WHERE "Written by" = 'R. Scott Gemmill' AND "Directed by" = 'Ray Austin'
### Instruction: CREATE TABLE table_72870 ( "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 "Date" FROM table_72870 WHERE "High assists" = 'Tracy McGrady (8)'
### Instruction: CREATE TABLE table_25529 ( "Name" text, "Platform" text, "License" text, "Windows builders" text, "Java builders" text, "Other builders" text, "SCM system" text, "Notification" text, "IDE Integration" text, "Other Integration" text ) -- Using valid SQLite, answ...
SELECT "Windows builders" FROM table_25529 WHERE "Name" = 'Apache Gump'
### Instruction: CREATE TABLE artwork ( Artwork_ID int, Type text, Name text ) CREATE TABLE festival_detail ( Festival_ID int, Festival_Name text, Chair_Name text, Location text, Year int, Num_of_Audience int ) CREATE TABLE nomination ( Artwork_ID int, Festival_ID int, ...
SELECT Type, COUNT(*) FROM artwork GROUP BY Type ORDER BY COUNT(*) DESC
### Instruction: CREATE TABLE table_59385 ( "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text, "Week 6" text, "Week 7" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is week 5 when week 6 is evicted, and week 2 is 34.55? ### Resp...
SELECT "Week 5" FROM table_59385 WHERE "Week 6" = 'evicted' AND "Week 2" = '34.55'
### Instruction: CREATE TABLE table_19338 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" text, "2nd (m)" text, "Points" text, "Overall FHT points" text, "Overall WC points (Rank)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Overall WC points (Rank)" FROM table_19338 WHERE "Name" = 'Roman Koudelka'
### Instruction: CREATE TABLE table_68999 ( "Engine code" text, "Displacement" text, "Power, Torque@rpm" text, "Redline (rpm)" real, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the displacement of the engine that has a Redline rpm ...
SELECT "Displacement" FROM table_68999 WHERE "Redline (rpm)" > '4750' AND "Year" = '2005'
### Instruction: CREATE TABLE table_name_68 ( no_7 VARCHAR, no_6 VARCHAR, no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What name was number 7 when Mason was number 1, Owen was number 6, Jackson was number 9, an...
SELECT no_7 FROM table_name_68 WHERE no_1 = "mason" AND no_9 = "jackson" AND no_10 = "logan" AND no_6 = "owen"
### Instruction: CREATE TABLE table_37653 ( "Surname" text, "First" text, "D.O.B." text, "Bats" text, "Throws" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bats have a First of josh, and Throws of r, and a Surname of cak...
SELECT "Bats" FROM table_37653 WHERE "First" = 'josh' AND "Throws" = 'r' AND "Surname" = 'cakebread'
### Instruction: CREATE TABLE table_2659 ( "Performance comparison" text, "78 Fury" text, "78 Monaco" text, "79 St. Regis" text, "80 St. Regis" text, "81 St. Regis" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every value for 78 Fury i...
SELECT "78 Fury" FROM table_2659 WHERE "78 Monaco" = '93.6'
### Instruction: CREATE TABLE table_14426 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" real, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record has a Method of submission (heel hook), a Round larger than ...
SELECT "Record" FROM table_14426 WHERE "Method" = 'submission (heel hook)' AND "Round" > '1' AND "Time" = '2:28'
### Instruction: CREATE TABLE table_74692 ( "Tujunga" text, "La Crescenta- Montrose" text, "Glendale" text, "La Ca\u00f1ada Flintridge" text, "Pasadena" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the percentage of Tukunga when La Crescen...
SELECT "Tujunga" FROM table_74692 WHERE "La Crescenta- Montrose" = '28%'
### Instruction: CREATE TABLE table_25492 ( "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 "Location Attendance" FROM table_25492 WHERE "Score" = 'L 83–106 (OT)'
### Instruction: CREATE TABLE table_10228 ( "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. -- How many spectators at the game...
SELECT SUM("Crowd") FROM table_10228 WHERE "Home team score" = '16.15 (111)'
### Instruction: CREATE TABLE discipline_enrollments ( undergraduate INTEGER, campus VARCHAR, year VARCHAR ) CREATE TABLE campuses ( id VARCHAR, campus VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many undergraduates are there in 'San Jose...
SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose State University"
### Instruction: CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) -- Using valid SQLite, answer the following quest...
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC
### Instruction: CREATE TABLE table_21408 ( "Year" real, "Indians admitted" real, "Pakistanis admitted" real, "Sri Lankans admitted" real, "Bangladeshis admitted" real, "Nepalis admitted" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is th...
SELECT MAX("Pakistanis admitted") FROM table_21408 WHERE "Nepalis admitted" = '627'
### Instruction: CREATE TABLE table_39329 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Surface in the match with a Sco...
SELECT "Surface" FROM table_39329 WHERE "Score" = '7–5, 6–7, 4–6'
### Instruction: CREATE TABLE table_2257 ( "Barangay" text, "Location" text, "Classification" text, "Population (May, 2000)" real, "Population (May, 2010)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the population of the coastal locatio...
SELECT MIN("Population (May, 2000)") FROM table_2257 WHERE "Location" = 'coastal' AND "Barangay" = 'Isio'
### Instruction: CREATE TABLE table_27866 ( "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 "Largest ethnic group (2002)" FROM table_27866 WHERE "Settlement" = 'Doline'
### Instruction: CREATE TABLE table_name_39 ( military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many military or civilians were wounded in the con...
SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = "unknown" AND total_deaths__not_including_foreigners_ = "unknown"
### Instruction: CREATE TABLE table_24471 ( "Team" text, "Sport" text, "League" text, "Established" real, "Began in St. Louis" real, "Venue" text, "Championships in St. Louis" text, "Left St. Louis" real ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "Championships in St. Louis" FROM table_24471 WHERE "Sport" = 'Arena Football'
### Instruction: CREATE TABLE table_40752 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of c...
SELECT MAX("Bronze") FROM table_40752 WHERE "Gold" < '1' AND "Rank" = '17' AND "Nation" = 'china'
### Instruction: CREATE TABLE table_204_828 ( id number, "whitworth size (in)" number, "core diameter (in)" number, "threads per inch" number, "pitch (in)" number, "tapping drill size" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the c...
SELECT "core diameter (in)" FROM table_204_828 WHERE "whitworth size (in)" = '1/8'
### Instruction: CREATE TABLE table_77725 ( "Driver" text, "Car #" real, "Make" text, "Points" real, "Laps" real, "Winnings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the winnings for the Chevrolet with a number larger than 29 and...
SELECT "Winnings" FROM table_77725 WHERE "Make" = 'chevrolet' AND "Car #" > '29' AND "Points" = '102'
### Instruction: CREATE TABLE table_6361 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Total is the lowest one that has a Bronze of 0, and a Silver larger th...
SELECT MIN("Total") FROM table_6361 WHERE "Bronze" = '0' AND "Silver" > '0' AND "Rank" = '5'
### Instruction: CREATE TABLE table_33823 ( "Province" text, "Swimsuit" real, "Evening Gown" real, "Interview" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger ...
SELECT AVG("Evening Gown") FROM table_33823 WHERE "Swimsuit" < '7.99' AND "Interview" > '7.98'
### Instruction: CREATE TABLE college ( cname text, state text, enr number ) CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) -- Using valid SQLite, answer the following question...
SELECT DISTINCT cname FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL')
### Instruction: CREATE TABLE table_13072 ( "Actor/actress" text, "Character" text, "Rank" text, "Tenure" text, "Episodes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Actor/Actress a Tenure of 2008 2011 played Stella Dagostino? ### Respons...
SELECT "Actor/actress" FROM table_13072 WHERE "Tenure" = '2008–2011' AND "Character" = 'stella dagostino'
### Instruction: CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text ) -- Using valid SQLite, answer the fol...
SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country
### Instruction: CREATE TABLE table_22150 ( "Year to April" real, "Revenue (US $million)" text, "EBIT (US $m)" text, "Net profit (US $m)" text, "Earnings per share (\u00a2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the dollar amount of...
SELECT "EBIT (US $m)" FROM table_22150 WHERE "Net profit (US $m)" = '120.6'
### Instruction: CREATE TABLE table_10430 ( "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 is the smallest crowd for ...
SELECT MIN("Crowd") FROM table_10430 WHERE "Away team score" = '16.14 (110)'
### Instruction: CREATE TABLE table_48759 ( "Year" real, "Party" text, "Governor" text, "Lieutenant Governor" text, "Comptroller" text, "Attorney General" text, "U.S. Senate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times what...
SELECT COUNT("Year") FROM table_48759 WHERE "Comptroller" = 'alan hevesi' AND "Party" = 'working families'
### Instruction: CREATE TABLE table_63012 ( "Driver" text, "Navigator" text, "Vehicle" text, "Class" text, "Capacity" real, "Total Time" text, "Margin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Driver has a Capacity smaller than 5...
SELECT "Driver" FROM table_63012 WHERE "Capacity" < '5700' AND "Total Time" = '08:29'
### Instruction: CREATE TABLE table_37538 ( "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. -- How much Lost has an Against l...
SELECT SUM("Lost") FROM table_37538 WHERE "Against" > '19' AND "Drawn" < '1'
### Instruction: CREATE TABLE table_203_408 ( 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_203_408 WHERE "winning driver" = 'nigel mansell'
### Instruction: CREATE TABLE table_37924 ( "Rank" real, "Province" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team had less than 291 total points whole having 76 bronze and over ...
SELECT SUM("Silver") FROM table_37924 WHERE "Gold" > '21' AND "Bronze" = '76' AND "Total" < '291'
### Instruction: CREATE TABLE table_61251 ( "Team" text, "Average" real, "Points" real, "Played" real, "1986-87" text, "1987-88" text, "1988-89" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is 1987-88, when Points is '136'? ### Resp...
SELECT "1987-88" FROM table_61251 WHERE "Points" = '136'
### Instruction: CREATE TABLE table_43411 ( "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 "Score" FROM table_43411 WHERE "High points" = 'donyell marshall (26)'
### Instruction: CREATE TABLE table_name_38 ( volume VARCHAR, isbn VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)? ### Response:
SELECT volume FROM table_name_38 WHERE isbn = "978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)"
### Instruction: CREATE TABLE table_73308 ( "Regional County Municipality (RCM)" text, "Population Canada 2011 Census" real, "Land Area" text, "Density (pop. per km2)" text, "Seat of RCM" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the se...
SELECT "Seat of RCM" FROM table_73308 WHERE "Density (pop. per km2)" = '9.7'
### Instruction: CREATE TABLE table_204_24 ( id number, "year" number, "league" text, "record" text, "finish" text, "manager" text, "playoffs" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- whih year did they finish hiher ,...
SELECT "year" FROM table_204_24 WHERE "year" IN (1949, 1961) ORDER BY "finish" LIMIT 1
### Instruction: CREATE TABLE table_17518 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the mens doubles when womens d...
SELECT "Mens doubles" FROM table_17518 WHERE "Womens doubles" = 'Anastasia Chervyakova Romina Gabdullina'
### Instruction: CREATE TABLE table_204_852 ( id number, "year" number, "film" text, "language" text, "character" text, "co-star" text, "music" text, "banner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which movie did this actress st...
SELECT "film" FROM table_204_852 WHERE id = (SELECT id FROM table_204_852 WHERE "film" = 'krishna prema') + 1
### Instruction: CREATE TABLE table_51396 ( "Player" text, "Position" text, "Date of Birth (Age)" text, "Caps" real, "Club/province" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the club/province of Sireli Bobo, who plays wing and has less...
SELECT "Club/province" FROM table_51396 WHERE "Position" = 'wing' AND "Caps" < '24' AND "Player" = 'sireli bobo'
### Instruction: CREATE TABLE table_31374 ( "Country with flag" text, "Area (km\u00b2)" real, "Population (1 July 2005 est.)" real, "Population density (per km\u00b2)" text, "Capital" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every entr...
SELECT "Area (km\u00b2)" FROM table_31374 WHERE "Capital" = 'Port-au-Prince'
### Instruction: CREATE TABLE table_72270 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the womens singles of imam s...
SELECT "Womens singles" FROM table_72270 WHERE "Mens doubles" = 'Imam Sodikin Irawan Andi Tandaputra'
### Instruction: CREATE TABLE table_204_135 ( id number, "position" number, "club" text, "played" number, "points" number, "wins" number, "draws" number, "losses" number, "goals for" number, "goals against" number, "goal difference" number ) -- Using valid SQLite, answer th...
SELECT "club" FROM table_204_135 WHERE "wins" = 4
### Instruction: CREATE TABLE table_21188 ( "Episode number" real, "Episode" text, "Rating" text, "Share" real, "Rating/Share (18-49)" text, "Viewers (millions)" text, "Rank (Overall)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many ...
SELECT COUNT("Share") FROM table_21188 WHERE "Viewers (millions)" = '3.11'
### Instruction: CREATE TABLE table_6926 ( "Office" text, "Democratic ticket" text, "Republican ticket" text, "Conservative ticket" text, "Liberal ticket" text, "Free Libertarian ticket" text, "Socialist Labor ticket" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Democratic ticket" FROM table_6926 WHERE "Office" = 'u.s. senator'
### Instruction: CREATE TABLE table_52248 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/...
SELECT MAX("Laps") FROM table_52248 WHERE "Time/Retired" = '+1 lap' AND "Driver" = 'alexander wurz' AND "Grid" < '14'
### Instruction: CREATE TABLE table_204_55 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total ...
SELECT COUNT(*) FROM table_204_55 WHERE "site" = 'notre dame stadium • notre dame, in'
### Instruction: CREATE TABLE table_74051 ( "English" text, "Proto-Semitic" text, "Akkadian" text, "Arabic" text, "Aramaic" text, "Hebrew" text, "Geez" text, "Mehri" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- if the aramaic is l m- ,...
SELECT "English" FROM table_74051 WHERE "Aramaic" = 'šlām-āʼ'
### Instruction: CREATE TABLE table_16555 ( "Season" real, "Grand FinalDate" text, "WinningTeam" text, "Score" text, "LosingTeam" text, "Location" text, "GF Attendance" real, "Clive Churchill Medal" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT COUNT("Season") FROM table_16555 WHERE "WinningTeam" = 'Canterbury Bulldogs (8)'
### Instruction: CREATE TABLE table_73291 ( "Expression" text, "Y = 2008" text, "Y = 2009" text, "Y = 2010" text, "Y = 2011" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the y = 2008 when y = 2011 is a = 3? ### Response:
SELECT "Y = 2008" FROM table_73291 WHERE "Y = 2011" = 'a = 3'
### Instruction: CREATE TABLE table_66464 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total for teams with under 34 bronzes, 0 silver, and un...
SELECT AVG("Total") FROM table_66464 WHERE "Bronze" < '34' AND "Gold" < '14' AND "Silver" < '0'
### Instruction: CREATE TABLE table_17919 ( "Position" real, "Club" text, "Played" real, "Won" real, "Drawn" real, "Lost" real, "Pts For" real, "Pts Agst" real, "B.P." real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT MAX("Pts For") FROM table_17919 WHERE "Won" = '9'
### Instruction: CREATE TABLE table_52921 ( "Animal Name" text, "Species" text, "Books" text, "TV Series" text, "Gender" text, "TV Seasons" text, "Mate" text, "First Appearance" text, "Last Appearance" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT "Books" FROM table_52921 WHERE "Gender" = 'male' AND "Animal Name" = 'bounder'
### Instruction: CREATE TABLE table_7229 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Played when...
SELECT AVG("Played") FROM table_7229 WHERE "Against" = '51' AND "Drawn" > '1'
### Instruction: CREATE TABLE table_70942 ( "Date enacted" text, "Normal total" text, "\u00a726 total" text, "Ont." text, "Que." text, "N.S." text, "N.B." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Ont of N.B. of 10 and normal t...
SELECT "Ont." FROM table_70942 WHERE "N.B." = '10' AND "Normal total" = '77'