instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE captain ( name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR ) CREATE TABLE ship ( name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name an...
SELECT name, flag FROM ship WHERE NOT ship_id IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')
### Instruction: CREATE TABLE table_18239 ( "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 were the candidates when Lamar S. Smith was incumbe...
SELECT "Candidates" FROM table_18239 WHERE "Incumbent" = 'Lamar S. Smith'
### Instruction: CREATE TABLE table_40799 ( "Free" text, "Free polite" text, "Genitive 1" text, "Genitive 2" text, "Genitive 3" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Free polite has a Genitive 3 of *n(i)-ami? ### Response:
SELECT "Free polite" FROM table_40799 WHERE "Genitive 3" = '*n(i)-ami'
### Instruction: CREATE TABLE table_36684 ( "Name" text, "Number" text, "Namesake" text, "Albedo feature name" text, "Area" text, "Current map" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the current map designation of the feature whi...
SELECT "Current map" FROM table_36684 WHERE "Namesake" = 'discovery rupes'
### Instruction: CREATE TABLE table_41437 ( "Date" text, "Location" text, "Country" text, "Event" text, "Winner" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date when Runner-up is Sof a Mul novich ( per )? ### Resp...
SELECT "Date" FROM table_41437 WHERE "Runner-up" = 'sofía mulánovich ( per )'
### Instruction: CREATE TABLE table_52831 ( "Name" text, "Species" text, "Overview" text, "Introduced" text, "Feral" text, "Threat level" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Threat Levels with Rabbits in Australia? ### R...
SELECT "Threat level" FROM table_52831 WHERE "Overview" = 'rabbits in australia'
### Instruction: CREATE TABLE table_203_41 ( id number, "name" text, "variant name(s)" text, "source" text, "source coordinates" text, "length" text, "mouth" text, "mouth coordinates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which ...
SELECT "name" FROM table_203_41 WHERE "length" = 1
### Instruction: CREATE TABLE table_2417340_3 ( state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all state classes when successors were formally installed on June 22, 1868. ### Response:
SELECT state__class_ FROM table_2417340_3 WHERE date_of_successors_formal_installation = "June 22, 1868"
### Instruction: CREATE TABLE table_23333 ( "District" real, "Representative" text, "Party" text, "Residence" text, "Counties represented" text, "Term ends" real, "First Elected" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the term e...
SELECT COUNT("Term ends") FROM table_23333 WHERE "Residence" = 'Bethlehem'
### Instruction: CREATE TABLE table_34085 ( "Date" text, "Opponent" text, "Result" text, "Score" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Record of the game with a Score of 118 105? ### Response...
SELECT "Record" FROM table_34085 WHERE "Score" = '118–105'
### Instruction: CREATE TABLE table_11768 ( "Name" text, "Wheel arrangement" text, "SR No." text, "Manufacturer" text, "Year made" real, "Year withdrawn" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who manufactured the vehicle withdrawn after...
SELECT "Manufacturer" FROM table_11768 WHERE "Year withdrawn" > '1932'
### Instruction: CREATE TABLE table_name_15 ( number_1971 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177? ### Response:
SELECT COUNT(1961) FROM table_name_15 WHERE number_1971 = 3325 AND 1991 > 3177
### Instruction: CREATE TABLE wrestler ( wrestler_id number, 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 ...
SELECT COUNT(*) FROM wrestler
### Instruction: CREATE TABLE table_18567 ( "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 year was incumbent joe b. bates first elected? #...
SELECT "First elected" FROM table_18567 WHERE "Incumbent" = 'Joe B. Bates'
### Instruction: CREATE TABLE table_33934 ( "Year" real, "Team" text, "Wins" real, "Points" real, "Championship Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year is the highest that has a Team of walker racing, and Wins larger than 1...
SELECT MAX("Year") FROM table_33934 WHERE "Team" = 'walker racing' AND "Wins" > '1'
### Instruction: CREATE TABLE table_204_336 ( id number, "operators" text, "named trains" text, "destination" text, "year begun" text, "year discontinued" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many trains were discontinued in 1958...
SELECT COUNT("named trains") FROM table_204_336 WHERE "year discontinued" = 1958
### Instruction: CREATE TABLE table_62213 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What game number was played at amway aren...
SELECT "Game" FROM table_62213 WHERE "Location/Attendance" = 'amway arena'
### Instruction: CREATE TABLE table_77162 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score of the Fifa World Cup 1986 Play-off Competition? ### Response:
SELECT "Score" FROM table_77162 WHERE "Competition" = 'fifa world cup 1986 play-off'
### Instruction: CREATE TABLE table_204_198 ( id number, "club" text, "nickname" text, "no. of premierships" number, "premiership years" text, "moved to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of premiership year...
SELECT "no. of premierships" FROM table_204_198 WHERE "club" = 'four corners'
### Instruction: CREATE TABLE table_name_34 ( gold INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Sil...
SELECT SUM(gold) FROM table_name_34 WHERE bronze = 0 AND total > 1 AND nation = "chad" AND silver > 0
### 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 aw...
SELECT "Venue" FROM table_52171 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_29994 ( "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. -- What was the minimum pick by the Florida Pant...
SELECT MIN("Pick") FROM table_29994 WHERE "NHL team" = 'Florida Panthers'
### Instruction: CREATE TABLE table_204_273 ( id number, "date" text, "opponent" text, "venue" text, "result" text, "scorers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total number of matches played by the san jose earthquakes ...
SELECT COUNT(*) FROM table_204_273 WHERE "date" = 1979
### Instruction: CREATE TABLE table_73553 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What scores happened on Febru...
SELECT "Score" FROM table_73553 WHERE "Date" = 'February 11'
### Instruction: CREATE TABLE table_54533 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" text, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent with a time of 1:16? ### Respo...
SELECT "Opponent" FROM table_54533 WHERE "Time" = '1:16'
### Instruction: CREATE TABLE table_name_23 ( squad_no INTEGER, goals VARCHAR, points VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, an...
SELECT SUM(squad_no) FROM table_name_23 WHERE points > 8 AND player = "danny mcguire" AND goals > 0
### Instruction: CREATE TABLE table_25772 ( "Date" text, "Location" text, "Opponent" text, "Sun Devils Points" real, "Opp. Points" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What opponent got 44 points in their game? ### Res...
SELECT "Opponent" FROM table_25772 WHERE "Opp. Points" = '44'
### Instruction: CREATE TABLE table_52718 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number in attendance for whe...
SELECT COUNT("Attendance") FROM table_52718 WHERE "Visitor" = 'bulls'
### Instruction: CREATE TABLE table_39515 ( "Number" real, "Builder" text, "Type" text, "Date" text, "Works number" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the builder for 4/1906 and works number more than 199 ### Response:
SELECT "Builder" FROM table_39515 WHERE "Works number" > '199' AND "Date" = '4/1906'
### Instruction: CREATE TABLE table_2161 ( "#" real, "Player" text, "Age" text, "Australian Open" real, "French Open" real, "Wimbledon" real, "US Open" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number for the french open 197...
SELECT MAX("#") FROM table_2161 WHERE "French Open" = '1974'
### Instruction: CREATE TABLE table_204_282 ( id number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text, "#" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were played before ...
SELECT COUNT(*) FROM table_204_282 WHERE "date" < 2008
### Instruction: CREATE TABLE table_40474 ( "English" text, "German" text, "Dutch" text, "Icelandic" text, "Latin" text, "Greek" text, "Russian" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Greek word means the same thing as the Germa...
SELECT "Greek" FROM table_40474 WHERE "German" = 'ebbe'
### Instruction: CREATE TABLE table_28540 ( "Candidate" text, "Background" text, "Original team" text, "Age" real, "Hometown" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times was the background self-employed - media a...
SELECT COUNT("Candidate") FROM table_28540 WHERE "Background" = 'Self-employed - media agency'
### Instruction: CREATE TABLE table_204_26 ( id number, "name" text, "position" text, "birth date/age at start of campaign" text, "games in campaign" text, "club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of players that ...
SELECT COUNT("name") FROM table_204_26 WHERE "club" = 'fc st. gallen'
### Instruction: CREATE TABLE table_56007 ( "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 did the north melbourne te...
SELECT "Date" FROM table_56007 WHERE "Home team" = 'north melbourne'
### Instruction: CREATE TABLE table_60921 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what place(s) did the player(s) with a total less than 282 fin...
SELECT "Finish" FROM table_60921 WHERE "Total" < '282'
### Instruction: CREATE TABLE table_13702 ( "Year" real, "Labour" real, "Lib Dem" real, "Green" real, "IWCA" real, "Independent" real, "Conservative" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the highest Labour with Lib Dem larger ...
SELECT MAX("Labour") FROM table_13702 WHERE "Lib Dem" > '21'
### Instruction: CREATE TABLE table_50805 ( "Year" text, "Division" real, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the League which has a Regular Season of 3rd, atlanti...
SELECT "League" FROM table_50805 WHERE "Regular Season" = '3rd, atlantic'
### Instruction: CREATE TABLE table_17004 ( "Disaster" text, "Year" text, "Countries Affected" text, "Scale of Disaster" text, "People Assisted" text, "Nature of Help" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the scale of disaster...
SELECT "Scale of Disaster" FROM table_17004 WHERE "Countries Affected" = 'Peru'
### Instruction: CREATE TABLE table_8120 ( "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. -- Which Winning score has a Date of aug 26, 1973? ### Response:
SELECT "Winning score" FROM table_8120 WHERE "Date" = 'aug 26, 1973'
### Instruction: CREATE TABLE table_2710 ( "County" text, "Population" real, "Unemployment Rate" text, "Market Income Per Capita" text, "Poverty Rate" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the population of the co...
SELECT "Population" FROM table_2710 WHERE "County" = 'McDowell'
### Instruction: CREATE TABLE table_17905 ( "Series number" text, "Episode number" real, "Date of first broadcast" text, "Total viewers" real, "Series average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the episode number where the total...
SELECT MIN("Episode number") FROM table_17905 WHERE "Total viewers" = '614000'
### Instruction: CREATE TABLE table_2239 ( "English name" text, "Thai name" text, "Abbr." text, "Transcription" text, "Sanskrit word" text, "Zodiac sign" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the abbreviation for the month whose ...
SELECT "Abbr." FROM table_2239 WHERE "Transcription" = 'kumphaphan'
### Instruction: CREATE TABLE table_name_96 ( total INTEGER, year_s__won VARCHAR, country VARCHAR, to_par VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Total for the United States with a To par more than 6 and 1996 was won? ###...
SELECT AVG(total) FROM table_name_96 WHERE country = "united states" AND to_par > 6 AND year_s__won = "1996"
### Instruction: CREATE TABLE table_name_8 ( off_reb VARCHAR, asst VARCHAR, total_reb VARCHAR, def_reb VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of offensive rebounds for players with under 65 total rebounds, 5 defensive...
SELECT COUNT(off_reb) FROM table_name_8 WHERE total_reb < 65 AND def_reb = 5 AND asst < 7
### 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_204_729 ( id number, "year" text, "show" text, "role" text, "channel" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the two video jockey shows were fantastic 5 and which other show ? ### Respo...
SELECT "show" FROM table_204_729 WHERE "role" = 'video jockey' AND "show" <> 'fantastic 5'
### Instruction: CREATE TABLE table_71797 ( "Manager" text, "Years" text, "Games" real, "Wins" real, "Losses" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the sum of Richie Hebner winning games that were smaller 34? ### Response:
SELECT SUM("Games") FROM table_71797 WHERE "Manager" = 'richie hebner' AND "Wins" < '34'
### Instruction: CREATE TABLE table_42376 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2nd leg that has 31-37 as the 1st leg? ### Response:
SELECT "2nd leg" FROM table_42376 WHERE "1st leg" = '31-37'
### Instruction: CREATE TABLE table_73576 ( "No" real, "Player" text, "Height (m)" text, "Height (f)" text, "Position" text, "Year born" real, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the height for the player born ...
SELECT "Height (m)" FROM table_73576 WHERE "Year born" = '1981'
### Instruction: CREATE TABLE table_36155 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text, "Alternate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the alternate of the nation with hubert gr ndhammer as the secon...
SELECT "Alternate" FROM table_36155 WHERE "Second" = 'hubert gründhammer'
### Instruction: CREATE TABLE table_10317 ( "Sport" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the sum of bronze for gold being 27 and silver more than 30 ### Response:
SELECT SUM("Bronze") FROM table_10317 WHERE "Gold" = '27' AND "Silver" > '30'
### Instruction: CREATE TABLE table_name_70 ( swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5? #...
SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 5
### Instruction: CREATE TABLE table_28056 ( "Release" text, "# of discs" real, "Region 1" text, "Region 2" text, "Region 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many DVDs where were in the complete collection series 1-8 with extras? ...
SELECT "# of discs" FROM table_28056 WHERE "Release" = 'The Complete Collection Series 1-8 with extras'
### Instruction: CREATE TABLE table_203_191 ( id number, "year" number, "group" text, "award" text, "result" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the last time rade serbedzija won an award for best actor ? ### ...
SELECT "year" FROM table_203_191 WHERE "award" = 'best actor' ORDER BY "year" DESC LIMIT 1
### Instruction: CREATE TABLE table_25954 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record in the No...
SELECT "Record" FROM table_25954 WHERE "Date" = 'November 7'
### Instruction: CREATE TABLE table_name_56 ( part_number_s_ VARCHAR, l2_cache VARCHAR, frequency VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the part number of the processor that has an 1.8 ghz frequency and 2 256 kb L@ Cache? ### Response:
SELECT part_number_s_ FROM table_name_56 WHERE l2_cache = "2 × 256 kb" AND frequency = "1.8 ghz"
### Instruction: CREATE TABLE table_10321 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which attendance has the 25 17 5 record? ### Re...
SELECT "Attendance" FROM table_10321 WHERE "Record" = '25–17–5'
### Instruction: CREATE TABLE table_5728 ( "Date" text, "Tournament" text, "Location" text, "Winner" text, "Score" text, "1st prize ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the winner of the H.E.B. Texas open? ### Response:...
SELECT "Winner" FROM table_5728 WHERE "Tournament" = 'h.e.b. texas open'
### Instruction: CREATE TABLE table_39341 ( "Season" real, "Winner" text, "Score" text, "Runner-up" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Seasonhas a Score of 3 3 aet , 4 3 pen? ### Response:
SELECT MAX("Season") FROM table_39341 WHERE "Score" = '3 – 3 aet , 4–3 pen'
### Instruction: CREATE TABLE table_272 ( "Series no." real, "Season no." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production Code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the serie...
SELECT MAX("Series no.") FROM table_272 WHERE "Title" = 'Bad Influence'
### 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_78640 ( "Battle" text, "Date" text, "Bulgarian Commander" text, "Latin Commander" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date was Henry I Latin Commander of the Battle of Boruy? ##...
SELECT "Date" FROM table_78640 WHERE "Latin Commander" = 'henry i' AND "Battle" = 'battle of boruy'
### Instruction: CREATE TABLE table_15322 ( "Version" text, "Code name" text, "Release date" text, "API level" real, "Distribution" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- with release date of february 9, 2011, what is the api level? ### Re...
SELECT AVG("API level") FROM table_15322 WHERE "Release date" = 'february 9, 2011'
### Instruction: CREATE TABLE table_25172 ( "Position" text, "Name" text, "Jersey Number" real, "Age" real, "Height" text, "Weight" real, "College" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for Stev...
SELECT "Result" FROM table_25172 WHERE "Name" = 'Steve Gonzalez'
### Instruction: CREATE TABLE table_76813 ( "1976" text, "1977" text, "1978" text, "1979" text, "1980" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is 1977 when 1980 is chile? ### Response:
SELECT "1977" FROM table_76813 WHERE "1980" = 'chile'
### Instruction: CREATE TABLE table_24920 ( "School" text, "Location" text, "Team Name" text, "Colors" text, "Varsity Teams" real, "NJCAA Championships" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the school is John A. Logan College, what ...
SELECT "Colors" FROM table_24920 WHERE "School" = 'John A. Logan College'
### Instruction: CREATE TABLE table_53151 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "TD's" real, "Long" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of long for avg less than 6 and rec less than 2 ### Response:
SELECT SUM("Long") FROM table_53151 WHERE "Avg." < '6' AND "Rec." < '2'
### Instruction: CREATE TABLE table_29252 ( "District" text, "Incumbent" text, "Party" text, "Elected" real, "Status" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the status for district georgia's 10th? ### Response:
SELECT "Status" FROM table_29252 WHERE "District" = 'Georgia''s 10th'
### Instruction: CREATE TABLE table_28514 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Nickname" text, "Joined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the institution located in nort...
SELECT "Institution" FROM table_28514 WHERE "Location" = 'North Newton, Kansas'
### Instruction: CREATE TABLE table_10225 ( "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 did Richmond score as the ...
SELECT "Home team score" FROM table_10225 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_74090 ( "Year" real, "Title" text, "Format" text, "Studio" text, "Release Date" text, "Copyright Information" text, "Catalog Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the catalog number f...
SELECT "Catalog Number" FROM table_74090 WHERE "Title" = 'AM/PM Callanetics'
### Instruction: CREATE TABLE table_22985 ( "Name" text, "Completions" real, "Attempts" real, "Completion %" text, "Yards" real, "Touchdowns" real, "Interceptions" real, "QB Rating" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ...
SELECT MAX("Interceptions") FROM table_22985
### Instruction: CREATE TABLE table_37248 ( "Goal" real, "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of the match on June 4, 2008? ### Response:
SELECT "Score" FROM table_37248 WHERE "Date" = 'june 4, 2008'
### Instruction: CREATE TABLE table_204_429 ( id number, "battle" text, "location" text, "date(s)" text, "engagement remarks" text, "victor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of battles that took place in 1836 ? ...
SELECT COUNT("battle") FROM table_204_429 WHERE "date(s)" = 1836
### Instruction: CREATE TABLE table_name_10 ( points INTEGER, games VARCHAR, tied VARCHAR, goals_for VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals...
SELECT MAX(points) FROM table_name_10 WHERE tied = "4" AND goals_for < 257 AND games > 72
### Instruction: CREATE TABLE table_17411 ( "Jurisdiction" text, "For Prohibition" real, "Percent For" text, "Against Prohibition" real, "Percent Against" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the percent for when against prohibitio...
SELECT "Percent For" FROM table_17411 WHERE "Against Prohibition" = '2978'
### Instruction: CREATE TABLE table_73348 ( "No. in series" real, "No. in season" real, "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 was the name of the episode that...
SELECT "Title" FROM table_73348 WHERE "Directed by" = 'Mary Harron'
### Instruction: CREATE TABLE table_36141 ( "Candidate" text, "Party" text, "EU Party" text, "1st count" real, "29th count" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which eu party has a 29th count of 40,529? ### Response:
SELECT "EU Party" FROM table_36141 WHERE "29th count" = '40,529'
### Instruction: CREATE TABLE table_71818 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What visiting team played at 3com park on October 7? ### Response:
SELECT "Visiting Team" FROM table_71818 WHERE "Stadium" = '3com park' AND "Date" = 'october 7'
### Instruction: CREATE TABLE table_29568 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the air date for alex ...
SELECT "Original air date" FROM table_29568 WHERE "Written by" = 'Alex Taub'
### Instruction: CREATE TABLE table_499 ( "Season" text, "Competition" text, "Round" text, "Club" text, "1st leg" text, "2nd leg" text, "Aggregate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the competition when aggregate is 1 4?...
SELECT "Competition" FROM table_499 WHERE "Aggregate" = '1–4'
### Instruction: CREATE TABLE table_204_330 ( id number, "finished" text, "horse" text, "jockey" text, "trainer" text, "owner" text, "time / behind" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did spokane take to finish the race ...
SELECT "time / behind" FROM table_204_330 WHERE "horse" = 'spokane'
### Instruction: CREATE TABLE table_1869 ( "Team" text, "Location" text, "County" text, "Division" text, "Home ground" text, "Coach" text, "Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the captain of the Gloucestershire Gla...
SELECT "Captain" FROM table_1869 WHERE "Team" = 'Gloucestershire Gladiators'
### Instruction: CREATE TABLE table_43555 ( "Branding" text, "Callsign" text, "Frequency" text, "Power (kW)" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the power when the frequency is 101.5mhz? ### Response:
SELECT "Power (kW)" FROM table_43555 WHERE "Frequency" = '101.5mhz'
### Instruction: CREATE TABLE table_35670 ( "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. -- Which team scored less than 35...
SELECT "Team" FROM table_35670 WHERE "Points" < '35'
### Instruction: CREATE TABLE table_53891 ( "Tournament" text, "Winner" text, "Runner-up" text, "Score" text, "Third Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the tournament when the score is 7-6(0), 6-3? ### Response:
SELECT "Tournament" FROM table_53891 WHERE "Score" = '7-6(0), 6-3'
### Instruction: CREATE TABLE table_31180 ( "#" real, "Title" text, "Author" text, "Doctor" text, "Featuring" text, "Read by" text, "Published" text, "ISBN" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The Ring of Steel possesses what ...
SELECT "ISBN" FROM table_31180 WHERE "Title" = 'The Ring Of Steel'
### Instruction: CREATE TABLE table_75394 ( "Game" real, "March" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Record of 45 21 4? ### Response:
SELECT "Opponent" FROM table_75394 WHERE "Record" = '45–21–4'
### Instruction: CREATE TABLE table_5478 ( "Rank" 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 are there when there are fewer than 3 silver medals and 7 medals total? ...
SELECT "Bronze" FROM table_5478 WHERE "Silver" < '3' AND "Total" = '7'
### Instruction: CREATE TABLE table_57733 ( "Game" real, "Date" text, "Location" text, "Time" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where Date is october 11, and game greater than 4 what is the lowest attendance? ### Re...
SELECT MIN("Attendance") FROM table_57733 WHERE "Date" = 'october 11' AND "Game" > '4'
### Instruction: CREATE TABLE table_70100 ( "Tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the tournament of beijing ### Response:
SELECT "2011" FROM table_70100 WHERE "Tournament" = 'beijing'
### Instruction: CREATE TABLE table_40476 ( "English" text, "German" text, "Dutch" text, "Icelandic" text, "Latin" text, "Greek" text, "Russian" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Dutch translation of the Latin word n...
SELECT "Dutch" FROM table_40476 WHERE "Latin" = 'navigo'
### Instruction: CREATE TABLE table_name_26 ( tickets_sold___available VARCHAR, gross_revenue__1979_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue has Tickets Sold/ Available with a Gross Revenue (1979) of $665,232? ### Response:
SELECT tickets_sold___available FROM table_name_26 WHERE gross_revenue__1979_ = "$665,232"
### Instruction: CREATE TABLE table_44963 ( "Name" text, "Built" text, "Listed" text, "Location" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the list date of the historic place that was built 1896, 1914? ### Response:
SELECT "Listed" FROM table_44963 WHERE "Built" = '1896, 1914'
### Instruction: CREATE TABLE table_51592 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the IATA of Leonardo da Vinci-Fiumicino Airport? ### Response:
SELECT "IATA" FROM table_51592 WHERE "Airport" = 'leonardo da vinci-fiumicino airport'
### Instruction: CREATE TABLE table_9140 ( "Country" text, "First store" text, "Hypermarkets" real, "Supermarkets" text, "Hard Discounters" text, "Cash & Carry" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country had the first store in ...
SELECT "Country" FROM table_9140 WHERE "First store" = '2007'
### Instruction: CREATE TABLE publication ( Publication_ID int, Book_ID int, Publisher text, Publication_Date text, Price real ) CREATE TABLE book ( Book_ID int, Title text, Issues real, Writer text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT Writer, COUNT(Writer) FROM book GROUP BY Writer ORDER BY Writer
### Instruction: CREATE TABLE table_47945 ( "Rank" real, "Title" text, "Studio" text, "Director(s)" text, "Gross" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the film that grossed $26,010,864 ranked? ### Response:
SELECT MIN("Rank") FROM table_47945 WHERE "Gross" = '$26,010,864'
### Instruction: CREATE TABLE table_40947 ( "Name" text, "Position" text, "Number" real, "School/Club Team" text, "Season" text, "Acquisition via" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which is the acquisition via that has a school or c...
SELECT "Acquisition via" FROM table_40947 WHERE "School/Club Team" = 'state'