instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_22137 ( "English name" text, "Thai name" text, "Abbr." text, "Transcription" text, "Sanskrit word" text, "Zodiac sign" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many zodiac signs does the month by the...
SELECT COUNT("Zodiac sign") FROM table_22137 WHERE "Thai name" = 'กันยายน'
### Instruction: CREATE TABLE table_55566 ( "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 visiting team that ...
SELECT "Away team" FROM table_55566 WHERE "Home team" = 'footscray'
### Instruction: CREATE TABLE table_62284 ( "Round" real, "Race" text, "Circuit" text, "Date" text, "Event" text, "Winning driver" text, "Winning team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date that Fabrizio Giovanardi ...
SELECT "Date" FROM table_62284 WHERE "Winning driver" = 'fabrizio giovanardi christian abt'
### Instruction: CREATE TABLE table_79008 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ranking when Archie Compston is the player and the mon...
SELECT "Place" FROM table_79008 WHERE "Money ( $ )" = '73' AND "Player" = 'archie compston'
### Instruction: CREATE TABLE table_10116 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the visiting team where the decision was ...
SELECT "Visitor" FROM table_10116 WHERE "Decision" = 'biron' AND "Date" = 'october 4'
### Instruction: CREATE TABLE table_4919 ( "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 away team's score wh...
SELECT "Away team score" FROM table_4919 WHERE "Home team" = 'north melbourne'
### Instruction: CREATE TABLE table_45616 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did Namigata play against Wen-Hsin Hsu in ...
SELECT "Date" FROM table_45616 WHERE "Opponent in the final" = 'wen-hsin hsu'
### Instruction: CREATE TABLE table_65874 ( "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 most bronze when the total is 14, and there are more than 6 gol...
SELECT MAX("Bronze") FROM table_65874 WHERE "Total" = '14' AND "Gold" > '6'
### Instruction: CREATE TABLE table_79723 ( "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's the rank of Turkey (TUR) with a total more than 2? ### Response:
SELECT COUNT("Rank") FROM table_79723 WHERE "Nation" = 'turkey (tur)' AND "Total" > '2'
### Instruction: CREATE TABLE table_train_74 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "mini_mental_state_examination_mmse" int, "clinical_dementia_rating_cdr" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT * FROM table_train_74 WHERE age >= 45
### Instruction: CREATE TABLE table_2733 ( "Region" text, "Citation" text, "Court of Appeals" text, "Established" real, "Judges" real, "Meeting places" real, "Chief judge" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the region is the S...
SELECT "Citation" FROM table_2733 WHERE "Region" = 'Southern District of Texas'
### Instruction: CREATE TABLE table_203_501 ( id number, "title" text, "genre" text, "sub\u00addivisions" text, "libretto" text, "premiere date" text, "place, theatre" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many number of 1 acts ...
SELECT COUNT(*) FROM table_203_501 WHERE "sub\u00addivisions" = '1 act'
### Instruction: CREATE TABLE table_24884 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many ...
SELECT MIN("No. in season") FROM table_24884 WHERE "No. in series" = '158'
### Instruction: CREATE TABLE table_74740 ( "Municipality" text, "Inhabitants" real, "Mayor" text, "Party" text, "Election" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the election earlier than 2012 how many Inhabitants had a Party of five sta...
SELECT SUM("Inhabitants") FROM table_74740 WHERE "Party" = 'five star movement' AND "Election" < '2012'
### Instruction: CREATE TABLE table_name_66 ( total_cargo__metric_tonnes_ INTEGER, rank VARCHAR, airport VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of...
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_66 WHERE rank < 4 AND airport = "shanghai pudong international airport"
### Instruction: CREATE TABLE table_36881 ( "Source" text, "Date" text, "MARTIN" text, "GR\u00dcNE" text, "Others" text, "Undecided" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Undecided on 2009-05-24? ### Response:
SELECT "Undecided" FROM table_36881 WHERE "Date" = '2009-05-24'
### Instruction: CREATE TABLE table_78098 ( "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 number of bronze that Scotland, which has less than 7 total med...
SELECT SUM("Bronze") FROM table_78098 WHERE "Nation" = 'scotland' AND "Total" < '7'
### Instruction: CREATE TABLE table_14610 ( "Season" text, "Winner" text, "Runner-up" text, "Third" text, "Winner Men" text, "Winner Women" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which season did Sweden get third overall while Russia ...
SELECT "Season" FROM table_14610 WHERE "Third" = 'sweden' AND "Winner Men" = 'russia'
### Instruction: CREATE TABLE table_204_686 ( id number, "date" text, "pos." text, "name" text, "from" text, "fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who 's fee was higher between steven davis and chris baird ? ### Response:
SELECT "name" FROM table_204_686 WHERE "name" IN ('steven davis', 'chris baird') ORDER BY "fee" DESC LIMIT 1
### Instruction: CREATE TABLE table_2712 ( "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 p...
SELECT "Partnering" FROM table_2712 WHERE "Round" = 'SF'
### Instruction: CREATE TABLE table_71780 ( "Date" text, "Region" text, "Label" text, "Catalogue" text, "Format" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What region has a bronze label and a catalogue of 202 876-270? ### Response:
SELECT "Region" FROM table_71780 WHERE "Label" = 'bronze' AND "Catalogue" = '202 876-270'
### 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. -- how many teams ...
SELECT COUNT("team") FROM table_203_161 WHERE "qual.\npos." < 5
### Instruction: CREATE TABLE table_70948 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total points were earned with ferrari 125 Chassis after 1952? ### Response:
SELECT SUM("Points") FROM table_70948 WHERE "Chassis" = 'ferrari 125' AND "Year" > '1952'
### Instruction: CREATE TABLE table_29852 ( "English" text, "Predecessor" text, "Ekavian" text, "Ikavian" text, "Ijekavian" text, "Ijekavian development" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the predecessor of the Ekavian word v...
SELECT "Predecessor" FROM table_29852 WHERE "Ekavian" = 'vreme'
### Instruction: CREATE TABLE table_44245 ( "Fin. Pos" text, "Car No." text, "Driver" text, "Team" text, "Laps" text, "Time/Retired" text, "Grid" text, "Laps Led" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Te...
SELECT "Team" FROM table_44245 WHERE "Points" = '15'
### Instruction: CREATE TABLE table_4000 ( "Country" text, "Name" text, "Presenter(s)" text, "Judges" text, "Network" text, "Premiere / Air dates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many sets of presenters are there for the versi...
SELECT COUNT("Presenter(s)") FROM table_4000 WHERE "Name" = 'Celebrity MasterChef'
### Instruction: CREATE TABLE table_69420 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- College of idaho, and an Overall smaller than 141 is what average rou...
SELECT AVG("Round") FROM table_69420 WHERE "College" = 'idaho' AND "Overall" < '141'
### Instruction: CREATE TABLE table_57417 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the game held where the away team had a...
SELECT "Venue" FROM table_57417 WHERE "Away team score" = '2.2 (14)'
### Instruction: CREATE TABLE table_9239 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years with Spurs" text, "School/Previous Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Position, when Sc...
SELECT "Position" FROM table_9239 WHERE "School/Previous Club Team/Country" = 'kentucky'
### Instruction: CREATE TABLE table_35630 ( "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 Total is the highest one that has a Rank of 1, and a Gold larger than...
SELECT MAX("Total") FROM table_35630 WHERE "Rank" = '1' AND "Gold" > '11'
### Instruction: CREATE TABLE table_66491 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Gold that has the Total larger than 2, and the Bronze s...
SELECT "Gold" FROM table_66491 WHERE "Total" > '2' AND "Bronze" < '1'
### Instruction: CREATE TABLE table_19941 ( "Series Ep." text, "Episode" real, "Netflix" text, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Segment B when the Se...
SELECT "Segment B" FROM table_19941 WHERE "Segment D" = 's Hammock'
### Instruction: CREATE TABLE table_68770 ( "Estimate" text, "Name" text, "Nat." text, "Ship type" text, "Where sunk" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which nation had a battlecruiser with an estimate of 513? ### Res...
SELECT "Nat." FROM table_68770 WHERE "Ship type" = 'battlecruiser' AND "Estimate" = '513'
### 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
### Instruction: CREATE TABLE table_31198 ( "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 is the ...
SELECT MIN("W") FROM table_31198
### Instruction: CREATE TABLE table_78055 ( "Year" real, "Manufacturer" text, "Start" real, "Finish" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the maufacturer of the vehicle during the race where Cale Yarborough started at ...
SELECT "Manufacturer" FROM table_78055 WHERE "Finish" < '42' AND "Start" = '19'
### Instruction: CREATE TABLE table_38655 ( "Discipline" text, "Peter" real, "Adam" real, "Jade" real, "Plat'num" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Adam's score when Peter's score is less than 3 and the plat'num is greater than ...
SELECT MIN("Adam") FROM table_38655 WHERE "Peter" < '3' AND "Plat'num" > '6'
### Instruction: CREATE TABLE table_41243 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date was the Memorial Tournament held on, when Payne Stew...
SELECT "Date" FROM table_41243 WHERE "Tournament" = 'memorial tournament' AND "Runner(s)-up" = 'payne stewart'
### Instruction: CREATE TABLE table_24474 ( "No. in series" text, "No. in season" text, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number in season for the ...
SELECT "No. in season" FROM table_24474 WHERE "Written by" = 'Chris Mitchell and Erik Wiese'
### Instruction: CREATE TABLE table_22279 ( "Round" text, "Clubs remaining" real, "Clubs involved" real, "Winners from previous round" text, "New entries this round" text, "Leagues entering at this round" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Clubs remaining" FROM table_22279 WHERE "Winners from previous round" = '4'
### Instruction: CREATE TABLE table_22406 ( "Episode" text, "Garfield Episode 1" text, "U.S. Acres Episode" text, "Garfield Episode 2" text, "Original Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the episodes for 'Crime and Nouri...
SELECT "Episode" FROM table_22406 WHERE "Garfield Episode 2" = 'Crime and Nourishment'
### Instruction: CREATE TABLE table_33026 ( "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 number of the crowd...
SELECT SUM("Crowd") FROM table_33026 WHERE "Home team" = 'south melbourne'
### Instruction: CREATE TABLE table_54939 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the away team was st kilda...
SELECT "Home team score" FROM table_54939 WHERE "Away team" = 'st kilda'
### Instruction: CREATE TABLE table_15954 ( "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 teams do the players from TPS (Finland) ...
SELECT "NHL team" FROM table_15954 WHERE "College/junior/club team" = 'TPS (Finland)'
### Instruction: CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real ) CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY Class
### Instruction: CREATE TABLE table_75571 ( "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. -- What is the round of the match wit...
SELECT "Round" FROM table_75571 WHERE "Opponent" = 'emanuel newton'
### Instruction: CREATE TABLE table_25201 ( "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 points" FROM table_25201 WHERE "Record" = '9-4'
### Instruction: CREATE TABLE table_82 ( "Particulars and Characteristics" text, "Shivalik Zone" text, "Mid-Hill Zone" text, "High hill zone" text, "Trance- n Himalaya Zone" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the climatic condit...
SELECT "Trance- n Himalaya Zone" FROM table_82 WHERE "Particulars and Characteristics" = 'Climatic conditions'
### Instruction: CREATE TABLE table_71353 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Chassis from before 1997 with a Lamborghini v12 engine? ### Response:
SELECT "Chassis" FROM table_71353 WHERE "Year" < '1997' AND "Engine" = 'lamborghini v12'
### Instruction: CREATE TABLE table_38352 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Bronze of 2, and a Silver smaller than 0 then what is the sum of the gold? ...
SELECT SUM("Gold") FROM table_38352 WHERE "Bronze" = '2' AND "Silver" < '0'
### Instruction: CREATE TABLE table_39580 ( "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. -- How many total wins are associated with events ...
SELECT SUM("Wins") FROM table_39580 WHERE "Top-10" = '1'
### Instruction: CREATE TABLE table_1449 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were all the away teams wh...
SELECT "Away team" FROM table_1449 WHERE "Crowd" = '13304'
### Instruction: CREATE TABLE table_53646 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the home teams score w...
SELECT "Home team score" FROM table_53646 WHERE "Venue" = 'princes park'
### Instruction: CREATE TABLE table_70867 ( "Goal" real, "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Goal that where Competition of international friendly, and a R...
SELECT "Goal" FROM table_70867 WHERE "Competition" = 'international friendly' AND "Result" = '2–1'
### Instruction: CREATE TABLE table_23526 ( "Season" text, "Competition" text, "Round" text, "Opposition" text, "First Leg" text, "Second Leg" text, "Aggregate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the first leg result in ...
SELECT "First Leg" FROM table_23526 WHERE "Opposition" = 'Norchi Dinamoeli'
### Instruction: CREATE TABLE table_4200 ( "Institution" text, "Location - City" text, "Location - State" text, "Nickname" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Primary Conference" text ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT "Location - City" FROM table_4200 WHERE "Institution" = 'Tiffin University'
### Instruction: CREATE TABLE table_58115 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the home team score at...
SELECT "Home team score" FROM table_58115 WHERE "Venue" = 'glenferrie oval'
### Instruction: CREATE TABLE table_204_864 ( id number, "pos" number, "class" text, "no" number, "team" text, "drivers" text, "chassis" text, "engine" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- tell me an engine that was used by at ...
SELECT "engine" FROM table_204_864 GROUP BY "engine" HAVING COUNT("team") >= 3
### Instruction: CREATE TABLE table_13929 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Points" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season had a...
SELECT "Season" FROM table_13929 WHERE "Position" = '14th'
### Instruction: CREATE TABLE table_14923 ( "Station" text, "Frequency" real, "Network Affiliation" text, "Format" text, "City of License" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total frequency have a Status of...
SELECT SUM("Frequency") FROM table_14923 WHERE "Status" = 'owned by cumulus media' AND "Format" = 'news'
### Instruction: CREATE TABLE table_train_36 ( "id" int, "do_not_resuscitate_dnr" bool, "active_infection" bool, "sepsis" bool, "vasospastic_diathesis" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT * FROM table_train_36 WHERE age >= 18
### Instruction: CREATE TABLE table_2673 ( "Year" real, "Network" text, "Race caller" text, "s Host" text, "s Analyst" text, "Reporters" text, "Trophy presentation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the latest year with ...
SELECT MAX("Year") FROM table_2673 WHERE "Reporters" = 'Lesley Visser and Robin Roberts'
### Instruction: CREATE TABLE table_51 ( "Year" real, "Aircraft kilometers" real, "Departures" real, "Flying hours" real, "Passengers" real, "Seat factor" text, "Employees" real, "Profit/loss" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Seat factor" FROM table_51 WHERE "Year" = '2006'
### Instruction: CREATE TABLE table_name_14 ( population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- between car plates of 80-84 what is the population in 1000 in year 1931? ### Response:
SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-84"
### Instruction: CREATE TABLE table_5178 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of games of the team against the Los Angeles K...
SELECT COUNT("Game") FROM table_5178 WHERE "Opponent" = 'los angeles kings' AND "January" > '5'
### Instruction: CREATE TABLE table_74584 ( "District" text, "Name" text, "Party" text, "Residence" text, "Assumed office" real, "Next election" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the Senator in the O District who...
SELECT "Name" FROM table_74584 WHERE "Assumed office" = '2013' AND "District" = 'o'
### Instruction: CREATE TABLE table_8591 ( "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 "Record" FROM table_8591 WHERE "Date" = 'december 25'
### Instruction: CREATE TABLE table_19529639_3 ( second_national_tour_year_2 VARCHAR, original_west_end_cast VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different actors from the Second national tour year 2 played the character played by Oliver T...
SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = "Oliver Tompsett"
### Instruction: CREATE TABLE table_4932 ( "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 away team scored 6.22 (58)?...
SELECT "Away team" FROM table_4932 WHERE "Away team score" = '6.22 (58)'
### Instruction: CREATE TABLE table_54811 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mean number of laps where Time/retired was a water leak and the grid n...
SELECT AVG("Laps") FROM table_54811 WHERE "Time/Retired" = 'water leak' AND "Grid" > '12'
### Instruction: CREATE TABLE table_39051 ( "Unit" text, "Russian" text, "Translation" text, "Ratio" text, "Cubic inches (exact)" text, "Metric value" text, "Imperial" text, "US Customary" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT "Translation" FROM table_39051 WHERE "Unit" = 'chetvert'
### Instruction: CREATE TABLE table_2753 ( "Team" text, "SEC Wins" real, "SEC Losses" real, "Percentage" text, "Home Record" text, "Road Record" text, "Overall Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the overall record ...
SELECT "Overall Record" FROM table_2753 WHERE "Road Record" = '4-3'
### Instruction: CREATE TABLE table_20130 ( "City of License /Market" text, "Station" text, "Channel TV ( DT )" text, "Years owned" text, "Current affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which channel tv (dt) plays in San Francis...
SELECT "Channel TV ( DT )" FROM table_20130 WHERE "City of License /Market" = 'San Francisco - Oakland - San Jose'
### Instruction: CREATE TABLE table_51437 ( "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. -- Can you tell me the Home team t...
SELECT "Home team" FROM table_51437 WHERE "Venue" = 'windy hill'
### Instruction: CREATE TABLE table_41138 ( "S No" real, "Team (A)" text, "Team (B)" text, "Winner" text, "Margin" text, "Match Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest S No, when the Match Date is Nov 1, 2003? ...
SELECT MAX("S No") FROM table_41138 WHERE "Match Date" = 'nov 1, 2003'
### Instruction: CREATE TABLE table_41916 ( "Series" text, "Host" text, "Launch date" text, "Finale date" text, "Days" real, "Winner" text, "Prize" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Series, when Launch Date is 23 Februar...
SELECT "Series" FROM table_41916 WHERE "Launch date" = '23 february 2013'
### Instruction: CREATE TABLE table_name_11 ( tonnage___grt__ VARCHAR, date VARCHAR, fate VARCHAR, deaths VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940? #...
SELECT tonnage___grt__ FROM table_name_11 WHERE fate = "sunk" AND deaths < 17 AND date = "16 november 1940"
### Instruction: CREATE TABLE table_38566 ( "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. -- What is the total number of Round ...
SELECT SUM("Round") FROM table_38566 WHERE "Time" = '6:04'
### Instruction: CREATE TABLE table_68450 ( "Need" text, "Being (qualities)" text, "Having (things)" text, "Doing (actions)" text, "Interacting (settings)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the being qualities for having things of ...
SELECT "Being (qualities)" FROM table_68450 WHERE "Having (things)" = 'friendships, family, relationships with nature'
### Instruction: CREATE TABLE table_203_426 ( id number, "year" number, "title" text, "peak chart positions\naus" number, "peak chart positions\nnz" number, "peak chart positions\nuk" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "title" FROM table_203_426 ORDER BY "peak chart positions\nuk" LIMIT 1
### Instruction: CREATE TABLE table_203_212 ( id number, "#" number, "district" text, "land area (km2)" number, "population\n(2010 census)" number, "density (persons/km2)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many districts are l...
SELECT COUNT("district") FROM table_203_212 WHERE "land area (km2)" > 50
### Instruction: CREATE TABLE table_12778 ( "Name" text, "Location" text, "Land" text, "Longest span in s metre ( feet )" text, "Arch type" text, "Completed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of arch is the pont de montang...
SELECT "Arch type" FROM table_12778 WHERE "Name" = 'pont de montanges (pont-des-pierres)'
### Instruction: CREATE TABLE table_64775 ( "Year" real, "Category" text, "Recipients and nominees" text, "Role/Episode" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the recipients that won for David Duchovny role/episode? ...
SELECT "Recipients and nominees" FROM table_64775 WHERE "Role/Episode" = 'david duchovny' AND "Result" = 'won'
### Instruction: CREATE TABLE table_63575 ( "Year" real, "U.S. Hot 100" text, "U.S. R&B" text, "U.S. Rap" text, "Album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What U.S. Rap has life in the concrete jungle as the album? ### Response:
SELECT "U.S. Rap" FROM table_63575 WHERE "Album" = 'life in the concrete jungle'
### Instruction: CREATE TABLE table_56754 ( "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. -- In the Western Oval venue, what...
SELECT AVG("Crowd") FROM table_56754 WHERE "Venue" = 'western oval'
### Instruction: CREATE TABLE table_44885 ( "Round" real, "Pick" real, "Position" text, "Nationality" text, "College/Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Round, when College/Team is 'Kansas', and when Pick is less ...
SELECT MIN("Round") FROM table_44885 WHERE "College/Team" = 'kansas' AND "Pick" < '56'
### Instruction: CREATE TABLE table_204_851 ( id number, "serial number" number, "river" text, "name" text, "area (km2)" number, "district" text, "co-ordinate" text, "altitude (m)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how man...
SELECT COUNT(*) FROM table_204_851 WHERE "area (km2)" >= 20
### Instruction: CREATE TABLE table_34151 ( "Ship" text, "Original Pennant Number" text, "Builder" text, "Laid Down" text, "Launched" text, "Commissioned" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the commissioned date with laid dow...
SELECT "Commissioned" FROM table_34151 WHERE "Laid Down" = '17 dec 1951'
### Instruction: CREATE TABLE table_24868 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the ...
SELECT "Original air date" FROM table_24868 WHERE "Production code" = '3.04'
### Instruction: CREATE TABLE table_204_561 ( id number, "fence" number, "name" text, "jockey" text, "age" number, "handicap (st-lb)" text, "starting price" text, "fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many horses were...
SELECT COUNT("name") FROM table_204_561 WHERE "age" > 10
### Instruction: CREATE TABLE table_48470 ( "Name" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Time/Retired, when Laps is less than 49, and when Name is 'Michael Caruso'? ### R...
SELECT "Time/Retired" FROM table_48470 WHERE "Laps" < '49' AND "Name" = 'michael caruso'
### Instruction: CREATE TABLE table_45036 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Time for the Competition of european cup and has a Venue o...
SELECT "Time" FROM table_45036 WHERE "Competition" = 'european cup' AND "Venue" = 'moscow'
### Instruction: CREATE TABLE table_24739 ( "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. -- How many original title...
SELECT COUNT("Original title") FROM table_24739 WHERE "Film title used in nomination" = 'If the Sun Never Returns'
### Instruction: CREATE TABLE table_204_240 ( id number, "name" text, "current use" text, "completed" text, "namesake" text, "info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- was strosacker hall or presidents house made in 1965 ? ### Respo...
SELECT "name" FROM table_204_240 WHERE "name" IN ('strosacker hall', 'presidents house') AND "completed" = 1965
### Instruction: CREATE TABLE table_23922 ( "Country/Region" text, "Title" text, "Television network" text, "Winners" text, "Presenters" text, "Trainers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country uses the title Marele C tig tor...
SELECT "Country/Region" FROM table_23922 WHERE "Title" = 'Marele câștigător The Big Winner'
### Instruction: CREATE TABLE table_55287 ( "Name" text, "Country" text, "Status" text, "Moving to" text, "Transfer window" text, "Transfer fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country is the player, with an undisclosed trans...
SELECT "Country" FROM table_55287 WHERE "Transfer fee" = 'undisclosed' AND "Moving to" = 'nacional'
### Instruction: CREATE TABLE table_4168 ( "Series #" real, "Production Code" real, "Title" text, "Directed by" text, "Written by" text, "United States Original Airdate" text, "Canada Original Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "Written by" FROM table_4168 WHERE "Production Code" = '116'
### Instruction: CREATE TABLE table_204_939 ( id number, "year" number, "chassis" text, "engine" text, "start" text, "finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in 1979 how many places did the cosworth engine decrease from start to f...
SELECT "finish" - "start" FROM table_204_939 WHERE "year" = 1979 AND "engine" = 'cosworth'
### Instruction: CREATE TABLE table_75007 ( "Series Ep." text, "Episode" real, "Netflix" text, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Segment A of heather gems is what...
SELECT "Netflix" FROM table_75007 WHERE "Segment A" = 'heather gems'
### Instruction: CREATE TABLE table_name_81 ( poles INTEGER, year VARCHAR, starts VARCHAR, winnings VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of poles of the year before 1992 with more than 18 starts and winnings of $1...
SELECT MAX(poles) FROM table_name_81 WHERE starts > 18 AND winnings = "$125,102" AND year < 1992