instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_58483 ( "Order" real, "Name" text, "Party" text, "Constituted" text, "Concluded" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the constituted for labor and scullin ministry ### Response:
SELECT "Constituted" FROM table_58483 WHERE "Party" = 'labor' AND "Name" = 'scullin ministry'
### Instruction: CREATE TABLE table_66700 ( "Name" text, "Gender" text, "Area" text, "Authority" text, "Decile" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which name has a Decile of 5, and an Area of tauranga? ### Response:
SELECT "Name" FROM table_66700 WHERE "Decile" = '5' AND "Area" = 'tauranga'
### Instruction: CREATE TABLE table_name_97 ( position VARCHAR, player VARCHAR, years_in_orlando VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Position has a Player of tyronn lue, and a Years in Orlando of 2003 2004? ### Response:
SELECT position FROM table_name_97 WHERE player = "tyronn lue" AND years_in_orlando = "2003–2004"
### Instruction: CREATE TABLE table_74634 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the competition that occured on 27 July 2004? ### Response:
SELECT "Competition" FROM table_74634 WHERE "Date" = '27 july 2004'
### Instruction: CREATE TABLE table_23792 ( "shareholder name" text, "A shares" real, "B shares" real, "% of capital" text, "% of votes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of votes does the shareholder with 78.19% of capital have? ### Response:
SELECT "% of votes" FROM table_23792 WHERE "% of capital" = '78.19'
### Instruction: CREATE TABLE table_70919 ( "Outcome" text, "Date" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the outcome of a score that is 6 1, 6 4? ### Response:
SELECT "Outcome" FROM table_70919 WHERE "Score" = '6–1, 6–4'
### Instruction: CREATE TABLE table_27356 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number draft pick was linebacker Steve Maidlow in the 1983 NFL Draft? ### Response:
SELECT "Position" FROM table_27356 WHERE "Player" = 'Steve Maidlow'
### Instruction: CREATE TABLE table_203_561 ( id number, "pos" number, "team" text, "total" number, "high" number, "low" number, "average" number, "change" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which team comes last in attendance ? ### Response:
SELECT "team" FROM table_203_561 ORDER BY "total" LIMIT 1
### Instruction: CREATE TABLE Employees ( employee_name VARCHAR, role_code VARCHAR ) CREATE TABLE ROLES ( role_code VARCHAR, role_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the names of employees with role name Editor. ### Response:
SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor"
### Instruction: CREATE TABLE table_28642 ( "Rank by average" real, "Place" real, "Couple" text, "Total points" text, "Number of dances" real, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many numbers of dances for place 1? ### Response:
SELECT COUNT("Number of dances") FROM table_28642 WHERE "Place" = '1'
### Instruction: CREATE TABLE table_28980706_4 ( rating__18_49_ VARCHAR, viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When there are 10.02 million viewers what is the rating (18-49)? ### Response:
SELECT rating__18_49_ FROM table_28980706_4 WHERE viewers__millions_ = "10.02"
### Instruction: CREATE TABLE table_23518 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the original title of The New Land? ### Response:
SELECT "Original title" FROM table_23518 WHERE "Film title used in nomination" = 'The New Land'
### Instruction: CREATE TABLE table_695 ( "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 district was incumbent Jerry Kleczka in? ### Response:
SELECT "District" FROM table_695 WHERE "Incumbent" = 'Jerry Kleczka'
### Instruction: CREATE TABLE table_76689 ( "Date" text, "Time" text, "Opponent" text, "Score" text, "Site" text, "City" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Opponent when the Score is 2-8? ### Response:
SELECT "Opponent" FROM table_76689 WHERE "Score" = '2-8'
### Instruction: CREATE TABLE table_52178 ( "Club" text, "League" text, "Sport" text, "Venue" text, "Established" real, "Championships" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of a league in the sport of baseball? ### Response:
SELECT "League" FROM table_52178 WHERE "Sport" = 'baseball'
### Instruction: CREATE TABLE table_name_78 ( silver INTEGER, gold VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44? ### Response:
SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44
### Instruction: CREATE TABLE table_27289 ( "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. -- Name the party for spencer bachus ### Response:
SELECT "Party" FROM table_27289 WHERE "Incumbent" = 'Spencer Bachus'
### Instruction: CREATE TABLE table_76221 ( "Date" text, "Opponent" text, "Score" text, "Leading Scorer" text, "Attendance" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the attendance of the western conference finals series? ### Response:
SELECT "Attendance" FROM table_76221 WHERE "Series" = 'western conference finals'
### Instruction: CREATE TABLE table_12980 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Week 3 has a Week 4 of gina blair? ### Response:
SELECT "Week 3" FROM table_12980 WHERE "Week 4" = 'gina blair'
### Instruction: CREATE TABLE table_34706 ( "Team" text, "Location" text, "Venue" text, "Capacity" real, "Position in 1999" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average capacity for the venue where the team kommunalnik played? ### Response:
SELECT AVG("Capacity") FROM table_34706 WHERE "Team" = 'kommunalnik'
### Instruction: CREATE TABLE journal_committee ( editor_id number, journal_id number, work_type text ) CREATE TABLE editor ( editor_id number, name text, age number ) CREATE TABLE journal ( journal_id number, date text, theme text, sales number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the distinct themes of journals. ### Response:
SELECT DISTINCT theme FROM journal
### Instruction: CREATE TABLE table_7257 ( "Round" real, "Pick" real, "Name" text, "Position" text, "School/College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Highest round 5 pick from western illinois? ### Response:
SELECT MAX("Pick") FROM table_7257 WHERE "Round" = '5' AND "School/College" = 'western illinois'
### Instruction: CREATE TABLE table_13962 ( "Year" real, "Country" text, "Course" text, "Location" text, "Total score" text, "To par [a ]" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the year with a score of 305? ### Response:
SELECT MIN("Year") FROM table_13962 WHERE "Total score" = '305'
### Instruction: CREATE TABLE table_3685 ( "Date" text, "Battles" text, "Conflict" text, "Combatants A" text, "Combatants B" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what conflicts was the Italian Navy Combatants B? ### Response:
SELECT "Conflict" FROM table_3685 WHERE "Combatants B" = 'Italian Navy'
### Instruction: CREATE TABLE table_name_67 ( nepalis_admitted INTEGER, bangladeshis_admitted INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted? ### Response:
SELECT MAX(nepalis_admitted) FROM table_name_67 WHERE bangladeshis_admitted < 1 OFFSET 896
### Instruction: CREATE TABLE table_56282 ( "BR No." real, "SR No." real, "SR Name" text, "Builder" text, "Built" text, "Withdrawn" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Builder has BR No. 30782? ### Response:
SELECT "Builder" FROM table_56282 WHERE "BR No." = '30782'
### Instruction: CREATE TABLE table_203_836 ( id number, "title" text, "year" number, "platforms" text, "developer" text, "publisher" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the only game published by electronic arts ? ### Response:
SELECT "title" FROM table_203_836 WHERE "publisher" = 'electronic arts'
### Instruction: CREATE TABLE table_33812 ( "S.No" real, "Company" text, "Incorporated" real, "Ministry" text, "Sector" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average incorporataed year of the Air India Charters company? ### Response:
SELECT AVG("Incorporated") FROM table_33812 WHERE "Company" = 'air india charters'
### Instruction: CREATE TABLE aircraft ( Aircraft VARCHAR, Aircraft_ID VARCHAR ) CREATE TABLE MATCH ( Winning_Aircraft VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the names of aircrafts and the number of times it won matches. ### Response:
SELECT T1.Aircraft, COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft
### Instruction: CREATE TABLE table_203_560 ( id number, "name" text, "type" text, "circle" text, "bench" text, "formed" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which bench is represented the most ? ### Response:
SELECT "bench" FROM table_203_560 GROUP BY "bench" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_11584 ( "Name" text, "Election Year" real, "Party" text, "Birth State" text, "Resident State" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What state was the president who was elected earlier than 1848 born in? ### Response:
SELECT "Birth State" FROM table_11584 WHERE "Election Year" < '1848'
### Instruction: CREATE TABLE table_26887 ( "Candidate" text, "Background" text, "Original team" text, "Age" real, "Hometown" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the player from Maylands, Western Australia? ### Response:
SELECT "Result" FROM table_26887 WHERE "Hometown" = 'Maylands, Western Australia'
### Instruction: CREATE TABLE table_name_48 ( voice_actor__harmony_gold_ova_dub_ VARCHAR, japanese_voice_actor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the voice actor of the character with the Japanese voice actor Yoku Shioya? ### Response:
SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_48 WHERE japanese_voice_actor = "yoku shioya"
### Instruction: CREATE TABLE table_29395291_2 ( subscribers__2005___thousands_ INTEGER, provider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the fewest number of 2005 subscribers for Vodafone? ### Response:
SELECT MIN(subscribers__2005___thousands_) FROM table_29395291_2 WHERE provider = "Vodafone"
### Instruction: CREATE TABLE table_18326 ( "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 district did S. William Green belong to? ### Response:
SELECT "District" FROM table_18326 WHERE "Incumbent" = 'S. William Green'
### Instruction: CREATE TABLE table_34623 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On which date did the Indians have a record of 67-58 ### Response:
SELECT "Date" FROM table_34623 WHERE "Record" = '67-58'
### Instruction: CREATE TABLE table_55486 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was naomi cavaday the opponent? ### Response:
SELECT "Date" FROM table_55486 WHERE "Opponent" = 'naomi cavaday'
### Instruction: CREATE TABLE table_12461 ( "year" text, "opus" text, "town" text, "kind" text, "manuals" text, "stops" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What town has 15 stops and a NB kind? ### Response:
SELECT "town" FROM table_12461 WHERE "stops" = '15' AND "kind" = 'nb'
### Instruction: CREATE TABLE table_12659 ( "Branding" text, "Callsign" text, "Frequency" text, "Power (kW)" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location where the frequency is 92.3mhz? ### Response:
SELECT "Location" FROM table_12659 WHERE "Frequency" = '92.3mhz'
### Instruction: CREATE TABLE table_43119 ( "Team" text, "Country" text, "Home" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the lead of the team from Lockerbie? ### Response:
SELECT "Lead" FROM table_43119 WHERE "Home" = 'lockerbie'
### Instruction: CREATE TABLE table_66177 ( "play" text, "author" text, "company" text, "base" text, "country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Country has the Play The Libation Bearers a Base of Mecklenburg? ### Response:
SELECT "country" FROM table_66177 WHERE "base" = 'mecklenburg' AND "play" = 'the libation bearers'
### Instruction: CREATE TABLE table_12078 ( "Round" text, "Pick" text, "Position" text, "Team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the position of the team Minneapolis Lakers during round T? ### Response:
SELECT "Position" FROM table_12078 WHERE "Round" = 't' AND "Team" = 'minneapolis lakers'
### Instruction: CREATE TABLE table_name_31 ( name_of_the_river VARCHAR, name_of_the_state_where_found_in_india VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the river found in Madhya Pradesh, India? ### Response:
SELECT name_of_the_river FROM table_name_31 WHERE name_of_the_state_where_found_in_india = "madhya pradesh"
### Instruction: CREATE TABLE table_3427 ( "Team" text, "Location" text, "Stadium" text, "Capacity" real, "Manager" text, "Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the maximum capacity of larry gomes stadium? ### Response:
SELECT MAX("Capacity") FROM table_3427 WHERE "Stadium" = 'Larry Gomes Stadium'
### Instruction: CREATE TABLE table_37778 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city held that game with a 5:2 result? ### Response:
SELECT "City" FROM table_37778 WHERE "Results\u00b9" = '5:2'
### Instruction: CREATE TABLE table_2552 ( "Season" text, "Player" text, "Nationality" text, "Team" text, "Points" real, "Average" text, "Played" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team had an average of 20.4? ### Response:
SELECT "Team" FROM table_2552 WHERE "Average" = '20.4'
### Instruction: CREATE TABLE table_39531 ( "Pos." real, "Car #" real, "Driver" text, "Make" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Car # has a Make of toyota, and a Pos of 7? ### Response:
SELECT AVG("Car #") FROM table_39531 WHERE "Make" = 'toyota' AND "Pos." = '7'
### Instruction: CREATE TABLE table_37132 ( "Games" real, "Drawn" real, "Lost" real, "Goal difference" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most points with lost more than 1 and games less than 5 ### Response:
SELECT MAX("Points") FROM table_37132 WHERE "Lost" > '1' AND "Games" < '5'
### Instruction: CREATE TABLE table_50165 ( "Team #1" text, "Points" text, "Team #2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is 1st Leg, when Team #1 is 'San Lorenzo'? ### Response:
SELECT "1st leg" FROM table_50165 WHERE "Team #1" = 'san lorenzo'
### 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. -- which nation received the least bronze medals ### Response:
SELECT "nation" FROM table_204_822 ORDER BY "bronze" LIMIT 1
### Instruction: CREATE TABLE table_54936 ( "Year" text, "Team" text, "Comp" text, "Rate" text, "RAtt" text, "RYds" text, "RAvg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has a 94.1 rating? ### Response:
SELECT "Team" FROM table_54936 WHERE "Rate" = '94.1'
### Instruction: CREATE TABLE table_53233 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What visitor has Ottawa as a home and a date of April 26? ### Response:
SELECT "Visitor" FROM table_53233 WHERE "Home" = 'ottawa' AND "Date" = 'april 26'
### Instruction: CREATE TABLE table_203_266 ( id number, "group" text, "members" number, "caucusing" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which group had over 130 members but only 6 caucusing members ? ### Response:
SELECT "group" FROM table_203_266 WHERE "members" > 130 AND "caucusing" = 6
### Instruction: CREATE TABLE table_40405 ( "Eliminated" text, "Wrestler" text, "Entered" real, "Eliminated by" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Entered when the eliminated number is 3? ### Response:
SELECT COUNT("Entered") FROM table_40405 WHERE "Eliminated" = '3'
### Instruction: CREATE TABLE table_35099 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the district of the incumbent Thomas Larkin Thompson? ### Response:
SELECT "District" FROM table_35099 WHERE "Incumbent" = 'thomas larkin thompson'
### Instruction: CREATE TABLE table_204_64 ( id number, "place" text, "code" number, "area (km2)" number, "population" number, "most spoken language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what other languages are listed in the table besides sotho ? ### Response:
SELECT "most spoken language" FROM table_204_64 WHERE "most spoken language" <> 'sotho'
### Instruction: CREATE TABLE table_204_951 ( id number, "candidate" text, "votes" number, "percentage" text, "counties" number, "delegates" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many candidates got more than 5 % of the votes ? ### Response:
SELECT COUNT("candidate") FROM table_204_951 WHERE "percentage" > 5
### Instruction: CREATE TABLE table_51426 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the competition on October 15, 2008? ### Response:
SELECT "Competition" FROM table_51426 WHERE "Date" = 'october 15, 2008'
### Instruction: CREATE TABLE table_2897 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score for game 4? ### Response:
SELECT "Score" FROM table_2897 WHERE "Game" = '4'
### Instruction: CREATE TABLE table_76063 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the game where they played the Pittsburgh Steelers, what was the attendance? ### Response:
SELECT "Attendance" FROM table_76063 WHERE "Opponent" = 'pittsburgh steelers'
### Instruction: CREATE TABLE song ( artist_name VARCHAR ) CREATE TABLE artist ( artist_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the names and number of works of the three artists who have produced the most songs. ### Response:
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
### Instruction: CREATE TABLE table_6644 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Round of 1, and a Record of 10 2 had what method? ### Response:
SELECT "Method" FROM table_6644 WHERE "Round" = '1' AND "Record" = '10–2'
### Instruction: CREATE TABLE table_14383 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the record of 52-60 what's the date? ### Response:
SELECT "Date" FROM table_14383 WHERE "Record" = '52-60'
### Instruction: CREATE TABLE table_69176 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total national rank of Canada with lanes larger than 3? ### Response:
SELECT SUM("Rank") FROM table_69176 WHERE "Nationality" = 'canada' AND "Lane" > '3'
### Instruction: CREATE TABLE table_11206916_2 ( manner_of_departure VARCHAR, date_of_appointment VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What manner of departure is listed with an appointment date of 13 march 2008 ### Response:
SELECT manner_of_departure FROM table_11206916_2 WHERE date_of_appointment = "13 March 2008"
### Instruction: CREATE TABLE table_33626 ( "Year" text, "1st Position" text, "2nd Position" text, "9th Position" text, "10th Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where there is a tenth position of gozo, what is the first position? ### Response:
SELECT "1st Position" FROM table_33626 WHERE "10th Position" = 'gozo'
### Instruction: CREATE TABLE table_18281 ( "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 district has Dan Crane as incumbent? ### Response:
SELECT "District" FROM table_18281 WHERE "Incumbent" = 'Dan Crane'
### Instruction: CREATE TABLE table_14752049_5 ( rank VARCHAR, international_tourist_arrivals__2011_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of ranks for international tourist arrivals being 6.2 million ### Response:
SELECT COUNT(rank) FROM table_14752049_5 WHERE international_tourist_arrivals__2011_ = "6.2 million"
### Instruction: CREATE TABLE table_1610496_3 ( gdp_adjusted__$_billions_ VARCHAR, population__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the adjusted GDP when the population is 5.141 million? ### Response:
SELECT gdp_adjusted__$_billions_ FROM table_1610496_3 WHERE population__millions_ = "5.141"
### Instruction: CREATE TABLE table_74440 ( "Flag Name" text, "Transliteration" text, "Meaning" text, "Description" text, "International Use" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the meanings of the flag whose name transliterates to sem rka? ### Response:
SELECT "Meaning" FROM table_74440 WHERE "Transliteration" = 'semërka'
### Instruction: CREATE TABLE table_43274 ( "element" text, "group" real, "period" real, "reaction" text, "potential" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which potential's period 5 is 4 and has an element of antimony? ### Response:
SELECT "potential" FROM table_43274 WHERE "period" = '5' AND "element" = 'antimony'
### Instruction: CREATE TABLE table_32015 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the lowest week for attedance less thaan 32,738 ### Response:
SELECT MIN("Week") FROM table_32015 WHERE "Attendance" < '32,738'
### Instruction: CREATE TABLE table_65115 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What competition listed is dated November 17, 2003? ### Response:
SELECT "Competition" FROM table_65115 WHERE "Date" = 'november 17, 2003'
### Instruction: CREATE TABLE table_79966 ( "Year of issue" real, "Theme" text, "Composition" text, "Issue price" text, "Mintage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years was the issue price $19.95? ### Response:
SELECT COUNT("Year of issue") FROM table_79966 WHERE "Issue price" = '$19.95'
### Instruction: CREATE TABLE table_name_64 ( week VARCHAR, date VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Week number on November 30, 1958 with more than 33,240 in Attendance? ### Response:
SELECT COUNT(week) FROM table_name_64 WHERE date = "november 30, 1958" AND attendance > 33 OFFSET 240
### Instruction: CREATE TABLE table_11318462_5 ( u15_3rd_iv VARCHAR, u15_4th_iv VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are all the u15 3rd iv with u15 4th iv being bbc ### Response:
SELECT u15_3rd_iv FROM table_11318462_5 WHERE u15_4th_iv = "BBC"
### Instruction: CREATE TABLE table_2618119_1 ( title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many titles have directors of matthew Penn and number in series of 143? ### Response:
SELECT COUNT(title) FROM table_2618119_1 WHERE directed_by = "Matthew Penn" AND no_in_series = 143
### Instruction: CREATE TABLE table_63787 ( "Rank" real, "Athlete" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time for the rank after 5 with sc/d notes? ### Response:
SELECT "Time" FROM table_63787 WHERE "Notes" = 'sc/d' AND "Rank" > '5'
### Instruction: CREATE TABLE table_26581 ( "Processor" text, "Brand name" text, "Model (list)" text, "Cores" real, "L2 Cache" text, "Socket" text, "TDP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the smallest number for cores of any of the processor models? ### Response:
SELECT MIN("Cores") FROM table_26581
### Instruction: CREATE TABLE table_37023 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year is the highest one that has a Venue of edmonton, canada? ### Response:
SELECT MAX("Year") FROM table_37023 WHERE "Venue" = 'edmonton, canada'
### Instruction: CREATE TABLE table_49595 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What week was the game played at Rich Stadium? ### Response:
SELECT "Week" FROM table_49595 WHERE "Game site" = 'rich stadium'
### Instruction: CREATE TABLE table_204_595 ( 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 no gold medals ? ### Response:
SELECT COUNT("nation") FROM table_204_595 WHERE "gold" = 0
### Instruction: CREATE TABLE table_203_875 ( id number, "#" number, "name" text, "birth and death" text, "office started" text, "office ended" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long was geir vidalin in office ? ### Response:
SELECT "office ended" - "office started" FROM table_203_875 WHERE "name" = 'geir vidalin'
### Instruction: CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How old is each gender, on average. Plot them as bar chart. ### Response:
SELECT gender, AVG(age) FROM Person GROUP BY gender
### Instruction: CREATE TABLE table_78388 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who drove the car with over 66 laps with a grid of 5? ### Response:
SELECT "Driver" FROM table_78388 WHERE "Laps" > '66' AND "Grid" = '5'
### Instruction: CREATE TABLE table_204_157 ( id number, "date" text, "opponent#" text, "rank#" text, "site" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games did the irish win by at least 30 points ? ### Response:
SELECT COUNT(*) FROM table_204_157 WHERE "result" - "result" >= 30
### Instruction: CREATE TABLE table_20491 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the archive for episode with 6.6 million viewers? ### Response:
SELECT "Archive" FROM table_20491 WHERE "Viewers (in millions)" = '6.6'
### Instruction: CREATE TABLE table_203_802 ( id number, "persian unit" text, "persian name" text, "relation to previous unit" text, "metric value" text, "imperial value" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what persian unit is at least five feet ? ### Response:
SELECT "persian unit" FROM table_203_802 WHERE "imperial value" = 5
### Instruction: CREATE TABLE table_77136 ( "PMSC No." text, "Year" real, "1st Prize" text, "2nd Prize" text, "3rd Prize" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year did Kin-fung Leung get 2nd prize? ### Response:
SELECT "Year" FROM table_77136 WHERE "2nd Prize" = 'kin-fung leung'
### Instruction: CREATE TABLE table_203_146 ( id number, "year" number, "association" text, "category" text, "nominated work" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what award does cherry jones have the most of ? ### Response:
SELECT "association" FROM table_203_146 GROUP BY "association" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_31556 ( "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. -- What is the position of the player from the Ukraine? ### Response:
SELECT "Position" FROM table_31556 WHERE "Nationality" = 'ukraine'
### Instruction: CREATE TABLE table_51937 ( "Club" text, "Sport" text, "League" text, "Venue" text, "Established" real, "Championships" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the venues that host WNBA games? ### Response:
SELECT "Venue" FROM table_51937 WHERE "League" = 'wnba'
### Instruction: CREATE TABLE table_48209 ( "Winner" text, "Country" text, "Winter Olympics" real, "FIS Nordic World Ski Championships" text, "Holmenkollen" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the country for the 1972 winter olympics? ### Response:
SELECT "Country" FROM table_48209 WHERE "Winter Olympics" = '1972'
### Instruction: CREATE TABLE table_11069 ( "Pick" real, "Player" text, "Country of origin*" text, "PBA team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total number of picks of a team that had june longalong? ### Response:
SELECT SUM("Pick") FROM table_11069 WHERE "Player" = 'june longalong'
### Instruction: CREATE TABLE table_42016 ( "Name" text, "Total" text, "League" text, "Canadian Championship" text, "CONCACAF Champions League" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the league is 84 (4) what is the Canadian Championship? ### Response:
SELECT "Canadian Championship" FROM table_42016 WHERE "League" = '84 (4)'
### Instruction: CREATE TABLE table_13836704_6 ( _percentage_change_2008_2009 VARCHAR, airport VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the percent change from 08/09 for belfast international? ### Response:
SELECT _percentage_change_2008_2009 FROM table_13836704_6 WHERE airport = "Belfast International"
### Instruction: CREATE TABLE table_42 ( "Scheme" text, "Tariff code" text, "BTs retail price (regulated)" text, "Approx premium" text, "Prefixes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the premium associated with tariff code g9? ### Response:
SELECT "Approx premium" FROM table_42 WHERE "Tariff code" = 'g9'
### Instruction: CREATE TABLE table_37715 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what country has a score of 69-70-72=211? ### Response:
SELECT "Place" FROM table_37715 WHERE "Score" = '69-70-72=211'
### Instruction: CREATE TABLE table_50719 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the resolution for the fight against enrique guzman? ### Response:
SELECT "Res." FROM table_50719 WHERE "Opponent" = 'enrique guzman'
### Instruction: CREATE TABLE table_45155 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Qual of 145.144? ### Response:
SELECT "Rank" FROM table_45155 WHERE "Qual" = '145.144'