instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_56126 ( "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 attendance at Wind...
SELECT MAX("Crowd") FROM table_56126 WHERE "Venue" = 'windy hill'
### Instruction: CREATE TABLE table_203_134 ( id number, "place" text, "player" text, "country" text, "score" text, "to par" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which golfers other than tim clark shot 3 over par at the 2010 us open ...
SELECT "player" FROM table_203_134 WHERE "player" <> 'tim clark' AND "to par" = 3
### Instruction: CREATE TABLE table_69766 ( "Year" real, "Song title" text, "Artist" text, "Master recording?" text, "Release date" text, "Single / Pack" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the artist with a Single...
SELECT "Artist" FROM table_69766 WHERE "Single / Pack" = 'guitar hero track pack 1'
### Instruction: CREATE TABLE table_75576 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Venue" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people attended the game on September 19, 1976? ### Respon...
SELECT COUNT("Attendance") FROM table_75576 WHERE "Date" = 'september 19, 1976'
### Instruction: CREATE TABLE table_66351 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB? ### Respo...
SELECT "Time" FROM table_66351 WHERE "Rank" > '2' AND "Notes" = 'fb' AND "Country" = 'belarus'
### Instruction: CREATE TABLE table_203_804 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the only driver to d...
SELECT "driver" FROM table_203_804 WHERE "laps" = 33
### Instruction: CREATE TABLE table_12600 ( "County" text, "Per capita income" text, "Median household income" text, "Median family income" text, "Population" real, "Number of households" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is th...
SELECT COUNT("Population") FROM table_12600 WHERE "Number of households" = '41,511'
### Instruction: CREATE TABLE table_55271 ( "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 date did Hawthorn play as ...
SELECT "Date" FROM table_55271 WHERE "Away team" = 'hawthorn'
### Instruction: CREATE TABLE table_1097 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the california golden seals that where draft...
SELECT "Position" FROM table_1097 WHERE "NHL team" = 'California Golden Seals'
### Instruction: CREATE TABLE table_45314 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Place of t6, and a Player of raymond floyd? ##...
SELECT "Score" FROM table_45314 WHERE "Place" = 't6' AND "Player" = 'raymond floyd'
### Instruction: CREATE TABLE table_11916 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the game with Rudy Gay (20) as the leading s...
SELECT "Record" FROM table_11916 WHERE "Leading scorer" = 'rudy gay (20)'
### Instruction: CREATE TABLE table_33683 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average crowd for C...
SELECT AVG("Crowd") FROM table_33683 WHERE "Away team" = 'carlton'
### Instruction: CREATE TABLE table_36830 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Venue" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result when the attendance was 12,000...
SELECT "Result" FROM table_36830 WHERE "Attendance" = '12,000'
### Instruction: CREATE TABLE table_69596 ( "Name" text, "Circuit" text, "Date" text, "Winning drivers" text, "Winning constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name for the Monza circuit race were Bu...
SELECT "Name" FROM table_69596 WHERE "Winning constructor" = 'bugatti' AND "Circuit" = 'monza'
### Instruction: CREATE TABLE table_74111 ( "Artist" text, "Country" text, "Number-one single(s)" text, "Year" real, "Weeks at #1" real, "Straight to #1 ?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have a weeks at #1 value of...
SELECT COUNT("Year") FROM table_74111 WHERE "Weeks at #1" = '8'
### Instruction: CREATE TABLE table_12560 ( "Player" text, "Pos." text, "Nationality" text, "Previous team" text, "Years of NBA experience [a ]" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Nationality of the G Player with 4 years NBA ...
SELECT "Nationality" FROM table_12560 WHERE "Years of NBA experience [a ]" = '4' AND "Pos." = 'g'
### Instruction: CREATE TABLE table_62785 ( "Year" real, "Chassis" text, "Engine" text, "Start" real, "Finish" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where did the team of Rahal Letterman in 2006 start? ### Response:
SELECT COUNT("Start") FROM table_62785 WHERE "Team" = 'rahal letterman' AND "Year" = '2006'
### Instruction: CREATE TABLE table_name_23 ( game INTEGER, points VARCHAR, february VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Game is the average one that has a February larger than 20, and a Record of 41 17 4, and Points ...
SELECT AVG(game) FROM table_name_23 WHERE february > 20 AND record = "41–17–4" AND points < 86
### Instruction: CREATE TABLE table_74734 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which home team competed agains...
SELECT "Home team" FROM table_74734 WHERE "Away team" = 'geelong'
### Instruction: CREATE TABLE table_78093 ( "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 lowest crowd size ...
SELECT MIN("Crowd") FROM table_78093 WHERE "Venue" = 'mcg'
### Instruction: CREATE TABLE table_66380 ( "Club" text, "Sport" text, "Founded" real, "League" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What club team was founded before 2011 and plays at the champion window field? ### Respons...
SELECT "Club" FROM table_66380 WHERE "Founded" < '2011' AND "Venue" = 'champion window field'
### Instruction: CREATE TABLE table_dev_10 ( "id" int, "gender" string, "hba1c" float, "serum_creatinine" float, "alcohol_abuse" bool, "baseline_hemoglobin_hgb" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- hba1c < 10 % ##...
SELECT * FROM table_dev_10 WHERE hba1c < 10
### Instruction: CREATE TABLE table_73199 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "Television order" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who directed s01...
SELECT "Directed by" FROM table_73199 WHERE "Television order" = 'S01E13'
### Instruction: CREATE TABLE table_9048 ( "Year" real, "Winner" text, "Score" text, "Runner(s)-up" text, "Winner's share ($)" real, "Course" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is runner-up Betsy Rawls from...
SELECT "Location" FROM table_9048 WHERE "Runner(s)-up" = 'betsy rawls'
### Instruction: CREATE TABLE table_name_96 ( sri_lankans_admitted INTEGER, year VARCHAR, nepalis_admitted VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Sri Lankans were admitted in 2004 when more than 594 Nepalis were admitted? ### Response:...
SELECT SUM(sri_lankans_admitted) FROM table_name_96 WHERE year = "2004" AND nepalis_admitted > 594
### Instruction: CREATE TABLE table_79216 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text, "Arena" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Arena when there wer...
SELECT "Arena" FROM table_79216 WHERE "Points" = '65'
### Instruction: CREATE TABLE table_25551 ( "Date" text, "Location" text, "Opponent" text, "Sooners Points" real, "Opp. Points" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the opponents score at the game in ...
SELECT MIN("Opp. Points") FROM table_25551 WHERE "Location" = 'Knoxville'
### Instruction: CREATE TABLE table_51410 ( "Year" real, "Film" text, "Role" text, "Leading Man" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What film has a leading man of adolphe menjou in 1939? ### Response:
SELECT "Film" FROM table_51410 WHERE "Leading Man" = 'adolphe menjou' AND "Year" = '1939'
### Instruction: CREATE TABLE table_203_747 ( 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 countries have at least 10 gold medals ...
SELECT COUNT("nation") FROM table_203_747 WHERE "gold" >= 10
### Instruction: CREATE TABLE table_13726 ( "Protocol" text, "Power Line" text, "Radio-Frequency" text, "Open Source?" text, "Needs Neutral Wire?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Does Zigbee need neutral wire when the open source is y...
SELECT "Needs Neutral Wire?" FROM table_13726 WHERE "Open Source?" = 'yes' AND "Protocol" = 'zigbee'
### Instruction: CREATE TABLE table_204_477 ( id number, "pos" number, "no" number, "driver" text, "team" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which driver...
SELECT "driver" FROM table_204_477 ORDER BY "laps" LIMIT 1
### Instruction: CREATE TABLE table_5193 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the round number of Jessie Rezansoff, who plays right wing...
SELECT SUM("Round") FROM table_5193 WHERE "Position" = 'right wing' AND "Player" = 'jessie rezansoff'
### Instruction: CREATE TABLE table_37333 ( "Unit" text, "Russian" text, "Translation" text, "Ratio" real, "Metric value" text, "Avoirdupois value" text, "Ordinary value" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Avoirdupois value...
SELECT "Avoirdupois value" FROM table_37333 WHERE "Translation" = 'grain'
### Instruction: CREATE TABLE table_203_34 ( id number, "season" text, "appearance" number, "interchange" number, "tries" number, "goals" number, "f/g" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many appearance...
SELECT "appearance" FROM table_203_34 WHERE "season" = 2001
### Instruction: CREATE TABLE table_4029 ( "English Name" text, "Simplified" text, "Traditional" text, "Pinyin" text, "Area" real, "Population" real, "Density" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pinyin name for the en...
SELECT "Pinyin" FROM table_4029 WHERE "English Name" = 'Xin County'
### Instruction: CREATE TABLE table_25394 ( "Team" text, "SEC Wins" real, "SEC Losses" real, "Percentage" text, "Home Record" text, "Road Record" text, "Overall Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of road r...
SELECT COUNT("Road Record") FROM table_25394 WHERE "Team" = 'Ole Miss'
### Instruction: CREATE TABLE table_10351 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest crowd at wi...
SELECT MAX("Crowd") FROM table_10351 WHERE "Venue" = 'windy hill'
### Instruction: CREATE TABLE table_63591 ( "Date" text, "Team 1" text, "Result" text, "Team 2" text, "Ground" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team is 2 when the game result is 0-4 at Pailing Sport Park? ### Response:
SELECT "Team 2" FROM table_63591 WHERE "Ground" = 'pailing sport park' AND "Result" = '0-4'
### Instruction: CREATE TABLE table_1011906_1 ( population_canada_2011_census INTEGER, seat_of_rcm VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the minimum population canada 2011 census with seat of rcm being cowansville ### Response:
SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = "Cowansville"
### Instruction: CREATE TABLE table_24370 ( "Type of Record" text, "Attendance" real, "Date/Year" text, "Stadium" text, "Result/Games" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which stadium has the date/year of Fri 06/25/82? ### Response:
SELECT "Stadium" FROM table_24370 WHERE "Date/Year" = 'Fri 06/25/82'
### Instruction: CREATE TABLE table_29664 ( "Episode Air Date" text, "Audition City" text, "Audition Date" text, "Audition Venue" text, "Guest Fourth Judge" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all episode air dates where Luiza Possi ...
SELECT "Episode Air Date" FROM table_29664 WHERE "Guest Fourth Judge" = 'Luiza Possi'
### Instruction: CREATE TABLE table_35158 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games lost associated...
SELECT COUNT("Lost") FROM table_35158 WHERE "Played" < '14'
### Instruction: CREATE TABLE table_204_673 ( id number, "name" text, "egot completed" text, "emmy" number, "grammy" number, "oscar" number, "tony" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did it take whoopi goldberg to comp...
SELECT "egot completed" FROM table_204_673 WHERE "name" = 'whoopi goldberg'
### Instruction: CREATE TABLE table_36247 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which district had a first elected in 1882 with a result of re-elected? ### ...
SELECT "District" FROM table_36247 WHERE "First elected" = '1882' AND "Result" = 're-elected'
### Instruction: CREATE TABLE table_2334 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment (2005)" text, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school had an enrollment in 2005 of 69? ### Resp...
SELECT "School" FROM table_2334 WHERE "Enrollment (2005)" = '69'
### Instruction: CREATE TABLE table_29076 ( "Date" text, "Time" text, "Visiting team" text, "Home team" text, "Site" text, "Broadcast" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all dates where ...
SELECT "Date" FROM table_29076 WHERE "Visiting team" = 'South Florida'
### Instruction: CREATE TABLE table_50137 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the Deep - 30 Impact eve...
SELECT "Location" FROM table_50137 WHERE "Event" = 'deep - 30 impact'
### Instruction: CREATE TABLE table_9627 ( "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 for Leonard Thompson from the United States with a place of T6? ### Re...
SELECT "To par" FROM table_9627 WHERE "Place" = 't6' AND "Country" = 'united states' AND "Player" = 'leonard thompson'
### Instruction: CREATE TABLE table_32134 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the average total for guatemala and bronze less than 2 ### Respon...
SELECT AVG("Total") FROM table_32134 WHERE "Nation" = 'guatemala' AND "Bronze" < '2'
### Instruction: CREATE TABLE table_12557 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the latest year with a position of 1st at Maputo, Mozambique? ### Response:...
SELECT MAX("Year") FROM table_12557 WHERE "Position" = '1st' AND "Venue" = 'maputo, mozambique'
### Instruction: CREATE TABLE table_28801 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Position in table" text, "Incoming manager" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT COUNT("Incoming manager") FROM table_28801 WHERE "Team" = 'Burnley'
### Instruction: CREATE TABLE table_22906 ( "Draw" real, "Country" text, "Language" text, "Artist" text, "Song" text, "English translation" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With the country of Sweden and the resu...
SELECT "Song" FROM table_22906 WHERE "Result" = 'Out' AND "Country" = 'Sweden'
### Instruction: CREATE TABLE table_36014 ( "Rank" text, "Stadium" text, "Capacity" real, "City" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Capacity has a City of london, and a Stadium of queen's club? ### Response:
SELECT AVG("Capacity") FROM table_36014 WHERE "City" = 'london' AND "Stadium" = 'queen''s club'
### Instruction: CREATE TABLE table_32289 ( "Date" text, "Time" text, "Epicenter" text, "Magnitude" text, "Fatalities" text, "Name" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Magnitude on the Date May 28, 2004? ### Response:
SELECT "Magnitude" FROM table_32289 WHERE "Date" = 'may 28, 2004'
### Instruction: CREATE TABLE table_23889 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment (2009)" real, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the public schools with a master's university...
SELECT "Location(s)" FROM table_23889 WHERE "Control" = 'Public' AND "Type" = 'Master''s university'
### Instruction: CREATE TABLE table_26124 ( "Represent" text, "Contestant" text, "Age" real, "Height (ft.)" text, "Height (mtr.)" text, "Hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country had a contestant that was 1.76 meters...
SELECT "Represent" FROM table_26124 WHERE "Height (mtr.)" = '1.76'
### Instruction: CREATE TABLE table_57410 ( "Year" real, "Result" text, "Award" text, "Category" text, "Film or series" text, "Character" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which character was in the sexiest female category of the Br...
SELECT "Character" FROM table_57410 WHERE "Category" = 'sexiest female' AND "Award" = 'british soap awards'
### Instruction: CREATE TABLE table_22127 ( "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 were the result(s) of the election featuring grac...
SELECT "Results" FROM table_22127 WHERE "Incumbent" = 'Grace Napolitano'
### Instruction: CREATE TABLE table_22075 ( "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("Games played") FROM table_22075
### Instruction: CREATE TABLE table_52905 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Home team score had a Hom...
SELECT "Home team score" FROM table_52905 WHERE "Home team" = 'fitzroy'
### Instruction: CREATE TABLE table_50321 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the college of dave adams, who has a pick greater than 7? ###...
SELECT "College" FROM table_50321 WHERE "Pick" > '7' AND "Name" = 'dave adams'
### Instruction: CREATE TABLE table_204_293 ( id number, "district" number, "name" text, "party" text, "district office" text, "first elected" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was elected earlier , amedee or cortez ? ### Re...
SELECT "name" FROM table_204_293 WHERE "name" IN ('jody amedee', 'page cortez') ORDER BY "first elected" LIMIT 1
### Instruction: CREATE TABLE table_80231 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a Rank of 19, and a Start of 14, what was the finish? ### Response:
SELECT "Finish" FROM table_80231 WHERE "Rank" = '19' AND "Start" = '14'
### Instruction: CREATE TABLE table_70706 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the co-driver in the DNF position in the GT1 class? ### Res...
SELECT "Co-Drivers" FROM table_70706 WHERE "Pos." = 'dnf' AND "Class" = 'gt1'
### Instruction: CREATE TABLE table_55625 ( "Goalkeeper" text, "Goals" real, "Matches" real, "Average" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has Carlos S nchez as a goalkeeper and an average below 1.12? ### Response...
SELECT "Team" FROM table_55625 WHERE "Average" < '1.12' AND "Goalkeeper" = 'carlos sánchez'
### Instruction: CREATE TABLE table_73232 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Wildcats points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins or losses were there when t...
SELECT COUNT("Result") FROM table_73232 WHERE "Record" = '3-0'
### Instruction: CREATE TABLE table_67706 ( "Years" text, "Coach" text, "Seasons" real, "Wins" real, "Losses" real, "Ties" text, "Pct." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the winning percent of Notre Dame in 1905? ### ...
SELECT "Pct." FROM table_67706 WHERE "Years" = '1905'
### Instruction: CREATE TABLE table_62857 ( "Athlete" text, "Class" text, "Horse" text, "Event" text, "Result" text, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for the Toscane Horse in the freestyle test? ### Resp...
SELECT "Result" FROM table_62857 WHERE "Horse" = 'toscane' AND "Event" = 'freestyle test'
### Instruction: CREATE TABLE table_68760 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tournament has a Date of april 20, 1987? ### Response:
SELECT "Tournament" FROM table_68760 WHERE "Date" = 'april 20, 1987'
### Instruction: CREATE TABLE table_54284 ( "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 total medals Austria and those with larger than rank 4 have? ...
SELECT COUNT("Total") FROM table_54284 WHERE "Nation" = 'austria' AND "Rank" > '4'
### Instruction: CREATE TABLE table_1018 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player made 4 touchdowns whi...
SELECT "Player" FROM table_1018 WHERE "Touchdowns" = '4' AND "Position" = 'Left halfback'
### Instruction: CREATE TABLE table_68850 ( "Year" text, "Class" text, "Games" real, "Starts" real, "Comp" real, "Yards" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average number of starts Michael Henig had in a year when he had...
SELECT AVG("Starts") FROM table_68850 WHERE "Yards" > '1201'
### Instruction: CREATE TABLE table_50848 ( "Ride" text, "Year Opened" real, "Ride Manufacturer and Type" text, "Minimum Height" text, "Rating" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year has the ride flight deck and a rating of less th...
SELECT COUNT("Year Opened") FROM table_50848 WHERE "Ride" = 'flight deck' AND "Rating" < '5'
### Instruction: CREATE TABLE table_28076 ( "No." real, "#" real, "Episode" text, "Writer" text, "Director" text, "Original air date" text, "Viewing figure" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the episode number that had ...
SELECT "No." FROM table_28076 WHERE "Viewing figure" = '797000'
### Instruction: CREATE TABLE table_name_21 ( ties INTEGER, games_played VARCHAR, wins VARCHAR, goals_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what ...
SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 8
### Instruction: CREATE TABLE table_5130 ( "Rank" real, "Name" text, "Headquarters" text, "Primary industry" text, "Market value ( USD million)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is Exxon Mobil, an oil and gas corporation, headqua...
SELECT "Headquarters" FROM table_5130 WHERE "Primary industry" = 'oil and gas' AND "Name" = 'exxon mobil'
### Instruction: CREATE TABLE table_204_494 ( id number, "episode #" text, "original air date (uk)" text, "episode title" text, "guest cast" text, "dvd # 1" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total of guest for the mont...
SELECT SUM("guest cast") FROM table_204_494 WHERE "original air date (uk)" = 1
### Instruction: CREATE TABLE table_204_12 ( id number, "area served" text, "city of license" text, "vc" number, "rf" number, "callsign" text, "network" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is the only city ...
SELECT "city of license" FROM table_204_12 WHERE "network" = 'daystar'
### Instruction: CREATE TABLE table_name_62 ( silver INTEGER, nation VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the most silver when bronze is more than 0, total is more than 1, gold is mor...
SELECT MAX(silver) FROM table_name_62 WHERE bronze > 0 AND total > 1 AND gold > 0 AND nation = "china (chn)"
### Instruction: CREATE TABLE table_train_212 ( "id" int, "pregnancy_or_lactation" bool, "postmeal_c_peptide" float, "chemotherapy" bool, "liver_disease" bool, "alcohol_abuse" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- act...
SELECT * FROM table_train_212 WHERE chemotherapy = 1
### Instruction: CREATE TABLE table_39257 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What name has an overall less than 268, and 1 as the round? ### Res...
SELECT "Name" FROM table_39257 WHERE "Overall" < '268' AND "Round" = '1'
### Instruction: CREATE TABLE table_204_626 ( id number, "image" number, "name" text, "birth date" text, "death date" text, "brief biography" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did anne churchill/spencer live ? ### Respons...
SELECT "death date" - "birth date" FROM table_204_626 WHERE "name" = 'anne churchill (later spencer)'
### Instruction: CREATE TABLE table_57490 ( "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. -- How many points did the home te...
SELECT "Home team score" FROM table_57490 WHERE "Home team" = 'essendon'
### Instruction: CREATE TABLE table_67264 ( "Title" text, "Studio" text, "Role" text, "Leading lady" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What role did John Wayne play in The Trail Beyond, directed by R.N. Bradbury? ### ...
SELECT "Role" FROM table_67264 WHERE "Director" = 'r.n. bradbury' AND "Title" = 'the trail beyond'
### Instruction: CREATE TABLE table_61355 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent with a 0-1 rec...
SELECT "Opponent" FROM table_61355 WHERE "Record" = '0-1'
### Instruction: CREATE TABLE table_64873 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many bronze medals for West Germany having a total more than 2? ### R...
SELECT COUNT("Bronze") FROM table_64873 WHERE "Total" > '2' AND "Nation" = 'west germany'
### Instruction: CREATE TABLE table_2114 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Nickname" text, "Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years are listed under joined f...
SELECT COUNT("Joined") FROM table_2114 WHERE "Nickname" = 'Nor''easters'
### Instruction: CREATE TABLE table_32584 ( "Round" real, "Overall" real, "Player" text, "Position" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average overall rank of all players drafted from Duke after round...
SELECT AVG("Overall") FROM table_32584 WHERE "School/Club Team" = 'duke' AND "Round" > '9'
### Instruction: CREATE TABLE table_16716 ( "Season" real, "Premier" text, "Runner Up" text, "Score" text, "Venue" text, "Attendance" real, "Premiership" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What other venue was a runner up to Hawt...
SELECT "Venue" FROM table_16716 WHERE "Runner Up" = 'Hawthorn'
### Instruction: CREATE TABLE table_18267 ( "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. -- Who are all the candidates vying for Henry B. Gonzalez'...
SELECT "Candidates" FROM table_18267 WHERE "Incumbent" = 'Henry B. Gonzalez'
### Instruction: CREATE TABLE table_57798 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which home teams had Geelong as...
SELECT "Home team" FROM table_57798 WHERE "Away team" = 'geelong'
### Instruction: CREATE TABLE table_66721 ( "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 total rank with a total larger than 2, and less than 0 gold #...
SELECT SUM("Rank") FROM table_66721 WHERE "Total" > '2' AND "Gold" < '0'
### Instruction: CREATE TABLE table_204_171 ( id number, "wager" text, "winner" text, "loser" text, "location" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the number of losses gran cochisse had against el dandy ? ### R...
SELECT COUNT(*) FROM table_204_171 WHERE "loser" = 'gran cochisse' AND "winner" = 'el dandy'
### Instruction: CREATE TABLE table_48236 ( "Name" text, "Street address" text, "Years as tallest" text, "# of Years as tallest" text, "Height m / ft" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the street address of No...
SELECT "Street address" FROM table_48236 WHERE "Name" = 'notre dame basilica'
### Instruction: CREATE TABLE table_203_570 ( id number, "#" number, "title" text, "tpb isbn" text, "tpb release date" text, "tpb page number" number, "collected material" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many were released...
SELECT COUNT(*) FROM table_203_570 WHERE "tpb release date" IN (3, 4)
### Instruction: CREATE TABLE table_6905 ( "Year" text, "Playoff round" text, "Venue" text, "Winner" text, "Result" text, "Loser" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Result when the memphis grizzlies ( 2) were the loser? ...
SELECT "Result" FROM table_6905 WHERE "Loser" = 'memphis grizzlies ( 2)'
### Instruction: CREATE TABLE table_26366 ( "Team" text, "City/Area" text, "Arena" text, "Founded" real, "Joined" real, "Head Coach" text, "Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What arena does the team play at that has Mic...
SELECT "Arena" FROM table_26366 WHERE "Captain" = 'Michael Wales'
### Instruction: CREATE TABLE table_14073 ( "Gothic Letter" text, "Roman" text, "Sound (phoneme)" text, "Sound (allophone)" text, "Proto-Germanic origin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Roman entry for the allophone of [[[...
SELECT "Roman" FROM table_14073 WHERE "Sound (allophone)" = '[[[|k]]]'
### Instruction: CREATE TABLE table_204_463 ( id number, "year" number, "division" number, "league" text, "regular season" text, "playoffs" text, "open cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the only year that division ...
SELECT "year" FROM table_204_463 WHERE "open cup" = '2nd round'
### Instruction: CREATE TABLE table_36805 ( "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. -- What was Olazabal's winning score in the event in which Phillip...
SELECT "Winning score" FROM table_36805 WHERE "Runner(s)-up" = 'phillip price'