instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_28897 ( "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. -- Who are the candidates for district virginia 12? ### Response:
SELECT "Candidates" FROM table_28897 WHERE "District" = 'Virginia 12'
### Instruction: CREATE TABLE table_4792 ( "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 Melbourne's home venue? ### Response:
SELECT "Venue" FROM table_4792 WHERE "Home team" = 'melbourne'
### Instruction: CREATE TABLE table_204_835 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did it take ryosuke irie to finish ? ### Response:
SELECT "time" FROM table_204_835 WHERE "name" = 'ryosuke irie'
### Instruction: CREATE TABLE table_10620 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where does Melbourne play home games? ### Response:
SELECT "Venue" FROM table_10620 WHERE "Home team" = 'melbourne'
### Instruction: CREATE TABLE table_47786 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who placed t7 with a score of 70-71=141? ### Response:
SELECT "Player" FROM table_47786 WHERE "Place" = 't7' AND "Score" = '70-71=141'
### Instruction: CREATE TABLE table_203_13 ( id number, "year" number, "champion" text, "score" text, "runner-up" text, "coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times did boston college score more than 7 points in a game ? ### Response:
SELECT COUNT(*) FROM table_203_13 WHERE "score" > 7 AND "champion" = 'boston college'
### Instruction: CREATE TABLE table_38253 ( "Election" text, "D\u00e1il" text, "Share of votes" text, "Seats" real, "Government" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 6th dail share of votes? ### Response:
SELECT "Share of votes" FROM table_38253 WHERE "D\u00e1il" = '6th'
### Instruction: CREATE TABLE table_204_631 ( id number, "#" number, "title" text, "english translation" text, "original album" text, "length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of songs that were also on the bintang di surga album ? ### Response:
SELECT COUNT("title") FROM table_204_631 WHERE "original album" = 'bintang di surga'
### Instruction: CREATE TABLE table_203_660 ( id number, "county" text, "obama%" text, "obama#" number, "mccain%" text, "mccain#" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total listed for camden county ? ### Response:
SELECT "total" FROM table_203_660 WHERE "county" = 'camden'
### Instruction: CREATE TABLE table_2417345_3 ( successor VARCHAR, date_of_successors_formal_installation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the successors when the date the successors were installed was February 23, 1870? ### Response:
SELECT successor FROM table_2417345_3 WHERE date_of_successors_formal_installation = "February 23, 1870"
### Instruction: CREATE TABLE table_203_7 ( id number, "pos." number, "artist" text, "single" text, "year" number, "sales" number, "peak" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many sales did the single tic tic tac have ? ### Response:
SELECT "sales" FROM table_203_7 WHERE "single" = '"tic, tic tac"'
### Instruction: CREATE TABLE table_60686 ( "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the match against adri n men ndez-maceiras? ### Response:
SELECT "Date" FROM table_60686 WHERE "Opponent" = 'adrián menéndez-maceiras'
### Instruction: CREATE TABLE table_44583 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the verb meaning for Saugen in part 1? ### Response:
SELECT "Verb meaning" FROM table_44583 WHERE "Part 1" = 'saugen'
### Instruction: CREATE TABLE table_204_343 ( id number, "nation" text, "model" text, "length" text, "barrel length" text, "weight" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long was the m1894 rifle 's barrel ? ### Response:
SELECT "barrel length" FROM table_204_343 WHERE "model" = 'm1894 rifle'
### Instruction: CREATE TABLE table_21081 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" text, "Year named" real, "Name origin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest year named for the name Tie Fluctus? ### Response:
SELECT MAX("Year named") FROM table_21081 WHERE "Name" = 'Tie Fluctus'
### Instruction: CREATE TABLE table_name_23 ( rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold? ### Response:
SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold < 9
### Instruction: CREATE TABLE table_25065 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Vacators were listed when the district was North Carolina 3rd? ### Response:
SELECT COUNT("Vacator") FROM table_25065 WHERE "District" = 'North Carolina 3rd'
### Instruction: CREATE TABLE table_name_22 ( birth VARCHAR, ceased_to_be_duke_of_girona VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582? ### Response:
SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582"
### Instruction: CREATE TABLE table_25355392_2 ( november_3 VARCHAR, june_10_11 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is november 3 when june 10-11 is june 10, 1964? ### Response:
SELECT november_3 FROM table_25355392_2 WHERE june_10_11 = "June 10, 1964"
### Instruction: CREATE TABLE table_26635 ( "Episode #" text, "Segment 1" text, "Segment 2" text, "Original airdate" text, "Lessons taught" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the segment 1 for episode # 2/225 ### Response:
SELECT "Segment 1" FROM table_26635 WHERE "Episode #" = '2/225'
### Instruction: CREATE TABLE table_2319 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment" real, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What enrollement would you expect if you were attending the university in St. Louis? ### Response:
SELECT "Enrollment" FROM table_2319 WHERE "Location(s)" = 'St. Louis'
### Instruction: CREATE TABLE table_38310 ( "Start month" text, "End month" text, "Cover" text, "Spine" text, "Indicia" text, "Masthead" text, "Number of issues" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which spine has 12 issues? ### Response:
SELECT "Spine" FROM table_38310 WHERE "Number of issues" = '12'
### Instruction: CREATE TABLE table_204_853 ( id number, "pos" number, "grid" number, "no." number, "driver" text, "team" text, "manufacturer" text, "laps" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the first driver listed ? ### Response:
SELECT "driver" FROM table_204_853 WHERE id = 1
### Instruction: CREATE TABLE table_77731 ( "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 41,573? ### Response:
SELECT "Record" FROM table_77731 WHERE "Attendance" = '41,573'
### Instruction: CREATE TABLE table_35421 ( "Name" text, "Innhabitants" real, "Area" real, "Mayor" text, "Party" text, "Municipal code" real, "Language form" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Mayor is from the KRF Party? ### Response:
SELECT "Mayor" FROM table_35421 WHERE "Party" = 'krf'
### Instruction: CREATE TABLE table_73057 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Giants points" real, "Opponents" real, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum number of opponents? ### Response:
SELECT MIN("Opponents") FROM table_73057
### Instruction: CREATE TABLE table_204_328 ( id number, "no." number, "date" text, "tournament" text, "winning score" text, "margin of\nvictory" text, "runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the first tournament listed ? ### Response:
SELECT "tournament" FROM table_204_328 WHERE id = 1
### Instruction: CREATE TABLE table_73538 ( "Date" text, "Opponent" text, "Location" text, "Irish Points" real, "Opp. Points" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the record where the opponent is central connecticut? ### Response:
SELECT "Record" FROM table_73538 WHERE "Opponent" = 'Central Connecticut'
### Instruction: CREATE TABLE table_78933 ( "Home (1st leg)" text, "Home (2nd leg)" text, "1st Leg" text, "2nd leg" text, "Aggregate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the aggregate score that had a 1-2 second leg score? ### Response:
SELECT "Aggregate" FROM table_78933 WHERE "2nd leg" = '1-2'
### Instruction: CREATE TABLE table_name_18 ( coach VARCHAR, ncaa VARCHAR, losses VARCHAR, conference_titles VARCHAR, seasons VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which coach has 0 conference titles, more than 2 seasons, higher than 87 losses and 0 NCAA? ### Response:
SELECT coach FROM table_name_18 WHERE conference_titles = "0" AND seasons > 2 AND losses > 87 AND ncaa = "0"
### Instruction: CREATE TABLE table_name_59 ( premiere INTEGER, chinese_title VARCHAR, peak VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the premiere rating for a Chinese title of , and a Peak smaller than 41? ### Response:
SELECT SUM(premiere) FROM table_name_59 WHERE chinese_title = "野蠻奶奶大戰戈師奶" AND peak < 41
### Instruction: CREATE TABLE table_204_200 ( id number, "iso/iec standard" text, "title" text, "status" text, "description" text, "wg" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many iso/iec were published before the year 2000 ? ### Response:
SELECT COUNT("iso/iec standard") FROM table_204_200 WHERE "status" < 2000
### Instruction: CREATE TABLE table_6974 ( "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. -- Who is the opponent of the 3:00 time? ### Response:
SELECT "Opponent" FROM table_6974 WHERE "Time" = '3:00'
### Instruction: CREATE TABLE table_48770 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Country, when Place is 'T4', and when Player is 'Scott Simpson'? ### Response:
SELECT "Country" FROM table_48770 WHERE "Place" = 't4' AND "Player" = 'scott simpson'
### Instruction: CREATE TABLE table_75454 ( "Round" text, "Date" text, "Matches" real, "Clubs" text, "New entries this round" text, "Prize money" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many new entries this round have clubs 2 1? ### Response:
SELECT "New entries this round" FROM table_75454 WHERE "Clubs" = '2 → 1'
### Instruction: CREATE TABLE table_203_793 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the date of the last game ? ### Response:
SELECT "date" FROM table_203_793 ORDER BY "date" DESC LIMIT 1
### Instruction: CREATE TABLE table_18499 ( "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 the result with dbeingtrict being florida 4 ### Response:
SELECT "Result" FROM table_18499 WHERE "District" = 'Florida 4'
### Instruction: CREATE TABLE table_21725 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many verbs mean to grow, to produce ### Response:
SELECT COUNT("Part 1") FROM table_21725 WHERE "Verb meaning" = 'to grow, to produce'
### Instruction: CREATE TABLE table_13766 ( "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 4? ### Response:
SELECT "College/junior/club team" FROM table_13766 WHERE "Round" = '4'
### Instruction: CREATE TABLE table_36968 ( "Frequency (kHz)" real, "Call letters" text, "Licensed location" text, "Type" text, "Format" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest frequency (kHz) that is in the location of Longview? ### Response:
SELECT MIN("Frequency (kHz)") FROM table_36968 WHERE "Licensed location" = 'longview'
### Instruction: CREATE TABLE table_68155 ( "Place" text, "Name" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What place in the United States has a To par of e? ### Response:
SELECT "Place" FROM table_68155 WHERE "Country" = 'united states' AND "To par" = 'e'
### Instruction: CREATE TABLE table_9805 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the margin of victory when the runner-up was Janet Coles? ### Response:
SELECT "Margin of victory" FROM table_9805 WHERE "Runner(s)-up" = 'janet coles'
### Instruction: CREATE TABLE publication ( Book_ID VARCHAR, Price INTEGER ) CREATE TABLE book ( Writer VARCHAR, Book_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show writers who have published a book with price more than 4000000. ### Response:
SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000
### Instruction: CREATE TABLE table_37942 ( "School" text, "City" text, "Team Name" text, "Enrollment" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school is in Brookville? ### Response:
SELECT "School" FROM table_37942 WHERE "City" = 'brookville'
### Instruction: CREATE TABLE table_name_91 ( length_fuel VARCHAR, floor_styling VARCHAR, year_built VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling? ### Response:
SELECT length_fuel FROM table_name_91 WHERE floor_styling = "high" AND year_built = "2000-2003"
### Instruction: CREATE TABLE table_6629 ( "Name" text, "Country" text, "Type" text, "Moving from" text, "Transfer window" text, "Ends" text, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country has a loan as the type? ### Response:
SELECT "Country" FROM table_6629 WHERE "Type" = 'loan'
### Instruction: CREATE TABLE table_26725 ( "Country or region" text, "Highest point" text, "Maximum elevation" text, "Lowest point" text, "Minimum elevation" text, "Elevation span" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the highest point in latvia ### Response:
SELECT "Highest point" FROM table_26725 WHERE "Country or region" = 'Latvia'
### Instruction: CREATE TABLE table_59133 ( "Station Name" text, "Opening Year" text, "Municipality" text, "Park and Ride Lot" text, "Free Fare Zone" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the Temple Square station, what is the park & ride lot name? ### Response:
SELECT "Park and Ride Lot" FROM table_59133 WHERE "Station Name" = 'temple square'
### Instruction: CREATE TABLE table_11873 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what venue did the 1982 FIFA World Cup Qualification take place? ### Response:
SELECT "Venue" FROM table_11873 WHERE "Competition" = '1982 fifa world cup qualification'
### Instruction: CREATE TABLE table_49301 ( "Trident" text, "Gecko" text, "WebKit" text, "KHTML" text, "Presto" text, "Prince XML" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the item with a Prince XML value of 'font', what is the WebKit value? ### Response:
SELECT "WebKit" FROM table_49301 WHERE "Prince XML" = 'font'
### Instruction: CREATE TABLE table_204_125 ( id number, "state" text, "type" text, "name" text, "title" text, "royal house" text, "from" text, "to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which king ruled the longest ? ### Response:
SELECT "name" FROM table_204_125 ORDER BY "from" - "to" DESC LIMIT 1
### Instruction: CREATE TABLE table_203_535 ( 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 is the total amount of medals spain has won ? ### Response:
SELECT "total" FROM table_203_535 WHERE "nation" = 'spain'
### Instruction: CREATE TABLE table_38237 ( "Games" real, "Drawn" real, "Lost" real, "Points difference" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of draws with 14 points and less than 7 games? ### Response:
SELECT MAX("Drawn") FROM table_38237 WHERE "Points" = '14' AND "Games" < '7'
### Instruction: CREATE TABLE table_23398 ( "No. in series" text, "No. in season" real, "Family/families" text, "Location(s)" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What episode in the season was episode us18 in the series? ### Response:
SELECT COUNT("No. in season") FROM table_23398 WHERE "No. in series" = 'US18'
### Instruction: CREATE TABLE table_2192 ( "Year(s)" real, "Commentator" text, "Dual Commentator" text, "Spokesperson" text, "Channel" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- state all spokesperson for the channel where dual commentator was elena batinova ### Response:
SELECT "Spokesperson" FROM table_2192 WHERE "Dual Commentator" = 'Elena Batinova'
### Instruction: CREATE TABLE Addresses ( city VARCHAR, address_id VARCHAR ) CREATE TABLE Staff ( staff_address_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which city lives most of staffs? List the city name and number of staffs. ### Response:
SELECT T1.city, COUNT(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_203_277 ( id number, "entered" number, "wrestler" text, "place" text, "eliminated by" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many wrestlers had a time of 6:47 ? ### Response:
SELECT COUNT("wrestler") FROM table_203_277 WHERE "time" = '06:47'
### Instruction: CREATE TABLE table_21531764_1 ( october_2012 VARCHAR, october_2010 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the area which was 9.1 in October 2010, what is the figure for October 2012? ### Response:
SELECT october_2012 FROM table_21531764_1 WHERE october_2010 = "9.1"
### Instruction: CREATE TABLE table_59606 ( "Pick" real, "AFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player is an offensive tackle for the New York Jets? ### Response:
SELECT "Player" FROM table_59606 WHERE "Position" = 'offensive tackle' AND "AFL Team" = 'new york jets'
### Instruction: CREATE TABLE table_1348 ( "Season" real, "Series" text, "Team Name" text, "Races" real, "Podiums" real, "Poles" real, "Wins" real, "Points" real, "Final Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest value for race? ### Response:
SELECT MAX("Races") FROM table_1348
### Instruction: CREATE TABLE table_224837_4 ( date_successor_seated VARCHAR, reason_for_change VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date successor seated for contested election; served until february 14, 1794 ### Response:
SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Contested election; served until February 14, 1794"
### Instruction: CREATE TABLE table_39386 ( "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. -- What is the Winning score in 1956? ### Response:
SELECT "Winning score" FROM table_39386 WHERE "Year" = '1956'
### Instruction: CREATE TABLE table_12369913_1 ( result VARCHAR, original_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many results are there with the original title of ani ohev otach roza ( )? ### Response:
SELECT COUNT(result) FROM table_12369913_1 WHERE original_title = "Ani Ohev Otach Roza (אני אוהב אותך רוזה)"
### Instruction: CREATE TABLE table_15835 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year did Elf Team Tyrrell have 34 points? ### Response:
SELECT AVG("Year") FROM table_15835 WHERE "Entrant" = 'elf team tyrrell' AND "Points" = '34'
### Instruction: CREATE TABLE table_71700 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of roll for morrinsville school ### Response:
SELECT SUM("Roll") FROM table_71700 WHERE "Name" = 'morrinsville school'
### Instruction: CREATE TABLE table_32706 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent had an attendance of 40,070? ### Response:
SELECT "Opponent" FROM table_32706 WHERE "Attendance" = '40,070'
### Instruction: CREATE TABLE table_2160 ( "Election" text, "# of candidates nominated" real, "# of seats won" real, "# of total votes" real, "% of popular vote" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most number of total votes for election for 1878 ### Response:
SELECT MAX("# of total votes") FROM table_2160 WHERE "Election" = '1878'
### Instruction: CREATE TABLE table_51195 ( "Year" real, "Theme" text, "Artist" text, "Composition" text, "Mintage" real, "Issue Price" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the mintage when the theme was year of the rabbit? ### Response:
SELECT "Mintage" FROM table_51195 WHERE "Theme" = 'year of the rabbit'
### Instruction: CREATE TABLE table_2150 ( "Shekhina:" text, "Reason" text, "Mind" text, "Intelligence" text, "Thought" text, "Understanding" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the intelligence os the one that has s , 'thought'? ### Response:
SELECT "Intelligence" FROM table_2150 WHERE "Thought" = '思 sī, "thought'
### Instruction: CREATE TABLE table_71618 ( "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 year with a kurtis kraft 500a chassis? ### Response:
SELECT SUM("Year") FROM table_71618 WHERE "Chassis" = 'kurtis kraft 500a'
### Instruction: CREATE TABLE table_7716 ( "Season" real, "Overall" real, "Slalom" text, "Super G" real, "Downhill" text, "Combined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Super G, when Season is later than 1996? ### Response:
SELECT MAX("Super G") FROM table_7716 WHERE "Season" > '1996'
### Instruction: CREATE TABLE table_24575 ( "Train No." text, "Train Name" text, "Destination" text, "Category" text, "Frequency" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many destinations have a weekly frequency and are named AC Express? ### Response:
SELECT COUNT("Destination") FROM table_24575 WHERE "Frequency" = 'Weekly' AND "Train Name" = 'AC Express'
### Instruction: CREATE TABLE table_21059 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter" text, "Year named" real, "Namesake" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many longitudes have a diameter of 224.0? ### Response:
SELECT COUNT("Longitude") FROM table_21059 WHERE "Diameter" = '224.0'
### Instruction: CREATE TABLE table_63380 ( "Model" text, "Years" text, "Engine code" text, "Power" text, "Torque" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the model that was made in the years 2011 2012-? ### Response:
SELECT "Model" FROM table_63380 WHERE "Years" = '2011 2012-'
### Instruction: CREATE TABLE table_name_43 ( bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR, versus VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures? ### Response:
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = "port elizabeth" AND versus = "australia"
### Instruction: CREATE TABLE table_68635 ( "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 average attendance when the record was 17-18? ### Response:
SELECT AVG("Attendance") FROM table_68635 WHERE "Record" = '17-18'
### Instruction: CREATE TABLE table_80109 ( "Hits" real, "Player" text, "Team" text, "Year" real, "Years Record Stood" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the player with 238 hits and years after 1885 ### Response:
SELECT "Player" FROM table_80109 WHERE "Year" > '1885' AND "Hits" = '238'
### Instruction: CREATE TABLE table_30303 ( "Year Location" text, "Mens Singles" text, "Womens Singles" text, "Mens Doubles" text, "Womens Doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won the mens doubles when wang hao won the mens singles? ### Response:
SELECT "Mens Doubles" FROM table_30303 WHERE "Mens Singles" = 'Wang Hao'
### Instruction: CREATE TABLE table_66216 ( "Rank" real, "Athlete" text, "Country" text, "Day 1" real, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had a rank under 17 with a total of 119? ### Response:
SELECT "Athlete" FROM table_66216 WHERE "Rank" < '17' AND "Total" = '119'
### Instruction: CREATE TABLE table_41820 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the visitor when the record is 2-1? ### Response:
SELECT "Visitor" FROM table_41820 WHERE "Record" = '2-1'
### Instruction: CREATE TABLE table_16400 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest selection number for the saskatchewan roughriders team? ### Response:
SELECT MAX("Pick #") FROM table_16400 WHERE "CFL Team" = 'Saskatchewan Roughriders'
### Instruction: CREATE TABLE table_80223 ( "Year" real, "Alabama" text, "Arkansas" text, "Auburn" text, "Ole Miss" text, "Mississippi St." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Arkansas player associated with Ken Stabler? ### Response:
SELECT "Arkansas" FROM table_80223 WHERE "Alabama" = 'ken stabler'
### Instruction: CREATE TABLE table_203_224 ( id number, "title" text, "year" number, "channel" text, "role" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the title of the last television appearance she had in 2010 ? ### Response:
SELECT "title" FROM table_203_224 WHERE "year" = 2010 ORDER BY id DESC LIMIT 1
### Instruction: CREATE TABLE table_23177573_1 ( rank__week_ VARCHAR, written_by VARCHAR, directed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the week ranking of the episode written by Thomas L. Moran and directed by Andrew Bernstein? ### Response:
SELECT rank__week_ FROM table_23177573_1 WHERE written_by = "Thomas L. Moran" AND directed_by = "Andrew Bernstein"
### Instruction: CREATE TABLE table_46705 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" real, "Year named" real, "Name origin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the year when the diameter was 729 km? ### Response:
SELECT "Year named" FROM table_46705 WHERE "Diameter (km)" = '729'
### Instruction: CREATE TABLE table_74416 ( "Name" text, "Country" text, "Years" text, "Games" real, "Minutes" real, "Conceded" real, "Shutouts" real, "Int. caps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest overall amount of shutouts? ### Response:
SELECT MIN("Shutouts") FROM table_74416
### Instruction: CREATE TABLE table_name_67 ( bob_dole VARCHAR, george_hw_bush VARCHAR, pat_robertson VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have? ### Response:
SELECT bob_dole FROM table_name_67 WHERE george_hw_bush = "81%" AND pat_robertson = "9%"
### Instruction: CREATE TABLE table_66233 ( "Year" real, "Stage" real, "Start" text, "Finish" text, "Leader at the summit" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was finish Toulouse, and stage was larger than 12? ### Response:
SELECT SUM("Year") FROM table_66233 WHERE "Finish" = 'toulouse' AND "Stage" > '12'
### Instruction: CREATE TABLE table_743 ( "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 of the election of the incumbent clyde doyle? ### Response:
SELECT "Result" FROM table_743 WHERE "Incumbent" = 'Clyde Doyle'
### Instruction: CREATE TABLE table_name_16 ( pommel_horse VARCHAR, rings VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507? ### Response:
SELECT COUNT(pommel_horse) FROM table_name_16 WHERE rings = 37.461 AND total < 229.507
### Instruction: CREATE TABLE table_38250 ( "Election" text, "D\u00e1il" text, "Share of votes" text, "Seats" real, "Government" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many seats does the 6th Dail have? ### Response:
SELECT COUNT("Seats") FROM table_38250 WHERE "D\u00e1il" = '6th'
### Instruction: CREATE TABLE table_36902 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Attendance of 23,150 had what opponent? ### Response:
SELECT "Opponent" FROM table_36902 WHERE "Attendance" = '23,150'
### Instruction: CREATE TABLE table_30291 ( "Religion" text, "Births" real, "Conversions" text, "New adherents per year" real, "Growth rate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the religion that has a growth rate of 1.56% ### Response:
SELECT "Religion" FROM table_30291 WHERE "Growth rate" = '1.56%'
### Instruction: CREATE TABLE table_32025 ( "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. -- When there was a draw, what was the time? ### Response:
SELECT "Time" FROM table_32025 WHERE "Res." = 'draw'
### Instruction: CREATE TABLE table_80303 ( "Year" text, "Winner" text, "Country" text, "Score" text, "Margin" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the runner-up when the year was 2008? ### Response:
SELECT "Runner(s)-up" FROM table_80303 WHERE "Year" = '2008'
### Instruction: CREATE TABLE table_name_71 ( week VARCHAR, game_site VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance? ### Response:
SELECT COUNT(week) FROM table_name_71 WHERE game_site = "robert f. kennedy memorial stadium" AND attendance > 54 OFFSET 633
### Instruction: CREATE TABLE table_10706961_2 ( report VARCHAR, winning_team VARCHAR, pole_position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many reports are there in the race that Forsythe Racing won and Teo Fabi had the pole position in? ### Response:
SELECT COUNT(report) FROM table_10706961_2 WHERE winning_team = "Forsythe Racing" AND pole_position = "Teo Fabi"
### Instruction: CREATE TABLE table_name_83 ( grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70 ### Response:
SELECT MIN(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "emerson fittipaldi" AND laps > 70
### Instruction: CREATE TABLE table_204_261 ( 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 is the total of medals earned by russia ? ### Response:
SELECT "total" FROM table_204_261 WHERE "nation" = 'russia'
### Instruction: CREATE TABLE table_55670 ( "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. -- Which home team plays in the Corio Oval venue? ### Response:
SELECT "Home team" FROM table_55670 WHERE "Venue" = 'corio oval'