instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_29436 ( "Year" real, "Title" text, "Format" text, "Studio" text, "Release Date" text, "Copyright Information" text, "Catalog Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times was the ca...
SELECT COUNT("Title") FROM table_29436 WHERE "Catalog Number" = 'CAL05 / 0091037137357'
### Instruction: CREATE TABLE table_204_783 ( id number, "position" text, "player" text, "free agency\ntag" text, "date signed" text, "2013 team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- nick roach was signed the same day as what other pla...
SELECT "player" FROM table_204_783 WHERE "player" <> 'nick roach' AND "date signed" = (SELECT "date signed" FROM table_204_783 WHERE "player" = 'nick roach')
### Instruction: CREATE TABLE table_19286 ( "Series" text, "Main presenter" text, "Co-presenter" text, "Comedian" text, "UK co-presenter" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the UK co-presenters that have Joe Swash as a co-presente...
SELECT "UK co-presenter" FROM table_19286 WHERE "Co-presenter" = 'Joe Swash' AND "Series" = 'Eleven (2011)'
### Instruction: CREATE TABLE table_41657 ( "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 was the match on a hard surface with a sco...
SELECT "Date" FROM table_41657 WHERE "Surface" = 'hard' AND "Score" = '6–4, 2–6, 3–6'
### Instruction: CREATE TABLE table_70746 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who used Ford v8 and Jordan 191 after 1990 and got 8 points? ### Response:
SELECT "Entrant" FROM table_70746 WHERE "Year" > '1990' AND "Engine" = 'ford v8' AND "Points" = '8' AND "Chassis" = 'jordan 191'
### Instruction: CREATE TABLE table_24234 ( "Name" text, "Municipal status" text, "Census division" text, "Population (2011)" real, "Population (2006)" real, "Change (%)" text, "Area (km\u00b2)" text, "Population density" text ) -- Using valid SQLite, answer the following questions for...
SELECT "Census division" FROM table_24234 WHERE "Name" = 'Stratford'
### Instruction: CREATE TABLE table_52460 ( "Tournament" text, "1972" text, "1973" text, "1974" text, "1975" text, "1976" text, "1977" text, "1978" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1976 value of the Australian O...
SELECT "1976" FROM table_52460 WHERE "Tournament" = 'australian open'
### Instruction: CREATE TABLE table_38221 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which college's round is more than 4, when the overall is less than 2...
SELECT "College" FROM table_38221 WHERE "Round" > '4' AND "Overall" < '237' AND "Name" = 'ted cottrell'
### Instruction: CREATE TABLE table_204_279 ( id number, "name of place" text, "number\nof\ncounties" number, "principal\ncounty" text, "zip code\nlower" number, "zip code\nupper" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name...
SELECT "name of place" FROM table_204_279 WHERE id = (SELECT id FROM table_204_279 WHERE "name of place" = 'dallas') + 1
### Instruction: CREATE TABLE table_57739 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text, "Arena" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points when under 17,19...
SELECT AVG("Points") FROM table_57739 WHERE "Attendance" < '17,197' AND "Opponent" = 'wild'
### Instruction: CREATE TABLE table_22483 ( "Township" text, "County" text, "Pop. (2010)" real, "Land ( sqmi )" text, "Water (sqmi)" text, "Latitude" text, "Longitude" text, "GEO ID" real, "ANSI code" real ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT "Longitude" FROM table_22483 WHERE "Township" = 'Tatman'
### Instruction: CREATE TABLE table_61337 ( "Name" text, "Serie A" real, "Champions League" real, "Coppa Italia" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the championsleague when the total was greater than 1, the coppa it...
SELECT SUM("Champions League") FROM table_61337 WHERE "Serie A" = '1' AND "Total" > '1' AND "Coppa Italia" > '2'
### Instruction: CREATE TABLE table_63420 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What the lost that has le...
SELECT SUM("Lost") FROM table_63420 WHERE "Goals Scored" < '38' AND "Points" < '10'
### Instruction: CREATE TABLE table_54285 ( "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 most gold medals that a team ranked higher than 6, have 1 silve...
SELECT MAX("Gold") FROM table_54285 WHERE "Rank" < '6' AND "Silver" = '1' AND "Total" > '4'
### Instruction: CREATE TABLE table_6924 ( "Office" text, "Democratic ticket" text, "Republican ticket" text, "Conservative ticket" text, "Liberal ticket" text, "Free Libertarian ticket" text, "Socialist Labor ticket" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Liberal ticket" FROM table_6924 WHERE "Free Libertarian ticket" = 'robert s. flanzer'
### Instruction: CREATE TABLE table_3907 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wha...
SELECT "Original air date" FROM table_3907 WHERE "U.S. viewers (million)" = '5.42'
### Instruction: CREATE TABLE table_60529 ( "Year" real, "Round" real, "Pick" real, "Player" text, "NBA Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum for the pick of the year 2009, and a round smaller than 2 and an NBA Club De...
SELECT SUM("Pick") FROM table_60529 WHERE "Year" = '2009' AND "Round" < '2' AND "NBA Club" = 'denver nuggets'
### Instruction: CREATE TABLE table_24440 ( "Day" text, "Stage" text, "Time (CET)" text, "Name" text, "Length" text, "Winner" text, "Time" text, "Avg. spd." text, "Rally leader" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ...
SELECT "Time (CET)" FROM table_24440 WHERE "Name" = 'Lillehammer 2'
### Instruction: CREATE TABLE table_name_63 ( evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which is the smallest evening gown score when the interview score was more than 9.164, the...
SELECT MIN(evening_gown) FROM table_name_63 WHERE interview > 9.164 AND swimsuit < 9.35 AND average < 9.233
### Instruction: CREATE TABLE table_74210 ( "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 COUNT("High points") FROM table_74210 WHERE "High assists" = 'A. Webb (7)'
### Instruction: CREATE TABLE table_name_76 ( works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Works number has a Builder of avonside engine company, and a Type of 4-6-...
SELECT works_number FROM table_name_76 WHERE builder = "avonside engine company" AND type = "4-6-0" AND number < 12 AND date = "december 1871"
### Instruction: CREATE TABLE table_40920 ( "Game" real, "Date" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Result (sets)" text, "Result (Pts)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What day ...
SELECT "Date" FROM table_40920 WHERE "Set 1" = '25-18'
### Instruction: CREATE TABLE table_22838 ( "Mission No." text, "Cover Name" text, "Launch Date" text, "NSSDC ID No." text, "Alt. Name" text, "Camera" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the alternative name...
SELECT "Alt. Name" FROM table_22838 WHERE "Notes" = 'Mission failed. Guidance system failed. No orbit.'
### Instruction: CREATE TABLE Has_allergy ( lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR ) CREATE TABLE Student ( lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find th...
SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
### Instruction: CREATE TABLE table_204_386 ( 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_386 WHERE "res." = 'win' AND "method" = 'decision'
### Instruction: CREATE TABLE Projects ( Code Char(4), Name Char(50), Hours int ) CREATE TABLE AssignedTo ( Scientist int, Project char(4) ) CREATE TABLE Scientists ( SSN int, Name Char(30) ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find th...
SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name ORDER BY Name
### Instruction: CREATE TABLE table_79800 ( "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. -- Name the sum of top-25 for pga championship and...
SELECT SUM("Top-25") FROM table_79800 WHERE "Tournament" = 'pga championship' AND "Top-5" < '1'
### Instruction: CREATE TABLE table_23630 ( "Candidate" text, "Office" text, "Home state" text, "Popular vote" real, "States \u2013 first place" real, "States \u2013 second place" real, "States \u2013 third place" text ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT COUNT("Popular vote") FROM table_23630 WHERE "Candidate" = 'Rick Perry'
### Instruction: CREATE TABLE table_13151 ( "Elected" text, "Assembled" text, "Dissolved" text, "1st member" text, "2nd member" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the assembled date of the parliament dissolved on 9 February 1611 ...
SELECT "Assembled" FROM table_13151 WHERE "Dissolved" = '9 february 1611' AND "Elected" = '1606'
### Instruction: CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real ) CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, ...
SELECT Name, Weight FROM people
### Instruction: CREATE TABLE table_204_598 ( id number, "name" text, "state of residence" text, "took office" text, "left office" text, "president served under" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which senior advisor is after pete r...
SELECT "name" FROM table_204_598 WHERE "took office" > (SELECT "took office" FROM table_204_598 WHERE "name" = 'pete rouse') ORDER BY "took office" LIMIT 1
### Instruction: CREATE TABLE table_28826 ( "Name" text, "Jewel" text, "Species" text, "Gender" text, "Jewel Power" text, "Attribute" text, "Birthday" text, "Media Debut" text, "Voice actor" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "Voice actor" FROM table_28826 WHERE "Birthday" = 'March 26'
### Instruction: CREATE TABLE table_12835 ( "2013" text, "2012" text, "2011" text, "2010" text, "2009" text, "2008" text, "2007" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What 2008 has 2013 for the year 2013? ### Response:
SELECT "2008" FROM table_12835 WHERE "2013" = '2013'
### Instruction: CREATE TABLE table_34777 ( "County" text, "Monument name" text, "Year built" real, "City or Town" text, "Latitude" text, "Longitude" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What County was built after 1920 with a Latitude...
SELECT "County" FROM table_34777 WHERE "Year built" > '1920' AND "Latitude" = '37°40′30"n'
### Instruction: CREATE TABLE table_24620684_2 ( vehicle VARCHAR, epa_rated_combined_fuel_economy VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type? ### Response:
SELECT vehicle FROM table_24620684_2 WHERE epa_rated_combined_fuel_economy = "102 mpg-e (33kW-hrs/100mi)"
### Instruction: CREATE TABLE table_20961 ( "Solution" text, "Other Name" text, "[Na + ](mmol/L)" real, "[Cl - ](mmol/L)" real, "[Glucose](mmol/L)" real, "[Glucose](mg/dl)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the other name where...
SELECT "Other Name" FROM table_20961 WHERE "[Glucose](mg/dl)" = '5000'
### Instruction: CREATE TABLE table_train_150 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "hiv_infection" bool, "hepatic_disease" bool, "liver_disease" bool, "abnormality" bool, "triglyceride_tg" float, "NOUSE" float ) -- Using valid SQLite, answer the following que...
SELECT * FROM table_train_150 WHERE hiv_infection = 1
### Instruction: CREATE TABLE table_44213 ( "Name of peak" text, "Height (m)" real, "Height (ft)" real, "Prominence (m)" real, "Prominence (ft)" real, "Nearest Higher Neighbor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest p...
SELECT MAX("Prominence (ft)") FROM table_44213 WHERE "Prominence (m)" < '103'
### Instruction: CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE has_allergy ( stuid number, allergy text ) -- U...
SELECT stuid FROM has_allergy GROUP BY stuid HAVING COUNT(*) >= 2
### Instruction: CREATE TABLE table_59111 ( "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 country that has a place of T6, a socre of 69-69=138, and where Niclas Fasth p...
SELECT "Country" FROM table_59111 WHERE "Place" = 't6' AND "Score" = '69-69=138' AND "Player" = 'niclas fasth'
### Instruction: CREATE TABLE table_75192 ( "Surname" text, "First" text, "D.O.B." text, "Uni#" real, "Bats" text, "Throws" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Surname has Throws of l, and a DOB of 5/02/79? ...
SELECT "Surname" FROM table_75192 WHERE "Throws" = 'l' AND "D.O.B." = '5/02/79'
### Instruction: CREATE TABLE table_204_721 ( id number, "rank" number, "wrestler" text, "no. of reigns" number, "combined\ndefenses" number, "combined\ndays" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which wrestler comes after paul londo...
SELECT "wrestler" FROM table_204_721 WHERE "rank" = (SELECT "rank" FROM table_204_721 WHERE "wrestler" = 'paul london') + 1
### Instruction: CREATE TABLE table_55017 ( "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 score of the Away ...
SELECT "Away team score" FROM table_55017 WHERE "Home team score" = '13.14 (92)'
### Instruction: CREATE TABLE table_40840 ( "Western Title" text, "Chinese Title" text, "Pinyin" text, "Released Date" text, "Genre" text, "Game Modes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the genre of the Chinese title , which...
SELECT "Genre" FROM table_40840 WHERE "Game Modes" = 'single-player' AND "Chinese Title" = '摸摸瓦力欧制造'
### Instruction: CREATE TABLE table_46383 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Decision has a Visitor of calgary, a Score of 2 1, and a Series of...
SELECT "Decision" FROM table_46383 WHERE "Visitor" = 'calgary' AND "Score" = '2 – 1' AND "Series" = '4 – 3'
### Instruction: CREATE TABLE table_16148 ( "Rd" real, "Name" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Johnny Rutherford's fa...
SELECT "Fastest Lap" FROM table_16148 WHERE "Winning driver" = 'Johnny Rutherford' AND "Pole Position" = 'Al Unser'
### Instruction: CREATE TABLE table_3644 ( "Country or territory with flag" text, "Area (km\u00b2) (per sqmi)" text, "Population (July 2009 est.)" real, "Population density per km\u00b2" text, "Capital" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT MAX("Population (July 2009 est.)") FROM table_3644 WHERE "Capital" = 'Quito'
### Instruction: CREATE TABLE table_59530 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when Opposing Teams is 'South Africa', and when Venus is 'Vodacom Par...
SELECT "Date" FROM table_59530 WHERE "Opposing Teams" = 'south africa' AND "Venue" = 'vodacom park , bloemfontein'
### Instruction: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ...
SELECT Name, MIN(Price) FROM Products GROUP BY Name ORDER BY MIN(Price)
### Instruction: CREATE TABLE table_204_343 ( id number, "nation" text, "model" text, "length" text, "barrel length" text, "weight" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- do the usa rifles on average weigh more or less than the danish ri...
SELECT (SELECT AVG("weight") FROM table_204_343 WHERE "nation" = 'usa') > (SELECT AVG("weight") FROM table_204_343 WHERE "nation" = 'denmark')
### Instruction: CREATE TABLE race ( race_id number, name text, class text, date text, track_id text ) CREATE TABLE track ( track_id number, name text, location text, seating number, year_opened number ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT T1.name, T1.date, T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id
### Instruction: CREATE TABLE table_70705 ( "Model" text, "Floating point" text, "Decimal" text, "Byte string" text, "Memory map" text, "Max memory (kwords)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the decimal value when the memor...
SELECT "Decimal" FROM table_70705 WHERE "Byte string" = 'standard' AND "Memory map" = 'standard' AND "Max memory (kwords)" = '512'
### Instruction: CREATE TABLE table_69730 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Outcome for the Partner of J rgen Melzer and the Date ...
SELECT "Outcome" FROM table_69730 WHERE "Partner" = 'jürgen melzer' AND "Date" = 'january 7, 2012'
### Instruction: CREATE TABLE table_78196 ( "Res." text, "Record" text, "Opponent" text, "Method" 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 rounds when Drew Fickett...
SELECT COUNT("Round") FROM table_78196 WHERE "Time" = '5:00' AND "Opponent" = 'drew fickett'
### Instruction: CREATE TABLE table_46431 ( "Club" text, "Location" text, "Current manager" text, "Team captain" text, "Stadium" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the team captain of the Guldensporen Stadion ...
SELECT "Team captain" FROM table_46431 WHERE "Capacity" > '12,919' AND "Stadium" = 'guldensporen stadion'
### Instruction: CREATE TABLE table_6733 ( "Rank" real, "Goalkeeper" text, "Club" text, "MINS" real, "SHTS" real, "W-L-T" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest number for SHTS for the San Jose earthquakes with MINS l...
SELECT MAX("SHTS") FROM table_6733 WHERE "Club" = 'san jose earthquakes' AND "MINS" > '2700'
### 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 Class, COUNT(Class) FROM captain GROUP BY Rank, Class
### Instruction: CREATE TABLE table_76186 ( "Club" text, "Home city" text, "Stadium" text, "Founded" real, "Joined PRSL" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when is the latest to join prsl when founded in 2007 and the stadium is roberto c...
SELECT MAX("Joined PRSL") FROM table_76186 WHERE "Founded" = '2007' AND "Stadium" = 'roberto clemente stadium 1'
### Instruction: CREATE TABLE table_31397 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "U.S. viewers (million)" FROM table_31397 WHERE "Written by" = 'Liz Feldman'
### Instruction: CREATE TABLE table_23482 ( "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 COUNT("Date") FROM table_23482 WHERE "High assists" = 'Stu Douglass (5) – 4'
### Instruction: CREATE TABLE table_73508 ( "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 COUNT("Location Attendance") FROM table_73508 WHERE "Record" = '45-22'
### Instruction: CREATE TABLE table_203_429 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the last competition he was in before the 2012 olympics ? ...
SELECT "competition" FROM table_203_429 WHERE id = (SELECT id FROM table_203_429 WHERE "year" = 2012 AND "competition" = 'olympic games') - 1
### Instruction: CREATE TABLE table_48775 ( "Title" text, "Season" real, "Director" text, "Teleplay" text, "First Broadcast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Teleplay, when Season is greater than 1.1, and when First Broadcast i...
SELECT "Teleplay" FROM table_48775 WHERE "Season" > '1.1' AND "First Broadcast" = 'february 20, 1981'
### Instruction: CREATE TABLE table_66936 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Cha...
SELECT "Entrant" FROM table_66936 WHERE "Points" = '0' AND "Year" > '1961' AND "Chassis" = 'ferrari 156'
### Instruction: CREATE TABLE table_27809 ( "Position" real, "Race number" text, "Sail number" text, "Yacht" text, "State/country" text, "Yacht type" text, "LOA (Metres)" text, "Skipper" text, "Elapsed time d:hh:mm:ss" text ) -- Using valid SQLite, answer the following questions fo...
SELECT COUNT("Race number") FROM table_27809 WHERE "Yacht" = 'Loki'
### Instruction: CREATE TABLE table_33673 ( "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 VENUE HAD AN AWAY TEAM SCO...
SELECT "Venue" FROM table_33673 WHERE "Away team score" = '12.15 (87)'
### Instruction: CREATE TABLE table_15222 ( "Team" text, "Car(s)" text, "Driver(s)" text, "Primary Sponsor(s)" text, "Owner(s)" text, "Crew Chief" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What primary sponsor has the owner Rick Hendrick an...
SELECT "Primary Sponsor(s)" FROM table_15222 WHERE "Owner(s)" = 'rick hendrick' AND "Crew Chief" = 'alan gustafson'
### Instruction: CREATE TABLE table_74213 ( "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_74213 WHERE "High points" = 'D. Wilkins (29)'
### Instruction: CREATE TABLE table_73619 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Table" text, "Incoming manager" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Date of appointment" FROM table_73619 WHERE "Team" = 'Liverpool' AND "Incoming manager" = 'Roy Hodgson'
### Instruction: CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY title
### Instruction: CREATE TABLE table_203_325 ( id number, "year" number, "title" text, "(english)" text, "ifpi israel certification" text, "label" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the name of the title previous to david & s...
SELECT "title" FROM table_203_325 WHERE "year" < (SELECT "year" FROM table_203_325 WHERE "title" = 'david & shlomo') ORDER BY "year" DESC LIMIT 1
### Instruction: CREATE TABLE table_204_563 ( id number, "abbreviation" text, "settlement" text, "district" text, "official name" text, "division" text, "cup" number, "other information" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how...
SELECT COUNT("abbreviation") FROM table_204_563 WHERE id > (SELECT id FROM table_204_563 WHERE "abbreviation" = 'tarmo')
### Instruction: CREATE TABLE table_name_59 ( money___ INTEGER, country VARCHAR, to_par VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much is the money ($) when the country is united states, to par is e and the score is 72-75-70-7...
SELECT SUM(money___) AS $__ FROM table_name_59 WHERE country = "united states" AND to_par = "e" AND score = 72 - 75 - 70 - 71 = 288
### Instruction: CREATE TABLE table_21045 ( "Poll Source" text, "Dates administered" text, "Democrat: Mark Begich" text, "Republican: Ted Stevens" text, "Lead Maragin" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the poll source is research 2...
SELECT COUNT("Dates administered") FROM table_21045 WHERE "Poll Source" = 'Research 2000/Daily Kos'
### Instruction: CREATE TABLE table_202_232 ( id number, "institution" text, "location" text, "established" number, "gained university status" number, "vice-chancellor" text, "total number of students" number, "research funding (\u00a3,000)" number ) -- Using valid SQLite, answer the f...
SELECT COUNT("institution") FROM table_202_232 WHERE "location" = 'london'
### Instruction: CREATE TABLE table_55841 ( "Year" real, "MRHMA" text, "USCA" text, "RTHK" text, "Joint Music Award" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Total with a Joint Music Award of 1, RTHK of 4, and USC...
SELECT "Total" FROM table_55841 WHERE "Joint Music Award" = '1' AND "RTHK" = '4' AND "USCA" = '4'
### Instruction: CREATE TABLE table_49065 ( "Party" text, "Previous council" real, "Staying councillors" real, "Seats up for election" real, "Election result" real, "New council" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many seats were...
SELECT SUM("Seats up for election") FROM table_49065 WHERE "Election result" = '9' AND "New council" > '27'
### Instruction: CREATE TABLE table_37264 ( "School" text, "Location" text, "Mascot" text, "# / County" text, "Year joined" real, "Previous conference" text, "Year left" real, "New conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT MAX("Year joined") FROM table_37264 WHERE "Previous conference" = 'mid-indiana' AND "Location" = 'converse'
### Instruction: CREATE TABLE table_9887 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of va...
SELECT "Date of vacancy" FROM table_9887 WHERE "Manner of departure" = 'mutual consent' AND "Outgoing manager" = 'svetozar šapurić'
### Instruction: CREATE TABLE table_19670 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE NAME OF THE MIXED DOUBLES...
SELECT "Mixed doubles" FROM table_19670 WHERE "Womens singles" = 'Kairi Viilup'
### Instruction: CREATE TABLE table_37125 ( "Team" text, "Location" text, "Venue" text, "Capacity" real, "Position in 1998" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the position of the team that played in a venue in Dinamo, Minsk with...
SELECT "Position in 1998" FROM table_37125 WHERE "Capacity" > '3,550' AND "Venue" = 'dinamo, minsk'
### Instruction: CREATE TABLE table_28102 ( "Selection" real, "Month" text, "Season" text, "Team record" text, "Points per game" text, "Field goal percentage" text, "Rebounds per game" text, "Blocks per game" text ) -- Using valid SQLite, answer the following questions for the tables p...
SELECT "Points per game" FROM table_28102 WHERE "Rebounds per game" = '15.0'
### Instruction: CREATE TABLE table_24182 ( "Model" text, "Years" text, "Type/code" text, "Transmission" text, "max. power" text, "Torque" text, "0-km/h (mph) (sec)" text, "top speed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What i...
SELECT "top speed" FROM table_24182 WHERE "max. power" = 'PS (kW; bhp)'
### Instruction: CREATE TABLE table_7349 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which final score had a surface of hard ...
SELECT "Score in the final" FROM table_7349 WHERE "Surface" = 'hard (i)' AND "Date" = 'october 22, 2000'
### Instruction: CREATE TABLE table_30133_1 ( current_account_balance__percent_of_gdp_ VARCHAR, gdp_at_constant_prices_growth_rate__percent_change_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many current account balances are associated with GDP at co...
SELECT COUNT(current_account_balance__percent_of_gdp_) FROM table_30133_1 WHERE gdp_at_constant_prices_growth_rate__percent_change_ = "4.6"
### Instruction: CREATE TABLE table_204_525 ( id number, "rank" number, "player" text, "county" text, "tally" text, "total" number, "opposition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- after declan lovett , who was ranked next in the ...
SELECT "player" FROM table_204_525 WHERE id = (SELECT id FROM table_204_525 WHERE "player" = 'declan lovett') + 1
### Instruction: CREATE TABLE table_24895 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT "Written by" FROM table_24895 WHERE "Production code" = '7ACX14'
### Instruction: CREATE TABLE table_203_877 ( id number, "year" number, "single" text, "us cashbox" number, "us hot 100" number, "uk singles" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many songs charted on both the us cashbox and us h...
SELECT COUNT("single") FROM table_203_877 WHERE NOT "us cashbox" IS NULL AND NOT "us hot 100" IS NULL AND "uk singles" IS NULL
### Instruction: CREATE TABLE table_5258 ( "Episode" real, "Title" text, "Airdate (Canada)" text, "Airdate (USA)" text, "CBS airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the CBS airdate of the episode with a number under 70 with a...
SELECT "CBS airdate" FROM table_5258 WHERE "Episode" < '70' AND "Airdate (USA)" = '1 april 2005'
### Instruction: CREATE TABLE table_80014 ( "Model" text, "Code name" text, "CPU support" text, "FSB / HT (MHz)" text, "Southbridge" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Southbridge when the CPU support was athlon, athlonxp, du...
SELECT "Southbridge" FROM table_80014 WHERE "CPU support" = 'athlon, athlonxp, duron( socketa ), alpha21264'
### Instruction: CREATE TABLE table_name_30 ( 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 of Saturday that's [t aj aat t ] on Sunday? ### Response:
SELECT saturday_shani__saturn_ FROM table_name_30 WHERE sunday_surya__the_sun_ = "ថ្ងៃអាទិត្យ [tŋaj ʔaatɨt ]"
### Instruction: CREATE TABLE table_24691 ( "Location" text, "July (\u00b0C)" text, "July (\u00b0F)" text, "January (\u00b0C)" text, "January (\u00b0F)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what location were the January ( F) temperatur...
SELECT "Location" FROM table_24691 WHERE "January (\u00b0F)" = '30/17'
### Instruction: CREATE TABLE table_76608 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which pick has a Round smaller than 8, and an Overall smaller than 16, ...
SELECT "Pick" FROM table_76608 WHERE "Round" < '8' AND "Overall" < '16' AND "Name" = 'harry gilmer'
### Instruction: CREATE TABLE table_204_270 ( id number, "transmitter" text, "kw" number, "bbca" number, "bbcb" number, "d3&4" number, "sdn" number, "arqa" number, "arqb" number, "pol." text, "a.g." text ) -- Using valid SQLite, answer the following questions for the tables...
SELECT COUNT("transmitter") FROM table_204_270
### Instruction: CREATE TABLE table_16462 ( "No. in season" real, "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Ho...
SELECT "U.S. viewers (million)" FROM table_16462 WHERE "Title" = 'Brace for Impact'
### Instruction: CREATE TABLE table_203_814 ( id number, "season" number, "head coach" text, "overall record" text, "conference record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did the team win more or less games in 1933 than the year before ?...
SELECT (SELECT "overall record" FROM table_203_814 WHERE "season" = 1933) > (SELECT "overall record" FROM table_203_814 WHERE "season" = 1933 - 1)
### Instruction: CREATE TABLE table_29033 ( "Series #" real, "Episode #" 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. -- Which seri...
SELECT MAX("Series #") FROM table_29033 WHERE "U.S. viewers (millions)" = '0.852'
### Instruction: CREATE TABLE table_78286 ( "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 game where the away team...
SELECT "Away team" FROM table_78286 WHERE "Away team score" = '17.19 (121)'
### Instruction: CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, ...
SELECT Country, AVG(Age) FROM artist GROUP BY Country
### Instruction: CREATE TABLE table_23358 ( "Series #" real, "Season #" real, "Title" text, "Director(s)" text, "Writer(s)" text, "Airdate" text, "Production code" real, "Arties disguises" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- F...
SELECT MAX("Season #") FROM table_23358 WHERE "Writer(s)" = 'Denne Bart Petitclerc'