instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_63706 ( "Year" real, "Baden" text, "W\u00fcrttemberg" text, "Nordbayern" text, "S\u00fcdbayern" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Nordbayern with a W rttemberg of Union B ckingen in the yea...
SELECT "Nordbayern" FROM table_63706 WHERE "Year" < '1932' AND "W\u00fcrttemberg" = 'union böckingen'
### Instruction: CREATE TABLE table_35715 ( "Province" text, "Kibaki" text, "Raila" text, "Wamalwa" text, "Ngilu" text, "Others" text, "Registered Voters" text, "Turnout %" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's listed for...
SELECT "Wamalwa" FROM table_35715 WHERE "Turnout %" = '55.9%'
### Instruction: CREATE TABLE table_29345 ( "Rank" real, "Total USD" real, "Project name" text, "Creator" text, "Category" text, "% funded" real, "Backers" real, "Closing date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the ...
SELECT MIN("% funded") FROM table_29345 WHERE "Closing date" = '2012-05-18'
### Instruction: CREATE TABLE table_69373 ( "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. -- If the place is smaller t...
SELECT COUNT("Goals Conceded") FROM table_69373 WHERE "Place" < '8' AND "Played" > '18'
### Instruction: CREATE TABLE table_68941 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite, answer the foll...
SELECT "Points for" FROM table_68941 WHERE "Points against" = '450'
### Instruction: CREATE TABLE table_203_67 ( id number, "place" number, "team" text, "played" number, "won" number, "draw" number, "lost" number, "goals\nscored" number, "goals\nconceded" number, "+/-" number, "points" number ) -- Using valid SQLite, answer the following qu...
SELECT "team" FROM table_203_67 ORDER BY "place" LIMIT 1
### Instruction: CREATE TABLE table_22896 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "U.S. viewers (million)" FROM table_22896 WHERE "Production code" = '5.09'
### Instruction: CREATE TABLE table_66958 ( "D 48" text, "D 47" text, "D 46" text, "D 45" text, "D 44" text, "D 43" text, "D 42" text, "D 41" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the D 47 when it has D 48 of d 29 ### Res...
SELECT "D 47" FROM table_66958 WHERE "D 48" = 'd 29'
### Instruction: CREATE TABLE table_25250 ( "Year" text, "Date" text, "Driver" text, "Team" text, "Manufacturer" text, "Laps" real, "Miles (km)" text, "Race Time" text, "Average Speed (mph)" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Team" FROM table_25250 WHERE "Race Time" = '2:53:57'
### Instruction: CREATE TABLE table_64214 ( "Position" real, "Gymnast" text, "Floor" text, "Pommel Horse" text, "Rings" text, "Vault" text, "Parallel Bars" text, "Horizontal Bar" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Horizontal Bar" FROM table_64214 WHERE "Pommel Horse" = '15.250'
### Instruction: CREATE TABLE table_train_257 ( "id" int, "serum_bicarbonate" int, "plasma_glucose_concentration" int, "hemoglobin_a1c_hba1c" float, "platelets" int, "visual_impairment" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT * FROM table_train_257 WHERE plasma_glucose_concentration > 300
### Instruction: CREATE TABLE table_203_753 ( id number, "rank" number, "name" text, "caps" number, "goals" number, "years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- tommy taylor had the same number of goals as which other player -lrb- s -r...
SELECT "name" FROM table_203_753 WHERE "name" <> 'tommy taylor' AND "goals" = (SELECT "goals" FROM table_203_753 WHERE "name" = 'tommy taylor')
### Instruction: CREATE TABLE table_32345 ( "Rank" real, "Player" text, "Nation" text, "Shutouts" real, "Games" real, "Years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player has less than 201 games, is ranked 2, and played between 20...
SELECT "Player" FROM table_32345 WHERE "Games" < '201' AND "Rank" = '2' AND "Years" = '2007-2012'
### Instruction: CREATE TABLE table_204_624 ( id number, "school" text, "team name" text, "town" text, "county" text, "enrollment (2010-11 & 2011-12)" number, "primary mshsaa class*" number, "football class" number ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT "town" FROM table_204_624 WHERE "school" = 'benton high school'
### Instruction: CREATE TABLE climber ( climber_id number, name text, country text, time text, points number, mountain_id number ) CREATE TABLE mountain ( mountain_id number, name text, height number, prominence number, range text, country text ) -- Using valid SQLite,...
SELECT country FROM mountain WHERE height > 5600 INTERSECT SELECT country FROM mountain WHERE height < 5200
### Instruction: CREATE TABLE table_69725 ( "Race name" text, "Dist (miles)" text, "Course" text, "Prize" text, "Jockey" text, "Odds" text, "Runners" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the distance for the unnamed race wi...
SELECT "Dist (miles)" FROM table_69725 WHERE "Race name" = 'unnamed race' AND "Runners" = '3' AND "Course" = 'newcastle'
### Instruction: CREATE TABLE wrestler ( Wrestler_ID int, Name text, Reign text, Days_held text, Location text, Event text ) CREATE TABLE Elimination ( Elimination_ID text, Wrestler_ID text, Team text, Eliminated_By text, Elimination_Move text, Time text ) -- Using val...
SELECT Team, COUNT(*) FROM Elimination GROUP BY Team ORDER BY COUNT(*)
### Instruction: CREATE TABLE employee ( eid number, name text, salary number ) CREATE TABLE flight ( flno number, origin text, destination text, distance number, departure_date time, arrival_date time, price number, aid number ) CREATE TABLE certificate ( eid number, ...
SELECT destination, COUNT(*) FROM flight GROUP BY destination
### Instruction: CREATE TABLE table_25662 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Prod. code" text, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables pro...
SELECT MAX("No. in season") FROM table_25662 WHERE "No. in series" = '20'
### Instruction: CREATE TABLE table_48376 ( "Country" text, "Year" real, "Total" real, "Hydroelectricity" real, "Wind Power" real, "Biomass and Waste" text, "Solar" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In 2011 with a hydroelectrici...
SELECT "Solar" FROM table_48376 WHERE "Year" = '2011' AND "Hydroelectricity" < '119.6'
### Instruction: CREATE TABLE table_26821 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "FLaps" real, "Podiums" real, "Points" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT MIN("Points") FROM table_26821 WHERE "Poles" = '0' AND "Races" = '10'
### Instruction: CREATE TABLE table_52524 ( "Munsee Delaware" text, "Unami Delaware" text, "De Laet (1633)" text, "Campanius (ca. 1645)" text, "Interpreter (1684?)" text, "Thomas (1698)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the...
SELECT "Unami Delaware" FROM table_52524 WHERE "Thomas (1698)" = 'nacha'
### Instruction: CREATE TABLE college ( College_ID int, Name text, Leader_Name text, College_Location text ) CREATE TABLE round ( Round_ID int, Member_ID int, Decoration_Theme text, Rank_in_Round int ) CREATE TABLE member ( Member_ID int, Name text, Country text, Colleg...
SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY COUNT(*) DESC
### Instruction: CREATE TABLE table_21796 ( "Poll Source" text, "Dates administered" text, "Democrat: Jay Nixon" text, "Republican: Kenny Hulshof" text, "Lead Margin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage was claimed that Re...
SELECT "Republican: Kenny Hulshof" FROM table_21796 WHERE "Democrat: Jay Nixon" = '48%'
### Instruction: CREATE TABLE table_train_156 ( "id" int, "anemia" bool, "abnormal_bilirubin" bool, "hemoglobin_a1c_hba1c" float, "body_mass_index_bmi" float, "bilirubin" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- hba1c l...
SELECT * FROM table_train_156 WHERE hemoglobin_a1c_hba1c < 7
### Instruction: CREATE TABLE table_74998 ( "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 is the year when the Winner was the new york jets, with a Result of ...
SELECT SUM("Year") FROM table_74998 WHERE "Winner" = 'new york jets' AND "Result" = '24–17' AND "Location" = 'giants stadium'
### Instruction: CREATE TABLE flight ( flno number, origin text, destination text, distance number, departure_date time, arrival_date time, price number, aid number ) CREATE TABLE certificate ( eid number, aid number ) CREATE TABLE aircraft ( aid number, name text, ...
SELECT origin FROM flight GROUP BY origin ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_42885 ( "Table 2: Depression Data" text, "1929" real, "1931" real, "1933" real, "1937" real, "1938" real, "1940" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest 1937 value that has a 194...
SELECT MAX("1937") FROM table_42885 WHERE "1940" > '126'
### Instruction: CREATE TABLE table_76737 ( "School" text, "Locality" text, "Ages" text, "Capacity" real, "Ofsted" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which School has a Capacity larger than 730, and an Ofsted smaller than 106135, and a L...
SELECT "School" FROM table_76737 WHERE "Capacity" > '730' AND "Ofsted" < '106135' AND "Locality" = 'heaton mersey'
### Instruction: CREATE TABLE table_28478 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" text, "Nickname" text, "Primary Conference when joining the CSFL" text ) -- Using valid SQLite, answer the following questions for the tables provid...
SELECT "Primary Conference when joining the CSFL" FROM table_28478 WHERE "Joined" = '2004-05'
### Instruction: CREATE TABLE table_4893 ( "Season" real, "Teams" real, "K League Classic" text, "K-League Cup" text, "FA Cup" text, "Manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many teams played before 2008, had a K League Class...
SELECT SUM("Teams") FROM table_4893 WHERE "Season" < '2008' AND "K League Classic" = 'runners-up' AND "Manager" = 'kim ho'
### Instruction: CREATE TABLE table_61919 ( "Rank:" real, "Prime Minister:" text, "Party:" text, "Assumed Office:" text, "Left Office:" text, "TOTAL Time in Office:" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total time in office...
SELECT "TOTAL Time in Office:" FROM table_61919 WHERE "Party:" = 'liberal' AND "Left Office:" = '19 december 1967'
### Instruction: CREATE TABLE table_203_589 ( id number, "protein" text, "natural host" text, "normal function" text, "prion state" text, "prion phenotype" text, "year identified" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long aft...
SELECT (SELECT "year identified" FROM table_203_589 WHERE id = 3 + 1) - (SELECT "year identified" FROM table_203_589 WHERE id = 3)
### Instruction: CREATE TABLE table_43786 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" real, "Year named" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What name was given in 1994 when the diameter (km) was larger than 125 and ...
SELECT "Name" FROM table_43786 WHERE "Year named" = '1994' AND "Diameter (km)" > '125' AND "Latitude" = '30.0s'
### Instruction: CREATE TABLE table_57339 ( "Tallangatta DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the average byes that are greater than 1479, wins greate...
SELECT AVG("Byes") FROM table_57339 WHERE "Against" > '1479' AND "Wins" > '5' AND "Draws" < '0'
### Instruction: CREATE TABLE table_49548 ( "Volume:Issue" text, "Issue date(s)" text, "Weeks at number one" real, "Song" text, "Artist(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Song has a Weeks at number one larger than 2, and an Iss...
SELECT "Song" FROM table_49548 WHERE "Weeks at number one" > '2' AND "Issue date(s)" = '17 april - 8 may'
### Instruction: CREATE TABLE table_72285 ( "Name" text, "Alt name" text, "Launch date" text, "ID" text, "Mass (kg)" real, "Decay date" text, "Perigee (km)" real, "Apogee (km)" real, "Inclination" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT COUNT("Alt name") FROM table_72285 WHERE "ID" = '1964-011A'
### Instruction: CREATE TABLE table_76043 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of gold medals when the total was 1335 medals, with more than 469 b...
SELECT AVG("Gold") FROM table_76043 WHERE "Silver" > '14' AND "Total" = '1335' AND "Bronze" > '469'
### Instruction: CREATE TABLE table_name_80 ( time_to_ft__m__at_40 VARCHAR, shell__lb_ VARCHAR, max_height__ft_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the amount of time (sum) at 40 that it takes a 16 lb shell to reach a maximum of no mor...
SELECT COUNT(time_to_ft__m__at_40) AS °__seconds_ FROM table_name_80 WHERE shell__lb_ = 16 AND max_height__ft_ < 22 OFFSET 000
### Instruction: CREATE TABLE table_19353 ( "Team" text, "Average" text, "Points" real, "Played" real, "1987-88" text, "1988-89" text, "1989-90" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points in 89/90 for the team with 55 in ...
SELECT "1989-90" FROM table_19353 WHERE "1987-88" = '55'
### Instruction: CREATE TABLE table_7524 ( "Event" text, "2006\u201307" text, "2007\u201308" text, "2008\u201309" text, "2010\u201311" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Event has a 2007 08 of n/a? ### Response:
SELECT "Event" FROM table_7524 WHERE "2007\u201308" = 'n/a'
### Instruction: CREATE TABLE table_13290 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "IHSAA Football Class" text, "# / County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which IHSAA Football C...
SELECT "IHSAA Football Class" FROM table_13290 WHERE "IHSAA Class" = 'aa' AND "Enrollment" = '475'
### Instruction: CREATE TABLE church ( church_id number, name text, organized_by text, open_date number, continuation_of text ) CREATE TABLE people ( people_id number, name text, country text, is_male text, age number ) CREATE TABLE wedding ( church_id number, male_id n...
SELECT COUNT(*) FROM wedding WHERE year = 2016
### Instruction: CREATE TABLE table_22345 ( "Transmitter" text, "Service area" text, "Radio 1 (MHz)" text, "2FM (MHz)" text, "RnaG (MHz)" text, "Lyric FM (MHz)" text, "ERP (kW)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rnag...
SELECT "RnaG (MHz)" FROM table_22345 WHERE "Lyric FM (MHz)" = '98.7'
### Instruction: CREATE TABLE table_35368 ( "Region" text, "Total Population" real, "Catholic" real, "% Catholic" text, "% of global Catholic pop." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- with catholic of 3.33% and total population more than ...
SELECT "% of global Catholic pop." FROM table_35368 WHERE "Total Population" > '1,528,384,440' AND "% Catholic" = '3.33%'
### Instruction: CREATE TABLE table_39945 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT MIN("Wins") FROM table_39945 WHERE "Position" = '4' AND "Loses" < '4'
### Instruction: CREATE TABLE table_22047 ( "Team" text, "Average" text, "Points" real, "Played" real, "1988-89" text, "1989-90" text, "1990-1991" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average of the team if they played...
SELECT "Average" FROM table_22047 WHERE "1990-1991" = '31'
### Instruction: CREATE TABLE table_name_21 ( class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-2...
SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-21"
### Instruction: CREATE TABLE table_20519 ( "RR Romaja" text, "M\u2013R Romaja" text, "Hangul/Chosongul" text, "Hanja" text, "ISO" text, "Area" text, "Capital" text, "Region" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "M\u2013R Romaja" FROM table_20519 WHERE "Region" = 'Kwanbuk'
### Instruction: CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text ) CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) -- Using valid SQLite, answer the follo...
SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY COUNT(Nationality) DESC
### Instruction: CREATE TABLE people ( people_id number, sex text, name text, date_of_birth text, height number, weight number ) CREATE TABLE candidate ( candidate_id number, people_id number, poll_source text, date text, support_rate number, consider_rate number, op...
SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex
### Instruction: CREATE TABLE table_203_716 ( 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. -- how many more bronze medals did canada earn than...
SELECT (SELECT "bronze" FROM table_203_716 WHERE "nation" = 'canada') - (SELECT "bronze" FROM table_203_716 WHERE "nation" = 'venezuela')
### Instruction: CREATE TABLE table_name_96 ( year INTEGER, release_air_date VARCHAR, role VARCHAR, radio_station_production_company VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Role of narrator, and a Radio Station/Production Company of bbc audiob...
SELECT SUM(year) FROM table_name_96 WHERE role = "narrator" AND radio_station_production_company = "bbc audiobooks" AND release_air_date = "13 november 2008"
### Instruction: CREATE TABLE table_203_89 ( id number, "#" number, "name\n(birth-death)" text, "took office" text, "left office" text, "monarch" text, "prime minister" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which governor general se...
SELECT "name\n(birth-death)" FROM table_203_89 ORDER BY JULIANDAY("left office") - JULIANDAY("took office") DESC LIMIT 1
### Instruction: CREATE TABLE table_49777 ( "Date" text, "Venue" text, "Opponents" text, "Score" text, "Comp" text, "Djurg\u00e5rden scorers" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the Djurgarden scorers w...
SELECT "Djurg\u00e5rden scorers" FROM table_49777 WHERE "Venue" = 'idrottsparken'
### Instruction: CREATE TABLE table_48676 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the rider who had less than 30 laps, ended in an accident with a car manufactured ...
SELECT "Rider" FROM table_48676 WHERE "Laps" < '30' AND "Manufacturer" = 'yamaha' AND "Time" = 'accident' AND "Grid" > '3'
### Instruction: CREATE TABLE table_13349 ( "Parameter" text, "Symbol" text, "Best fit (WMAP only)" text, "Best fit (WMAP, extra parameter)" text, "Best fit (all data)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the symbol when the best ...
SELECT "Symbol" FROM table_13349 WHERE "Best fit (WMAP, extra parameter)" = '–' AND "Best fit (WMAP only)" = '.4 ± .3'
### Instruction: CREATE TABLE people ( people_id number, name text, country text, is_male text, age number ) CREATE TABLE wedding ( church_id number, male_id number, female_id number, year number ) CREATE TABLE church ( church_id number, name text, organized_by text, ...
SELECT open_date, COUNT(*) FROM church GROUP BY open_date
### Instruction: CREATE TABLE table_54389 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyres" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the driver for ford cosworth dfv 3.0 ...
SELECT "Driver" FROM table_54389 WHERE "Engine" = 'ford cosworth dfv 3.0 v8' AND "Chassis" = 'ts19 ts20'
### Instruction: CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Reviewer ( rID int, name text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director
### Instruction: CREATE TABLE table_59745 ( "A. Dyck" text, "H. Rempel" text, "R. Epp" text, "J. Thiessen" text, "J. J. Neufeld" text, "Ed Zacharias" text, "word meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which of the R. Epp, ha...
SELECT "R. Epp" FROM table_59745 WHERE "Ed Zacharias" = 'rollen, jerolt, golt'
### Instruction: CREATE TABLE table_77515 ( "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Home Town" text, "High School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name with a Year with freshman, a...
SELECT "Name" FROM table_77515 WHERE "Year" = 'freshman' AND "Home Town" = 'los angeles, ca' AND "Height" = '6–4'
### Instruction: CREATE TABLE school_bus ( school_id number, driver_id number, years_working number, if_full_time others ) CREATE TABLE driver ( driver_id number, name text, party text, home_city text, age number ) CREATE TABLE school ( school_id number, grade text, sch...
SELECT name FROM driver WHERE NOT driver_id IN (SELECT driver_id FROM school_bus)
### Instruction: CREATE TABLE table_21963 ( "Voivodeship after 1569" text, "Capital" text, "Year established" real, "Number of powiats" text, "Area (km\u00b2) in 1590 (Lithuanian) Category:Articles with Lithuanian-language external links" real ) -- Using valid SQLite, answer the following question...
SELECT MAX("Year established") FROM table_21963 WHERE "Number of powiats" = '5 powiats'
### 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, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY Name DESC
### Instruction: CREATE TABLE table_72664 ( "Year" real, "Dates" text, "Champion" text, "Country" text, "Score" text, "To par" text, "Margin of victory" text, "Purse ( US$ )" real, "Winners share" real ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT COUNT("Purse ( US$ )") FROM table_72664 WHERE "Margin of victory" = '8 strokes'
### Instruction: CREATE TABLE table_31376 ( "Country with flag" text, "Area (km\u00b2)" real, "Population (1 July 2005 est.)" real, "Population density (per km\u00b2)" text, "Capital" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highes...
SELECT MAX("Population (1 July 2005 est.)") FROM table_31376 WHERE "Area (km\u00b2)" = '9104'
### Instruction: CREATE TABLE table_73477 ( "Player" text, "Games Played" real, "Minutes" real, "Field Goals" real, "Three Pointers" real, "Free Throws" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Points" real ) -- Using valid SQLite, answer the fo...
SELECT "Minutes" FROM table_73477 WHERE "Player" = 'Jordan Coleman'
### Instruction: CREATE TABLE table_37068 ( "Season" real, "Team" text, "Games" real, "Wins" real, "Losses" real, "Ties" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Losses have a Season larger than 1941, and a Team of hamilton wildcats,...
SELECT "Losses" FROM table_37068 WHERE "Season" > '1941' AND "Team" = 'hamilton wildcats' AND "Ties" = '0'
### Instruction: CREATE TABLE table_21481509_4 ( r1b1a2__r_m269_ VARCHAR, r1b1c__r_v88_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage is listed in column r1b1a2 (r-m269) for the 77.8% r1b1c (r-v88)? ### Response:
SELECT r1b1a2__r_m269_ FROM table_21481509_4 WHERE r1b1c__r_v88_ = "77.8%"
### Instruction: CREATE TABLE table_74789 ( "Place" real, "Rider" text, "Country" text, "Machine" text, "Speed" text, "Time" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which place has points larger than 1, a bmw machine, a...
SELECT MIN("Place") FROM table_74789 WHERE "Points" > '1' AND "Machine" = 'bmw' AND "Time" = '1:18.47.6'
### Instruction: CREATE TABLE table_77729 ( "Name" text, "Tenure" text, "Ties" real, "Lost" real, "Win %" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more tha...
SELECT COUNT("Ties") FROM table_77729 WHERE "Win %" > '0' AND "Tenure" = '2001-2011' AND "Lost" > '16'
### Instruction: CREATE TABLE table_52957 ( "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. -- Tell me the away team score wit...
SELECT "Away team score" FROM table_52957 WHERE "Crowd" > '15,242' AND "Home team" = 'carlton'
### Instruction: CREATE TABLE table_14190 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Constituency number...
SELECT "Constituency number" FROM table_14190 WHERE "Reserved for ( SC / ST /None)" = 'st' AND "Name" = 'bikhangaon'
### Instruction: CREATE TABLE table_train_280 ( "id" int, "fpg" float, "hemoglobin_a1c_hba1c" float, "heart_disease" bool, "renal_disease" bool, "hba1c" float, "body_mass_index_bmi" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT * FROM table_train_280 WHERE body_mass_index_bmi < 30
### Instruction: CREATE TABLE table_46229 ( "Tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1990 value with a 24 in 1995? ...
SELECT "1990" FROM table_46229 WHERE "1995" = '24'
### Instruction: CREATE TABLE table_73981 ( "Episode" real, "First broadcast Denmark ( DR1 )" text, "Official TNS Gallup ratings" real, "First broadcast UK ( BBC Four )" text, "Official BARB ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "First broadcast Denmark ( DR1 )" FROM table_73981 WHERE "Official BARB ratings" = '1,036,000'
### Instruction: CREATE TABLE table_50163 ( "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 "Team" FROM table_50163 WHERE "Location Attendance" = 'seattle center coliseum 12,591'
### Instruction: CREATE TABLE table_204_553 ( id number, "outcome" text, "no." number, "date" text, "tournament" text, "surface" text, "partner" text, "opponents in the final" text, "score in the final" text ) -- Using valid SQLite, answer the following questions for the tables pro...
SELECT "tournament" FROM table_204_553 WHERE "outcome" = 'winner' GROUP BY "tournament" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_25665 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Prod. code" text, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables pro...
SELECT MAX("No. in season") FROM table_25665 WHERE "Directed by" = 'Constantine Makris'
### Instruction: CREATE TABLE table_58779 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT MAX("Position") FROM table_58779 WHERE "Team" = 'nelson' AND "Played" > '24'
### Instruction: CREATE TABLE table_39237 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, k...
SELECT "Date" FROM table_39237 WHERE "Competition" = '2012 afc challenge cup' AND "Venue" = 'dasarath rangasala stadium, kathmandu'
### Instruction: CREATE TABLE table_72477 ( "Locale" text, "Skip" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real, "Shot Pct." real ) -- Using valid SQLite, answer the following questions for the table...
SELECT "PA" FROM table_72477 WHERE "PF" = '77'
### Instruction: CREATE TABLE member ( Member_ID int, Name text, Country text, College_ID int ) CREATE TABLE round ( Round_ID int, Member_ID int, Decoration_Theme text, Rank_in_Round int ) CREATE TABLE college ( College_ID int, Name text, Leader_Name text, College_Locat...
SELECT Country, COUNT(Country) FROM member GROUP BY Country ORDER BY Country DESC
### Instruction: CREATE TABLE Engineer_Visits ( fault_log_entry_id VARCHAR ) CREATE TABLE Fault_Log ( fault_log_entry_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many engineer visits are required at most for a single fault log? List the number and...
SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_71558 ( "D 48" text, "D 47" text, "D 46" text, "D 45" text, "D 44" text, "D 43" text, "D 42" text, "D 41" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the D45 associated with a D42 of r 22? ...
SELECT "D 45" FROM table_71558 WHERE "D 42" = 'r 22'
### Instruction: CREATE TABLE table_6356 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite, answer the follo...
SELECT "Tries against" FROM table_6356 WHERE "Club" = 'pentyrch rfc'
### Instruction: CREATE TABLE STUDENT ( LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR ) CREATE TABLE VOTING_RECORD ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the distinct last names of all the students who have president votes...
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741"
### Instruction: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ...
SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name
### Instruction: CREATE TABLE table_13905 ( "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 is the set 1 when the time is 13:00,...
SELECT "Set 1" FROM table_13905 WHERE "Time" = '13:00' AND "Total" = '97–74'
### Instruction: CREATE TABLE table_15363 ( "D 48" text, "D 47" text, "D 46" text, "D 45" text, "D 44" text, "D 43" text, "D 42" text, "D 41" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the D 43 when it has D 41 of d 56 ### Res...
SELECT "D 43" FROM table_15363 WHERE "D 41" = 'd 56'
### Instruction: CREATE TABLE table_33933 ( "Year" real, "Team" text, "Wins" real, "Points" real, "Championship Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Wins is the highest one that has a Year larger than 1996, and a Championship...
SELECT MAX("Wins") FROM table_33933 WHERE "Year" > '1996' AND "Championship Finish" = '1st' AND "Points" < '168'
### Instruction: CREATE TABLE table_51415 ( "Air Date" text, "Timeslot (EST)" text, "Season" text, "Rating" real, "Share" real, "18-49 (Rating/Share)" text, "Viewers (m)" real, "Weekly Rank (#)" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT MAX("Viewers (m)") FROM table_51415 WHERE "Rating" > '9.4'
### Instruction: CREATE TABLE table_9005 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Money of the T4 Place Player with a Score of 71-66-74-6...
SELECT AVG("Money ( $ )") FROM table_9005 WHERE "Place" = 't4' AND "Score" = '71-66-74-67=278'
### Instruction: CREATE TABLE table_71850 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On the channel with The Biggest loser at 8:00, what's on at 7:30...
SELECT "7:30" FROM table_71850 WHERE "8:00" = 'the biggest loser'
### Instruction: CREATE TABLE table_24733 ( "Date" text, "Event #" text, "Event" text, "Winner" text, "Prize" text, "Entries" text, "Prize Pool" text, "Elapsed Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many elapsed times w...
SELECT COUNT("Elapsed Time") FROM table_24733 WHERE "Prize Pool" = '$1,678,200'
### Instruction: CREATE TABLE table_203_739 ( 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. -- how many more more bronze medals did russia earn...
SELECT (SELECT "bronze" FROM table_203_739 WHERE "nation" = 'russia') - (SELECT "bronze" FROM table_203_739 WHERE "nation" = 'china')
### Instruction: CREATE TABLE table_75193 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which surface had a partner of ...
SELECT "Surface" FROM table_75193 WHERE "Partner" = 'sandrine testud' AND "Date" = 'november 14, 1999'
### Instruction: CREATE TABLE table_203_288 ( id number, "season" text, "premiere date" text, "the winner" text, "runner-up" text, "finalists" text, "contestants in order of elimination" text, "number of contestants" text, "number of concerts" number ) -- Using valid SQLite, answer...
SELECT "season" FROM table_203_288 WHERE "the winner" = 'ton' ORDER BY "premiere date" DESC LIMIT 1
### Instruction: CREATE TABLE table_16291 ( "Conference" text, "# of Bids" real, "Record" text, "Win %" text, "Round of 32" real, "Sweet Sixteen" real, "Elite Eight" real, "Final Four" real, "Championship Game" real ) -- Using valid SQLite, answer the following questions for the ta...
SELECT COUNT("# of Bids") FROM table_16291 WHERE "Elite Eight" > '1.0'