instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_5773 ( "Name" text, "Nationality" text, "Position [A ]" text, "Oxford United career [B ]" text, "Appearances" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which OU career [b] had Position [A] a...
SELECT "Oxford United career [B ]" FROM table_5773 WHERE "Position [A ]" = 'forward' AND "Appearances" = '56'
### Instruction: CREATE TABLE table_28825 ( "Name" text, "Jewel" text, "Species" text, "Gender" text, "Jewel Power" text, "Attribute" text, "Birthday" text, "Media Debut" text, "Voice actor" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "Voice actor" FROM table_28825 WHERE "Species" = 'Hedgehog'
### Instruction: CREATE TABLE table_24335 ( "Year" real, "Date" text, "Driver" text, "Team" text, "Manufacturer" text, "Laps" text, "Miles (km)" text, "Race Time" text, "Average Speed (mph)" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Race Time" FROM table_24335 WHERE "Year" = '2002'
### Instruction: CREATE TABLE table_45 ( "Scheme" text, "Tariff code" text, "BTs retail price (regulated)" text, "Approx premium" text, "Prefixes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What prefixes are priced at pence per minute, fixed at ...
SELECT "Prefixes" FROM table_45 WHERE "Scheme" = 'Pence per minute, fixed at all times' AND "Approx premium" = '3p/min'
### Instruction: CREATE TABLE table_2852 ( "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 "Game" FROM table_2852 WHERE "High rebounds" = 'Andre Miller , Rudy Fernandez (7)'
### Instruction: CREATE TABLE table_name_40 ( elevation__ft_ INTEGER, elevation__m_ VARCHAR, type VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Type of stratovolcano, and a Name of goat rocks, and a Elevation (m) larger than 2,494 has ...
SELECT MAX(elevation__ft_) FROM table_name_40 WHERE type = "stratovolcano" AND name = "goat rocks" AND elevation__m_ > 2 OFFSET 494
### Instruction: CREATE TABLE table_29408 ( "Pronoun" text, "Present" text, "1st" text, "2nd" text, "perfect" text, "aorist" text, "imperfect" text, "pluperfect" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pluperfect for t...
SELECT "pluperfect" FROM table_29408 WHERE "perfect" = 'si bio/la; bio/la si'
### Instruction: CREATE TABLE table_29139 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Incoming manager" text, "Date of appointment" text, "Position in Table" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "Position in Table" FROM table_29139 WHERE "Date of vacancy" = '4 January 2011'
### Instruction: CREATE TABLE table_27981 ( "No. in series" 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 "U.S. viewers (million)" FROM table_27981 WHERE "No. in series" = '6'
### Instruction: CREATE TABLE table_38993 ( "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's the Points average with...
SELECT AVG("Points") FROM table_38993 WHERE "Lost" = '21' AND "Position" = '22'
### Instruction: CREATE TABLE table_16945 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the minimum purse( $ ) where...
SELECT MIN("Purse( $ )") FROM table_16945 WHERE "Tournament" = 'Ko Olina Senior Invitational'
### Instruction: CREATE TABLE table_46360 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average round of the s position player from the college of ...
SELECT AVG("Round") FROM table_46360 WHERE "Position" = 's' AND "College" = 'mississippi' AND "Overall" < '214'
### Instruction: CREATE TABLE table_73010 ( "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. -- Name the total number in the series w...
SELECT COUNT("No. in series") FROM table_73010 WHERE "Written by" = 'John Banas' AND "Directed by" = 'Pino Amenta'
### Instruction: CREATE TABLE table_19733 ( "Name" text, "Years" text, "League" real, "FA Cup" real, "League Cup" real, "Europe" real, "Other a" real, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different Leagues are ...
SELECT COUNT("League") FROM table_19733 WHERE "Name" = 'Billy Meredith Category:Articles with hCards'
### Instruction: CREATE TABLE table_name_57 ( points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most points 1 when the goals against are fewer than 97,...
SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+28"
### Instruction: CREATE TABLE table_17488 ( "Series #" real, "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 tables pro...
SELECT COUNT("Series #") FROM table_17488 WHERE "Written by" = 'William N. Fordes'
### Instruction: CREATE TABLE table_39840 ( "District" text, "Incumbent" text, "Party" text, "Elected" real, "Status" text, "2008 Candidates" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the year Elected of Republi...
SELECT "Elected" FROM table_39840 WHERE "Party" = 'republican' AND "Incumbent" = 'dave reichert'
### Instruction: CREATE TABLE table_24509 ( "Rank" real, "Rider" text, "Mon 1 June" text, "Tue 2 June" text, "Wed 3 June" text, "Thurs 4 June" text, "Fri 5 June" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the time and speed for...
SELECT "Wed 3 June" FROM table_24509 WHERE "Rank" = '12'
### Instruction: CREATE TABLE table_35747 ( "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 is the Score with an Outcome of runner-...
SELECT "Score" FROM table_35747 WHERE "Outcome" = 'runner-up' AND "Partner" = 'elizabeth little'
### Instruction: CREATE TABLE table_56394 ( "Product" text, "2004" text, "2003" text, "2002" text, "2001" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2001 statistic for the product that had 2,360,000 tonnes in 2002? ### Response:
SELECT "2001" FROM table_56394 WHERE "2002" = '2,360,000 tonnes'
### Instruction: CREATE TABLE table_49976 ( "Name" text, "Heir of" text, "Birth" text, "Ceased to be Duke of Girona" text, "Death" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEM...
SELECT "Birth" FROM table_49976 WHERE "Ceased to be Duke of Girona" = '21 november 1582'
### Instruction: CREATE TABLE table_204_452 ( id number, "number" text, "south or west terminus" text, "north or east terminus" text, "length (mi)" number, "length (km)" number, "formed" text, "deleted" text, "notes" text ) -- Using valid SQLite, answer the following questions for ...
SELECT "length (mi)" FROM table_204_452 WHERE "number" = 'sr-3'
### Instruction: CREATE TABLE table_29527 ( "Episode air date" text, "Audition city" text, "First audition date" text, "Audition venue" text, "Callback audition date" text, "Callback venue" text, "Golden tickets" text ) -- Using valid SQLite, answer the following questions for the tables p...
SELECT "Callback audition date" FROM table_29527 WHERE "Callback venue" = 'Hilton Riverside Hotel'
### Instruction: CREATE TABLE table_8014 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Language(s)" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE YEAR WITH DA...
SELECT "Year (Ceremony)" FROM table_8014 WHERE "Language(s)" = 'dari' AND "Original title" = 'osama (أسامة)'
### Instruction: CREATE TABLE table_22567 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws P.K. Wins / P.K. Losses" text, "Losses" real, "Scored" real, "Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "Wins" FROM table_22567 WHERE "Points" = '24'
### Instruction: CREATE TABLE table_28569 ( "Name" text, "Population (2011)" real, "Population (2006)" real, "Change (%)" text, "Area (km\u00b2)" text, "Population density" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the population in...
SELECT "Population (2011)" FROM table_28569 WHERE "Name" = 'Beaubassin East'
### Instruction: CREATE TABLE table_74359 ( "Outcome" text, "Date" text, "Tournament" text, "Location" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in how many dates ...
SELECT COUNT("Date") FROM table_74359 WHERE "Opponent in the final" = 'Rushmi Chakravarthi'
### Instruction: CREATE TABLE table_26837 ( "Bowl Game" text, "Date" text, "Stadium" text, "Location" text, "TV" text, "Matchup winner bolded" text, "Payout ( US$ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of pay...
SELECT COUNT("Payout ( US$ )") FROM table_26837 WHERE "Date" = 'December 28, 2009'
### 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 Investor DESC
### Instruction: CREATE TABLE table_10567 ( "Rank" real, "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 bronze when gold is 1, the nation is hungary and the ra...
SELECT AVG("Bronze") FROM table_10567 WHERE "Gold" = '1' AND "Nation" = 'hungary' AND "Rank" < '3'
### Instruction: CREATE TABLE table_33409 ( "Vessel Name" text, "Type" text, "Built" real, "Class" text, "Flag" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? ...
SELECT "Vessel Name" FROM table_33409 WHERE "Flag" = 'malta' AND "Type" = 'panamax' AND "Class" = 'gl' AND "Built" > '2010'
### Instruction: CREATE TABLE table_78080 ( "Airing date" text, "Number of episodes" real, "HD format" text, "Highest average point ratings" real, "Genre" text, "Official website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the numbe...
SELECT AVG("Number of episodes") FROM table_78080 WHERE "Genre" = 'modern drama' AND "Highest average point ratings" = '28'
### Instruction: CREATE TABLE table_204_832 ( id number, "name" text, "nationality" text, "club" text, "from" number, "until" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- marc dos santos started as coach the same year as what other coach ? #...
SELECT "name" FROM table_204_832 WHERE "name" <> 'marc dos santos' AND "from" = (SELECT "from" FROM table_204_832 WHERE "name" = 'marc dos santos')
### Instruction: CREATE TABLE table_51060 ( "Year" real, "Beer Name" text, "Prize" text, "Category" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What beer won a silver medal at the camra reading branch beer festival in 2008? ...
SELECT "Beer Name" FROM table_51060 WHERE "Prize" = 'silver medal' AND "Competition" = 'camra reading branch beer festival' AND "Year" = '2008'
### Instruction: CREATE TABLE table_71331 ( "District" text, "Counties Represented" text, "Delegate" text, "Party" text, "First Elected" real, "Committee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What counties represented have a First Elec...
SELECT "Counties Represented" FROM table_71331 WHERE "First Elected" = '2006' AND "Committee" = 'ways and means'
### Instruction: CREATE TABLE table_203_254 ( id number, "position" number, "team" text, "points" number, "played" number, "won" number, "drawn" number, "lost" number, "for" number, "against" number, "difference" number ) -- Using valid SQLite, answer the following question...
SELECT COUNT("team") FROM table_203_254 WHERE "played" > 16
### Instruction: CREATE TABLE table_25307 ( "Country" text, "Type of Protection" text, "Maximum Term" text, "PCT route available" text, "Conversion from Patent Application" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the PCT route available ...
SELECT "Conversion from Patent Application" FROM table_25307 WHERE "Maximum Term" = '10 years' AND "PCT route available" = 'Yes'
### Instruction: CREATE TABLE table_12229 ( "Version" text, "KINKA Developer" text, "KINKA Pre-release" text, "KINKA 1.0" text, "KINKA 1.2" text, "KINKA 1.3" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pre-release when the develop...
SELECT "KINKA Pre-release" FROM table_12229 WHERE "KINKA Developer" = 'no'
### Instruction: CREATE TABLE table_46437 ( "Finish" text, "Race" text, "Distance" text, "Jockey" text, "Time" text, "Victory Margin (in lengths)" text, "Runner up" text, "Track" text, "Surface" text, "Date" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "Finish" FROM table_46437 WHERE "Race" = 'kentucky derby'
### Instruction: CREATE TABLE table_35533 ( "Unit" text, "Russian" text, "Translation" text, "Ratio" text, "Cubic inches (exact)" text, "Metric value" text, "Imperial value" text, "US Customary" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "Cubic inches (exact)" FROM table_35533 WHERE "Unit" = 'kruzhka'
### Instruction: CREATE TABLE table_43056 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Positio...
SELECT "Venue" FROM table_43056 WHERE "Year" > '2006' AND "Position" = '7th' AND "Notes" = 'heptathlon'
### Instruction: CREATE TABLE table_28149 ( "Date" text, "Location" text, "Fight" text, "Division" text, "Titles" text, "Rematch" text, "TV" text, "Promoter" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the t...
SELECT "Titles" FROM table_28149 WHERE "Notes" = 'Undercard of Stevenson/Bellew'
### Instruction: CREATE TABLE table_58236 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When renault is the constructor, the grid is over 6, and the time was labeled igni...
SELECT MAX("Laps") FROM table_58236 WHERE "Grid" > '6' AND "Constructor" = 'renault' AND "Time/Retired" = 'ignition'
### Instruction: CREATE TABLE table_70795 ( "Player" text, "Height" real, "Position" text, "Year born" real, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position does Sergio Rodr guez, who is less than 1.96 tall and was born a...
SELECT "Position" FROM table_70795 WHERE "Height" < '1.96' AND "Year born" > '1980' AND "Player" = 'sergio rodríguez'
### Instruction: CREATE TABLE table_74249 ( "\u2116" real, "#" 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 tables provided abo...
SELECT MIN("\u2116") FROM table_74249 WHERE "#" = '18'
### Instruction: CREATE TABLE table_76488 ( "Rank" real, "Club" text, "Winners" real, "Runners-up" real, "Third" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Third has Runners-up of 0, and Winners of 0, and a Club of far rabat? ### Respons...
SELECT AVG("Third") FROM table_76488 WHERE "Runners-up" = '0' AND "Winners" = '0' AND "Club" = 'far rabat'
### Instruction: CREATE TABLE table_64497 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" real, "Average Ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the tv station when the romaji title is kazoku~tsuma...
SELECT "TV Station" FROM table_64497 WHERE "Romaji Title" = 'kazoku~tsuma no fuzai・otto no sonzai~'
### Instruction: CREATE TABLE table_47192 ( "Tournament" text, "Surface" text, "Week" text, "Winners" text, "Finalists" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Week was Serena Williams 6 1, 6 7(7), 6 3 the Wi...
SELECT "Week" FROM table_47192 WHERE "Winners" = 'serena williams 6–1, 6–7(7), 6–3'
### Instruction: CREATE TABLE table_68436 ( "Season" real, "Date" text, "Location" text, "Race" text, "Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the place result of the downhill race before the 1996 season on 11-Mar-1995? ### R...
SELECT "Place" FROM table_68436 WHERE "Race" = 'downhill' AND "Season" < '1996' AND "Date" = '11-mar-1995'
### Instruction: CREATE TABLE table_204_102 ( id number, "name" text, "location served" text, "governorate" text, "utilization" text, "helipads" number, "runways" number, "shelters" number, "squadrons" text, "coordinates" text ) -- Using valid SQLite, answer the following quest...
SELECT "name" FROM table_204_102 ORDER BY "shelters" DESC LIMIT 1
### Instruction: CREATE TABLE table_40481 ( "Name" text, "Rank" real, "Out of" text, "Source" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and ...
SELECT "Name" FROM table_40481 WHERE "Rank" < '71' AND "Year" > '2005' AND "Out of" = '220'
### Instruction: CREATE TABLE table_40366 ( "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 total number of silvers associated with 3 bronzes, a total over...
SELECT COUNT("Silver") FROM table_40366 WHERE "Bronze" = '3' AND "Rank" = '3' AND "Total" > '6'
### Instruction: CREATE TABLE table_80427 ( "Season" text, "Team Name" text, "Games" real, "Losses" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total number of points when the vancouver carlings have fewer than 12 losses...
SELECT COUNT("Points") FROM table_80427 WHERE "Losses" < '12' AND "Team Name" = 'vancouver carlings' AND "Games" > '32'
### Instruction: CREATE TABLE table_18766 ( "Rank" real, "Place" text, "County" text, "Per Capita Income" text, "Median House- hold Income" text, "Population" real, "Number of Households" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's...
SELECT "Number of Households" FROM table_18766 WHERE "Per Capita Income" = '$16,820'
### Instruction: CREATE TABLE table_29379 ( "Season" real, "Series" text, "Team" text, "Starts" real, "Wins" real, "Podiums" real, "Poles" real, "Fastest Laps" real, "Points" text, "Place" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT MIN("Podiums") FROM table_29379 WHERE "Season" = '2009'
### Instruction: CREATE TABLE table_51856 ( "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 home team score whe...
SELECT "Home team score" FROM table_51856 WHERE "Away team score" = '17.18 (120)'
### Instruction: CREATE TABLE table_2557 ( "Number in map" text, "Prefecture" text, "Area (km\u00b2)" text, "Population (2001)" real, "Pop. density (/km\u00b2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many prefectures have a population de...
SELECT COUNT("Pop. density (/km\u00b2)") FROM table_2557 WHERE "Number in map" = '16'
### Instruction: CREATE TABLE table_25957 ( "Edition" text, "Round" text, "Date" text, "Against" text, "Surface" text, "Opponent" text, "Result" text, "Outcome" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the date is 7-21-2006, who...
SELECT "Opponent" FROM table_25957 WHERE "Date" = '7-21-2006'
### Instruction: CREATE TABLE table_9370 ( "Year" text, "Starts" real, "Wins" real, "Top Fives" real, "Top Tens" real, "Poles" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of top fives in 2010 when cas...
SELECT COUNT("Top Fives") FROM table_9370 WHERE "Year" = '2010' AND "Wins" > '0'
### Instruction: CREATE TABLE table_23019 ( "Country" text, "Total Drivers" real, "Champions" real, "Championships" real, "Current March 20, 2010" real, "First driver(s)" text, "Last/Current driver(s) March 20, 2010" text ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT COUNT("Total Drivers") FROM table_23019 WHERE "Country" = 'India'
### Instruction: CREATE TABLE table_70191 ( "Country" text, "Currency" text, "1 Euro =" real, "1 USD =" text, "Central bank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country has a Euro that equals larger than 1.46611, and an usd equal to...
SELECT "Country" FROM table_70191 WHERE "1 Euro =" > '1.46611' AND "1 USD =" = '1.76650'
### Instruction: CREATE TABLE table_78359 ( "Year" real, "Network" text, "Lap-by-lap" text, "s Color commentator" text, "Pre-Race Host" text, "Pre-Race Analyst(s)" text, "Ratings" text, "Viewers" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "Ratings" FROM table_78359 WHERE "Year" = '2013'
### Instruction: CREATE TABLE table_40250 ( "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 many Against have a Team o...
SELECT COUNT("Against") FROM table_40250 WHERE "Team" = 'hespanha' AND "Points" < '30'
### Instruction: CREATE TABLE table_68321 ( "Name of Ship" text, "Length" text, "Max speed" text, "Crew/Capacity" text, "Class" text, "Builder" text, "Delivery" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who built the ship that is 42.8 m...
SELECT "Builder" FROM table_68321 WHERE "Length" = '42.8 m' AND "Delivery" = '2007'
### Instruction: CREATE TABLE table_69305 ( "Outcome" text, "Tournament" text, "Surface" text, "Partner" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the final in which Melanie ...
SELECT "Score" FROM table_69305 WHERE "Partner" = 'ksenia lykina' AND "Tournament" = 'kurume'
### Instruction: CREATE TABLE table_46279 ( "Club" text, "Champions" real, "Runners-up" real, "3rd-Place" real, "4th-Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Runners-Up, when 4th-Place is greater than 1, and when Cha...
SELECT AVG("Runners-up") FROM table_46279 WHERE "4th-Place" > '1' AND "Champions" = '2'
### Instruction: CREATE TABLE table_11280 ( "Season Number" text, "Premiere Date" text, "Winner" text, "Runner Up" text, "2nd Runner-up" text, "3rd Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 2nd runner-up for july 20, 200...
SELECT "2nd Runner-up" FROM table_11280 WHERE "Premiere Date" = 'july 20, 2007'
### Instruction: CREATE TABLE table_64828 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many golds have a bronze greater than 1, total as the nation, and a sil...
SELECT COUNT("Gold") FROM table_64828 WHERE "Bronze" > '1' AND "Nation" = 'total' AND "Silver" < '18'
### Instruction: CREATE TABLE ref_product_categories ( unit_of_measure VARCHAR, product_category_code VARCHAR ) CREATE TABLE products ( product_category_code VARCHAR, product_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the unit of measu...
SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"
### Instruction: CREATE TABLE table_40507 ( "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 many played has an against...
SELECT COUNT("Played") FROM table_40507 WHERE "Against" > '57' AND "Lost" > '14'
### Instruction: CREATE TABLE table_19475 ( "Date Released" text, "Polling institute" text, "Socialist" text, "Social Democratic" text, "Peoples Party" text, "Green-Communist" text, "Left Bloc" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables pro...
SELECT "Date Released" FROM table_19475 WHERE "Green-Communist" = '8.9%'
### Instruction: CREATE TABLE table_65577 ( "School" text, "Location" text, "Mascot" text, "Size" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What county has a school with le...
SELECT "County" FROM table_65577 WHERE "IHSAA Football Class" = 'a' AND "Size" < '301'
### Instruction: CREATE TABLE table_67595 ( "Coach" text, "Team" text, "Wins" real, "Loss" real, "PCT." real, "PTS." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19? ### R...
SELECT "Coach" FROM table_67595 WHERE "PCT." > '0.1' AND "PTS." > '9' AND "Loss" = '19'
### Instruction: CREATE TABLE table_54817 ( "Marginal Ordinary Income Tax Rate" text, "Single" text, "Married Filing Jointly or Qualified Widow(er)" text, "Married Filing Separately" text, "Head of Household" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Married Filing Separately" FROM table_54817 WHERE "Single" = '$0–$8,350'
### Instruction: CREATE TABLE table_27469 ( "June 10-11" text, "March 27-29" text, "January 15-16" text, "November 3" text, "August 21-22" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many numbers are there for August when March is 139? ### ...
SELECT COUNT("August 21-22") FROM table_27469 WHERE "March 27-29" = '139'
### Instruction: CREATE TABLE table_203_344 ( id number, "#" number, "date" text, "opponent" text, "score" text, "win" text, "loss" text, "save" text, "attendance" number, "record" text, "other info" text ) -- Using valid SQLite, answer the following questions for the table...
SELECT COUNT(*) FROM table_203_344 WHERE "opponent" = 'braves'
### Instruction: CREATE TABLE table_15013825_8 ( copa_libertadores_1992 VARCHAR, copa_conmebol_1992 VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the copa libertadores 1992 for round of 16 and team of fluminense ### Response:
SELECT copa_libertadores_1992 FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16" AND team = "Fluminense"
### Instruction: CREATE TABLE table_204_722 ( id number, "season" text, "series" text, "team" text, "races" number, "wins" number, "poles" number, "f/lap" number, "podiums" number, "points" number, "position" text ) -- Using valid SQLite, answer the following questions for ...
SELECT "team" FROM table_204_722 WHERE "points" IS NULL
### Instruction: CREATE TABLE table_204_255 ( id number, "constituency number" number, "name" text, "reserved for (sc/st/none)" text, "district" text, "number of electorates (2009)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- name a constit...
SELECT "name" FROM table_204_255 WHERE "number of electorates (2009)" = 139110
### Instruction: CREATE TABLE table_32984 ( "Chapter" text, "Colonized" text, "Chartered" text, "School" text, "State" text, "Status" text, "Charter Range" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the colonized date for the n/a...
SELECT "Colonized" FROM table_32984 WHERE "Charter Range" = 'n/a' AND "School" = 'appalachian state'
### Instruction: CREATE TABLE table_203_67 ( id number, "place" number, "team" text, "played" number, "won" number, "draw" number, "lost" number, "goals\nscored" number, "goals\nconceded" number, "+/-" number, "points" number ) -- Using valid SQLite, answer the following qu...
SELECT "team" FROM table_203_67 ORDER BY "points" DESC LIMIT 1
### Instruction: CREATE TABLE table_1063 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" text, "2nd (m)" text, "Points" text, "Overall NT points" text, "Overall WC points (Rank)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- N...
SELECT COUNT("Overall NT points") FROM table_1063 WHERE "Points" = '248.9'
### Instruction: CREATE TABLE table_30737 ( "Region name" text, "State name" text, "Region #" real, "Page count" real, "Regional Page #" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which region has a regional page # of 1-3, 5-7, 9-11, 13-15? ##...
SELECT "Region name" FROM table_30737 WHERE "Regional Page #" = '1-3, 5-7, 9-11, 13-15'
### Instruction: CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE college ( cname text, state text, enr number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) -- Using valid SQLite, answer the following question...
SELECT cname FROM college WHERE enr > 18000 ORDER BY cname
### Instruction: CREATE TABLE table_60290 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nationality is Mark Hirth from Michiga...
SELECT "Nationality" FROM table_60290 WHERE "College/junior/club team" = 'michigan state university (ncaa)' AND "Player" = 'mark hirth'
### Instruction: CREATE TABLE train ( train_id number, name text, time text, service text ) CREATE TABLE train_station ( train_id number, station_id number ) CREATE TABLE station ( station_id number, name text, annual_entry_exit number, annual_interchanges number, total_pas...
SELECT COUNT(*) FROM station
### Instruction: CREATE TABLE table_70071 ( "Home Run" real, "Game" real, "Date" text, "Inning" text, "Location" text, "Opposing Pitcher" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has an Opposing Pitcher of jack ...
SELECT "Date" FROM table_70071 WHERE "Opposing Pitcher" = 'jack morris' AND "Inning" = '4th'
### Instruction: CREATE TABLE table_203_114 ( id number, "week" number, "date" text, "tv time" text, "opponent" text, "result" text, "game site" text, "record" text, "attendance" number, "bye" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT COUNT(*) FROM table_203_114 WHERE "result" >= 2 * "result"
### Instruction: CREATE TABLE table_203_871 ( id number, "#" number, "player" text, "pos" text, "pts" number, "tries" number, "conv" number, "pens" number, "drop" number, "opposition" text, "venue" text, "date" text ) -- Using valid SQLite, answer the following question...
SELECT "player" FROM table_203_871 WHERE id = 1
### Instruction: CREATE TABLE table_14118521_1 ( primary_payload_s_ VARCHAR, shuttle VARCHAR, duration VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many primary payload(s) with shuttle being columbia and duration being 13 days, 19 hours, 30 minutes...
SELECT COUNT(primary_payload_s_) FROM table_14118521_1 WHERE shuttle = "Columbia" AND duration = "13 days, 19 hours, 30 minutes, 4 seconds"
### Instruction: CREATE TABLE table_56381 ( "Bowling figures Wickets-Runs (Overs)" text, "Bowler" text, "Versus" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent during the competition in which the bowli...
SELECT "Versus" FROM table_56381 WHERE "Bowling figures Wickets-Runs (Overs)" = '5-33 (10)'
### Instruction: CREATE TABLE table_name_46 ( condition VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Condition has an unaffected Partial thromboplastin tim...
SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = "unaffected" AND platelet_count = "unaffected" AND prothrombin_time = "unaffected"
### Instruction: CREATE TABLE table_204_246 ( id number, "department" text, "total deputies" number, "uninominal deputies" number, "plurinominal deputies" number, "special indigenous\nor campesino deputies" number, "senators" number ) -- Using valid SQLite, answer the following questions f...
SELECT "department" FROM table_204_246 ORDER BY "total deputies" LIMIT 1
### Instruction: CREATE TABLE table_27483 ( "No. in series" text, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (millions)" text, "Original U.S. air date" text, "Prod. code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "No. in series" FROM table_27483 WHERE "Prod. code" = '110'
### Instruction: CREATE TABLE table_203_654 ( id number, "position" number, "team" text, "points" number, "played" number, "won" number, "drawn" number, "lost" number, "for" number, "against" number, "difference" number ) -- Using valid SQLite, answer the following question...
SELECT SUM("points") FROM table_203_654
### Instruction: CREATE TABLE table_63271 ( "Name" text, "Games" text, "A-League" text, "Finals" text, "Goals" real, "Assists" real, "Years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of goals of the player with...
SELECT MIN("Goals") FROM table_63271 WHERE "Games" = '9 (0)' AND "Assists" < '0'
### Instruction: CREATE TABLE round ( Round_ID int, Member_ID int, Decoration_Theme text, Rank_in_Round int ) CREATE TABLE college ( College_ID int, Name text, Leader_Name text, College_Location text ) CREATE TABLE member ( Member_ID int, Name text, Country text, Colleg...
SELECT Country, COUNT(*) FROM member GROUP BY Country
### Instruction: CREATE TABLE table_41427 ( "Tournament" text, "2003" text, "2004" text, "2012" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the tournament that has the results of 2003 2r and 2004 1r? ### Respons...
SELECT "Tournament" FROM table_41427 WHERE "2003" = '2r' AND "2004" = '1r'
### Instruction: CREATE TABLE table_40544 ( "Season" text, "Champion" text, "Runner-Up" text, "3rd Position" text, "Top Goalscorer(s)" text, "Team(s)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which runner-up has narva trans as a 3rd positi...
SELECT "Runner-Up" FROM table_40544 WHERE "3rd Position" = 'narva trans' AND "Season" = '2005'
### Instruction: CREATE TABLE table_dev_61 ( "id" int, "pregnancy_or_lactation" bool, "allergy_to_gadolinium" bool, "renal_disease" bool, "creatinine_clearance_cl" float, "cardiogenic_shock" bool, "hypertension" bool, "NOUSE" float ) -- Using valid SQLite, answer the following question...
SELECT * FROM table_dev_61 WHERE cardiogenic_shock = 1