instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_15640 ( "Rank" real, "Team" text, "Country" text, "Value ($M)" real, "% change on year" real, "Revenue ($M)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest revenue for the rank of 14? ### Response:
SELECT MIN("Revenue ($M)") FROM table_15640 WHERE "Rank" = '14'
### Instruction: CREATE TABLE table_203_773 ( id number, "season" number, "network" text, "play-by-play" text, "color commentator(s)" text, "sideline reporter(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the last color commentator ? ### Response:
SELECT "color commentator(s)" FROM table_203_773 ORDER BY "season" DESC LIMIT 1
### Instruction: CREATE TABLE table_63485 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the fight that took a time of 1:37? ### Response:
SELECT "Location" FROM table_63485 WHERE "Time" = '1:37'
### Instruction: CREATE TABLE table_68236 ( "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 score when the Washington Nationals had a record of 11-10? ### Response:
SELECT "Score" FROM table_68236 WHERE "Record" = '11-10'
### Instruction: CREATE TABLE table_26649 ( "State (class)" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date of successors formal installation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all dates of succession in the state class Missouri (3). ### Response:
SELECT "Date of successors formal installation" FROM table_26649 WHERE "State (class)" = 'Missouri (3)'
### Instruction: CREATE TABLE table_name_19 ( matches INTEGER, econ VARCHAR, wickets VARCHAR, best VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the lowest matches that have wickets greater than 16, 3/15 as the best, and an econ less than 8? ### Response:
SELECT MIN(matches) FROM table_name_19 WHERE wickets > 16 AND best = "3/15" AND econ < 8
### Instruction: CREATE TABLE table_204_775 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the top ranking nation with the most medals received ? ### Response:
SELECT "nation" FROM table_204_775 ORDER BY "total" DESC LIMIT 1
### Instruction: CREATE TABLE table_54916 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want to know the highest wins for cuts made more than 5 ### Response:
SELECT MAX("Wins") FROM table_54916 WHERE "Cuts made" > '5'
### Instruction: CREATE TABLE table_49293 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Place has a Score larger than 68, and a Player of david ogrin? ### Response:
SELECT "Place" FROM table_49293 WHERE "Score" > '68' AND "Player" = 'david ogrin'
### Instruction: CREATE TABLE table_name_59 ( played INTEGER, position VARCHAR, lost VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most elevated Played that has a Lost smaller than 12, and a Name of ec amberg (n), and a Position smaller than 4? ### Response:
SELECT MAX(played) FROM table_name_59 WHERE lost < 12 AND name = "ec amberg (n)" AND position < 4
### Instruction: CREATE TABLE table_name_33 ( field_goals VARCHAR, extra_points VARCHAR, points VARCHAR, touchdowns VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0? ### Response:
SELECT COUNT(field_goals) FROM table_name_33 WHERE points > 5 AND touchdowns > 2 AND extra_points < 0
### Instruction: CREATE TABLE table_28314 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points were scored on pole services? ### Response:
SELECT "Points" FROM table_28314 WHERE "Team" = 'Pole Services'
### Instruction: CREATE TABLE table_18484 ( "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 is the the incumbent with district being ohio 2 ### Response:
SELECT "Incumbent" FROM table_18484 WHERE "District" = 'Ohio 2'
### Instruction: CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the names, classes, and ranks of all captains? ### Response:
SELECT name, class, rank FROM captain
### Instruction: CREATE TABLE table_20873 ( "Year (affiliation)" text, "Wins" real, "Losses" real, "Winning Pct." text, "GB (Division Standing)" text, "Manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most losses for leslie mann ### Response:
SELECT MAX("Losses") FROM table_20873 WHERE "Manager" = 'Leslie Mann'
### Instruction: CREATE TABLE table_51606 ( "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. -- What engine did Riccardo Patrese use? ### Response:
SELECT "Engine" FROM table_51606 WHERE "Driver" = 'riccardo patrese'
### Instruction: CREATE TABLE table_29995 ( "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 NHL team picked Ryan Meade for the draft? ### Response:
SELECT "NHL team" FROM table_29995 WHERE "Player" = 'Ryan Meade'
### Instruction: CREATE TABLE table_17370 ( "Year" real, "Division" text, "League" text, "Reg. Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the open cup when they finished 4th in the regular season? ### Response:
SELECT "Open Cup" FROM table_17370 WHERE "Reg. Season" = '4th'
### Instruction: CREATE TABLE table_37045 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the score for Toronto Maple Leafs on November 10? ### Response:
SELECT "Score" FROM table_37045 WHERE "Home" = 'toronto maple leafs' AND "Date" = 'november 10'
### Instruction: CREATE TABLE table_14919 ( "Season" text, "Series" text, "Races" text, "Wins" text, "Podiums" text, "Points" text, "Final Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Season has a 19th Final Place? ### Response:
SELECT "Season" FROM table_14919 WHERE "Final Placing" = '19th'
### Instruction: CREATE TABLE table_983 ( "Competition" text, "Record" text, "Result" text, "Home Matches" real, "Home Attendance" real, "Avg. Home Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest home attendance for the southern derby? ### Response:
SELECT MIN("Home Attendance") FROM table_983 WHERE "Competition" = 'Southern Derby'
### Instruction: CREATE TABLE table_32181 ( "Round" real, "Overall" real, "Player" text, "Position" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player was drafted after round 9 and number 464 overall? ### Response:
SELECT "Player" FROM table_32181 WHERE "Round" > '9' AND "Overall" = '464'
### Instruction: CREATE TABLE table_69660 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who took the loss in the game that ended with a 54-61 record? ### Response:
SELECT "Loss" FROM table_69660 WHERE "Record" = '54-61'
### Instruction: CREATE TABLE table_name_51 ( team VARCHAR, driver VARCHAR, engine VARCHAR, manufacturer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Team has the Engine of Chevrolet 6.0 V8, the Manufacturer of Opel, and the Driver Chris Jackson? ### Response:
SELECT team FROM table_name_51 WHERE engine = "chevrolet 6.0 v8" AND manufacturer = "opel" AND driver = "chris jackson"
### Instruction: CREATE TABLE table_72356 ( "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. -- In what district was the incumbent Steve Chabot? ### Response:
SELECT "District" FROM table_72356 WHERE "Incumbent" = 'Steve Chabot'
### Instruction: CREATE TABLE table_77730 ( "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's the record when the attendance was 28,531? ### Response:
SELECT "Record" FROM table_77730 WHERE "Attendance" = '28,531'
### Instruction: CREATE TABLE table_28099 ( "Season #" real, "Episode #" real, "Title" text, "Director(s)" text, "Writer(s)" text, "Original Air Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the directors for peter gawler ### Response:
SELECT "Director(s)" FROM table_28099 WHERE "Writer(s)" = 'Peter Gawler'
### Instruction: CREATE TABLE table_204_463 ( id number, "year" number, "division" number, "league" text, "regular season" text, "playoffs" text, "open cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what playoff result occurred the most ? ### Response:
SELECT "playoffs" FROM table_204_463 GROUP BY "playoffs" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_204_223 ( id number, "party" text, "previous council" number, "staying councillors" number, "seats up for election" number, "election result" number, "new council" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the average number of previou council ? ### Response:
SELECT AVG("previous council") FROM table_204_223
### Instruction: CREATE TABLE table_166346_1 ( joined_opec VARCHAR, production___bbl__day_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the country that produced 1,213,000 (21st) bbl/day join Opec? ### Response:
SELECT joined_opec FROM table_166346_1 WHERE production___bbl__day_ = "1,213,000 (21st)"
### Instruction: CREATE TABLE invoices ( invoice_number VARCHAR, invoice_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25. ### Response:
SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
### Instruction: CREATE TABLE table_54141 ( "Year" real, "Pick" text, "Player name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the player from after 1989 from Washington State? ### Response:
SELECT "Player name" FROM table_54141 WHERE "Year" > '1989' AND "College" = 'washington state'
### Instruction: CREATE TABLE table_47381 ( "Name" text, "Born-Died" text, "Term start" text, "Term end" text, "Political Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Born-Died dates of Xhafer Bej Ypi? ### Response:
SELECT "Born-Died" FROM table_47381 WHERE "Name" = 'xhafer bej ypi'
### Instruction: CREATE TABLE table_19726 ( "Character" text, "French voice actor" text, "Italian voice actor" text, "German voice actor" text, "Spanish voice actor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the italian voice actor for dirk fenselau ### Response:
SELECT "Italian voice actor" FROM table_19726 WHERE "German voice actor" = 'Dirk Fenselau'
### Instruction: CREATE TABLE table_20187 ( "Class" text, "Wheel Arrangement" text, "Railway" text, "Number at Doncaster" real, "Number at Pyewipe" real, "Number at March" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the railway when class is j19 ### Response:
SELECT "Railway" FROM table_20187 WHERE "Class" = 'J19'
### Instruction: CREATE TABLE table_13957 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in final" text, "Score" text, "Prize Money" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score of the Pingguo Tournament? ### Response:
SELECT "Score" FROM table_13957 WHERE "Tournament" = 'pingguo'
### Instruction: CREATE TABLE table_18096 ( "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 ed markey was the incumbent? ### Response:
SELECT "Candidates" FROM table_18096 WHERE "Incumbent" = 'Ed Markey'
### Instruction: CREATE TABLE table_47292 ( "Artist" text, "Inst." text, "Release" text, "Format" text, "Label" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the label of release we are the rage with a cd format? ### Response:
SELECT "Label" FROM table_47292 WHERE "Format" = 'cd' AND "Release" = 'we are the rage'
### Instruction: CREATE TABLE table_44105 ( "Model" text, "Years" text, "Engine" text, "Displacement" text, "Power" text, "Fuel system" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What fuel system was used in 1960-62? ### Response:
SELECT "Fuel system" FROM table_44105 WHERE "Years" = '1960-62'
### Instruction: CREATE TABLE table_11851 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed the car that retired due to brakes with a grid larger than 17? ### Response:
SELECT "Constructor" FROM table_11851 WHERE "Grid" > '17' AND "Time/Retired" = 'brakes'
### Instruction: CREATE TABLE table_name_77 ( dcsf_number INTEGER, name VARCHAR, ofsted_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the lowest DCSF number in Aycliffe Drive but an Ofsted number smaller than 117335? ### Response:
SELECT MIN(dcsf_number) FROM table_name_77 WHERE name = "aycliffe drive" AND ofsted_number < 117335
### Instruction: CREATE TABLE table_name_14 ( population__percentage_1971 VARCHAR, population__percentage_1961 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the group with 1.79% population in 1961, what was their percentage of the population in 1971? ### Response:
SELECT population__percentage_1971 FROM table_name_14 WHERE population__percentage_1961 = "1.79%"
### Instruction: CREATE TABLE table_name_82 ( wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of wins with a goal difference less than 4 at the Villarreal CF and more than 38 played? ### Response:
SELECT MAX(wins) FROM table_name_82 WHERE goal_difference < 4 AND club = "villarreal cf" AND played > 38
### Instruction: CREATE TABLE table_name_11 ( constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st? ### Response:
SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = "st" AND name = "bikhangaon"
### Instruction: CREATE TABLE table_name_4 ( regular_season_champion_s_ VARCHAR, tournament_champion VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Regular Season Champion(s) has a Tournament Champion of west virginia in 1955 56? ### Response:
SELECT regular_season_champion_s_ FROM table_name_4 WHERE tournament_champion = "west virginia" AND year = "1955–56"
### Instruction: CREATE TABLE table_203_374 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- germany and the netherlands tied for what rank ? ### Response:
SELECT "rank" FROM table_203_374 WHERE "nation" = 'germany'
### Instruction: CREATE TABLE table_29545993_3 ( Ends INTEGER, stolen_ends VARCHAR, l VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum ends lost record when the stolen ends records is 6 and the loss record is bigger than 5.0? ### Response:
SELECT MIN(Ends) AS lost FROM table_29545993_3 WHERE stolen_ends = 6 AND l > 5.0
### Instruction: CREATE TABLE table_34266 ( "Team" text, "Winners" text, "Runners-Up" text, "Third Place" text, "Fourth Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many runners-up did Espartanos de Margarita have? ### Response:
SELECT "Runners-Up" FROM table_34266 WHERE "Team" = 'espartanos de margarita'
### Instruction: CREATE TABLE table_41326 ( "Season" text, "Division" text, "Finish" text, "Wins" text, "Losses" text, "Pct." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Finish of the Reno Bighorns Wins? ### Response:
SELECT "Finish" FROM table_41326 WHERE "Wins" = 'reno bighorns'
### Instruction: CREATE TABLE table_35507 ( "Dish" text, "Callsign" text, "Network" text, "Resolution" text, "City of License" text, "Official Website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the resolution of the network Canal de las Estrellas? ### Response:
SELECT "Resolution" FROM table_35507 WHERE "Network" = 'canal de las estrellas'
### Instruction: CREATE TABLE table_71303 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps had a qualification of 136.168? ### Response:
SELECT COUNT("Laps") FROM table_71303 WHERE "Qual" = '136.168'
### Instruction: CREATE TABLE table_64295 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" real, "Average Ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which episodes has the lowest average ratings of 8.7%? ### Response:
SELECT MIN("Episodes") FROM table_64295 WHERE "Average Ratings" = '8.7%'
### Instruction: CREATE TABLE table_18253 ( "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's party with district being pennsylvania 21 ### Response:
SELECT "Party" FROM table_18253 WHERE "District" = 'Pennsylvania 21'
### Instruction: CREATE TABLE table_4040 ( "School" text, "Gender" text, "Age Range" text, "Religious Affiliation" text, "Location" text, "School website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the gender of the cunningham hill infant school? ### Response:
SELECT "Gender" FROM table_4040 WHERE "School" = 'Cunningham Hill Infant School'
### Instruction: CREATE TABLE table_43226 ( "Card" text, "Weight Class" text, "Round" real, "Time" text, "Method" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest round for the welterweight class with a preliminary card? ### Response:
SELECT MIN("Round") FROM table_43226 WHERE "Weight Class" = 'welterweight' AND "Card" = 'preliminary'
### Instruction: CREATE TABLE table_75043 ( "Outcome" text, "Event" text, "Year" text, "Venue" text, "Opponent in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Opponent in final with an All England Open Outcome? ### Response:
SELECT "Opponent in the final" FROM table_75043 WHERE "Outcome" = 'all england open'
### Instruction: CREATE TABLE table_name_6 ( season VARCHAR, goals VARCHAR, apps VARCHAR, country VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2? ### Response:
SELECT season FROM table_name_6 WHERE country = "china" AND team = "dalian shide" AND apps > 8 AND goals = 2
### Instruction: CREATE TABLE table_14388 ( "City" text, "Highest temperature recorded or forecast" text, "Date achieved or projected" text, "Normal temperature" text, "Deviation from normal" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the normal temperature of Abbotsford, British Columbia? ### Response:
SELECT "Normal temperature" FROM table_14388 WHERE "City" = 'abbotsford, british columbia'
### Instruction: CREATE TABLE table_51649 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the average gold for moldova and bronze less than 1 ### Response:
SELECT AVG("Gold") FROM table_51649 WHERE "Nation" = 'moldova' AND "Bronze" < '1'
### Instruction: CREATE TABLE table_80291 ( "NBR number" real, "Year" real, "Original operator" text, "Class" text, "Wheel arrangement" text, "Road number" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which original operator is in the 25nc class? ### Response:
SELECT "Original operator" FROM table_80291 WHERE "Class" = '25nc'
### Instruction: CREATE TABLE table_45637 ( "Leader" text, "Party" text, "Leader's Seat" text, "Number of Seats" real, "Leader since" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which leader has been a leader since 2007? ### Response:
SELECT "Leader" FROM table_45637 WHERE "Leader since" = '2007'
### Instruction: CREATE TABLE table_13050 ( "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 team 1 has sloga jugomagnat as team 2? ### Response:
SELECT "Team 1" FROM table_13050 WHERE "Team 2" = 'sloga jugomagnat'
### Instruction: CREATE TABLE table_28048 ( "Series no." real, "No. in season" real, "Title" text, "Written by" text, "Directed by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many titles does the episode written by Joe Toplyn have? ### Response:
SELECT COUNT("Title") FROM table_28048 WHERE "Written by" = 'Joe Toplyn'
### Instruction: CREATE TABLE table_68115 ( "Player" text, "Overs" real, "Figures" text, "Opponent" text, "Ground" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many overs occurred at Waca Ground against Queensland? ### Response:
SELECT "Overs" FROM table_68115 WHERE "Ground" = 'waca ground' AND "Opponent" = 'queensland'
### Instruction: CREATE TABLE table_63166 ( "Game" text, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the game at Madison Square Garden? ### Response:
SELECT "Opponent" FROM table_63166 WHERE "Location/Attendance" = 'madison square garden'
### Instruction: CREATE TABLE table_68631 ( "Year" text, "Record" text, "Finish" text, "Manager" text, "Playoffs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the year with finish of 12th and record of 23-36 ### Response:
SELECT "Year" FROM table_68631 WHERE "Finish" = '12th' AND "Record" = '23-36'
### Instruction: CREATE TABLE table_name_36 ( points_1 INTEGER, lost VARCHAR, drawn VARCHAR, goal_difference VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points 1 has Drawn of 5, and a Goal Difference of +58, and a Lost larger than 4? ### Response:
SELECT MAX(points_1) FROM table_name_36 WHERE drawn = 5 AND goal_difference = "+58" AND lost > 4
### Instruction: CREATE TABLE table_9570 ( "Year" real, "Character" text, "Title" text, "Author" text, "Artist" text, "Imprint" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the average year when the title is baka to test to sh kanj ? ### Response:
SELECT AVG("Year") FROM table_9570 WHERE "Title" = 'baka to test to shōkanjū'
### Instruction: CREATE TABLE table_2433 ( "Date" text, "Tournament" text, "Location" text, "Purse ( $ )" real, "Winner" text, "Score" text, "1st Prize ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many tournaments were held at Alabama? ### Response:
SELECT COUNT("Score") FROM table_2433 WHERE "Location" = 'Alabama'
### Instruction: CREATE TABLE table_6346 ( "Country" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the country is Cambodia and the total is smaller than 1 what's the lowest silver? ### Response:
SELECT MIN("Silver") FROM table_6346 WHERE "Country" = 'cambodia' AND "Total" < '1'
### Instruction: CREATE TABLE table_3388 ( "Episode #" text, "Original Air Date (UK)" text, "Episode Title" text, "Director" text, "Writer" text, "Cast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For episode number 2-03, what are the names of the cast? ### Response:
SELECT "Cast" FROM table_3388 WHERE "Episode #" = '2-03'
### Instruction: CREATE TABLE table_19949 ( "Competition" text, "Played" real, "Derby County" real, "Draw" real, "Nottingham Forest" real, "Derby County Goals" real, "Nottingham Forest Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the minimum derby county goals ### Response:
SELECT MIN("Derby County Goals") FROM table_19949
### Instruction: CREATE TABLE table_6603 ( "Year" real, "Team" text, "Progress" text, "Score" text, "Opponents" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score in 1997 for the team that has a Progress of no entrants? ### Response:
SELECT "Score" FROM table_6603 WHERE "Progress" = 'no entrants' AND "Year" = '1997'
### Instruction: CREATE TABLE table_14569 ( "Name" text, "Championship" real, "FA Cup" real, "League Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most FA cup for championship of 18 and total of 19 ### Response:
SELECT MAX("FA Cup") FROM table_14569 WHERE "Championship" = '18' AND "Total" = '19'
### Instruction: CREATE TABLE table_18336 ( "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 is the district where the incumbent is richard kelly? ### Response:
SELECT "District" FROM table_18336 WHERE "Incumbent" = 'Richard Kelly'
### Instruction: CREATE TABLE table_12530 ( "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. -- Which game is on mar 12? ### Response:
SELECT AVG("Game") FROM table_12530 WHERE "Date" = 'mar 12'
### Instruction: CREATE TABLE table_79549 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which College/junior/club team has a Round of 2? ### Response:
SELECT "College/junior/club team" FROM table_79549 WHERE "Round" = '2'
### Instruction: CREATE TABLE table_204_639 ( id number, "poll company" text, "source" text, "publication date" text, "psuv" number, "opposition" number, "undecided" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which poll company has the most opposition ? ### Response:
SELECT "poll company" FROM table_204_639 ORDER BY "opposition" DESC LIMIT 1
### Instruction: CREATE TABLE table_71467 ( "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. -- What was the score when St. Louis was the visiting team? ### Response:
SELECT "Score" FROM table_71467 WHERE "Visitor" = 'st. louis'
### Instruction: CREATE TABLE table_23131 ( "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's Steve Langdon's naitionality? ### Response:
SELECT "Nationality" FROM table_23131 WHERE "Player" = 'Steve Langdon'
### Instruction: CREATE TABLE table_203_789 ( id number, "season" text, "team" text, "country" text, "division" number, "apps" number, "goals" number, "assists" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in what two seasons were there no goals scored ? ### Response:
SELECT "season" FROM table_203_789 WHERE "goals" = 0
### Instruction: CREATE TABLE table_name_89 ( polling_firm VARCHAR, green VARCHAR, date_of_polling VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What june 21 22, 2011 polling has green smaller than 13? ### Response:
SELECT polling_firm FROM table_name_89 WHERE green < 13 AND date_of_polling = "june 21–22, 2011"
### Instruction: CREATE TABLE table_6119 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was his record when he went over 1 round? ### Response:
SELECT "Record" FROM table_6119 WHERE "Round" > '1'
### Instruction: CREATE TABLE table_41373 ( "Place" real, "Rider" text, "Country" text, "Machine" text, "Speed" text, "Time" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How fast does the BMW with 6 points go? ### Response:
SELECT "Speed" FROM table_41373 WHERE "Machine" = 'bmw' AND "Points" = '6'
### Instruction: CREATE TABLE list ( lastname text, firstname text, grade number, classroom number ) CREATE TABLE teachers ( lastname text, firstname text, classroom number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade. ### Response:
SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade
### Instruction: CREATE TABLE table_26098 ( "Province" text, "Contestant" text, "Age" real, "Height (in)" text, "Height (mt)" text, "Hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How tall are contestants whose home province is La Rioja? ### Response:
SELECT "Height (in)" FROM table_26098 WHERE "Province" = 'La Rioja'
### Instruction: CREATE TABLE table_1855841_1 ( votes_given VARCHAR, running_with__in_team_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the votes given for michael russo, genevy dimitrion , manny ortega ### Response:
SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega"
### Instruction: CREATE TABLE table_47645 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when Visitor is Toronto? ### Response:
SELECT "Date" FROM table_47645 WHERE "Visitor" = 'toronto'
### Instruction: CREATE TABLE table_26066 ( "Place came" text, "Artist" text, "Category" text, "Act" text, "Semi-final" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the final place came for the performance of Erlend Bratland? ### Response:
SELECT "Place came" FROM table_26066 WHERE "Artist" = 'Erlend Bratland'
### Instruction: CREATE TABLE table_204_471 ( id number, "year" number, "title" text, "peak chart positions\nger" number, "label" text, "artist" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what 's the total number of albums released by willy deville ? ### Response:
SELECT COUNT("title") FROM table_204_471 WHERE "artist" = 'willy deville'
### Instruction: CREATE TABLE table_45824 ( "Season" real, "Series" text, "Points" text, "Position" text, "Driver" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st? ### Response:
SELECT "Points" FROM table_45824 WHERE "Series" = 'queensland formula ford championship' AND "Position" = '1st'
### Instruction: CREATE TABLE table_70591 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Opponent that has the Series of 4-2? ### Response:
SELECT "Opponent" FROM table_70591 WHERE "Series" = '4-2'
### Instruction: CREATE TABLE table_204_787 ( id number, "year" number, "category" text, "nominee(s)" text, "episode" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which year was he nominated for cheers : the motion picture . ### Response:
SELECT "year" FROM table_204_787 WHERE "episode" = '"cheers: the motion picture"'
### Instruction: CREATE TABLE table_61375 ( "Name" text, "Street address" text, "Years as tallest" text, "Height ft (m)" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name of the Building at 100 North Tampa Street? ### Response:
SELECT "Name" FROM table_61375 WHERE "Street address" = '100 north tampa street'
### Instruction: CREATE TABLE table_name_59 ( venue VARCHAR, date VARCHAR, status VARCHAR, against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue had a status of five nations, an against larger than 12 and took place on 15/02/1975? ### Response:
SELECT venue FROM table_name_59 WHERE status = "five nations" AND against > 12 AND date = "15/02/1975"
### Instruction: CREATE TABLE table_38429 ( "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 date is associated with the Loss of Farrell (6-13)? ### Response:
SELECT "Date" FROM table_38429 WHERE "Loss" = 'farrell (6-13)'
### Instruction: CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) CREATE TABLE tags ( index number, id number, tag text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which artist release the most CDs? ### Response:
SELECT artist FROM torrents GROUP BY artist ORDER BY COUNT(groupname) DESC LIMIT 1
### Instruction: CREATE TABLE table_47566 ( "Event" text, "Games played" real, "Goals" real, "Assists" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest amount of points with less than 5 assists and less than 2 goals? ### Response:
SELECT MAX("Points") FROM table_47566 WHERE "Assists" < '5' AND "Goals" < '2'
### Instruction: CREATE TABLE table_64594 ( "Version" text, "Standard name" text, "Common name" text, "Downstream rate" text, "Upstream rate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the version that has a 20.0 mbit/s downstream rate? ### Response:
SELECT "Version" FROM table_64594 WHERE "Downstream rate" = '20.0 mbit/s'
### Instruction: CREATE TABLE table_67225 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which time has a Rank larger than 3, and a Name of andrey kapralov? ### Response:
SELECT "Time" FROM table_67225 WHERE "Rank" > '3' AND "Name" = 'andrey kapralov'