instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_35940 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Opponent of @ phoenix suns had what sum of game? ### Response:
SELECT SUM("Game") FROM table_35940 WHERE "Opponent" = '@ phoenix suns'
### Instruction: CREATE TABLE table_7169 ( "Name" text, "Street address" text, "Years as tallest" text, "Height m / ft" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What name has 100 w. pender st. as the address? ### Response:
SELECT "Name" FROM table_7169 WHERE "Street address" = '100 w. pender st.'
### Instruction: CREATE TABLE table_204_614 ( id number, "date announced" text, "plant name" text, "location" text, "date of closing" text, "products" text, "employees" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of plants in ohio ? ### Response:
SELECT COUNT("plant name") FROM table_204_614 WHERE "location" = 'ohio'
### Instruction: CREATE TABLE table_204_665 ( id number, "rank" number, "name" text, "notability" text, "birthplace" text, "advocate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the only listed candadian from british columbia ? ### Response:
SELECT "name" FROM table_204_665 WHERE "birthplace" = 'british columbia'
### Instruction: CREATE TABLE table_1991 ( "Stage (Winner)" text, "General Classification" text, "Points Classification" text, "Mountains Classification" text, "Young Rider Classification" text, "Team Classification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of stage winners for team columbia ### Response:
SELECT COUNT("Stage (Winner)") FROM table_1991 WHERE "Team Classification" = 'Team Columbia'
### Instruction: CREATE TABLE table_52186 ( "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 is the average attendance for a game against Phoenix? ### Response:
SELECT AVG("Attendance") FROM table_52186 WHERE "Visitor" = 'phoenix'
### Instruction: CREATE TABLE table_18694 ( "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 in the election in the Tennessee 9 district? ### Response:
SELECT "Candidates" FROM table_18694 WHERE "District" = 'Tennessee 9'
### Instruction: CREATE TABLE table_30974 ( "Episode" text, "First broadcast" text, "Andrew and Jacks guest" text, "Jamies guests" text, "Scores" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the episode with Amy Williams as Andrew and Jack's guest broadcast? ### Response:
SELECT "First broadcast" FROM table_30974 WHERE "Andrew and Jacks guest" = 'Amy Williams'
### Instruction: CREATE TABLE table_name_4 ( county VARCHAR, latitude VARCHAR, geo_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what county is the latitude less than 46.935364 and GEO ID is 3801700500? ### Response:
SELECT county FROM table_name_4 WHERE latitude < 46.935364 AND geo_id = 3801700500
### Instruction: CREATE TABLE table_name_81 ( goals_conceded INTEGER, played VARCHAR, draw VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many goals were conceded by the team with more than 21 points more than 5 draws and less than 18 games played? ### Response:
SELECT SUM(goals_conceded) FROM table_name_81 WHERE draw > 5 AND points > 21 AND played < 18
### Instruction: CREATE TABLE table_20450 ( "Country" text, "Name" text, "Host" text, "Channel" text, "First Premiere" text, "Regular Judge" text, "Seasons" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the regular judge when host is anja rubik ### Response:
SELECT "Regular Judge" FROM table_20450 WHERE "Host" = 'Anja Rubik'
### Instruction: CREATE TABLE table_1717824_3 ( pakistanis_admitted INTEGER, nepalis_admitted VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627? ### Response:
SELECT MAX(pakistanis_admitted) FROM table_1717824_3 WHERE nepalis_admitted = 627
### Instruction: CREATE TABLE table_name_15 ( initial_syllable_open_semi_open_unstressed_vowels VARCHAR, australian VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Initial-Syllable Open/Semi-Open Unstresses Vowels, when Australian is ' '? ### Response:
SELECT initial_syllable_open_semi_open_unstressed_vowels FROM table_name_15 WHERE australian = "Ι™"
### Instruction: CREATE TABLE table_23708 ( "Rank by average" real, "Place" real, "Couple" text, "Total points" real, "Number of dances" real, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What couple has an average of 17.2? ### Response:
SELECT "Couple" FROM table_23708 WHERE "Average" = '17.2'
### Instruction: CREATE TABLE track ( track_id number, name text, location text, seating number, year_opened number ) CREATE TABLE race ( race_id number, name text, class text, date text, track_id text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the classes of races that have two or more corresponding races? ### Response:
SELECT class FROM race GROUP BY class HAVING COUNT(*) >= 2
### Instruction: CREATE TABLE table_12933 ( "Percentage Range" text, "Grade" text, "Points for Higher" real, "Points for Ordinary" real, "Points for Foundation" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the maximum points for higher when the points for foundation is less than 0? ### Response:
SELECT MAX("Points for Higher") FROM table_12933 WHERE "Points for Foundation" < '0'
### Instruction: CREATE TABLE table_18953 ( "Ep. No." real, "Title" text, "Director" text, "Written by" text, "Original Air Date" text, "Production No." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote the episode called 'mercury falling'? ### Response:
SELECT "Written by" FROM table_18953 WHERE "Title" = 'Mercury Falling'
### Instruction: CREATE TABLE table_32587 ( "Round" real, "Overall" real, "Player" text, "Position" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rounds did Blane Smith play linebacker? ### Response:
SELECT COUNT("Round") FROM table_32587 WHERE "Position" = 'linebacker' AND "Player" = 'blane smith'
### Instruction: CREATE TABLE table_27096 ( "#" real, "Title" text, "Director" text, "Writer(s)" text, "Viewers" text, "Air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 10 is the number who is the writer? ### Response:
SELECT "Writer(s)" FROM table_27096 WHERE "#" = '10'
### Instruction: CREATE TABLE table_40148 ( "Value" text, "\u20ac equiv." text, "Diameter" text, "Weight" text, "Composition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the diameter of the coin with a equivalence of 0.60? ### Response:
SELECT "Diameter" FROM table_40148 WHERE "\u20ac equiv." = '0.60'
### Instruction: CREATE TABLE table_204_727 ( 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. -- what was the only nation with 24 total medals ? ### Response:
SELECT "nation" FROM table_204_727 WHERE "total" = 24
### Instruction: CREATE TABLE table_203_491 ( id number, "year" number, "title" text, "us hot 100" number, "us modern rock" number, "us mainstream rock" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the last song listed on the table ? ### Response:
SELECT "title" FROM table_203_491 ORDER BY id DESC LIMIT 1
### Instruction: CREATE TABLE table_42491 ( "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 Latin word for the English word bone? ### Response:
SELECT "Latin" FROM table_42491 WHERE "English" = 'bone'
### Instruction: CREATE TABLE table_31958 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most attendance for tamworth with home venue ### Response:
SELECT MAX("Attendance") FROM table_31958 WHERE "Opponent" = 'tamworth' AND "Venue" = 'home'
### Instruction: CREATE TABLE products ( price INTEGER, Manufacturer VARCHAR ) CREATE TABLE manufacturers ( name VARCHAR, code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the average prices of all products from each manufacture, and list each company's name. ### Response:
SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
### Instruction: CREATE TABLE table_45575 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Player, when Score is '76-73-73=222'? ### Response:
SELECT "Player" FROM table_45575 WHERE "Score" = '76-73-73=222'
### Instruction: CREATE TABLE table_4127 ( "Pick" text, "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. -- Which nhl team has the player kevin mckay? ### Response:
SELECT "NHL team" FROM table_4127 WHERE "Player" = 'Kevin McKay'
### Instruction: CREATE TABLE table_80027 ( "Year" real, "Chassis" text, "Engine(s)" text, "Tyres" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the chassis for 1970 and tyres of d ### Response:
SELECT "Chassis" FROM table_80027 WHERE "Tyres" = 'd' AND "Year" = '1970'
### Instruction: CREATE TABLE table_59140 ( "Statistic" text, "Name" text, "Total" text, "School" text, "Opponent" text, "Stage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the opposing team was CSB UPHDS what was the total? ### Response:
SELECT "Total" FROM table_59140 WHERE "Opponent" = 'csb uphds'
### Instruction: CREATE TABLE table_53228 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the grid placement for the Maserati that completed 14 laps? ### Response:
SELECT "Grid" FROM table_53228 WHERE "Constructor" = 'maserati' AND "Laps" = '14'
### Instruction: CREATE TABLE table_5637 ( "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 player has a round larger than 6 with a D position. ### Response:
SELECT "Player" FROM table_5637 WHERE "Round" > '6' AND "Position" = 'd'
### Instruction: CREATE TABLE table_63175 ( "Draw" real, "Language" text, "Artist" text, "Song" text, "English translation" text, "Place" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Song by Artist Robert Cogoi? ### Response:
SELECT "Song" FROM table_63175 WHERE "Artist" = 'robert cogoi'
### Instruction: CREATE TABLE table_40288 ( "Week of" text, "Tier" text, "Winner" text, "Runner-up" text, "Semi finalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Tier when the runner-up is chanda rubin caroline vis? ### Response:
SELECT "Tier" FROM table_40288 WHERE "Runner-up" = 'chanda rubin caroline vis'
### Instruction: CREATE TABLE table_203_165 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many nations received more than 5 gold medals ? ### Response:
SELECT COUNT("nation") FROM table_203_165 WHERE "gold" > 5
### Instruction: CREATE TABLE table_31704 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a record of 3-0? ### Response:
SELECT "Opponent" FROM table_31704 WHERE "Record" = '3-0'
### Instruction: CREATE TABLE table_1325 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" real, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHERE THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME? ### Response:
SELECT "Theme" FROM table_1325 WHERE "Week #" = 'Top 8'
### Instruction: CREATE TABLE table_204_563 ( id number, "abbreviation" text, "settlement" text, "district" text, "official name" text, "division" text, "cup" number, "other information" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total of abbreviations ? ### Response:
SELECT COUNT("abbreviation") FROM table_204_563
### Instruction: CREATE TABLE table_1396 ( "Television Station" text, "Frequency" text, "Site" text, "Transmitted" text, "Network" text, "Status" text, "Country of Region" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What site(s) for tv station tv3? ### Response:
SELECT "Site" FROM table_1396 WHERE "Television Station" = 'TV3'
### Instruction: CREATE TABLE table_69455 ( "Number" real, "Name" text, "Titles" text, "Date" text, "Opponent" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of the match with Zab Judah as the opponent? ### Response:
SELECT "Result" FROM table_69455 WHERE "Opponent" = 'zab judah'
### Instruction: CREATE TABLE table_70235 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest year with an Entrant of ron harris / team lotus? ### Response:
SELECT MAX("Year") FROM table_70235 WHERE "Entrant" = 'ron harris / team lotus'
### Instruction: CREATE TABLE table_1088 ( "Call sign" text, "Launched" text, "Transmitting from" text, "Coverage" text, "Languages" text, "Frequency" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times does the call sign XEZV appear? ### Response:
SELECT COUNT("Transmitting from") FROM table_1088 WHERE "Call sign" = 'XEZV'
### Instruction: CREATE TABLE table_53270 ( "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. -- Name the home team when the away team was essendon ### Response:
SELECT "Home team score" FROM table_53270 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_204_783 ( id number, "position" text, "player" text, "free agency\ntag" text, "date signed" text, "2013 team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total of 2013 teams on the chart ? ### Response:
SELECT COUNT(DISTINCT "2013 team") FROM table_204_783
### Instruction: CREATE TABLE table_name_47 ( attendance INTEGER, score VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- brooklyn dodgers 3, new york yankees 5, and a Game larger than 1 had what attendance figure? ### Response:
SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 1
### Instruction: CREATE TABLE table_name_79 ( time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni? ### Response:
SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni"
### Instruction: CREATE TABLE table_9160 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Rank 14 with a total greater than 1 has what as the average bronze? ### Response:
SELECT AVG("Bronze") FROM table_9160 WHERE "Rank" = '14' AND "Total" > '1'
### Instruction: CREATE TABLE table_44687 ( "Tournament" text, "Surface" text, "Week" text, "Winner and score" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which finalist played in the week of October 21? ### Response:
SELECT "Finalist" FROM table_44687 WHERE "Week" = 'october 21'
### Instruction: CREATE TABLE table_203_22 ( id number, "draw" number, "artist" text, "song" text, "points" number, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who sang eu s quero as their song in the eurovision song contest of 1979 ? ### Response:
SELECT "artist" FROM table_203_22 WHERE "song" = '"eu so quero"'
### Instruction: CREATE TABLE csu_fees ( year VARCHAR ) CREATE TABLE campuses ( id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the campus fee of 'San Jose State University' in year 1996? ### Response:
SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Jose State University" AND T2.year = 1996
### Instruction: CREATE TABLE table_44355 ( "Game" real, "Team" text, "Score" text, "Location Attendance" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the highest game when the team is @boston and the series is 0-1? ### Response:
SELECT MAX("Game") FROM table_44355 WHERE "Team" = '@boston' AND "Series" = '0-1'
### Instruction: CREATE TABLE table_17176 ( "Name of ground" text, "Location" text, "Year" text, "FC matches" real, "LA matches" real, "T20 matches" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is ropery lane located? ### Response:
SELECT "Location" FROM table_17176 WHERE "Name of ground" = 'Ropery Lane'
### Instruction: CREATE TABLE table_27628 ( "Letters" text, "Organization" text, "Nickname" text, "Founding Date" text, "Founding University" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many types of organization were founded in san diego state university? ### Response:
SELECT COUNT("Type") FROM table_27628 WHERE "Founding University" = 'San Diego State University'
### Instruction: CREATE TABLE table_37825 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Opponent during the game with a Result of W 37-21? ### Response:
SELECT "Opponent" FROM table_37825 WHERE "Result" = 'w 37-21'
### Instruction: CREATE TABLE table_71380 ( "Polling Firm" text, "Date" text, "Link" text, "PSOE" text, "Others" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the PSOE for the Local Elections polling firm? ### Response:
SELECT "PSOE" FROM table_71380 WHERE "Polling Firm" = 'local elections'
### Instruction: CREATE TABLE people ( people_id number, name text, height number, weight number, date_of_birth text ) CREATE TABLE entrepreneur ( entrepreneur_id number, people_id number, company text, money_requested number, investor text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the names of people in ascending order of weight? ### Response:
SELECT name FROM people ORDER BY weight
### Instruction: CREATE TABLE table_204_822 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many nations won more than ten silver medals ? ### Response:
SELECT COUNT("nation") FROM table_204_822 WHERE "silver" > 10
### Instruction: CREATE TABLE table_204_307 ( id number, "year" number, "english title" text, "chinese title" text, "role" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of movies he made in 2010 ? ### Response:
SELECT COUNT("english title") FROM table_204_307 WHERE "year" = 2010
### Instruction: CREATE TABLE table_51574 ( "Season" text, "Champion" text, "Team" text, "Chassis" text, "Engine" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which season did Jimmy Eriksson win the championship for Team Lotus? ### Response:
SELECT "Season" FROM table_51574 WHERE "Team" = 'lotus' AND "Champion" = 'jimmy eriksson'
### Instruction: CREATE TABLE table_24388 ( "Team name" text, "Races" real, "Won" real, "RR1 Pts." real, "RR2 Pts." real, "Total Pts." text, "Ranking" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most rr 1 pts ### Response:
SELECT MAX("RR1 Pts.") FROM table_24388
### Instruction: CREATE TABLE reviewer ( rid number, name text ) CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time ) CREATE TABLE movie ( mid number, title text, year number, director text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the id of the reviewer whose name includes the word 'Mike'? ### Response:
SELECT rid FROM reviewer WHERE name LIKE "%Mike%"
### Instruction: CREATE TABLE table_55331 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Matts Nilsson's team that's ranked better than 7? ### Response:
SELECT "Team" FROM table_55331 WHERE "Rank" < '7' AND "Rider" = 'matts nilsson'
### Instruction: CREATE TABLE table_203_272 ( id number, "title" text, "release" text, "consoles" text, "handheld" text, "pc" text, "arcade" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the number of titles released for arcade ? ### Response:
SELECT COUNT("title") FROM table_203_272 WHERE "arcade" = 'arcade'
### Instruction: CREATE TABLE table_29014 ( "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. -- List the position for the boston bruins. ### Response:
SELECT "Position" FROM table_29014 WHERE "NHL team" = 'Boston Bruins'
### Instruction: CREATE TABLE table_20162 ( "Round" real, "Choice" real, "Player name" text, "Position" text, "Height" text, "Weight" real, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which college did the player weighing 207 pounds attend? ### Response:
SELECT "College" FROM table_20162 WHERE "Weight" = '207'
### Instruction: CREATE TABLE table_18532 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many results for incumbent Noble Jones Gregory? ### Response:
SELECT COUNT("District") FROM table_18532 WHERE "Incumbent" = 'Noble Jones Gregory'
### Instruction: CREATE TABLE table_name_6 ( pommel_horse INTEGER, rings VARCHAR, team_total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Count the Pommel Horse that has Rings smaller than 59.85 and a Team Total larger than 361.2? ### Response:
SELECT SUM(pommel_horse) FROM table_name_6 WHERE rings < 59.85 AND team_total > 361.2
### Instruction: CREATE TABLE table_name_61 ( december INTEGER, points VARCHAR, game VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the highest December against the Pittsburgh Penguins in a game larger than 27, with less than 41 points? ### Response:
SELECT MAX(december) FROM table_name_61 WHERE game > 27 AND opponent = "pittsburgh penguins" AND points < 41
### Instruction: CREATE TABLE table_53948 ( "Nat." text, "Name" text, "Moving from" text, "Type" text, "Transfer window" text, "Ends" real, "Transfer fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what nation is Bordeaux? ### Response:
SELECT "Nat." FROM table_53948 WHERE "Moving from" = 'bordeaux'
### Instruction: CREATE TABLE table_32397 ( "Player" text, "Team" text, "Date" text, "Opposition" text, "Game" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date did Limerick play in the All-Ireland Final game? ### Response:
SELECT "Date" FROM table_32397 WHERE "Opposition" = 'limerick' AND "Game" = 'all-ireland final'
### 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. -- which victor held at least six victories ? ### Response:
SELECT "victor" FROM table_204_429 GROUP BY "victor" HAVING COUNT(*) >= 6
### Instruction: CREATE TABLE table_62203 ( "Date From" text, "Date To" text, "Pos." text, "Name" text, "Moving To" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the player that was loaned out on 13 August 2008 ? ### Response:
SELECT "Name" FROM table_62203 WHERE "Date From" = '13 august 2008'
### Instruction: CREATE TABLE table_46878 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of To Par, when Total is '295'? ### Response:
SELECT COUNT("To par") FROM table_46878 WHERE "Total" = '295'
### Instruction: CREATE TABLE table_204_824 ( id number, "no." number, "train no:" text, "origin" text, "destination" text, "train name" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the destination of the first passenger train to leave mangalore central ? ### Response:
SELECT "destination" FROM table_204_824 WHERE "train name" = 'passenger' ORDER BY id LIMIT 1
### Instruction: CREATE TABLE table_204_679 ( id number, "place" text, "player" text, "country" text, "score" text, "to par" number, "money ($)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of players from australia in the open ? ### Response:
SELECT COUNT("player") FROM table_204_679 WHERE "country" = 'australia'
### Instruction: CREATE TABLE table_43431 ( "Year" text, "Award" text, "Production" text, "Role" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result for the role of Ellie Greenwich in 2005? ### Response:
SELECT "Result" FROM table_43431 WHERE "Role" = 'ellie greenwich' AND "Year" = '2005'
### Instruction: CREATE TABLE table_204_737 ( id number, "year" number, "order" text, "quantity" number, "ger nos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which order was the next order after l33 ? ### Response:
SELECT "order" FROM table_204_737 WHERE id = (SELECT id FROM table_204_737 WHERE "order" = 'l33') + 1
### Instruction: CREATE TABLE table_10462 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text, "Boxscore" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record for june 10? ### Response:
SELECT "Record" FROM table_10462 WHERE "Date" = 'june 10'
### Instruction: CREATE TABLE table_77080 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHich Place has a To par of 2, and a Player of bernhard langer? ### Response:
SELECT "Place" FROM table_77080 WHERE "To par" = '–2' AND "Player" = 'bernhard langer'
### Instruction: CREATE TABLE table_name_24 ( points VARCHAR, place VARCHAR, draw VARCHAR, artist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist? ### Response:
SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = "philipp kirkorov" AND place < 17
### Instruction: CREATE TABLE table_203_4 ( id number, "medal" text, "name" text, "sport" text, "event" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which french competitor won the largest amount of medals in the 2000 summer olympics ? ### Response:
SELECT "name" FROM table_203_4 GROUP BY "name" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_71941 ( "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 was the loss of the game when the record was 20-16? ### Response:
SELECT "Loss" FROM table_71941 WHERE "Record" = '20-16'
### Instruction: CREATE TABLE table_38141 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Home has a Series of series tied 3 3? ### Response:
SELECT "Home" FROM table_38141 WHERE "Series" = 'series tied 3–3'
### Instruction: CREATE TABLE table_13035 ( "Team 1" text, "Score" text, "Team 2" text, "1st round" text, "2nd round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team 1 played against team 2 of Tours FC (D2)? ### Response:
SELECT "Team 1" FROM table_13035 WHERE "Team 2" = 'tours fc (d2)'
### Instruction: CREATE TABLE table_204_236 ( id number, "title" text, "release date" text, "developer(s)" text, "publisher(s)" text, "genre(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- name of the only gangster game from developer genuine games ### Response:
SELECT "title" FROM table_204_236 WHERE "developer(s)" = 'genuine games'
### Instruction: CREATE TABLE table_62881 ( "Team" text, "Outgoing manager" text, "Date Outgoing" text, "Reason of departure" text, "Replaced by" text, "Date of Replacement" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did Peter Butler leave his team? ### Response:
SELECT "Date Outgoing" FROM table_62881 WHERE "Outgoing manager" = 'peter butler'
### Instruction: CREATE TABLE table_3601 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What party does joel r. poinsett represent? ### Response:
SELECT "Party" FROM table_3601 WHERE "Incumbent" = 'Joel R. Poinsett'
### Instruction: CREATE TABLE table_35456 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which January has a Record of 28 14 8? ### Response:
SELECT "January" FROM table_35456 WHERE "Record" = '28–14–8'
### Instruction: CREATE TABLE table_204_948 ( id number, "year" number, "award" text, "category" text, "film" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many awards has dev won after 2012 ? ### Response:
SELECT COUNT("award") FROM table_204_948 WHERE "result" = 'won' AND "year" > 2012
### Instruction: CREATE TABLE table_30120633_1 ( area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many acres does the area of Lissagroom with Bandon as its poor law union cover? ### Response:
SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = "Bandon" AND townland = "Lissagroom"
### Instruction: CREATE TABLE table_26721 ( "Pitcher" text, "Strikeouts" real, "Season" real, "Team" text, "League" text, "Overall Rank" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most season for old hoss radbourn ### Response:
SELECT MAX("Season") FROM table_26721 WHERE "Pitcher" = 'Old Hoss Radbourn'
### Instruction: CREATE TABLE table_63987 ( "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. -- Who was the team 2 in the game with a team 1 of Liege Basket? ### Response:
SELECT "Team #2" FROM table_63987 WHERE "Team #1" = 'liege basket'
### Instruction: CREATE TABLE table_59426 ( "Classification" text, "% of all" text, "John Kerry" text, "John Edwards" text, "Dennis Kucinich" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Dennis Kucinich, when % of All is '53%'? ### Response:
SELECT "Dennis Kucinich" FROM table_59426 WHERE "% of all" = '53%'
### Instruction: CREATE TABLE table_57937 ( "Year" text, "Driver" text, "Constructor" text, "Category" text, "Location" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the driver of the vehicle constructed by Bugatti in Anfa? ### Response:
SELECT "Driver" FROM table_57937 WHERE "Constructor" = 'bugatti' AND "Location" = 'anfa'
### Instruction: CREATE TABLE table_70879 ( "Title" text, "Studio" text, "Role" text, "Leading lady" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the leading lady for Uni studio and Frank Strayer? ### Response:
SELECT "Leading lady" FROM table_70879 WHERE "Studio" = 'uni' AND "Director" = 'frank strayer'
### Instruction: CREATE TABLE table_18481 ( "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 was the result for the politician first elected in 1942? ### Response:
SELECT "Result" FROM table_18481 WHERE "First elected" = '1942'
### Instruction: CREATE TABLE table_203_406 ( id number, "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 was the average tyre used in the race ? ### Response:
SELECT DISTINCT "tyre" FROM table_203_406
### Instruction: CREATE TABLE table_name_3 ( goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws? ### Response:
SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 12
### Instruction: CREATE TABLE table_13517 ( "Name" text, "Height" text, "Weight" text, "Spike" text, "2008 club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name of the Player from the 2008 Panasonic Panthers Club? ### Response:
SELECT "Name" FROM table_13517 WHERE "2008 club" = 'panasonic panthers'
### Instruction: CREATE TABLE table_76159 ( "Season" text, "Winner" text, "Winning Song" text, "Winning Song (English Title)" text, "Debut Album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which album debuted in season 2 (2005)? ### Response:
SELECT "Debut Album" FROM table_76159 WHERE "Season" = 'season 2 (2005)'
### Instruction: CREATE TABLE table_25148 ( "Year" real, "Championship" text, "54 holes" text, "Winning score" text, "Margin" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the margin for 4 shot deficit ### Response:
SELECT "Margin" FROM table_25148 WHERE "54 holes" = '4 shot deficit'