instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_51790 ( "Election" text, "D\u00e1il" text, "Share of votes" text, "Seats" real, "Total seats" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a dail of 24th and more than 57 seats, what is the election? ### ...
SELECT "Election" FROM table_51790 WHERE "Seats" > '57' AND "D\u00e1il" = '24th'
### Instruction: CREATE TABLE table_66359 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Scored" real, "Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Score...
SELECT SUM("Scored") FROM table_66359 WHERE "Losses" < '0'
### Instruction: CREATE TABLE table_17565 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text, "Intergiro classification" text, "Trofeo Fast Team" text ) -- Using valid SQLite, an...
SELECT "General classification" FROM table_17565 WHERE "Stage" = '1a'
### Instruction: CREATE TABLE table_11783 ( "Date" text, "Venue" text, "Result" text, "Competition" text, "Scored" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number scored in a friendly at kryoia soveto, moscow? ### Respons...
SELECT AVG("Scored") FROM table_11783 WHERE "Competition" = 'friendly' AND "Venue" = 'kryoia soveto, moscow'
### Instruction: CREATE TABLE table_204_461 ( id number, "res." text, "record" text, "opponent" text, "method" text, "event" text, "date" text, "round" number, "time" text, "location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT COUNT(*) FROM table_204_461 WHERE "method" = 'submission'
### Instruction: CREATE TABLE table_23324 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Opponent" FROM table_23324 WHERE "Date" = 'July 12'
### Instruction: CREATE TABLE table_76279 ( "Season" real, "Date" text, "Winner" text, "Score [C ]" text, "Venue" text, "Competition round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What venue had an event on 17 November 1963? ### Respons...
SELECT "Venue" FROM table_76279 WHERE "Season" = '1963' AND "Date" = '17 november 1963'
### Instruction: CREATE TABLE table_50468 ( "Municipality" text, "Inhabitants" real, "Mayor" text, "Party" text, "Election" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Inhabitants were there after 2009 in the Municipality with a Party of...
SELECT AVG("Inhabitants") FROM table_50468 WHERE "Party" = 'union for trentino' AND "Election" > '2009'
### Instruction: CREATE TABLE table_13944 ( "Rank" real, "Athlete" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The Athlete Shin Yeong-eun with a rank larger than 3 and notes of FD had what time? ### Re...
SELECT "Time" FROM table_13944 WHERE "Rank" > '3' AND "Notes" = 'fd' AND "Athlete" = 'shin yeong-eun'
### Instruction: CREATE TABLE table_53619 ( "Year of award" real, "Athlete" text, "Nation of citizenship" text, "Team" text, "Competition , governing body , or league" text, "Sport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nati...
SELECT "Nation of citizenship" FROM table_53619 WHERE "Year of award" > '2011'
### Instruction: CREATE TABLE table_77395 ( "Game" real, "Date" text, "Score" text, "Location" text, "Time" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of people in attendance at Oakland-Alameda County Co...
SELECT SUM("Attendance") FROM table_77395 WHERE "Location" = 'oakland-alameda county coliseum' AND "Game" = '2'
### Instruction: CREATE TABLE table_72831 ( "#" real, "Title" text, "Publisher" text, "Release" text, "Length" text, "Hardcover" text, "Paperback" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many publishers put out isbn 193700788x? ...
SELECT COUNT("Publisher") FROM table_72831 WHERE "Hardcover" = 'ISBN 193700788X'
### Instruction: CREATE TABLE table_21597 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the year when My Mother's Teahouse was...
SELECT "Year (Ceremony)" FROM table_21597 WHERE "Result" = 'Not Nominated' AND "Film title used in nomination" = 'My Mother''s Teahouse'
### Instruction: CREATE TABLE table_36286 ( "Name" text, "Championship" real, "FA Cup" real, "League Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Championship larger than 3, and a FA Cup smaller than 3, and a Total smaller than ...
SELECT MAX("League Cup") FROM table_36286 WHERE "Championship" > '3' AND "FA Cup" < '3' AND "Total" < '6'
### Instruction: CREATE TABLE table_17746 ( "No." real, "P" text, "Name" text, "Country" text, "Age" real, "Loan Club" text, "Started" text, "Ended" text, "Start Source" text, "End Source" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "P" FROM table_17746 WHERE "Name" = 'Clapham'
### Instruction: CREATE TABLE table_15786 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the team with laps more than 333 and year less ...
SELECT "Team" FROM table_15786 WHERE "Laps" > '333' AND "Year" < '2004'
### Instruction: CREATE TABLE table_61353 ( "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 location of fightfest ...
SELECT "Location" FROM table_61353 WHERE "Round" = '3' AND "Event" = 'fightfest 2'
### Instruction: CREATE TABLE nuclear_power_plants ( id text, name text, latitude text, longitude text, country text, status text, reactortype text, reactormodel text, constructionstartat text, operationalfrom text, operationalto text, capacity text, lastupdatedat tex...
SELECT COUNT(DISTINCT reactormodel) FROM nuclear_power_plants
### Instruction: CREATE TABLE table_train_48 ( "id" int, "in_another_study" bool, "renal_disease" bool, "receiving_vasopressor" bool, "sepsis" bool, "hypotension" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the t...
SELECT * FROM table_train_48 WHERE age >= 18
### Instruction: CREATE TABLE table_7520 ( "Heat" real, "Lane" real, "Name" text, "Country" text, "Mark" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mark number when the lane for Rabangaki Nawai when it is greater than 2 and the heat ...
SELECT "Mark" FROM table_7520 WHERE "Lane" > '2' AND "Heat" > '4' AND "Name" = 'rabangaki nawai'
### Instruction: CREATE TABLE table_30111 ( "Player" text, "Matches" real, "Overs" text, "Wickets" real, "Average" text, "Economy" text, "BBI" text, "4wi" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the BBI for the bowler who...
SELECT "BBI" FROM table_30111 WHERE "Average" = '24.50'
### Instruction: CREATE TABLE table_203_515 ( id number, "rank" number, "city" text, "passengers" number, "ranking" number, "airline" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- was los angeles or houston the busiest international route at ma...
SELECT "city" FROM table_203_515 WHERE "city" IN ('los angeles', 'houston') ORDER BY "passengers" DESC LIMIT 1
### Instruction: CREATE TABLE table_name_32 ( pumpers VARCHAR, tankers VARCHAR, brigade VARCHAR, cars VARCHAR, staffing VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of ...
SELECT COUNT(pumpers) FROM table_name_32 WHERE cars = "1" AND staffing = "volunteer" AND brigade = "grovedale" AND tankers < 1
### Instruction: CREATE TABLE table_62100 ( "Name" text, "Confederation" text, "International goals" real, "Caps" real, "Goals per Match" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many caps does Jon Dahl Tomasson, who has less than 0.46 goa...
SELECT COUNT("Caps") FROM table_62100 WHERE "Name" = 'jon dahl tomasson' AND "Goals per Match" < '0.46'
### Instruction: CREATE TABLE table_40720 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score for set 2 when set 3 w...
SELECT "Set 2" FROM table_40720 WHERE "Set 3" = '25–22'
### Instruction: CREATE TABLE table_62260 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "Facility ID" real, "ERP W" real, "Height m ( ft )" text, "Class" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Call sign" FROM table_62260 WHERE "ERP W" = '75'
### Instruction: CREATE TABLE table_43489 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Crowd" real, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Venue th...
SELECT "Venue" FROM table_43489 WHERE "Away team" = 'south dragons'
### Instruction: CREATE TABLE table_67056 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which loss has an Attendance larger than 20,841, and a Date of july 9...
SELECT "Loss" FROM table_67056 WHERE "Attendance" > '20,841' AND "Date" = 'july 9'
### Instruction: CREATE TABLE table_53719 ( "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. -- What is the date of the game where Dipietro earne...
SELECT "Date" FROM table_53719 WHERE "Decision" = 'dipietro' AND "Visitor" = 'carolina'
### Instruction: CREATE TABLE table_43424 ( "Episode number" real, "Title" text, "Original airing on Channel 4" text, "Time of airing on Channel 4" text, "Total viewers and Rank on C4" text, "Total viewers" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT AVG("Episode number") FROM table_43424 WHERE "Title" = 'sugar daddy'
### Instruction: CREATE TABLE table_64696 ( "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 Team has Laps of 100, and a Time/Retired of +8.6 secs? ### Res...
SELECT "Team" FROM table_64696 WHERE "Laps" = '100' AND "Time/Retired" = '+8.6 secs'
### Instruction: CREATE TABLE table_70899 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which is the highest total at rank 6, bronze 2, and gold larger than 0? #...
SELECT MAX("Total") FROM table_70899 WHERE "Rank" = '6' AND "Bronze" = '2' AND "Gold" > '0'
### Instruction: CREATE TABLE table_44789 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of the game that was played ...
SELECT "Score" FROM table_44789 WHERE "Date" = '29 november' AND "Venue" = 'state sports centre'
### Instruction: CREATE TABLE table_28177 ( "Episode" real, "Reward" text, "Leader Battle" text, "Immunity" text, "Individual Immunity" text, "Eliminated" text, "Vote" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name th...
SELECT "Eliminated" FROM table_28177 WHERE "Finish" = 'Left Day 9'
### Instruction: CREATE TABLE table_64695 ( "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 Laps have a Time/Retired of + 4 laps, and a Grid larger than 18?...
SELECT AVG("Laps") FROM table_64695 WHERE "Time/Retired" = '+ 4 laps' AND "Grid" > '18'
### Instruction: CREATE TABLE table_18789 ( "City of license /Market" text, "Station" text, "Channel TV ( DT )" text, "Owned since" text, "Primary affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many stations have fox as the primary ...
SELECT COUNT("Station") FROM table_18789 WHERE "Primary affiliation" = 'Fox' AND "Owned since" = '1986'
### Instruction: CREATE TABLE table_4466 ( "Round" real, "Track" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Before round 9, when Takashi Kogure held pole ...
SELECT "Team" FROM table_4466 WHERE "Round" < '9' AND "Pole Position" = 'takashi kogure'
### Instruction: CREATE TABLE table_28179 ( "Institution" text, "Seniors" text, "Juniors" text, "Women" text, "Status" text, "Founded" real, "Affiliation (Population)" text, "Color" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "Institution" FROM table_28179 WHERE "Women" = 'Lady Saints'
### Instruction: CREATE TABLE Elimination ( Elimination_ID text, Wrestler_ID text, Team text, Eliminated_By text, Elimination_Move text, Time text ) CREATE TABLE wrestler ( Wrestler_ID int, Name text, Reign text, Days_held text, Location text, Event text ) -- Using val...
SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team
### Instruction: CREATE TABLE table_204_284 ( id number, "jurisdiction" text, "adherents" number, "bishops" number, "priests" number, "monastics" number, "monasteries" number, "parishes" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- o...
SELECT "jurisdiction" FROM table_204_284 WHERE "monasteries" > 550
### Instruction: CREATE TABLE table_78964 ( "Date" text, "Ship Name" text, "Tonnage" text, "Ship Type" text, "Location" text, "Disposition of Ship" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the ship that was a brig and located in the En...
SELECT "Disposition of Ship" FROM table_78964 WHERE "Ship Type" = 'brig' AND "Location" = 'english channel'
### Instruction: CREATE TABLE table_77710 ( "Name" text, "Bodyweight" real, "Snatch" real, "Clean & jerk" real, "Total (kg)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the average clean and jerk for snatch of 140 and total kg less than 315 ...
SELECT AVG("Clean & jerk") FROM table_77710 WHERE "Snatch" = '140' AND "Total (kg)" < '315'
### Instruction: CREATE TABLE table_65677 ( "Year" real, "Competition Description" text, "Location" text, "Apparatus" text, "Rank-Final" real, "Score-Final" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest final score of the Ame...
SELECT MIN("Score-Final") FROM table_65677 WHERE "Competition Description" = 'american cup' AND "Year" < '2009'
### Instruction: CREATE TABLE table_47104 ( "Team" text, "Head Coach" text, "Team Captain" text, "Venue" text, "Capacity" real, "Kitmaker" text, "Shirt sponsor" text, "Club Chairman" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which T...
SELECT "Team" FROM table_47104 WHERE "Head Coach" = 'michalis pamboris'
### Instruction: CREATE TABLE table_32322 ( "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. -- Where was the game held when th...
SELECT "Venue" FROM table_32322 WHERE "Home team score" = '8.18 (66)'
### Instruction: CREATE TABLE table_204_983 ( id number, "year" number, "1st venue" text, "2nd venue" text, "3rd venue" text, "4th venue" text, "5th venue" text, "6th venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long , in ye...
SELECT MAX("year") - MIN("year") FROM table_204_983
### Instruction: CREATE TABLE table_68671 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least points with chassis of kurtis kraft 3000 and year before 1951 ### Respon...
SELECT MIN("Points") FROM table_68671 WHERE "Chassis" = 'kurtis kraft 3000' AND "Year" < '1951'
### Instruction: CREATE TABLE table_24323 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the ma...
SELECT "Outcome" FROM table_24323 WHERE "Surface" = 'Grass' AND "Year" = '1955'
### Instruction: CREATE TABLE table_65704 ( "Score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What score has 15.0% as the 2012? ### Response:
SELECT "Score" FROM table_65704 WHERE "2012" = '15.0%'
### Instruction: CREATE TABLE table_204_467 ( id number, "date" text, "opponents" text, "h/a" text, "result\nf-a" text, "scorers" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- number of goals manchester united scored ag...
SELECT SUM("result\nf-a") FROM table_204_467 WHERE "opponents" = 'preston north end'
### Instruction: CREATE TABLE table_2501754_4 ( episode__number INTEGER, viewing_figures_millions VARCHAR, prod_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest episode number with 6.19 million viewers and a production code of icec4...
SELECT MIN(episode__number) FROM table_2501754_4 WHERE viewing_figures_millions = "6.19" AND prod_code = "ICEC487Y"
### Instruction: CREATE TABLE table_40659 ( "Match" real, "Date" text, "Tournament" text, "Location" text, "Opponent team" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at Pasir Gudang, Malaysia with a match l...
SELECT "Opponent team" FROM table_40659 WHERE "Match" > '2' AND "Location" = 'pasir gudang, malaysia'
### Instruction: CREATE TABLE table_24212 ( "Competition" text, "Round" text, "Opponent" text, "Result" text, "Score" text, "Home/Away" text, "Venue" text, "Attendance" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how ...
SELECT COUNT("Venue") FROM table_24212 WHERE "Round" = '1'
### Instruction: CREATE TABLE table_67620 ( "Seasons" real, "Team" text, "Ch.Wins" real, "Promotions" real, "Relegations" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Whats the highest Promotions that has a Team of Pallacanestro Messina, along wit...
SELECT MAX("Promotions") FROM table_67620 WHERE "Team" = 'pallacanestro messina' AND "Relegations" > '0'
### Instruction: CREATE TABLE table_8334 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Loser" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT YEAR WAS AT GIANTS STADIUM, WITH WINNER OF NEW YORK GIANTS? ### Res...
SELECT MIN("Year") FROM table_8334 WHERE "Location" = 'giants stadium' AND "Winner" = 'new york giants'
### Instruction: CREATE TABLE table_4685 ( "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. -- Who is the away team when the ho...
SELECT "Away team" FROM table_4685 WHERE "Home team score" = '12.20 (92)'
### Instruction: CREATE TABLE table_59684 ( "Date" text, "Race" text, "Track" text, "Location" text, "Distance" text, "Surface" text, "Purse" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Location of the Event...
SELECT "Location" FROM table_59684 WHERE "Date" = 'march 30, 2008'
### Instruction: CREATE TABLE table_25095 ( "Post" real, "Horse name" text, "Trainer" text, "Jockey" text, "Opening Odds" text, "Starting Odds" text, "Finishing Pos." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the starting odds...
SELECT "Starting Odds" FROM table_25095 WHERE "Opening Odds" = '2-1'
### Instruction: CREATE TABLE table_26011 ( "Branding" text, "Callsign" text, "Ch. #" text, "Power kW" text, "Station Type" text, "Location (Transmitter site)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When relay is the station type and 5kw...
SELECT "Branding" FROM table_26011 WHERE "Power kW" = '5kW' AND "Station Type" = 'Relay'
### Instruction: CREATE TABLE table_35229 ( "Game" real, "Date" real, "Opponent" text, "Score" text, "Location/attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average date with a record of 30-31-9 in a game...
SELECT AVG("Date") FROM table_35229 WHERE "Record" = '30-31-9' AND "Game" > '70'
### Instruction: CREATE TABLE table_204_284 ( id number, "jurisdiction" text, "adherents" number, "bishops" number, "priests" number, "monastics" number, "monasteries" number, "parishes" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- h...
SELECT "bishops" FROM table_204_284 WHERE "jurisdiction" = 'greece'
### Instruction: CREATE TABLE table_47499 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Place of the Player with a Score of 67-76-74-67=284? ...
SELECT "Place" FROM table_47499 WHERE "Score" = '67-76-74-67=284'
### Instruction: CREATE TABLE table_11226 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the score for pacers visitor on 14 apr...
SELECT "Score" FROM table_11226 WHERE "Visitor" = 'pacers' AND "Date" = '14 april 2008'
### Instruction: CREATE TABLE table_56475 ( "Navy" text, "Name" text, "Pennant" text, "Commissioned" real, "Home port" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the navy for middleton with a home port of portsmouth after 1983? ### Res...
SELECT "Navy" FROM table_56475 WHERE "Home port" = 'portsmouth' AND "Commissioned" > '1983' AND "Name" = 'middleton'
### Instruction: CREATE TABLE table_40575 ( "Name" text, "Rank" real, "Out of" real, "Source" text, "Year" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller tha...
SELECT "Name" FROM table_40575 WHERE "Source" = 'world bank' AND "Rank" < '110' AND "Out of" < '199'
### Instruction: CREATE TABLE table_203_675 ( id number, "match" number, "date" text, "round" text, "home/away" text, "opponent team" text, "score" text, "scorers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many consecutive times...
SELECT COUNT(*) FROM table_203_675 WHERE "opponent team" = 'shakhtar donetsk'
### Instruction: CREATE TABLE table_27656 ( "English" text, "Latin" text, "Proto-Italo-Western 1" text, "Conservative Central Italian 1" text, "Italian" text, "Spanish" text, "Catalan" text, "Old French" text ) -- Using valid SQLite, answer the following questions for the tables provid...
SELECT "Italian" FROM table_27656 WHERE "English" = 'part'
### Instruction: CREATE TABLE table_32816 ( "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. -- Where did the home team score 1...
SELECT "Venue" FROM table_32816 WHERE "Home team score" = '18.17 (125)'
### Instruction: CREATE TABLE table_203_860 ( id number, "rank" number, "city" text, "population (2011)" number, "population (2001)" number, "state/territory" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who has a 2011 population less than 224...
SELECT "city" FROM table_203_860 WHERE "population (2011)" < 224000
### Instruction: CREATE TABLE table_203_631 ( id number, "year" number, "name of show" text, "episodes" text, "other guests" text, "winner(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of other guests in the 2002 show a t...
SELECT "other guests" FROM table_203_631 WHERE "year" = 2002 AND "name of show" = 'a trio delights'
### Instruction: CREATE TABLE table_2855 ( "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 "Score" FROM table_2855 WHERE "Record" = '37-27'
### Instruction: CREATE TABLE table_57867 ( "Season" text, "Date" text, "Winners" text, "Score" text, "Runners-up" text, "Venue" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season's winner is Panathinaikos and is lo...
SELECT "Season" FROM table_57867 WHERE "Location" = 'athens' AND "Winners" = 'panathinaikos'
### Instruction: CREATE TABLE table_32631 ( "FAT16" text, "FAT32" text, "HPFS" text, "ISO 9660" text, "NTFS" text, "ReFS" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which NTFS has a yes for FAT32 and a no for ReFS? ### Response:
SELECT "NTFS" FROM table_32631 WHERE "FAT32" = 'yes' AND "ReFS" = 'no'
### Instruction: CREATE TABLE table_18776 ( "Serial & Branch" real, "Seaman" text, "Mechanical" text, "Secretariat" text, "Supply" text, "Electrical" text, "Radio Electrical" text, "Regulating" text, "Medical" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Regulating" FROM table_18776 WHERE "Radio Electrical" = 'LREN'
### Instruction: CREATE TABLE table_39221 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Result has a First elected larger than 1876, and an Incumbent of john s....
SELECT "Result" FROM table_39221 WHERE "First elected" > '1876' AND "Incumbent" = 'john s. richardson'
### Instruction: CREATE TABLE table_30115 ( "Player" text, "Matches" real, "Innings" real, "Wickets" real, "Average" text, "BBI" text, "BBM" text, "5wi" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many innings for the player with ...
SELECT MIN("Innings") FROM table_30115 WHERE "Average" = '30.03'
### Instruction: CREATE TABLE table_39244 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the leading scorer on 2...
SELECT "Leading scorer" FROM table_39244 WHERE "Date" = '2006-11-22'
### Instruction: CREATE TABLE table_42049 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first Week against Cincinnati Bengals with an Attendance greater than 58,61...
SELECT MIN("Week") FROM table_42049 WHERE "Attendance" > '58,615' AND "Opponent" = 'cincinnati bengals'
### Instruction: CREATE TABLE table_204_328 ( id number, "no." number, "date" text, "tournament" text, "winning score" text, "margin of\nvictory" text, "runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total score for...
SELECT "winning score" FROM table_204_328 WHERE "tournament" = 'greater baltimore classic'
### Instruction: CREATE TABLE table_55420 ( "Rd #" real, "Pick #" real, "Player" text, "Team (League)" text, "Reg GP" real, "Pl GP" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least RD number that has PI GP more than 0 and pick # mor...
SELECT MIN("Rd #") FROM table_55420 WHERE "Pl GP" > '0' AND "Pick #" > '51'
### Instruction: CREATE TABLE table_2039 ( "Province" text, "Arabs 2001" real, "% 2001" text, "Arabs 2011" real, "% 2011" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the province is British Columbia, what is the Arabs 2001 total number? ### ...
SELECT COUNT("Arabs 2001") FROM table_2039 WHERE "Province" = 'British Columbia'
### Instruction: CREATE TABLE table_43122 ( "Team" text, "Country" text, "Home" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the second of the North America team from Edmonton, ...
SELECT "Second" FROM table_43122 WHERE "Team" = 'north america' AND "Country" = 'canada' AND "Home" = 'edmonton'
### Instruction: CREATE TABLE table_70243 ( "Strong's #" text, "Hebrew word" text, "Strong's Transliteration" text, "Strong's Words Compounded" text, "English Spelling" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Words with a Strong's...
SELECT "Strong's Words Compounded" FROM table_70243 WHERE "Strong's #" = '5418'
### Instruction: CREATE TABLE table_63247 ( "Sunrayia FL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total wins for Wentworth with less than 0 byes? ### Resp...
SELECT COUNT("Wins") FROM table_63247 WHERE "Sunrayia FL" = 'wentworth' AND "Byes" < '0'
### Instruction: CREATE TABLE table_203_150 ( id number, "season" number, "series" text, "team" text, "races" number, "wins" number, "poles" number, "f/laps" number, "podiums" number, "points" number, "position" text ) -- Using valid SQLite, answer the following questions f...
SELECT "season" FROM table_203_150 WHERE id = 1
### Instruction: CREATE TABLE table_28475 ( "Character" text, "Played by" text, "Season 1" real, "Season 2" real, "Season 3" real, "Season 4" real, "First Appearance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many season 3 appearanc...
SELECT MIN("Season 3") FROM table_28475 WHERE "Played by" = 'Stefan van Ray'
### Instruction: CREATE TABLE table_64841 ( "City" text, "Region" text, "July" text, "January" text, "Annual Precipitation" text, "Plant Hardiness Zone" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what city is the July temperature 23/9 c (...
SELECT "City" FROM table_64841 WHERE "July" = '23/9°c (73/48°f)'
### Instruction: CREATE TABLE table_204_877 ( id number, "place" number, "position" text, "number" number, "name" text, "league two" number, "fa cup" number, "league cup" number, "fl trophy" number, "total" number ) -- Using valid SQLite, answer the following questions for the ...
SELECT COUNT("name") FROM table_204_877 WHERE "fa cup" <> 0
### Instruction: CREATE TABLE table_63925 ( "Season" text, "Competition" text, "Round" text, "Played" text, "Drew" text, "Lost" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What competition did they have 1 lost, 3 draws, and played 9 games? ...
SELECT "Competition" FROM table_63925 WHERE "Lost" = '1' AND "Drew" = '3' AND "Played" = '9'
### Instruction: CREATE TABLE table_53847 ( "Species" text, "Strain" text, "Type" text, "Base Pairs" real, "Genes" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowst base pair with a Species of borrelia garinii, and a Genes larger than...
SELECT MIN("Base Pairs") FROM table_53847 WHERE "Species" = 'borrelia garinii' AND "Genes" > '832'
### Instruction: CREATE TABLE table_33270 ( "Dance" text, "Best dancer" text, "Best score" real, "Worst dancer" text, "Worst score" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Worst score for Mario Lopez as the Best dancer and...
SELECT AVG("Worst score") FROM table_33270 WHERE "Best dancer" = 'mario lopez' AND "Dance" = 'tango'
### Instruction: CREATE TABLE table_61553 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par of the player with a 72-71-65-69=277 score? #...
SELECT "To par" FROM table_61553 WHERE "Score" = '72-71-65-69=277'
### Instruction: CREATE TABLE table_31008 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT "Written by" FROM table_31008 WHERE "Directed by" = 'Milan Cheylov'
### Instruction: CREATE TABLE table_56735 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Location Attendance" FROM table_56735 WHERE "Date" = 'february 10'
### Instruction: CREATE TABLE table_5379 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Attendance has an Opponent of pittsburgh pirates, and a Date of ...
SELECT AVG("Attendance") FROM table_5379 WHERE "Opponent" = 'pittsburgh pirates' AND "Date" = 'may 5'
### Instruction: CREATE TABLE table_37605 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has an Outcome of winner, and a Score of 7 5, 6 4? #...
SELECT "Date" FROM table_37605 WHERE "Outcome" = 'winner' AND "Score" = '7–5, 6–4'
### Instruction: CREATE TABLE table_31191 ( "Year" text, "Universities" real, "No. of Students Signed up" real, "% electricity reduction" text, "Tonnes of CO2 Saved" real, "\u00a3 Saved" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 10% is...
SELECT COUNT("Universities") FROM table_31191 WHERE "% electricity reduction" = '10%'
### Instruction: CREATE TABLE table_51947 ( "Rank ( WJC )" real, "Rank (ARDA)" real, "Metro area" text, "Number of Jews (WJC)" real, "Number of Jews (ASARB)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the number of WJC Jews with a WJC r...
SELECT "Number of Jews (WJC)" FROM table_51947 WHERE "Rank ( WJC )" = '6'
### Instruction: CREATE TABLE table_204_725 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which country scored the most gold medals - iran...
SELECT "nation" FROM table_204_725 WHERE "nation" IN ('iran', 'indonesia') ORDER BY "gold" DESC LIMIT 1
### Instruction: CREATE TABLE table_10636 ( "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. -- Which home team played an away ...
SELECT "Home team score" FROM table_10636 WHERE "Away team score" = '6.4 (40)'