instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_8336 ( "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 Name, when Team is 'Herdez Competition', and when Best is 1:27.432? ### Response:
SELECT "Name" FROM table_8336 WHERE "Team" = 'herdez competition' AND "Best" = '1:27.432'
### Instruction: CREATE TABLE table_23408094_14 ( span_of_years_led INTEGER, tournament_at_which_lead_began VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Of the players whose lead began at the australian championships, what was the shortest span of years le...
SELECT MIN(span_of_years_led) FROM table_23408094_14 WHERE tournament_at_which_lead_began = "Australian Championships"
### Instruction: CREATE TABLE table_205 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Kickoff [a ]" text, "Venue" text, "TV" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many tea...
SELECT COUNT("Opponent") FROM table_205 WHERE "Week" = '6'
### Instruction: CREATE TABLE table_35952 ( "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the tournament with a w/o score on November 5, 2007? ### Response:
SELECT "Tournament" FROM table_35952 WHERE "Score" = 'w/o' AND "Date" = 'november 5, 2007'
### Instruction: CREATE TABLE table_28011 ( "Episode #" real, "The W\u00f8rd" text, "Guest" text, "Introductory phrase" text, "Original airdate" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the introductory phr...
SELECT "Introductory phrase" FROM table_28011 WHERE "Episode #" = '794'
### Instruction: CREATE TABLE table_19064 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the bleeding time with platelet c...
SELECT "Bleeding time" FROM table_19064 WHERE "Platelet count" = 'Decreased or unaffected'
### Instruction: CREATE TABLE table_3488 ( "No. in series" real, "No. in season" real, "Title" text, "Vessel Type" text, "Vessel Operator" text, "Narrated by" text, "Original air date" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the ...
SELECT "Narrated by" FROM table_3488 WHERE "Vessel Operator" = 'Beluga Shipping'
### Instruction: CREATE TABLE table_58461 ( "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 people were in attenda...
SELECT "Crowd" FROM table_58461 WHERE "Away team" = 'st kilda'
### Instruction: CREATE TABLE table_256 ( "Driver" text, "No." real, "Team" text, "Car" text, "Race 1" text, "GP 100" text, "Race 3" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For driver Mark Skaife what is the result ...
SELECT "Race 1" FROM table_256 WHERE "Driver" = 'Mark Skaife'
### Instruction: CREATE TABLE table_203_694 ( id number, "#" number, "name" text, "took office" text, "left office" text, "party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- nejat konuk and dervi ş ero ğ lu are from which party ? ...
SELECT "party" FROM table_203_694 WHERE "name" IN ('nejat konuk', 'dervis eroglu')
### Instruction: CREATE TABLE table_47240 ( "1998" text, "2000" text, "2004" text, "2007" text, "2011" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1998 value if the 2011 value is 30.4? ### Response:
SELECT "1998" FROM table_47240 WHERE "2011" = '30.4'
### Instruction: CREATE TABLE table_33334 ( "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. -- Who is the away side at glenfer...
SELECT "Away team" FROM table_33334 WHERE "Venue" = 'glenferrie oval'
### Instruction: CREATE TABLE table_9565 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name Country which has a Place of t7, and a Score of 73-69-73=215? ### Response:
SELECT "Country" FROM table_9565 WHERE "Place" = 't7' AND "Score" = '73-69-73=215'
### Instruction: CREATE TABLE table_73320 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("Original air date") FROM table_73320 WHERE "#" = '6'
### Instruction: CREATE TABLE table_63474 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Offensive Guard Player from Mississippi State College with a Pick number larte...
SELECT "Player" FROM table_63474 WHERE "Pick" > '44' AND "Position" = 'offensive guard' AND "College" = 'mississippi state'
### Instruction: CREATE TABLE table_76328 ( "Episode" text, "First broadcast" text, "Graeme's guest" text, "Jeremy's guest" text, "Votes (%)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Votes (%), when First Broadcast is '13 March 1998'? ...
SELECT "Votes (%)" FROM table_76328 WHERE "First broadcast" = '13 march 1998'
### Instruction: CREATE TABLE table_76772 ( "Name" text, "Gain" real, "Loss" real, "Long" real, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Gain has a Long of 29, and an Avg/G smaller than 33.7? ### Response:
SELECT COUNT("Gain") FROM table_76772 WHERE "Long" = '29' AND "Avg/G" < '33.7'
### Instruction: CREATE TABLE table_45836 ( "Club" text, "City" text, "Stadium" text, "Capacity" real, "2007\u201308 season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What 2007-08 season has marcianise as the city? ### Response:
SELECT "2007\u201308 season" FROM table_45836 WHERE "City" = 'marcianise'
### Instruction: CREATE TABLE table_55303 ( "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 when ...
SELECT AVG("Crowd") FROM table_55303 WHERE "Home team" = 'north melbourne'
### Instruction: CREATE TABLE table_name_93 ( wicket VARCHAR, batting_partners VARCHAR, fielding_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the wicket ranking for the match featuring partners Mohammad Azharuddin and Ajay Jadeja and also...
SELECT wicket FROM table_name_93 WHERE batting_partners = "mohammad azharuddin and ajay jadeja" AND fielding_team = "sri lanka"
### Instruction: CREATE TABLE table_15752 ( "Player" text, "League" real, "Scottish Cup" real, "League Cup" real, "Challenge Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest total of Player Damon Gray, with a...
SELECT MAX("Total") FROM table_15752 WHERE "Player" = 'damon gray' AND "Challenge Cup" < '0'
### Instruction: CREATE TABLE table_9 ( "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. -- How many different college/junior/club teams prov...
SELECT COUNT("College/junior/club team") FROM table_9 WHERE "NHL team" = 'Washington Capitals'
### Instruction: CREATE TABLE table_26674 ( "Date (YYYY-MM-DD)" text, "Time (UTC)" text, "Latitude" text, "Longitude" text, "Depth" text, "Magnitude" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 43.048 n is the latitude what is the magnit...
SELECT "Magnitude" FROM table_26674 WHERE "Latitude" = '43.048° N'
### Instruction: CREATE TABLE table_36986 ( "Year" real, "Class" text, "Team" text, "Points" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins for team mv agusta, over 10 points, and after 1957? ### Response:
SELECT SUM("Wins") FROM table_36986 WHERE "Team" = 'mv agusta' AND "Points" > '10' AND "Year" > '1957'
### Instruction: CREATE TABLE table_57392 ( "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 scored 10.6 (66...
SELECT "Home team" FROM table_57392 WHERE "Home team score" = '10.6 (66)'
### Instruction: CREATE TABLE table_203_835 ( id number, "season" text, "club" text, "country" text, "competition" text, "apps." number, "goals" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many goals did gunter thiebaut score in the...
SELECT "goals" FROM table_203_835 WHERE "season" = '2001/02'
### Instruction: CREATE TABLE table_56750 ( "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 largest Crowd numbe...
SELECT MAX("Crowd") FROM table_56750 WHERE "Home team" = 'north melbourne'
### Instruction: CREATE TABLE table_10563 ( "Week" text, "Date" text, "Opponent" text, "Result" text, "Kickoff [a ]" text, "Game site" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the record was 4...
SELECT "Attendance" FROM table_10563 WHERE "Record" = '4-4'
### Instruction: CREATE TABLE table_70061 ( "Rank" real, "Circuit" text, "Headquarters" text, "Screens" real, "Sites" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest number of sites when the headquarters are in columbus, ga and the...
SELECT MIN("Sites") FROM table_70061 WHERE "Headquarters" = 'columbus, ga' AND "Rank" < '4'
### Instruction: CREATE TABLE table_59059 ( "Parish (Prestegjeld)" text, "Sub-Parish (Sokn)" text, "Church Name" text, "Year Built" text, "Location of the Church" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the church in the Sub-Parish of...
SELECT "Church Name" FROM table_59059 WHERE "Sub-Parish (Sokn)" = 'fresvik'
### Instruction: CREATE TABLE table_73963 ( "Member countries" text, "Population" text, "Area (km\u00b2)" text, "GDP (billion US$)" text, "GDP per capita (US$)" text, "Languages" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the area for g...
SELECT "Area (km\u00b2)" FROM table_73963 WHERE "Languages" = 'German'
### Instruction: CREATE TABLE table_67721 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the average place...
SELECT AVG("Place") FROM table_67721 WHERE "Lost" > '12'
### Instruction: CREATE TABLE election ( Election_ID int, Representative_ID int, Date text, Votes real, Vote_Percent real, Seats real, Place real ) CREATE TABLE representative ( Representative_ID int, Name text, State text, Party text, Lifespan text ) -- Using valid SQ...
SELECT Party, COUNT(Party) FROM representative GROUP BY Party
### Instruction: CREATE TABLE table_78368 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Save" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance of the Mariners game when th...
SELECT "Attendance" FROM table_78368 WHERE "Record" = '56–20'
### Instruction: CREATE TABLE table_17610 ( "Week" real, "Craigs vote" text, "Arlenes vote" text, "Brunos vote" text, "Lens vote" text, "Safe" text, "Eliminated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is safe if John and Nicole a...
SELECT "Safe" FROM table_17610 WHERE "Eliminated" = 'John and Nicole'
### Instruction: CREATE TABLE table_61042 ( "Year" real, "Award" text, "Category" text, "Title of work" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was awarded before 2013 to the Saber in the category of Best Action? ### Res...
SELECT "Award" FROM table_61042 WHERE "Year" < '2013' AND "Title of work" = 'saber' AND "Category" = 'best action'
### Instruction: CREATE TABLE customer_orders ( order_id VARCHAR, order_status VARCHAR ) CREATE TABLE order_items ( order_quantity INTEGER, order_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of products that are in orde...
SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled"
### Instruction: CREATE TABLE table_23417 ( "Team" text, "Truck(s)" text, "#" real, "Driver(s)" text, "Primary Sponsor(s)" text, "Listed Owner(s)" text, "Crew Chief" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number truck is owned b...
SELECT "#" FROM table_23417 WHERE "Listed Owner(s)" = 'Stephen Germain'
### Instruction: CREATE TABLE table_48553 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE? ### Response:
SELECT "Player" FROM table_48553 WHERE "Pick" < '110' AND "College" = 'duke'
### Instruction: CREATE TABLE table_8312 ( "Years as tallest" text, "Name" text, "Height (m)" real, "Height (ft)" real, "Floors" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total height in meters for the building ...
SELECT SUM("Height (m)") FROM table_8312 WHERE "Height (ft)" < '380.6'
### Instruction: CREATE TABLE table_4038 ( "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. -- How many different college/junior/club teams...
SELECT COUNT("College/junior/club team") FROM table_4038 WHERE "Player" = 'John Dzikowski'
### Instruction: CREATE TABLE table_74792 ( "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 away team played at Brunsw...
SELECT "Away team" FROM table_74792 WHERE "Venue" = 'brunswick street oval'
### Instruction: CREATE TABLE table_14242137_11 ( regionalliga_nord VARCHAR, regionalliga_süd VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the regionalliga nord with regionalliga s d being 1. fc nuremberg spvgg greuther f rth ### Response:
SELECT regionalliga_nord FROM table_14242137_11 WHERE regionalliga_süd = "1. FC Nuremberg SpVgg Greuther Fürth"
### Instruction: CREATE TABLE table_name_57 ( blank_ends VARCHAR, shot_pct VARCHAR, stolen_ends VARCHAR, skip VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped ...
SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83
### Instruction: CREATE TABLE table_24677 ( "No" real, "Driver" text, "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number for autom vil club argentino for juan manuel fangio...
SELECT "No" FROM table_24677 WHERE "Entrant" = 'Automóvil Club Argentino' AND "Driver" = 'Juan Manuel Fangio'
### Instruction: CREATE TABLE table_73883 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rounds have Fabio ...
SELECT COUNT("Round") FROM table_73883 WHERE "Fastest Lap" = 'Fabio Carbone'
### Instruction: CREATE TABLE table_19984 ( "Stage" real, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Combination classification" text, "Team classification" text ) -- Using valid SQLite, answer the following questions for t...
SELECT COUNT("Team classification") FROM table_19984 WHERE "Winner" = 'Alessandro Ballan'
### Instruction: CREATE TABLE table_31072 ( "Train Number" real, "Train Name" text, "Departure Pune" text, "Arrival Lonavla" text, "Frequency" text, "Origin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which train name arrives in lonavla at 1...
SELECT "Train Name" FROM table_31072 WHERE "Arrival Lonavla" = '17:45'
### Instruction: CREATE TABLE table_19050 ( "#" real, "Episode title" text, "Writer(s)" text, "Director" text, "Prod. Code" text, "Original airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the maximum # with original airdate being...
SELECT MAX("#") FROM table_19050 WHERE "Original airdate" = 'March 14, 2001'
### Instruction: CREATE TABLE table_10181 ( "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. -- At what venue was the game play...
SELECT "Venue" FROM table_10181 WHERE "Away team" = 'south melbourne'
### Instruction: CREATE TABLE table_204_842 ( id number, "institution" text, "city" text, "state" text, "team name" text, "affiliation" text, "enrollment" number, "home conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which sta...
SELECT "state" FROM table_204_842 GROUP BY "state" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_32654 ( "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 the Away team score in...
SELECT "Away team score" FROM table_32654 WHERE "Venue" = 'victoria park'
### Instruction: CREATE TABLE table_68066 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver won when the winning constructor was bu...
SELECT "Winning driver" FROM table_68066 WHERE "Winning constructor" = 'bugatti' AND "Name" = 'boulogne grand prix'
### Instruction: CREATE TABLE table_52021 ( "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 when So...
SELECT MIN("Crowd") FROM table_52021 WHERE "Home team" = 'south melbourne'
### Instruction: CREATE TABLE representative ( Representative_ID int, Name text, State text, Party text, Lifespan text ) CREATE TABLE election ( Election_ID int, Representative_ID int, Date text, Votes real, Vote_Percent real, Seats real, Place real ) -- Using valid SQ...
SELECT Party, COUNT(Party) FROM representative GROUP BY Party
### Instruction: CREATE TABLE table_204_520 ( id number, "outcome" text, "no." number, "date" number, "championship" text, "surface" text, "opponent" text, "score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what opponent was competed...
SELECT "opponent" FROM table_204_520 GROUP BY "opponent" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_204_864 ( id number, "pos" number, "class" text, "no" number, "team" text, "drivers" text, "chassis" text, "engine" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the number of drivers on the ...
SELECT SUM("drivers") FROM table_204_864 WHERE "team" = 'societe roc'
### Instruction: CREATE TABLE table_43171 ( "Name" text, "Position" text, "Number" text, "School/Club Team" text, "Season" text, "Acquisition via" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season was School/Club Team perpetual help in ...
SELECT "Season" FROM table_43171 WHERE "Position" = 'guard' AND "School/Club Team" = 'perpetual help'
### Instruction: CREATE TABLE table_46147 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which location did he win the Superbrawl 16 even...
SELECT "Location" FROM table_46147 WHERE "Res." = 'win' AND "Event" = 'superbrawl 16'
### Instruction: CREATE TABLE table_69583 ( "Birth" text, "Marriage" text, "Became Consort" text, "Ceased to be Consort" text, "Death" text, "Spouse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the became consort for marriage of 4 april ...
SELECT "Became Consort" FROM table_69583 WHERE "Marriage" = '4 april 1721'
### Instruction: CREATE TABLE table_42063 ( "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When My Name is Earl played at 8:00 what aired at 9:30? ### Response:
SELECT "9:30" FROM table_42063 WHERE "8:00" = 'my name is earl'
### Instruction: CREATE TABLE table_204_109 ( id number, "district" text, "incumbent" text, "party" text, "first\nelected" text, "result" text, "candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- name the only candidate that was firs...
SELECT "incumbent" FROM table_204_109 WHERE "first\nelected" = 1811
### Instruction: CREATE TABLE table_9276 ( "Wicket" text, "Runs" text, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the wicket ranking for th...
SELECT "Wicket" FROM table_9276 WHERE "Fielding team" = 'sri lanka'
### Instruction: CREATE TABLE table_57767 ( "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 the Away team is footscray...
SELECT "Home team" FROM table_57767 WHERE "Away team" = 'footscray'
### Instruction: CREATE TABLE table_9706 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the away team for the game with a score...
SELECT "Away team" FROM table_9706 WHERE "Score" = '139-119'
### Instruction: CREATE TABLE table_204_459 ( id number, "date" text, "time" text, "opponent" text, "site" text, "tv" text, "result" text, "attendance" number, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games we...
SELECT COUNT(*) FROM table_204_459 WHERE "opponent" = 'grand canyon'
### Instruction: CREATE TABLE table_32857 ( "Sanctioning" text, "Race Name" text, "Circuit" text, "City/Location" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date for the race that has a circuit of Milwaukee Mile and the ...
SELECT "Date" FROM table_32857 WHERE "Circuit" = 'milwaukee mile' AND "Sanctioning" = 'cart'
### Instruction: CREATE TABLE table_name_54 ( a_score INTEGER, t_score VARCHAR, e_score VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the quantity of the A Score when the E Score was larger than 9.566 in the Greece and the T...
SELECT SUM(a_score) FROM table_name_54 WHERE e_score > 9.566 AND nation = "greece" AND t_score > 4
### Instruction: CREATE TABLE table_10168 ( "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. -- What is the home team score when the away team sc...
SELECT "Home team score" FROM table_10168 WHERE "Away team score" = '9.11 (65)'
### Instruction: CREATE TABLE table_37698 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nationality is Northwood School (N.Y.)? ### Respo...
SELECT "Nationality" FROM table_37698 WHERE "College/Junior/Club Team (League)" = 'northwood school (n.y.)'
### Instruction: CREATE TABLE table_4186 ( "#" text, "Project" text, "Shipyard" text, "Laid down" text, "Launched" text, "Commissioned" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the first start date that actually...
SELECT "Launched" FROM table_4186 WHERE "Commissioned" = 'August 6, 1969'
### Instruction: CREATE TABLE table_32749 ( "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 away team score whe...
SELECT "Away team score" FROM table_32749 WHERE "Venue" = 'western oval'
### Instruction: CREATE TABLE table_19652 ( "No. in series" real, "No. in season" 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 t...
SELECT MAX("Production code") FROM table_19652 WHERE "No. in series" = '229'
### Instruction: CREATE TABLE table_15774 ( "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 did Lonneke Janssen win...
SELECT "Year" FROM table_15774 WHERE "Women's singles" = 'lonneke janssen'
### Instruction: CREATE TABLE table_18016 ( "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. -- Who did the Seahawks play when the listed atte...
SELECT "Opponent" FROM table_18016 WHERE "Attendance" = '61615'
### Instruction: CREATE TABLE table_67051 ( "Quarter" text, "Score" text, "Club" text, "Opponent" text, "Year" text, "Round" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a Score of 15.4.94? ### Response:
SELECT "Opponent" FROM table_67051 WHERE "Score" = '15.4.94'
### Instruction: CREATE TABLE table_name_72 ( quantity INTEGER, manufacturer VARCHAR, gwr_nos VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons? ### Response:
SELECT MIN(quantity) FROM table_name_72 WHERE manufacturer = "peckett and sons" AND gwr_nos = "696, 779, 93 5"
### Instruction: CREATE TABLE table_train_229 ( "id" int, "hemoglobin_a1c_hba1c" float, "active_metabolic" bool, "body_weight" float, "hba1c" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- 18 _ 75 years of age ...
SELECT * FROM table_train_229 WHERE age >= 18 AND age <= 75
### Instruction: CREATE TABLE table_203_593 ( id number, "tenure" text, "coach" text, "years" number, "record" text, "pct." number, "ncaa tournament" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the first coach to reach the ncaa ...
SELECT "coach" FROM table_203_593 WHERE NOT "ncaa tournament" IS NULL ORDER BY "tenure" LIMIT 1
### Instruction: CREATE TABLE table_24927 ( "Name" text, "Position" text, "Height" text, "Weight" text, "Date of Birth" text, "Home Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the home team is UMBC and the weight is 78kg, what the th...
SELECT COUNT("Name") FROM table_24927 WHERE "Weight" = '78kg' AND "Home Team" = 'UMBC'
### Instruction: CREATE TABLE table_203_289 ( id number, "version" text, "length" text, "album" text, "remixed by" text, "year" number, "comment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long is the remix that was used in the movie...
SELECT "length" FROM table_203_289 WHERE "comment" = 'used in a scene in the 2008 movie 21'
### Instruction: CREATE TABLE table_49937 ( "Method of administration[ citation needed ]" text, "Category 1" real, "Category 2" real, "Category 3" text, "Category 4" text, "Category 5" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If category 1...
SELECT "Category 3" FROM table_49937 WHERE "Category 1" = '0.05'
### Instruction: CREATE TABLE table_76447 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Nation of south korea, and a Silver larger than 0? ### R...
SELECT SUM("Rank") FROM table_76447 WHERE "Nation" = 'south korea' AND "Silver" > '0'
### Instruction: CREATE TABLE table_5548 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest grid number that had a rider with KTM as the manufacturer who di...
SELECT MIN("Grid") FROM table_5548 WHERE "Manufacturer" = 'ktm' AND "Laps" > '20'
### Instruction: CREATE TABLE table_71355 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the lowest points from 1992 with a Chassis of Minardi m192? ### Response:
SELECT MIN("Points") FROM table_71355 WHERE "Year" = '1992' AND "Chassis" = 'minardi m192'
### Instruction: CREATE TABLE table_22703 ( "Producer" text, "Product" text, "Samples taken" real, "Samples failed" real, "Melamine content(mg/kg)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many samples were taken of 2 ? ### Response:
SELECT COUNT("Samples taken") FROM table_22703 WHERE "Product" = '嬰幼兒配方乳粉2段基粉'
### Instruction: CREATE TABLE table_25353 ( "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. -- If the poverty rate is 12.9%, w...
SELECT "County" FROM table_25353 WHERE "Poverty Rate" = '12.9%'
### Instruction: CREATE TABLE table_31131 ( "#" real, "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Former school" text, "Hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the former school of t...
SELECT "Former school" FROM table_31131 WHERE "Hometown" = 'North Port, FL'
### Instruction: CREATE TABLE table_32567 ( "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 richmond played away, what...
SELECT MAX("Crowd") FROM table_32567 WHERE "Away team" = 'richmond'
### Instruction: CREATE TABLE table_42886 ( "Country" text, "Telenovela" text, "Translation" text, "Series Premiere" text, "Series Finale" text, "Weekly Schedule" text, "Timeslot" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what time i...
SELECT "Timeslot" FROM table_42886 WHERE "Translation" = 'ბრაზილიის უბანი'
### Instruction: CREATE TABLE table_7818 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT COUNT("Game") FROM table_7818 WHERE "Team" = 'charlotte'
### Instruction: CREATE TABLE table_53592 ( "Rank" real, "Name" text, "Nation" text, "Placings" real, "Figures" real, "Free" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average figure score of the skater with a ...
SELECT AVG("Figures") FROM table_53592 WHERE "Free" < '56.35'
### Instruction: CREATE TABLE table_63043 ( "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 lowest Gold count if the Bronze is 4 and Silver is greater than...
SELECT MIN("Gold") FROM table_63043 WHERE "Bronze" = '4' AND "Silver" > '5'
### Instruction: CREATE TABLE table_203_810 ( id number, "#" number, "title" text, "songwriters" text, "producer(s)" text, "performer (s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which performer was listed at least 3 times in both the pro...
SELECT "producer(s)" FROM table_203_810 GROUP BY "producer(s)" HAVING COUNT(*) >= 3
### Instruction: CREATE TABLE table_56144 ( "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 crowds lar...
SELECT "Home team" FROM table_56144 WHERE "Crowd" > '4,000'
### Instruction: CREATE TABLE table_15819 ( "District" text, "Counties Represented" text, "Party" text, "First Elected" real, "Committee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What counties represented have a democratic committee, and a com...
SELECT "Counties Represented" FROM table_15819 WHERE "Party" = 'democratic' AND "Committee" = 'ways and means'
### Instruction: CREATE TABLE table_204_174 ( id number, "rank" number, "name" text, "nationality" text, "result" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who finished directly before lakmali ? ### Response:
SELECT "name" FROM table_204_174 WHERE "rank" = (SELECT "rank" FROM table_204_174 WHERE "name" = 'nadeeka lakmali') - 1
### Instruction: CREATE TABLE table_37020 ( "Player" text, "League" real, "Malaysia Cup" real, "FA Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0? ###...
SELECT AVG("FA Cup") FROM table_37020 WHERE "Player" = 'khairan ezuan razali' AND "Total" < '0'
### Instruction: CREATE TABLE table_56680 ( "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 home has a Decision of kolzig, and a Date o...
SELECT "Home" FROM table_56680 WHERE "Decision" = 'kolzig' AND "Date" = 'november 5'
### Instruction: CREATE TABLE table_36275 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number in January when the St. Louis Blues had a game smaller than 42? ...
SELECT COUNT("January") FROM table_36275 WHERE "Opponent" = 'st. louis blues' AND "Game" < '42'