instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_203_407 ( id number, "name" text, "party" text, "province" text, "term expires" number, "years in office" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of members whose term expires in 1989 ? ### Response:
SELECT COUNT("name") FROM table_203_407 WHERE "years in office" = 1989
### Instruction: CREATE TABLE table_204_540 ( id number, "name" text, "town" text, "deanery" text, "vicariate" text, "founded" number, "original ethnic community" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many parishes are named st. anthony ? ### Response:
SELECT COUNT("name") FROM table_204_540 WHERE "name" = 'st. anthony'
### Instruction: CREATE TABLE table_76334 ( "District" text, "Population" real, "Area" real, "Pop. Dens." real, "No.of Settlements" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the population with an area of 1,126.84? ### Response:
SELECT MIN("Population") FROM table_76334 WHERE "Area" = '1,126.84'
### Instruction: CREATE TABLE table_37757 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the total number of field goals when there were 0 touchdowns and 2 extra points? ### Response:
SELECT COUNT("Field goals") FROM table_37757 WHERE "Touchdowns" = '0' AND "Extra points" = '2'
### Instruction: CREATE TABLE table_56864 ( "Race Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was the I Dessau Autobahnspinne race? ### Response:
SELECT "Date" FROM table_56864 WHERE "Race Name" = 'i dessau autobahnspinne'
### Instruction: CREATE TABLE table_56078 ( "Round" real, "Overall" text, "Player" text, "Position" text, "Nationality" text, "Club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality of a player from link pings hc (se)? ### Response:
SELECT "Nationality" FROM table_56078 WHERE "Club team" = 'linköpings hc (se)'
### Instruction: CREATE TABLE table_204_992 ( id number, "team" text, "manager" text, "city" text, "stadium" text, "capacity" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the sum of the capacity of both tarrazu and guapiles stadiums ? ### Response:
SELECT SUM("capacity") FROM table_204_992 WHERE "city" IN ('tarrazu', 'guapiles')
### Instruction: CREATE TABLE table_43974 ( "Player" text, "Nationality" text, "Jersey Number(s)" real, "Position" text, "Years" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Years of the player with Jersey Number(s) of 44? ### Response:
SELECT "Years" FROM table_43974 WHERE "Jersey Number(s)" = '44'
### Instruction: CREATE TABLE table_8195 ( "Date" text, "Home" text, "Score" text, "Away" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was the game with fewer than 6650 in attendance, that finished 0:1? ### Response:
SELECT "Date" FROM table_8195 WHERE "Attendance" < '6650' AND "Score" = '0:1'
### Instruction: CREATE TABLE table_20721 ( "English Name" text, "Simplified" text, "Traditional" text, "Pinyin" text, "Area" text, "Population" real, "Density" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the pinyin for 487 area ### Response:
SELECT "Pinyin" FROM table_20721 WHERE "Area" = '487'
### Instruction: CREATE TABLE table_13895 ( "Time" text, "Show Name" text, "DJ's" text, "Local/Networked" text, "Ad Freq" text, "News Freq" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What show has Cameron Humphries DJ'ing? ### Response:
SELECT "Show Name" FROM table_13895 WHERE "DJ's" = 'cameron humphries'
### Instruction: CREATE TABLE table_30591 ( "Version" text, "Release" text, "Release date" text, "End of maintenance" text, "Requirement" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When's the end of maintenance in the august 11, 2013 release date? ### Response:
SELECT "End of maintenance" FROM table_30591 WHERE "Release date" = 'August 11, 2013'
### Instruction: CREATE TABLE table_204_58 ( id number, "year" number, "position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was their position the year after the year they withdrew due to rebel attacks ? ### Response:
SELECT "position" FROM table_204_58 WHERE "year" > (SELECT "year" FROM table_204_58 WHERE "position" = 'withdrew due to rebel attack') ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_48771 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is To Par, when Score is 70, and when Player is 'Craig Stadler'? ### Response:
SELECT "To par" FROM table_48771 WHERE "Score" = '70' AND "Player" = 'craig stadler'
### Instruction: CREATE TABLE table_52149 ( "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 score was conceded by Richmond? ### Response:
SELECT "Away team score" FROM table_52149 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_203_35 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which rider scored more than 16 points but less than 25 ? ### Response:
SELECT "rider" FROM table_203_35 WHERE "points" > 16 AND "points" < 25
### Instruction: CREATE TABLE table_name_57 ( events INTEGER, top_5 VARCHAR, wins VARCHAR, top_25 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the sum of Events, when Wins were less than 1, when Top-25 was 3, and when Top-5 was less than 1? ### Response:
SELECT SUM(events) FROM table_name_57 WHERE wins < 1 AND top_25 = 3 AND top_5 < 1
### Instruction: CREATE TABLE table_58716 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the venue for the game on 18/03/2006? ### Response:
SELECT "Venue" FROM table_58716 WHERE "Date" = '18/03/2006'
### Instruction: CREATE TABLE table_204_95 ( id number, "name" text, "title" text, "first year\nin this position" number, "years at nebraska" text, "alma mater" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many coaches have nebraska as their alma mater ? ### Response:
SELECT COUNT("name") FROM table_204_95 WHERE "alma mater" = 'nebraska'
### Instruction: CREATE TABLE table_204_713 ( id number, "rank" number, "bib" number, "athlete" text, "country" text, "time" text, "deficit" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- marcus hellner and calle halfvarsson both came from which country ? ### Response:
SELECT "country" FROM table_204_713 WHERE "athlete" = 'marcus hellner'
### Instruction: CREATE TABLE table_55684 ( "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. -- When was the game at Essendon? ### Response:
SELECT "Date" FROM table_55684 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_10231 ( "Date" text, "Venue" text, "Opponent" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the venue for the game on 10-09-2012? ### Response:
SELECT "Venue" FROM table_10231 WHERE "Date" = '10-09-2012'
### Instruction: CREATE TABLE table_52171 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what venue did the Essendon team play as an away team? ### Response:
SELECT "Venue" FROM table_52171 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_203_400 ( id number, "district" text, "vacator" text, "reason for change" text, "successor" text, "date successor\nseated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was catherine s. long 's previous representative ? ### Response:
SELECT "vacator" FROM table_203_400 WHERE "successor" = 'catherine s. long'
### Instruction: CREATE TABLE table_8518 ( "Player" text, "Nationality" text, "Position" text, "Years for Grizzlies" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are years that Obinna Ekezie played for the Grizzlies? ### Response:
SELECT "Years for Grizzlies" FROM table_8518 WHERE "Player" = 'obinna ekezie'
### Instruction: CREATE TABLE table_54643 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time/retired for a grid over 17 with 74 laps? ### Response:
SELECT "Time/Retired" FROM table_54643 WHERE "Grid" > '17' AND "Laps" = '74'
### Instruction: CREATE TABLE table_name_96 ( elevation_ VARCHAR, _height VARCHAR, delivery VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Elevation + Height has a Delivery of barge and a Location of bikini, yurochi aka irioj (dog)? ### Response:
SELECT elevation_ + _height FROM table_name_96 WHERE delivery = "barge" AND location = "bikini, yurochi aka irioj (dog)"
### Instruction: CREATE TABLE table_10615 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyre" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what rounds did Scuderia Milano participate? ### Response:
SELECT "Rounds" FROM table_10615 WHERE "Entrant" = 'scuderia milano'
### Instruction: CREATE TABLE table_58826 ( "Year" real, "Artist" text, "Title" text, "Format" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the artist before 2010 with a Promotional 7' as a format? ### Response:
SELECT "Artist" FROM table_58826 WHERE "Year" < '2010' AND "Format" = 'promotional 7'
### Instruction: CREATE TABLE table_203_274 ( id number, "church name" text, "address" text, "community" text, "school" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which church is listed below christ the king ? ### Response:
SELECT "church name" FROM table_203_274 WHERE id = (SELECT id FROM table_203_274 WHERE "church name" = 'christ the king') + 1
### Instruction: CREATE TABLE table_28385 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season had 'angel'? ### Response:
SELECT "No. in season" FROM table_28385 WHERE "Title" = 'Angel'
### Instruction: CREATE TABLE table_10357 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the racer that had a first qualification time of 1:22.085? ### Response:
SELECT "Name" FROM table_10357 WHERE "Qual 1" = '1:22.085'
### Instruction: CREATE TABLE table_76395 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Language(s)" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Zona Sur's result after being considered for nomination? ### Response:
SELECT "Result" FROM table_76395 WHERE "Original title" = 'zona sur'
### Instruction: CREATE TABLE table_31583 ( "Name" text, "Location" text, "Launched" real, "Acquired" text, "Capacity, mln tpa" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the average launced for capacity mln tpa of 15,0 ### Response:
SELECT AVG("Launched") FROM table_31583 WHERE "Capacity, mln tpa" = '15,0'
### Instruction: CREATE TABLE table_name_18 ( place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place? ### Response:
SELECT place FROM table_name_18 WHERE score > 67 AND country = "united states" AND to_par = "e" AND player = "bunky henry"
### Instruction: CREATE TABLE table_37569 ( "Year" real, "Class" text, "Team" text, "Points" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Wins have a Year of 1963, and a Class of 50cc? ### Response:
SELECT AVG("Wins") FROM table_37569 WHERE "Year" = '1963' AND "Class" = '50cc'
### Instruction: CREATE TABLE table_33748 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- After week 9, which games had an attendance greater than 24,229? ### Response:
SELECT "Date" FROM table_33748 WHERE "Attendance" > '24,229' AND "Week" > '9'
### Instruction: CREATE TABLE table_40144 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps were driven when the time/retired is +44.284? ### Response:
SELECT COUNT("Laps") FROM table_40144 WHERE "Time/Retired" = '+44.284'
### Instruction: CREATE TABLE table_1137702_3 ( winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winning driver when the pole position was held by Ayrton Senna and the Fastest lap was Michael Schumacher? ### Response:
SELECT winning_driver FROM table_1137702_3 WHERE pole_position = "Ayrton Senna" AND fastest_lap = "Michael Schumacher"
### Instruction: CREATE TABLE table_73633 ( "Institution" text, "Location" text, "Team Name" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Year Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location for the team name of eagles? ### Response:
SELECT "Location" FROM table_73633 WHERE "Team Name" = 'Eagles'
### Instruction: CREATE TABLE table_70752 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Points when equipe ligier gauloises blondes is the entrant? ### Response:
SELECT AVG("Points") FROM table_70752 WHERE "Entrant" = 'equipe ligier gauloises blondes'
### Instruction: CREATE TABLE table_71344 ( "Molecule" text, "Percent of Mass" text, "Mol.Weight (daltons)" text, "Molecules" text, "Percent of Molecules" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the molecules when the percent mass is 1.0? ### Response:
SELECT "Molecules" FROM table_71344 WHERE "Percent of Mass" = '1.0'
### Instruction: CREATE TABLE table_60447 ( "Year" real, "Delegate" text, "Hometown" text, "Placement in Miss Universe" text, "Other awards" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of Placement in Miss Universe that rosita cornell capuyon is in? ### Response:
SELECT "Placement in Miss Universe" FROM table_60447 WHERE "Delegate" = 'rosita cornell capuyon'
### Instruction: CREATE TABLE table_24536 ( "No. in total" text, "No. in series" text, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number in series is 'Judas Kiss'? ### Response:
SELECT "No. in series" FROM table_24536 WHERE "Title" = 'Judas Kiss'
### Instruction: CREATE TABLE table_41556 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the identifier that has 50,000 watts of power? ### Response:
SELECT "Identifier" FROM table_41556 WHERE "Power" = '50,000 watts'
### Instruction: CREATE TABLE table_2252 ( "Date" text, "Location" text, "Discipline" text, "Winner" text, "2nd place" text, "3rd place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won the cup on 30.11.2008? ### Response:
SELECT "Winner" FROM table_2252 WHERE "Date" = '30.11.2008'
### Instruction: CREATE TABLE table_70316 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Blue Jays lowest attendance when their record was 52-48? ### Response:
SELECT MIN("Attendance") FROM table_70316 WHERE "Record" = '52-48'
### Instruction: CREATE TABLE table_78493 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where does South Melbourne play? ### Response:
SELECT "Venue" FROM table_78493 WHERE "Away team" = 'south melbourne'
### Instruction: CREATE TABLE table_8430 ( "Number" text, "Builder" text, "Type" text, "Date" real, "Length" text, "Capacity" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Type has a Capacity of 28 passengers, and a Number of 16? ### Response:
SELECT "Type" FROM table_8430 WHERE "Capacity" = '28 passengers' AND "Number" = '16'
### Instruction: CREATE TABLE table_17914 ( "Team" text, "Location" text, "Stadium" text, "Founded" real, "Joined" real, "Head Coach" text, "Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the team, whose captain is Matt Smith, founded? ### Response:
SELECT "Founded" FROM table_17914 WHERE "Captain" = 'Matt Smith'
### Instruction: CREATE TABLE table_70472 ( "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 the winning score of the Buy.com Siouxland Open? ### Response:
SELECT "Winning score" FROM table_70472 WHERE "Tournament" = 'buy.com siouxland open'
### Instruction: CREATE TABLE table_203_379 ( id number, "first issued" text, "design" text, "slogan" text, "serial format" text, "serials issued" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many license plates were issued before 1960 ? ### Response:
SELECT COUNT(*) FROM table_203_379 WHERE "first issued" < 1960
### Instruction: CREATE TABLE table_24058 ( "Episode No." real, "Title" text, "Directed by" text, "Written by" text, "Viewers (millions)" text, "Original airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the episode number for 'Going Bodmin'? ### Response:
SELECT MAX("Episode No.") FROM table_24058 WHERE "Title" = 'Going Bodmin'
### Instruction: CREATE TABLE table_26930 ( "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. -- List all results from the 3-3 scoring game. ### Response:
SELECT "Result" FROM table_26930 WHERE "Record" = '3-3'
### Instruction: CREATE TABLE table_15773 ( "Year" text, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was there no competition in Mixed Doubles? ### Response:
SELECT "Year" FROM table_15773 WHERE "Mixed doubles" = 'no competition'
### Instruction: CREATE TABLE table_9850 ( "Volume:Issue" text, "Issue Date(s)" text, "Weeks on Top" text, "Song" text, "Artist" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the artist that issued the single on 23 February? ### Response:
SELECT "Artist" FROM table_9850 WHERE "Issue Date(s)" = '23 february'
### Instruction: CREATE TABLE table_name_42 ( points INTEGER, chassis VARCHAR, stage_wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91? ### Response:
SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91
### Instruction: CREATE TABLE table_357 ( "L&CR No." real, "Type" text, "Manufacturer" text, "Delivered" text, "Name" text, "Jt. Cttee No." real, "1845 disposal" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the type of sussex? ### Response:
SELECT "Type" FROM table_357 WHERE "Name" = 'Sussex'
### Instruction: CREATE TABLE table_29501 ( "Number" real, "Player" text, "Position" text, "Seasons by team" text, "Year of induction into Pro Football Hall of Fame" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was Will Shields inducted into the Pro Football Hall of Fame? ### Response:
SELECT "Year of induction into Pro Football Hall of Fame" FROM table_29501 WHERE "Player" = 'Will Shields'
### Instruction: CREATE TABLE table_58551 ( "Tournament" text, "2009" text, "2011" text, "2012" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 2012 for 2009 of 1r ### Response:
SELECT "2012" FROM table_58551 WHERE "2009" = '1r'
### Instruction: CREATE TABLE table_36169 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the game with a result of w 14 6? ### Response:
SELECT "Opponent" FROM table_36169 WHERE "Result" = 'w 14–6'
### Instruction: CREATE TABLE table_56898 ( "Week" real, "EASTERN #1" text, "Eastern #2" text, "WESTERN #1" text, "Western #2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the eastern #2 for western #2 of oakland ### Response:
SELECT "Eastern #2" FROM table_56898 WHERE "Western #2" = 'oakland'
### Instruction: CREATE TABLE table_18113 ( "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. -- Which party does the incumbent first elected in 1994 belong to? ### Response:
SELECT "Party" FROM table_18113 WHERE "First elected" = '1994'
### Instruction: CREATE TABLE table_21685 ( "School" text, "Years of Participation" text, "OCC Championships" real, "Last OCC Championship" text, "Last Outright OCC Championship" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the years of participation for pickerington north? ### Response:
SELECT "Years of Participation" FROM table_21685 WHERE "School" = 'Pickerington North'
### Instruction: CREATE TABLE table_203_502 ( id number, "team" text, "titles" number, "runner-up" number, "third place" number, "fourth place" number, "years participated" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are the number of years maine has participated ? ### Response:
SELECT "years participated" FROM table_203_502 WHERE "team" = 'maine'
### Instruction: CREATE TABLE table_name_17 ( championship VARCHAR, year VARCHAR, winning_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which championship after 1985 had a winning score of 8 (68-72-69-71=280)? ### Response:
SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280)
### Instruction: CREATE TABLE table_11606 ( "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 team played Footscray? ### Response:
SELECT "Away team" FROM table_11606 WHERE "Home team" = 'footscray'
### Instruction: CREATE TABLE table_30280 ( "Position" text, "Number" real, "Player" text, "Super League" real, "Champions League" real, "Swiss Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the lowest super league for a 0 champion league. ### Response:
SELECT MIN("Super League") FROM table_30280 WHERE "Champions League" = '0'
### Instruction: CREATE TABLE table_name_42 ( color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the color commentator for Eric Dickerson and Melissa Stark in 2001? ### Response:
SELECT color_commentator_s_ FROM table_name_42 WHERE sideline_reporter_s_ = "eric dickerson and melissa stark" AND year = 2001
### Instruction: CREATE TABLE table_72391 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many incumbents were for district georgia 6? ### Response:
SELECT COUNT("Incumbent") FROM table_72391 WHERE "District" = 'Georgia 6'
### Instruction: CREATE TABLE table_1139087_2 ( grand_prix VARCHAR, constructor VARCHAR, fastest_lap VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many events did nigel mansell drive the fastest and a mclaren - honda win? ### Response:
SELECT COUNT(grand_prix) FROM table_1139087_2 WHERE constructor = "McLaren - Honda" AND fastest_lap = "Nigel Mansell"
### Instruction: CREATE TABLE table_71392 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest rank of Jens Kruppa in a lane larger than 2? ### Response:
SELECT MIN("Rank") FROM table_71392 WHERE "Name" = 'jens kruppa' AND "Lane" > '2'
### Instruction: CREATE TABLE table_5401 ( "Score" real, "Opposition" text, "Venue" text, "City" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opposition has a Year smaller than 1977, and a City of manchester? ### Response:
SELECT "Opposition" FROM table_5401 WHERE "Year" < '1977' AND "City" = 'manchester'
### Instruction: CREATE TABLE table_name_35 ( extra_points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals? ### Response:
SELECT AVG(extra_points) FROM table_name_35 WHERE touchdowns < 2 AND player = "herrnstein" AND field_goals < 0
### Instruction: CREATE TABLE table_19435 ( "School Year" text, "Class A" text, "Class AA" text, "Class AAA" text, "Class AAAA" text, "Class AAAAA" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For franklin of class aa, which school years does this occur? ### Response:
SELECT "School Year" FROM table_19435 WHERE "Class AA" = 'Franklin'
### Instruction: CREATE TABLE table_8660 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total attendance for Candlestick Park? ### Response:
SELECT COUNT("Attendance") FROM table_8660 WHERE "Game site" = 'candlestick park'
### Instruction: CREATE TABLE table_50547 ( "Team" text, "Chassis" text, "Engine" text, "Tire" text, "Sponsor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Chassis of the Honda Engine with a Motorola sponsor? ### Response:
SELECT "Chassis" FROM table_50547 WHERE "Engine" = 'honda' AND "Sponsor" = 'motorola'
### Instruction: CREATE TABLE table_51480 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps did Jo Bonnier driver when the grid number was smaller than 11? ### Response:
SELECT SUM("Laps") FROM table_51480 WHERE "Driver" = 'jo bonnier' AND "Grid" < '11'
### Instruction: CREATE TABLE table_682 ( "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 was the result of the election in which the incumbent was first elected in 1984? ### Response:
SELECT "Results" FROM table_682 WHERE "First elected" = '1984'
### Instruction: CREATE TABLE table_38613 ( "Home (1st leg)" text, "Home (2nd leg)" text, "1st Leg" text, "2nd leg" text, "Aggregate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the 2nd leg score having an aggregate score of 4-2? ### Response:
SELECT "2nd leg" FROM table_38613 WHERE "Aggregate" = '4-2'
### Instruction: CREATE TABLE table_24619 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were present at the July 10 game? ### Response:
SELECT "Attendance" FROM table_24619 WHERE "Date" = 'July 10'
### Instruction: CREATE TABLE table_54596 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the hometown for the player that is defensive back and went to alabama? ### Response:
SELECT "Hometown" FROM table_54596 WHERE "Position" = 'defensive back' AND "College" = 'alabama'
### Instruction: CREATE TABLE table_5198 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the best time of the team that had a qualifying 1 time of 1:01.043? ### Response:
SELECT "Best" FROM table_5198 WHERE "Qual 1" = '1:01.043'
### Instruction: CREATE TABLE table_20214 ( "Date" text, "Cover model" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text, "Pictorials" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the interview subject in the 2-86 issue? ### Response:
SELECT "Interview subject" FROM table_20214 WHERE "Date" = '2-86'
### Instruction: CREATE TABLE table_38784 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of the game with 38,062 people in attendance? ### Response:
SELECT "Date" FROM table_38784 WHERE "Attendance" = '38,062'
### Instruction: CREATE TABLE table_58268 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the series score of the game with Vancouver as the visiting team on April 16? ### Response:
SELECT "Series" FROM table_58268 WHERE "Visitor" = 'vancouver' AND "Date" = 'april 16'
### Instruction: CREATE TABLE table_45320 ( "Year" real, "Program Title" text, "Placement" text, "Score" real, "Class" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest score for a year before 2008 and had 3rd place? ### Response:
SELECT MIN("Score") FROM table_45320 WHERE "Year" < '2008' AND "Placement" = '3rd'
### Instruction: CREATE TABLE table_204_530 ( id number, "type" text, "stage" number, "cyclist" text, "team" text, "reason" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- daniel martin and joost posthuma both withdrew from the race because of what reason ? ### Response:
SELECT "reason" FROM table_204_530 WHERE "cyclist" = 'daniel martin'
### Instruction: CREATE TABLE table_1401 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At which stadiums was attendance total 79176? ### Response:
SELECT "Game Site" FROM table_1401 WHERE "Attendance" = '79176'
### Instruction: CREATE TABLE table_54758 ( "Rank" text, "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 least amount of silver medals a team with less than 0 gold medals has? ### Response:
SELECT MIN("Silver") FROM table_54758 WHERE "Gold" < '0'
### Instruction: CREATE TABLE table_name_45 ( finish INTEGER, start VARCHAR, year VARCHAR, manufacturer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978? ### Response:
SELECT MIN(finish) FROM table_name_45 WHERE year > 1978 AND manufacturer = "buick" AND start < 3
### Instruction: CREATE TABLE table_32200 ( "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 total overall in round 1, in which Charles White was a player? ### Response:
SELECT SUM("Overall") FROM table_32200 WHERE "Player" = 'charles white' AND "Round" < '1'
### Instruction: CREATE TABLE table_74129 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest entry in November for the game 20? ### Response:
SELECT MAX("November") FROM table_74129 WHERE "Game" = '20'
### Instruction: CREATE TABLE table_19532 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people directed the show written by Chris Sheridan? ### Response:
SELECT COUNT("Directed by") FROM table_19532 WHERE "Written by" = 'Chris Sheridan'
### Instruction: CREATE TABLE table_76719 ( "Newspaper/Magazine" text, "Type" text, "Language" text, "Headquarter" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Headquarter, when Newspaper/Magazine is Al-Ayyam? ### Response:
SELECT "Headquarter" FROM table_76719 WHERE "Newspaper/Magazine" = 'al-ayyam'
### Instruction: CREATE TABLE table_32303 ( "Round" real, "Overall" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rounds have an Overall larger than 17, and a Position of quarterback? ### Response:
SELECT COUNT("Round") FROM table_32303 WHERE "Overall" > '17' AND "Position" = 'quarterback'
### Instruction: CREATE TABLE table_11391 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps are associated with a time of + 1:39.591? ### Response:
SELECT "Laps" FROM table_11391 WHERE "Time/Retired" = '+ 1:39.591'
### Instruction: CREATE TABLE table_203_270 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total amount of times the frankfurt marathon occurred ? ### Response:
SELECT COUNT(*) FROM table_203_270 WHERE "competition" = 'frankfurt marathon'
### Instruction: CREATE TABLE table_18554 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What party does the incumbent from the Ohio 20 district belong to? ### Response:
SELECT "Party" FROM table_18554 WHERE "District" = 'Ohio 20'
### Instruction: CREATE TABLE table_22824 ( "Team #1" text, "Agg. score" text, "Team #2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the 2nd leg result in the round where Panionios is team #2? ### Response:
SELECT "2nd leg" FROM table_22824 WHERE "Team #2" = 'Panionios'