instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_23537091_1 ( early_chalcolithic VARCHAR, ubaid_period_in_mesopotamia VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalc...
SELECT COUNT(early_chalcolithic) FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Middle Kingdom , New Kingdom of Egypt"
### Instruction: CREATE TABLE table_57083 ( "State" text, "Interview" real, "Swimsuit" real, "Evening gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of swimsuit when the evening gown is less than 6.983 and the aver...
SELECT SUM("Swimsuit") FROM table_57083 WHERE "Average" < '7.362' AND "Evening gown" < '6.983'
### Instruction: CREATE TABLE table_74503 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the total number of events for tourname...
SELECT COUNT("Events") FROM table_74503 WHERE "Tournament" = 'masters tournament' AND "Top-25" < '6'
### Instruction: CREATE TABLE table_203_615 ( id number, "district" text, "incumbent" text, "party" text, "first\nelected" number, "result" text, "candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many republicans were re electe...
SELECT COUNT(*) FROM table_203_615 WHERE "party" = 'republican' AND "result" = 're-elected' AND "first\nelected" > 1920
### Instruction: CREATE TABLE table_41803 ( "Number" text, "Proto-Austronesian" text, "Proto-Malayo-Polynesian" text, "Proto-Oceanic" text, "Proto-Polynesian" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Proto-Polynesian has a Proto-Malayo-P...
SELECT "Proto-Polynesian" FROM table_41803 WHERE "Proto-Malayo-Polynesian" = '*telu'
### Instruction: CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text ) -- Using valid SQLite, answer the follo...
SELECT Type, COUNT(Type) FROM ship GROUP BY Type ORDER BY Type DESC
### Instruction: CREATE TABLE table_204_159 ( id number, "name" text, "nation" text, "position" text, "league apps" number, "league goals" number, "fa cup apps" number, "fa cup goals" number, "total apps" number, "total goals" number ) -- Using valid SQLite, answer the followin...
SELECT AVG("total goals") FROM table_204_159 WHERE "nation" = 'scotland'
### Instruction: CREATE TABLE table_6919 ( "Season" text, "Games" real, "Lost" real, "Tied" real, "Points" real, "Goals for" real, "Goals against" real, "Coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most points when ...
SELECT MAX("Points") FROM table_6919 WHERE "Goals against" = '354' AND "Games" < '82'
### Instruction: CREATE TABLE table_24375 ( "Barangay" text, "Population (2000)" real, "Population (2007)" real, "Population (2010)" real, "Barangay Fiesta" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2010 population when the 2000 pop...
SELECT MAX("Population (2010)") FROM table_24375 WHERE "Population (2000)" = '5720'
### Instruction: CREATE TABLE table_59200 ( "Year" real, "Lok Sabha" text, "Members of Parliament" text, "Party Won" text, "Winner's % votes" text, "Trailing Party" text, "Trailing Party % votes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT "Members of Parliament" FROM table_59200 WHERE "Trailing Party" = 'bharatiya lok dal'
### Instruction: CREATE TABLE table_64195 ( "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's the bronze medal count for Rank 33 when the silver count was less th...
SELECT MAX("Bronze") FROM table_64195 WHERE "Silver" < '2' AND "Total" > '4' AND "Rank" = '33'
### Instruction: CREATE TABLE table_72651 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the table...
SELECT "Viewers (millions)" FROM table_72651 WHERE "Title" = 'Sokka''s Master'
### Instruction: CREATE TABLE table_9903 ( "Matrix" real, "Recording date" text, "Title" text, "Accompaniment" text, "Paramount Issue No." real, "Sandra Lieb Classification" text, "JSP 77933" text, "Document DOCD" real ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Recording date" FROM table_9903 WHERE "Title" = 'screech owl blues'
### Instruction: CREATE TABLE table_73644 ( "Year" real, "Oscars" text, "Noms" real, "Wins" real, "Film" text, "Leading Actor" text, "Leading Actress" text, "Supporting Actor" text, "Supporting Actress" text ) -- Using valid SQLite, answer the following questions for the tables pro...
SELECT "Supporting Actress" FROM table_73644 WHERE "Year" = '1943'
### Instruction: CREATE TABLE table_29299 ( "Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." real, "Series No." real, "Episode" text, "Director" text, "Writer(s)" text, "Original airdate" te...
SELECT "Original airdate" FROM table_29299 WHERE "Episode" = 'The Raid'
### Instruction: CREATE TABLE table_3210 ( "Region" text, "Median income ( Intl.$ )" real, "Below 40% of median income" text, "Below 50% of median income" text, "Below 60% of median income" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what regi...
SELECT "Region" FROM table_3210 WHERE "Below 50% of median income" = '18.6%'
### Instruction: CREATE TABLE table_35849 ( "Name" text, "Hanzi" text, "Hanyu Pinyin" text, "Population (2010-11-01)" text, "Area (km\u00b2)" text, "Density (/km\u00b2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Pinyin for ? #...
SELECT "Hanyu Pinyin" FROM table_35849 WHERE "Hanzi" = '依兰县'
### Instruction: CREATE TABLE table_25634 ( "Season" text, "Junior (South) Winners" text, "Intermediate (South) Winners" text, "Minor (South) Winners" text, "Primary (South) Winners" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the season ...
SELECT "Season" FROM table_25634 WHERE "Minor (South) Winners" = 'Bristol Sanctuary XI'
### Instruction: CREATE TABLE table_6033 ( "Year" real, "Group" text, "Award" text, "Film/Series" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year in which Kim was nominated for Thirst as Best Actress at the Bae...
SELECT AVG("Year") FROM table_6033 WHERE "Result" = 'nominated' AND "Film/Series" = 'thirst' AND "Award" = 'best actress' AND "Group" = 'baeksang arts awards'
### Instruction: CREATE TABLE table_54931 ( "Grade" text, "Points" real, "Sit-up (reps)" text, "Standing Broad Jump (cm)" text, "Chin-up (reps)" text, "Shuttle Run (sec)" text, "2.4km Run (min:sec)" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "Standing Broad Jump (cm)" FROM table_54931 WHERE "Grade" = 'b'
### Instruction: CREATE TABLE table_65625 ( "Club" text, "Total points" text, "Bonus points" text, "Match points" text, "Games" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Diff" text ) -- Using valid SQLite, answer the following questions for the...
SELECT "Bonus points" FROM table_65625 WHERE "Points against" = '448'
### Instruction: CREATE TABLE table_72891 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "High assists" FROM table_72891 WHERE "High rebounds" = 'Matt Barnes (11)'
### Instruction: CREATE TABLE table_57166 ( "Round" real, "Grand Prix" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT "Winning Constructor" FROM table_57166 WHERE "Winning Driver" = 'riccardo patrese'
### Instruction: CREATE TABLE table_27887 ( "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_27887 WHERE "Settlement" = 'Sočica'
### Instruction: CREATE TABLE table_61636 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text, "Arena" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Opponent at the Hond...
SELECT "Opponent" FROM table_61636 WHERE "Arena" = 'honda center' AND "Date" = 'march 29'
### Instruction: CREATE TABLE table_62558 ( "Year" real, "Total passengers" text, "Passenger Change" text, "Domestic" text, "International (total)" text, "International (non-CIS)" text, "Aircraft Landings" text, "Cargo (tonnes)" text ) -- Using valid SQLite, answer the following questi...
SELECT COUNT("Year") FROM table_62558 WHERE "Passenger Change" = '+32,9%'
### Instruction: CREATE TABLE table_20333 ( "Week" real, "Date" text, "Result" text, "Record" text, "Opponent" text, "Points For" real, "Points Against" real, "First Downs" real, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT MAX("Points Against") FROM table_20333 WHERE "Attendance" = '47678'
### Instruction: CREATE TABLE table_16432 ( "English name" text, "Original name" text, "Area in km\u00b2" text, "Population at 2010 Census" real, "Number of settlements and villages" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the origin...
SELECT "Original name" FROM table_16432 WHERE "Population at 2010 Census" = '210450'
### Instruction: CREATE TABLE table_name_21 ( sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What sensor has a resolution of 640x480 with small CPU usage, jpeg c...
SELECT sensor FROM table_name_21 WHERE sensor_resolution = "640x480" AND cpu_usage = "small" AND output = "jpeg compressed" AND camera = "sony playstation eyetoy"
### Instruction: CREATE TABLE table_53104 ( "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_53104 WHERE "Pole position" = 'joakim bonnier'
### Instruction: CREATE TABLE table_26768 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT MAX("Wins") FROM table_26768 WHERE "Series" = 'Formula 3 Euro Series'
### Instruction: CREATE TABLE table_69221 ( "Name" text, "Father" text, "Birth" text, "Marriage" text, "Became Countess" text, "Ceased to be Countess" text, "Death" text, "Spouse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was t...
SELECT "Marriage" FROM table_69221 WHERE "Death" = '17 december 1471'
### Instruction: CREATE TABLE table_204_707 ( id number, "year" number, "english title" text, "chinese title" text, "director" text, "role" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the next movie zhao dan starred in after crossroa...
SELECT "english title" FROM table_204_707 WHERE "year" > (SELECT "year" FROM table_204_707 WHERE "english title" = 'crossroads') ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_4162 ( "Province" text, "Number of Dairy Farms" real, "Number of Dairy Cows" real, "Production (hectolitres)" real, "Dairy Cows per Farm" real, "Production (hectolitres) per Farm" real ) -- Using valid SQLite, answer the following questions for the tables pr...
SELECT "Province" FROM table_4162 WHERE "Number of Dairy Farms" = '200'
### Instruction: CREATE TABLE table_28436 ( "Sd" real, "Rk" real, "Player" text, "Points" real, "Points defending" real, "Points won" real, "New points" real, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the points won were...
SELECT "New points" FROM table_28436 WHERE "Points defending" = '45' AND "Points won" = '90'
### Instruction: CREATE TABLE table_69781 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "10:00" text, "10:30" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- for the 9:00 of bionic woman what is the 8:30? ### Response:
SELECT "8:30" FROM table_69781 WHERE "9:00" = 'bionic woman'
### Instruction: CREATE TABLE table_47423 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ($)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player has +7 as the to par, and 69-69-75-74=287 as the score? ...
SELECT "Player" FROM table_47423 WHERE "To par" = '+7' AND "Score" = '69-69-75-74=287'
### Instruction: CREATE TABLE table_name_65 ( death_date VARCHAR, rank VARCHAR, age__as_of_1_february_2014_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Death date has a Rank smaller than 49, and an Age (as of 1 February 2014) of 112 years, 172 d...
SELECT death_date FROM table_name_65 WHERE rank < 49 AND age__as_of_1_february_2014_ = "112 years, 172 days"
### Instruction: CREATE TABLE table_45375 ( "Channel" text, "Play-by-play" text, "Color commentator(s)" text, "Studio host" text, "Studio analysts" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the studio host for the game that has Paul Sund...
SELECT "Studio host" FROM table_45375 WHERE "Play-by-play" = 'paul sunderland' AND "Studio analysts" = 'jack haley'
### Instruction: CREATE TABLE table_13082 ( "Date (dd.mm.yyyy)" text, "Soviet Unit" text, "Aircraft flown" text, "Enemy Aircraft" text, "Axis Unit" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the aircraft flown when the axis unit was luf...
SELECT "Aircraft flown" FROM table_13082 WHERE "Axis Unit" = 'luftwaffe (**)' AND "Enemy Aircraft" = 'ju.88'
### Instruction: CREATE TABLE table_63274 ( "Rank" real, "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest rank when the lane is larger than 6, and the heat is 3,...
SELECT MAX("Rank") FROM table_63274 WHERE "Lane" > '6' AND "Heat" = '3' AND "Nationality" = 'colombia'
### Instruction: CREATE TABLE table_7077 ( "Name" text, "Built by HM Dockyard" text, "Ordered" text, "Laid down" text, "Launched" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name that has July 1823 as the Laid down, and portsmouth as ...
SELECT "Name" FROM table_7077 WHERE "Laid down" = 'july 1823' AND "Built by HM Dockyard" = 'portsmouth'
### Instruction: CREATE TABLE table_51765 ( "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 day was played in SCG with...
SELECT "Date" FROM table_51765 WHERE "Crowd" > '24,824' AND "Venue" = 'scg'
### Instruction: CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text ) -- Using valid SQLite, answer the follo...
SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY Type
### Instruction: CREATE TABLE table_43371 ( "Season" text, "Competition" text, "Round" text, "Opponent" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Competition for Season 2002 03, and the Opponent was zenit st. petersbu...
SELECT "Competition" FROM table_43371 WHERE "Season" = '2002–03' AND "Opponent" = 'zenit st. petersburg'
### Instruction: CREATE TABLE table_8178 ( "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 rebounds" FROM table_8178 WHERE "Game" > '76' AND "Team" = 'phoenix'
### Instruction: CREATE TABLE table_56696 ( "PRR Class" text, "Builder\u2019s Model" text, "Build date" text, "Total produced" real, "Wheel arrangement" text, "Service" text, "Power output" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
SELECT "Power output" FROM table_56696 WHERE "Wheel arrangement" = 'b-b' AND "Build date" = '1952'
### Instruction: CREATE TABLE aircraft ( aid number, name text, distance number ) CREATE TABLE certificate ( eid number, aid number ) CREATE TABLE employee ( eid number, name text, salary number ) CREATE TABLE flight ( flno number, origin text, destination text, distan...
SELECT COUNT(DISTINCT eid) FROM certificate
### Instruction: CREATE TABLE table_60525 ( "County" 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. -- What media...
SELECT "Median family income" FROM table_60525 WHERE "Population" > '93,643' AND "County" = 'cleveland'
### Instruction: CREATE TABLE table_69208 ( "Year" real, "Total Region" real, "Rockhampton" real, "Livingstone" real, "Fitzroy" real, "Mt Morgan" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were in Mt Morgan earlier than 1933 ...
SELECT COUNT("Mt Morgan") FROM table_69208 WHERE "Total Region" = '44,501' AND "Year" < '1933'
### Instruction: CREATE TABLE table_28526 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" text, "Left" text, "Nickname" text, "Primary Conference when joining the MSFA" text, "Current Primary Conference" text ) -- Using valid SQLi...
SELECT "Type" FROM table_28526 WHERE "Nickname" = 'Oilers'
### Instruction: CREATE TABLE table_64647 ( "Year" real, "Title" text, "From album" text, "Label" text, "Label-Nr" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album...
SELECT "Label-Nr" FROM table_64647 WHERE "Year" < '1968' AND "Label" = 'world pacific' AND "From album" = 'chile con soul'
### Instruction: CREATE TABLE table_65102 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Bonus points" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lost nu...
SELECT "Lost" FROM table_65102 WHERE "Drawn" = '2' AND "Points against" = '572'
### Instruction: CREATE TABLE table_26490 ( "Year" real, "Putri Pariwisata Indonesia" text, "1st Runner Up" text, "2nd Runner Up" text, "3rd Runner Up" text, "4th Runner Up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won 4th place when a...
SELECT "3rd Runner Up" FROM table_26490 WHERE "2nd Runner Up" = 'Audrie Adriana Sanova'
### Instruction: CREATE TABLE table_203_781 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- bangkok , thailand held the 2002 asian junior championships . what ...
SELECT "year" FROM table_203_781 WHERE "venue" = 'bangkok, thailand' AND "year" > 2002 ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE film_actor ( actor_id VARCHAR ) CREATE TABLE actor ( first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which film actor (actress) starred the most films? List his or her firs...
SELECT T2.first_name, T2.last_name, T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_26323 ( "Episode number Production number" text, "Title" text, "Original airing" text, "Rating" text, "Share" real, "Rating/share (18\u201349)" text, "Total viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the table...
SELECT "Total viewers (in millions)" FROM table_26323 WHERE "Rating" = '9.1'
### Instruction: CREATE TABLE table_56589 ( "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's score w...
SELECT "Home team score" FROM table_56589 WHERE "Away team score" = '12.10 (82)'
### Instruction: CREATE TABLE table_203_161 ( id number, "pos." text, "div." number, "no." number, "team" text, "drivers" text, "car" text, "laps" number, "qual.\npos." number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- larry perkins a...
SELECT "drivers" FROM table_203_161 WHERE "team" = 'perkins engineering' AND "drivers" <> 'larry perkins'
### Instruction: CREATE TABLE table_204_628 ( id number, "trial number" text, "date" text, "name of trial" text, "celebrity/ies taking part" text, "winner/number of stars" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- jan and ...
SELECT "celebrity/ies taking part" FROM table_204_628 WHERE "trial number" = 10 - 1
### Instruction: CREATE TABLE table_name_87 ( surface VARCHAR, score_in_the_final VARCHAR, opponents_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Surface which has a Score in the final of 6 3, 6 2 and Opponents in the final of man...
SELECT surface FROM table_name_87 WHERE score_in_the_final = "6–3, 6–2" AND opponents_in_the_final = "mansour bahrami diego pérez"
### Instruction: CREATE TABLE table_20647 ( "Province" text, "Map #" real, "ISO 3166-2:AF" text, "Centers" text, "Population" real, "Area (km\u00b2)" real, "Language" text, "Notes" text, "U.N. Region" text ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT "Language" FROM table_20647 WHERE "Province" = 'Kunar'
### Instruction: CREATE TABLE table_72987 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Raiders points" real, "Opponents" real, "Raiders first downs" real, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "Result" FROM table_72987 WHERE "Attendance" = '31095'
### Instruction: CREATE TABLE table_19758 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" text, "Jockey" text, "Winner/2nd" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ...
SELECT "Group" FROM table_19758 WHERE "Race" = '3yo Hcp Restricted Maiden'
### Instruction: CREATE TABLE Ref_document_types ( document_type_name VARCHAR, document_type_code VARCHAR ) CREATE TABLE All_documents ( document_type_code VARCHAR, document_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the document ty...
SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"
### Instruction: CREATE TABLE table_55445 ( "Name" text, "Latitude" real, "Longitude" real, "Diameter (km)" real, "Named after" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 2...
SELECT COUNT("Diameter (km)") FROM table_55445 WHERE "Latitude" < '14' AND "Name" = 'xenia' AND "Longitude" > '249.4'
### Instruction: CREATE TABLE table_9057 ( "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 did wilson reis fight against t...
SELECT "Opponent" FROM table_9057 WHERE "Round" < '3' AND "Time" = '1:02'
### Instruction: CREATE TABLE table_65672 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points have a Grid larger than 7, and a Driver of alex tagliani,...
SELECT MAX("Points") FROM table_65672 WHERE "Grid" > '7' AND "Driver" = 'alex tagliani' AND "Laps" < '85'
### Instruction: CREATE TABLE table_50339 ( "League" text, "Season" text, "Name" text, "Place" real, "Record" text, "Head Coach" text, "Points" text, "Rebounds" text, "Assists" text, "Steals" text, "Turnover" text ) -- Using valid SQLite, answer the following questions for ...
SELECT "Name" FROM table_50339 WHERE "Place" = '1'
### Instruction: CREATE TABLE table_9902 ( "Matrix" real, "Recording date" text, "Title" text, "Accompaniment" text, "Paramount Issue No." real, "Sandra Lieb Classification" text, "JSP 77933" text, "Document DOCD" real ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Accompaniment" FROM table_9902 WHERE "Title" = 'stormy seas blues'
### Instruction: CREATE TABLE table_42096 ( "Outcome" text, "Date" real, "Championship" 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. -- What Opponent in the final had a matc...
SELECT "Opponent in the final" FROM table_42096 WHERE "Score in the final" = '7–5, 6–2'
### Instruction: CREATE TABLE table_2714 ( "Edition" text, "Round" text, "Date" text, "Partnering" text, "Against" text, "Surface" text, "Opponents" text, "W/L" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the r...
SELECT "Round" FROM table_2714 WHERE "Opponents" = 'John Van Lottum Martin Verkerk'
### Instruction: CREATE TABLE table_34183 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points have a December smaller than 6, and a Score of 1 1 ot, a...
SELECT MIN("Points") FROM table_34183 WHERE "December" < '6' AND "Score" = '1–1 ot' AND "Game" < '28'
### Instruction: CREATE TABLE table_56131 ( "Hole" text, "Yards (red tees)" real, "Par (red tees)" real, "Yards (white tees)" real, "Par (white tees)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of yards on a red tee th...
SELECT AVG("Yards (red tees)") FROM table_56131 WHERE "Hole" = '1' AND "Par (white tees)" > '4'
### Instruction: CREATE TABLE table_2268 ( "School" text, "Location(s)" text, "Control" text, "Type School types are based on the Carnegie Classification of Institutions of Higher Education ." text, "Enrollment (Fall 2010)" real, "Founded" real, "Accreditation" text ) -- Using valid SQLite...
SELECT "Location(s)" FROM table_2268 WHERE "Founded" = '1927'
### Instruction: CREATE TABLE table_name_10 ( companion__in_order_from_star_ VARCHAR, orbital_period___s_day__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 0.0049? ### Re...
SELECT companion__in_order_from_star_ FROM table_name_10 WHERE orbital_period___s_day__ = "9.6184 +0.0050 −0.0049"
### Instruction: CREATE TABLE table_20391 ( "N\u00b0" real, "Television service" text, "Country" text, "Language" text, "Content" text, "DAR" text, "HDTV" text, "PPV" text, "Package/Option" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Content" FROM table_20391 WHERE "N\u00b0" = '204'
### Instruction: CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Movie ( mID int, title text, year int, director text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director
### Instruction: CREATE TABLE table_78830 ( "Country" text, "Career" text, "Victories" real, "Super G" text, "Giant Slalom" text, "Slalom" text, "Combined" text, "Parallel" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Super G has ...
SELECT "Super G" FROM table_78830 WHERE "Victories" = '26' AND "Country" = 'austria'
### Instruction: CREATE TABLE table_36886 ( "Outcome" text, "Date" text, "Surface" text, "Partnering" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Opponent partnering with Jordan Kerr, on a hard surfa...
SELECT "Opponent" FROM table_36886 WHERE "Surface" = 'hard' AND "Outcome" = 'winner' AND "Partnering" = 'jordan kerr'
### Instruction: CREATE TABLE table_24781 ( "Date" text, "Time" text, "Opponent" text, "Rank#" text, "Site" text, "Result" text, "Attendance" text, "Winning Pitcher" text, "Losing Pitcher" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Rank#" FROM table_24781 WHERE "Winning Pitcher" = 'Kelli Miller'
### Instruction: CREATE TABLE artist ( artist_id number, name text, country text, year_join number, age number ) CREATE TABLE exhibition_record ( exhibition_id number, date text, attendance number ) CREATE TABLE exhibition ( exhibition_id number, year number, theme text, ...
SELECT name, age, country FROM artist ORDER BY year_join
### Instruction: CREATE TABLE table_45732 ( "Outcome" text, "Date" text, "Tournament" 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. -- Name the Date whic...
SELECT "Date" FROM table_45732 WHERE "Opponents in the final" = 'patrick mcenroe tim wilkison'
### Instruction: CREATE TABLE table_204_988 ( id number, "responsible minister(s)" text, "crown entities" text, "monitoring department(s)" text, "category / type" text, "empowering legislation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what...
SELECT "crown entities" FROM table_204_988 WHERE id = (SELECT id FROM table_204_988 WHERE "crown entities" = 'takeovers panel') - 1
### Instruction: CREATE TABLE table_33190 ( "Team" text, "Game" real, "Draw" real, "Loss" real, "Goal Gain" real, "Goal Loss" real, "Goal Diff" real, "Point" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many draws did the game afte...
SELECT MAX("Draw") FROM table_33190 WHERE "Goal Gain" = '17' AND "Game" > '14'
### Instruction: CREATE TABLE table_43357 ( "Outcome" text, "Date" text, "Championship" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Surface when Todd Woodbridge was the runner-up, and...
SELECT "Surface" FROM table_43357 WHERE "Outcome" = 'runner-up' AND "Date" = '24 february 1997'
### Instruction: CREATE TABLE table_65740 ( "Place" text, "Code" real, "Area (km 2 )" real, "Population" real, "Most spoken language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the place with an area of less than 2,198.72 and a code more ...
SELECT "Place" FROM table_65740 WHERE "Area (km 2 )" < '2,198.72' AND "Code" > '90909'
### Instruction: CREATE TABLE table_17924 ( "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("Drawn") FROM table_17924 WHERE "Club" = 'Widnes Vikings'
### Instruction: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ...
SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name
### Instruction: CREATE TABLE table_2438 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text ) -- Using valid SQLite, answer the following questions for the tables provid...
SELECT "Tournament Venue (City)" FROM table_2438 WHERE "Conference Player of the Year" = 'Larry Smith , Alcorn State'
### Instruction: CREATE TABLE table_20375 ( "N\u00b0" real, "Television service" text, "Country" text, "Language" text, "Content" text, "DAR" text, "HDTV" text, "PPV" text, "Package/Option" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT MIN("N\u00b0") FROM table_20375 WHERE "Television service" = 'myDeejay'
### Instruction: CREATE TABLE table_19840 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions fo...
SELECT MIN("Wins") FROM table_19840
### Instruction: CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE college ( cname text, state text, enr number ) -- Using valid SQLite, answer the following question...
SELECT COUNT(DISTINCT state) FROM college WHERE enr < (SELECT AVG(enr) FROM college)
### Instruction: CREATE TABLE table_67626 ( "Club" text, "Sport" text, "League" text, "Venue" text, "Championships (Years)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Championships (Years) have a League of milb, florida state league, and a...
SELECT "Championships (Years)" FROM table_67626 WHERE "League" = 'milb, florida state league' AND "Venue" = 'ed smith stadium'
### Instruction: CREATE TABLE journalist ( journalist_ID int, Name text, Nationality text, Age text, Years_working int ) CREATE TABLE news_report ( journalist_ID int, Event_ID int, Work_Type text ) CREATE TABLE event ( Event_ID int, Date text, Venue text, Name text, ...
SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality
### Instruction: CREATE TABLE table_name_21 ( aam_member VARCHAR, city VARCHAR, astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is AAM Member, when AAM Accredited is No, when State is Califor...
SELECT aam_member FROM table_name_21 WHERE aam_accredited = "no" AND state = "california" AND astc_member = "yes" AND city = "sacramento"
### Instruction: CREATE TABLE table_69585 ( "Birth" text, "Marriage" text, "Became Consort" text, "Ceased to be Consort" text, "Death" text, "Spouse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the became consort for ceased to be consort...
SELECT "Became Consort" FROM table_69585 WHERE "Ceased to be Consort" = '4 april 1588 husband''s death'
### Instruction: CREATE TABLE table_3639 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT COUNT("Written by") FROM table_3639 WHERE "U.S. viewers (in millions)" = '3.40'
### Instruction: CREATE TABLE table_66323 ( "Producer" text, "Product" text, "Samples taken" real, "Samples failed" real, "Melamine content(mg/kg)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What the most samples failed for and had less than 1 s...
SELECT MAX("Samples failed") FROM table_66323 WHERE "Product" = '可淇牌嬰幼兒配方乳粉' AND "Samples taken" < '1'
### Instruction: CREATE TABLE table_74753 ( "Conference" text, "# of Bids" real, "Record" text, "Win %" text, "Round of 32" text, "Sweet Sixteen" text, "Elite Eight" text, "Final Four" text, "Championship Game" text ) -- Using valid SQLite, answer the following questions for the ta...
SELECT "Sweet Sixteen" FROM table_74753 WHERE "Conference" = 'colonial'