instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_23752 ( "Draft Year" real, "Player" text, "Summer Team" text, "College" text, "MLB Team" text, "Draft Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What college did Aaron Slegers attend? ### Response...
SELECT "College" FROM table_23752 WHERE "Player" = 'Aaron Slegers'
### Instruction: CREATE TABLE table_55460 ( "Year" real, "Player" text, "Position" text, "College/Country" text, "WNBA Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the earliest year that includes a Seattle Storm guard? ### Response...
SELECT MIN("Year") FROM table_55460 WHERE "Position" = 'guard' AND "WNBA Team" = 'seattle storm'
### Instruction: CREATE TABLE table_name_38 ( silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 meda...
SELECT AVG(silver) FROM table_name_38 WHERE rank > 7 AND total = 6 AND bronze < 2
### Instruction: CREATE TABLE table_44961 ( "Name" text, "Built" text, "Listed" text, "Location" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who built the conant creek pegram truss railroad bridge? ### Response:
SELECT "Built" FROM table_44961 WHERE "Name" = 'conant creek pegram truss railroad bridge'
### Instruction: CREATE TABLE table_26672 ( "Institution" text, "Nickname" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real, "Left" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year did the t...
SELECT MAX("Left") FROM table_26672
### Instruction: CREATE TABLE table_5196 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the qualifying 1 time for Rusport and Justin Wilson? ### Response:
SELECT "Qual 1" FROM table_5196 WHERE "Team" = 'rusport' AND "Name" = 'justin wilson'
### Instruction: CREATE TABLE table_name_11 ( kinka_13 VARCHAR, kinka_developer VARCHAR, version VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the KINKA 1.3 when the developer is yes and the support version is support mo 230? ### Response:
SELECT kinka_13 FROM table_name_11 WHERE kinka_developer = "yes" AND version = "support mo 230"
### Instruction: CREATE TABLE table_40010 ( "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. -- On which date did Ian Mosey finish runner-up? ### Response:
SELECT "Date" FROM table_40010 WHERE "Runner(s)-up" = 'ian mosey'
### Instruction: CREATE TABLE table_43804 ( "Release date" text, "Album title" text, "Record label" text, "Disc number" text, "Track number" text, "Title" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record label has a Title of ? ### R...
SELECT "Record label" FROM table_43804 WHERE "Title" = '诀别诗'
### Instruction: CREATE TABLE table_204_409 ( id number, "date" text, "race name" text, "location" text, "uci rating" number, "winner" text, "team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what were the number of races held in march ? ...
SELECT COUNT("race name") FROM table_204_409 WHERE "date" = 3
### Instruction: CREATE TABLE table_70684 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the final score when the Denver Broncos were the visiting team? ...
SELECT "Final Score" FROM table_70684 WHERE "Visiting Team" = 'denver broncos'
### Instruction: CREATE TABLE table_3006 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was successor George E. Harris (R) seated? ### Resp...
SELECT "Date successor seated" FROM table_3006 WHERE "Successor" = 'George E. Harris (R)'
### Instruction: CREATE TABLE table_33708 ( "City" text, "Province" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which city has an ICAO of ZSXZ? ### Response:
SELECT "City" FROM table_33708 WHERE "ICAO" = 'zsxz'
### Instruction: CREATE TABLE table_name_95 ( opponent VARCHAR, year VARCHAR, yards VARCHAR, average VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966? ### R...
SELECT opponent FROM table_name_95 WHERE yards < 197 AND average < 32 AND year = 1966
### Instruction: CREATE TABLE table_42221 ( "Former kingdom" text, "Province" text, "Hangul" text, "Hanja" text, "Capital" text, "Modern equivalent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the modern equivalent of in Hanja? ### ...
SELECT "Modern equivalent" FROM table_42221 WHERE "Hanja" = '良州'
### Instruction: CREATE TABLE journal_committee ( Editor_ID int, Journal_ID int, Work_Type text ) CREATE TABLE editor ( Editor_ID int, Name text, Age real ) CREATE TABLE journal ( Journal_ID int, Date text, Theme text, Sales int ) -- Using valid SQLite, answer the following q...
SELECT Name, Age FROM editor
### Instruction: CREATE TABLE table_name_97 ( population INTEGER, area_km_2 VARCHAR, official_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76? ### Response:
SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = "new bandon"
### Instruction: CREATE TABLE table_80411 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team played against Al-Ismaily (team 1)? ### Response:
SELECT "Team 2" FROM table_80411 WHERE "Team 1" = 'al-ismaily'
### Instruction: CREATE TABLE table_64374 ( "Chord" text, "Root" text, "Major third" text, "Augmented fifth" text, "Minor seventh" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- A major third of C has what listed for the Minor seventh? ### Respons...
SELECT "Minor seventh" FROM table_64374 WHERE "Major third" = 'c'
### Instruction: CREATE TABLE table_23171 ( "Player" text, "Minutes" real, "Field Goals" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest numb...
SELECT MIN("Blocks") FROM table_23171
### Instruction: CREATE TABLE table_name_33 ( tournament VARCHAR, winner_and_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tournament has a Winner and score of goran ivani evi 6 4, 6 2, 7 6(2)? ### Response:
SELECT tournament FROM table_name_33 WHERE winner_and_score = "goran ivanišević 6–4, 6–2, 7–6(2)"
### Instruction: CREATE TABLE table_203_28 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the only year that a 5 km event took plac...
SELECT "year" FROM table_203_28 WHERE "event" = '5 km'
### Instruction: CREATE TABLE table_72917 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the census ranking(s) of maugerville? ### Response:
SELECT "Census Ranking" FROM table_72917 WHERE "Official Name" = 'Maugerville'
### Instruction: CREATE TABLE table_49579 ( "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 was the opponent in the final Barbara Paulus? ### Response:
SELECT "Date" FROM table_49579 WHERE "Opponent in the final" = 'barbara paulus'
### Instruction: CREATE TABLE table_71091 ( "Artist" text, "Country of origin" text, "Period active" text, "Release-year of first charted record" real, "Genre" text, "Claimed sales" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the period ...
SELECT "Period active" FROM table_71091 WHERE "Artist" = 'enya'
### Instruction: CREATE TABLE table_name_62 ( league_cup_goals INTEGER, name VARCHAR, fa_cup_goals VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most league cup goals for David Beresford having less than 0 FA Cup Goals? ### Response:
SELECT MAX(league_cup_goals) FROM table_name_62 WHERE name = "david beresford" AND fa_cup_goals < 0
### Instruction: CREATE TABLE table_72359 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What party does William J. Jefferson? ### Response:
SELECT "Party" FROM table_72359 WHERE "Incumbent" = 'William J. Jefferson'
### Instruction: CREATE TABLE table_name_10 ( assists INTEGER, scorer VARCHAR, rank VARCHAR, goals VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average amount of assists with a rank higher than 6 and goals 10 and the scorer is Robert Uk...
SELECT AVG(assists) FROM table_name_10 WHERE rank > 6 AND goals = 10 AND scorer = "robert ukrop"
### Instruction: CREATE TABLE table_45438 ( "Concessionaire" text, "FA Division(s)" text, "Gauge" text, "Length, km" real, "Takeover Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the takeover date of the FA division mitre? ### Respo...
SELECT "Takeover Date" FROM table_45438 WHERE "FA Division(s)" = 'mitre'
### Instruction: CREATE TABLE table_64573 ( "County" text, "Location" text, "Distance" real, "Total" real, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Notes have a Distance larger than 7, and a Location of aplin? ### Response:
SELECT "Notes" FROM table_64573 WHERE "Distance" > '7' AND "Location" = 'aplin'
### Instruction: CREATE TABLE table_23143607_1 ( television_channels VARCHAR, radio_stations VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the radio stations is radio nou si radio radio nou m sica; what were the total number of television channels? ###...
SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Radio Nou Si Radio Radio Nou Música"
### Instruction: CREATE TABLE table_43739 ( "Year" real, "Number" real, "Team" text, "Co-driver" text, "Position" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Year, when Laps is greater than 161? ### Response...
SELECT MAX("Year") FROM table_43739 WHERE "Laps" > '161'
### Instruction: CREATE TABLE table_70978 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What To par scored 72-71-68=211? ### Response:
SELECT "To par" FROM table_70978 WHERE "Score" = '72-71-68=211'
### Instruction: CREATE TABLE table_name_26 ( total INTEGER, new_south_wales VARCHAR, victoria VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which is the lowest crop total with New South Wales at 42 kilotonnes and Victorian at less than 68 kilotonnes? ...
SELECT MIN(total) FROM table_name_26 WHERE new_south_wales = 42 AND victoria < 68
### Instruction: CREATE TABLE table_204_68 ( id number, "name" text, "profession" text, "hometown" text, "term expires" number, "office" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of state regents who are attorneys ?...
SELECT COUNT("name") FROM table_204_68 WHERE "profession" = 'attorney'
### Instruction: CREATE TABLE table_36845 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum for December when the record was 22-12-5? ### Response:
SELECT SUM("December") FROM table_36845 WHERE "Record" = '22-12-5'
### Instruction: CREATE TABLE table_18207 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many first elected with district being new york2 ...
SELECT COUNT("First elected") FROM table_18207 WHERE "District" = 'New York2'
### Instruction: CREATE TABLE table_6147 ( "Year" real, "Finish position" text, "1st day" text, "2nd day" text, "3rd day" text, "4th Day" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year has 59th as a finish position? ### Response:
SELECT "Year" FROM table_6147 WHERE "Finish position" = '59th'
### Instruction: CREATE TABLE table_9363 ( "Date" text, "Series" text, "Circuit" text, "City / State" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the City / State, when Series is ATCC Round 3? ### Respons...
SELECT "City / State" FROM table_9363 WHERE "Series" = 'atcc round 3'
### Instruction: CREATE TABLE tracks ( name VARCHAR, genre_id VARCHAR ) CREATE TABLE genres ( id VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the name of tracks belongs to genre Rock or genre Jazz. ### Response:
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
### Instruction: CREATE TABLE table_15184 ( "Year" real, "\u00c1lbum" text, "Charts" text, "Sales" real, "Certification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What lbum was in the year 1996? ### Response:
SELECT "\u00c1lbum" FROM table_15184 WHERE "Year" = '1996'
### Instruction: CREATE TABLE table_name_76 ( illustration VARCHAR, design VARCHAR, first_day_cover_cancellation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with c...
SELECT illustration FROM table_name_76 WHERE design = "tim nokes" AND first_day_cover_cancellation = "calgary, alberta"
### Instruction: CREATE TABLE table_18522916_5 ( manner_of_departure VARCHAR, date_of_vacancy VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the manner of departure for date of vacancy 25 august 2008 ### Response:
SELECT manner_of_departure FROM table_18522916_5 WHERE date_of_vacancy = "25 August 2008"
### Instruction: CREATE TABLE table_767 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the first elected for lost renomination democratic l...
SELECT "First elected" FROM table_767 WHERE "Result" = 'Lost renomination Democratic loss'
### Instruction: CREATE TABLE table_65607 ( "Time" text, "Home team" text, "Score" text, "Away team" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the time for the match with away team Convoy Sun Hei Team A? ### Response:
SELECT "Time" FROM table_65607 WHERE "Away team" = 'convoy sun hei team a'
### Instruction: CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Draw a bar...
SELECT job, MIN(age) FROM Person GROUP BY job
### Instruction: CREATE TABLE table_name_29 ( mass VARCHAR, launch_date_time___gmt__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Mass, when Launch Date/Time ( GMT ) is 25 November 1976, 03:59? ### Response:
SELECT mass FROM table_name_29 WHERE launch_date_time___gmt__ = "25 november 1976, 03:59"
### Instruction: CREATE TABLE table_name_61 ( outcome VARCHAR, partner VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Outcome of the match with Partner Marcella Mesker and a Score of 6 4, 4 6, 4 6? ### Response:
SELECT outcome FROM table_name_61 WHERE partner = "marcella mesker" AND score = "6–4, 4–6, 4–6"
### Instruction: CREATE TABLE table_63022 ( "Artist" text, "Song" text, "Lyrics (l) / Music (m)" text, "Votes" text, "Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Artist of the Song with a Place of withdrawn? ### Response:
SELECT "Artist" FROM table_63022 WHERE "Place" = 'withdrawn'
### Instruction: CREATE TABLE table_40883 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the IATA code for the airport with an ICAO code of HLLS? ### Response:
SELECT "IATA" FROM table_40883 WHERE "ICAO" = 'hlls'
### Instruction: CREATE TABLE table_14700336_1 ( revenue__millions_ VARCHAR, revenue_per_capita VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many numbers were recorded under revenue when revenue per capita was $6,126? ### Response:
SELECT COUNT(revenue__millions_) FROM table_14700336_1 WHERE revenue_per_capita = "$6,126"
### Instruction: CREATE TABLE table_27740 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many joined Manchester University? ...
SELECT "Joined" FROM table_27740 WHERE "Institution" = 'Manchester University'
### Instruction: CREATE TABLE table_55728 ( "Rank" real, "Name" text, "Nation" text, "SP+FS" real, "Points" real, "Places" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the name with points of 151.66 ### Response:
SELECT "Name" FROM table_55728 WHERE "Points" = '151.66'
### Instruction: CREATE TABLE table_16868 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Jim Farmer's nationality? ### Response:...
SELECT "Nationality" FROM table_16868 WHERE "Player" = 'Jim Farmer'
### Instruction: CREATE TABLE table_65015 ( "Rank" real, "Lane" real, "Athlete" text, "Country" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest lane for Brazil, ranked less than 8? ### Response:
SELECT MAX("Lane") FROM table_65015 WHERE "Country" = 'brazil' AND "Rank" < '8'
### Instruction: CREATE TABLE table_76542 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner in the Indian Wells? ### Response:
SELECT "Winner" FROM table_76542 WHERE "Tournament" = 'indian wells'
### Instruction: CREATE TABLE table_72429 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the districtwith party being democratic ### Re...
SELECT "District" FROM table_72429 WHERE "Party" = 'Democratic'
### Instruction: CREATE TABLE table_4137 ( "Stadium" text, "Location" text, "Opened" real, "Built for" text, "Capacity at Construction" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the capacity at construction of the stadium in Gold Coast...
SELECT "Capacity at Construction" FROM table_4137 WHERE "Location" = 'Gold Coast, Queensland'
### Instruction: CREATE TABLE table_1321 ( "Language" text, "Creator" text, "First public release date" text, "Editor" text, "Viewer" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the creator when the view happens to gddm, afp viewer? ### ...
SELECT "Creator" FROM table_1321 WHERE "Viewer" = 'GDDM, AFP viewer'
### Instruction: CREATE TABLE table_68784 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed as the Away team for the Home team of the Bristol Rovers? ### R...
SELECT "Away team" FROM table_68784 WHERE "Home team" = 'bristol rovers'
### Instruction: CREATE TABLE table_16059 ( "Round" real, "Choice" real, "Overall" real, "Player name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which overall pick was traded to the Cleveland Browns? ### R...
SELECT "Overall" FROM table_16059 WHERE "College" = 'Traded to the Cleveland Browns'
### Instruction: CREATE TABLE table_61291 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is week 3 if week 2 is Nikki Fiction? ### Response:
SELECT "Week 3" FROM table_61291 WHERE "Week 2" = 'nikki fiction'
### Instruction: CREATE TABLE table_42854 ( "Team" text, "Match" real, "Points" real, "Draw" real, "Lost" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest draw that has points greater than 4, with a match greater than 5? ### Resp...
SELECT MAX("Draw") FROM table_42854 WHERE "Points" > '4' AND "Match" > '5'
### Instruction: CREATE TABLE table_54413 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest pick number of the CFL's Toronto Argonauts? ### Response:
SELECT MAX("Pick #") FROM table_54413 WHERE "CFL Team" = 'toronto argonauts'
### Instruction: CREATE TABLE table_75173 ( "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. -- Date of march 30 involves what home? ### Respon...
SELECT "Home" FROM table_75173 WHERE "Date" = 'march 30'
### Instruction: CREATE TABLE table_77459 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par of player ed sneed, who has a t5 place? ### Response:
SELECT "To par" FROM table_77459 WHERE "Place" = 't5' AND "Player" = 'ed sneed'
### Instruction: CREATE TABLE table_204_945 ( id number, "episode" number, "name" text, "synopsis" text, "sent home" text, "highest seller" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many episodes were there where nobody was sent home ? ...
SELECT COUNT("episode") FROM table_204_945 WHERE "sent home" = 'none'
### Instruction: CREATE TABLE table_name_9 ( city_of_license VARCHAR, station VARCHAR, network_affiliation VARCHAR, format VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which city of license has an independent network affiliation, a variety format a...
SELECT city_of_license FROM table_name_9 WHERE network_affiliation = "independent" AND format = "variety" AND station = "kkup"
### Instruction: CREATE TABLE table_name_49 ( record VARCHAR, location VARCHAR, time VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which record has 5:00 as the time, jess liaudin as the opponent for the location of england? ### R...
SELECT record FROM table_name_49 WHERE time = "5:00" AND opponent = "jess liaudin" AND location = "england"
### Instruction: CREATE TABLE table_37358 ( "Date" text, "Site" text, "Sport" text, "Winning team" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What sport was played on February 25, 2011? ### Response:
SELECT "Sport" FROM table_37358 WHERE "Date" = 'february 25, 2011'
### Instruction: CREATE TABLE table_51469 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who lost to moyer (9 4)? ### Response:
SELECT "Opponent" FROM table_51469 WHERE "Loss" = 'moyer (9–4)'
### Instruction: CREATE TABLE table_203_109 ( id number, "treaty" text, "organization" text, "introduced" number, "signed" number, "ratified" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which was the first treaty in morocco to be ratified ?...
SELECT "treaty" FROM table_203_109 ORDER BY "ratified" LIMIT 1
### Instruction: CREATE TABLE table_62906 ( "Rank" real, "Actor" text, "Character" text, "Soap Opera" text, "Years" text, "Duration" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the actor with a duration of 61 years? ### ...
SELECT "Actor" FROM table_62906 WHERE "Duration" = '61 years'
### Instruction: CREATE TABLE table_10743 ( "Player" text, "Team" text, "Date" text, "Opposition" text, "Game" text, "D\u00e9but" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent when the team is Cork? ### Response:
SELECT "Opposition" FROM table_10743 WHERE "Team" = 'cork'
### Instruction: CREATE TABLE table_57943 ( "Generation" text, "Years" text, "Engine" text, "Power" text, "Torque" text, "Induction" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the power of an engine of 1972? ### Response:
SELECT "Power" FROM table_57943 WHERE "Years" = '1972'
### Instruction: CREATE TABLE table_60531 ( "First round" text, "Semifinals" real, "Conference Finals" real, "Finals" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the average Conference Finals that has Finals smaller ...
SELECT AVG("Conference Finals") FROM table_60531 WHERE "Finals" < '5'
### Instruction: CREATE TABLE table_53746 ( "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 was the attendance on October 6? ### Respo...
SELECT "Attendance" FROM table_53746 WHERE "Date" = 'october 6'
### Instruction: CREATE TABLE table_64899 ( "Elector" text, "Place of birth" text, "Cardinalatial title" text, "Elevated" text, "Elevator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Elector has the Place of Birth listed as Bavaria? ### Re...
SELECT "Elector" FROM table_64899 WHERE "Place of birth" = 'bavaria'
### Instruction: CREATE TABLE table_75017 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Type of game was played on Date of July 29? ### Response:
SELECT "Type of game" FROM table_75017 WHERE "Date" = 'july 29'
### Instruction: CREATE TABLE table_23408 ( "Season" text, "Player" text, "Junior college" text, "State" text, "Position" text, "Class" text, "University" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in which class was the ohio state unive...
SELECT "Class" FROM table_23408 WHERE "University" = 'Ohio State'
### Instruction: CREATE TABLE table_80396 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had a score of 70-73-69=212? ### Response:
SELECT "Player" FROM table_80396 WHERE "Score" = '70-73-69=212'
### Instruction: CREATE TABLE table_72916 ( "State" text, "Preliminary" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the preliminary for north carolina ### Response...
SELECT "Preliminary" FROM table_72916 WHERE "State" = 'North Carolina'
### Instruction: CREATE TABLE table_22215 ( "Position" real, "Channel" text, "Analogue terrestrial channel" text, "Digital terrestrial channel" text, "Internet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position of digital channel 5...
SELECT "Position" FROM table_22215 WHERE "Digital terrestrial channel" = '5 44 (+1)'
### Instruction: CREATE TABLE table_62428 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the To Par of the player with a t8 Finish? ### Response...
SELECT "To par" FROM table_62428 WHERE "Finish" = 't8'
### Instruction: CREATE TABLE table_39367 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the December game that led to an 11-13-5 record? ### Response:
SELECT MAX("December") FROM table_39367 WHERE "Record" = '11-13-5'
### Instruction: CREATE TABLE table_203_759 ( id number, "year" number, "company" text, "number of members affected" number, "duration of strike" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in what year were the the most workers...
SELECT "year" FROM table_203_759 ORDER BY "number of members affected" DESC LIMIT 1
### Instruction: CREATE TABLE table_67248 ( "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 home team on January 8? ### Respons...
SELECT "Home" FROM table_67248 WHERE "Date" = 'january 8'
### Instruction: CREATE TABLE table_204_507 ( id number, "bridge name" text, "location" text, "year completed" number, "total length" text, "carries" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many bridges were built in 1931 ? ### Resp...
SELECT COUNT("bridge name") FROM table_204_507 WHERE "year completed" = 1931
### Instruction: CREATE TABLE table_51334 ( "Driver" text, "Constructor" text, "Laps" text, "Time/Retired" text, "Grid" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver had a grid of 18 with 68 laps? ### Response:
SELECT "Driver" FROM table_51334 WHERE "Laps" = '68' AND "Grid" = '18'
### Instruction: CREATE TABLE table_45309 ( "Date" text, "Ship" text, "Type" text, "Nationality" text, "Tonnage GRT" real, "Fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the nationality when the ship is willerby? ### Response:
SELECT "Nationality" FROM table_45309 WHERE "Ship" = 'willerby'
### Instruction: CREATE TABLE table_78462 ( "Series #" real, "Title" text, "Directed by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the 'Downtown Girl' episode, what was the original air date...
SELECT "Original air date" FROM table_78462 WHERE "Title" = 'downtown girl'
### Instruction: CREATE TABLE table_name_19 ( date VARCHAR, city___state VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when City / State is 'Mallala , South Australia', and when Team is 'R.J.MacArthur Onslow'? ### Response:...
SELECT date FROM table_name_19 WHERE city___state = "mallala , south australia" AND team = "r.j.macarthur onslow"
### Instruction: CREATE TABLE table_169693_1 ( age_30_39 INTEGER, age_20_29 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least age 30-39 where age 20-29 is 593 ### Response:
SELECT MIN(age_30_39) FROM table_169693_1 WHERE age_20_29 = 593
### Instruction: CREATE TABLE table_43432 ( "Year" text, "Award" text, "Production" text, "Role" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which award was An Officer and a Gentleman nominated for? ### Response:
SELECT "Award" FROM table_43432 WHERE "Result" = 'nominated' AND "Production" = 'an officer and a gentleman'
### Instruction: CREATE TABLE table_name_3 ( launches INTEGER, successes VARCHAR, failures VARCHAR, rocket VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes? ### Re...
SELECT AVG(launches) FROM table_name_3 WHERE failures = 0 AND rocket = "soyuz" AND successes < 12
### Instruction: CREATE TABLE table_6772 ( "Season" text, "Round" text, "Date" text, "Home" text, "Away" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result on 26 October 1993? ### Response:
SELECT "Result" FROM table_6772 WHERE "Date" = '26 october 1993'
### Instruction: CREATE TABLE table_28506 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The order # is what for the week # Top 10? ### Respons...
SELECT "Order #" FROM table_28506 WHERE "Week #" = 'Top 10'
### Instruction: CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number ) CREATE TABLE products ( code number, name text, price number, manufacturer number ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin'
### Instruction: CREATE TABLE table_name_14 ( saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result on Saturday that's robibar on Sunday ### Response:
SELECT saturday_shani__saturn_ FROM table_name_14 WHERE sunday_surya__the_sun_ = "রবিবার robibar"
### Instruction: CREATE TABLE table_203_648 ( id number, "date" text, "opposition" text, "result" text, "score" text, "brazil scorers" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of countries they ha...
SELECT COUNT(DISTINCT "opposition") FROM table_203_648