instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_name_19 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of participants in 2012 when there were less than 8 in 2013 and 7 in 2011? ### Response:
SELECT AVG(2012) FROM table_name_19 WHERE 2013 < 8 AND 2011 = 7
### Instruction: CREATE TABLE table_39518 ( "Source" text, "Date" text, "DeSUS" text, "Zares" text, "NLPD" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the source for 7% DeSUS? ### Response:
SELECT "Source" FROM table_39518 WHERE "DeSUS" = '7%'
### Instruction: CREATE TABLE table_36006 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Year was the Position 11th? ### Response:
SELECT COUNT("Year") FROM table_36006 WHERE "Position" = '11th'
### Instruction: CREATE TABLE table_name_60 ( losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3 ### Response:
SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = 10 AND appearances > 3
### Instruction: CREATE TABLE table_1013129_3 ( pick VARCHAR, college_junior_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the pick number of the player from Springfield Olympics (Nejhl)? ### Response:
SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)"
### Instruction: CREATE TABLE table_24057191_2 ( series INTEGER, average_viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What series had an average of 3.72 million people watching it? ### Response:
SELECT MAX(series) FROM table_24057191_2 WHERE average_viewers__millions_ = "3.72"
### Instruction: CREATE TABLE table_1566848_7 ( pictorials VARCHAR, centerfold_model VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were all the pictorials when the centerfold model was Rebekka Armstrong? ### Response:
SELECT COUNT(pictorials) FROM table_1566848_7 WHERE centerfold_model = "Rebekka Armstrong"
### Instruction: CREATE TABLE table_22297140_3 ( manner_of_departure VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the manner of leaving the team for the manager of Gostaresh Foolad? ### Response:
SELECT manner_of_departure FROM table_22297140_3 WHERE team = "Gostaresh Foolad"
### Instruction: CREATE TABLE table_57113 ( "College Name" text, "Location" text, "District" text, "Affiliation" text, "Estd" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location of the salem district? ### Response:
SELECT "Location" FROM table_57113 WHERE "District" = 'salem district'
### Instruction: CREATE TABLE table_name_60 ( tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open? ### Response:
SELECT 2004 FROM table_name_60 WHERE 2005 = "a" AND 2006 = "a" AND tournament = "us open"
### Instruction: CREATE TABLE table_11964154_9 ( game INTEGER, high_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the maximum game where high points is micka l gelabale (21) ### Response:
SELECT MAX(game) FROM table_11964154_9 WHERE high_points = "Mickaël Gelabale (21)"
### Instruction: CREATE TABLE table_name_45 ( release_date VARCHAR, time VARCHAR, recorded VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the release date record on 10/29/76 and a time on 2:50 ### Response:
SELECT release_date FROM table_name_45 WHERE time = "2:50" AND recorded = "10/29/76"
### Instruction: CREATE TABLE table_name_4 ( attendance VARCHAR, visitor VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team? ### Response:
SELECT attendance FROM table_name_4 WHERE visitor = "warriors" AND date = "2007-04-07"
### Instruction: CREATE TABLE table_56558 ( "Year" text, "League" text, "Record" text, "Reg. Season" text, "Playoffs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year had a record of 4-21? ### Response:
SELECT "Year" FROM table_56558 WHERE "Record" = '4-21'
### Instruction: CREATE TABLE table_name_17 ( m60a3_patton VARCHAR, m1a1_abrams VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the M60A3 when the M1A1 is T (Short Tons)? ### Response:
SELECT m60a3_patton FROM table_name_17 WHERE m1a1_abrams = "t (short tons)"
### Instruction: CREATE TABLE table_27155678_2 ( genus_species VARCHAR, accession_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the genus/species of accession number bx897699.1 ### Response:
SELECT genus_species FROM table_27155678_2 WHERE accession_number = "BX897699.1"
### Instruction: CREATE TABLE table_36963 ( "School" text, "City" text, "State" text, "Enrollment" real, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city was founded in 1857? ### Response:
SELECT "City" FROM table_36963 WHERE "Founded" = '1857'
### Instruction: CREATE TABLE table_203_790 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of wins ? ### Response:
SELECT COUNT(*) FROM table_203_790 WHERE "result" = 'w'
### Instruction: CREATE TABLE table_204_242 ( id number, "season" text, "record" text, "finish" text, "manager" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what season had the least amount of wins ? ### Response:
SELECT "season" FROM table_204_242 ORDER BY "record" LIMIT 1
### Instruction: CREATE TABLE table_67821 ( "Stage" text, "Route" text, "Distance" text, "Date" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date for luciano pagliarini ### Response:
SELECT "Date" FROM table_67821 WHERE "Winner" = 'luciano pagliarini'
### Instruction: CREATE TABLE table_204_295 ( id number, "model" text, "origin" text, "type" text, "version" text, "in service" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of models listed ? ### Response:
SELECT COUNT("model") FROM table_204_295
### Instruction: CREATE TABLE table_name_75 ( tie_no VARCHAR, score VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Tie no when Swansea City is the Away team with a Score of 2 2? ### Response:
SELECT tie_no FROM table_name_75 WHERE score = "2–2" AND away_team = "swansea city"
### Instruction: CREATE TABLE table_30057479_1 ( material VARCHAR, output_power VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many materials are there for output power of ~0.1 pw per cycle (calculated)? ### Response:
SELECT COUNT(material) FROM table_30057479_1 WHERE output_power = "~0.1 pW per cycle (calculated)"
### Instruction: CREATE TABLE table_name_57 ( defenses INTEGER, days_held VARCHAR, reign VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average defenses a champion with 404 days held and a reign larger than 1 has? ### Response:
SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1
### Instruction: CREATE TABLE table_name_21 ( year INTEGER, result VARCHAR, role_episode VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the earliest year when the result is won and the role/episode is fox mulder? ### Response:
SELECT MIN(year) FROM table_name_21 WHERE result = "won" AND role_episode = "fox mulder"
### Instruction: CREATE TABLE table_9373 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's k. j. choi's to par? ### Response:
SELECT "To par" FROM table_9373 WHERE "Player" = 'k. j. choi'
### Instruction: CREATE TABLE table_65644 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was Arsenal was the away team? ### Response:
SELECT "Date" FROM table_65644 WHERE "Away team" = 'arsenal'
### Instruction: CREATE TABLE table_name_67 ( team VARCHAR, driver VARCHAR, points VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong? ### Response:
SELECT team FROM table_name_67 WHERE points = 0 AND grid > 13 AND driver = "alex yoong"
### Instruction: CREATE TABLE table_name_38 ( attendance INTEGER, date VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance on September 19, 1971, after week 1? ### Response:
SELECT AVG(attendance) FROM table_name_38 WHERE date = "september 19, 1971" AND week > 1
### Instruction: CREATE TABLE table_18268826_1 ( directed_by VARCHAR, us_viewers__million_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the episode seen by 3.93 million people in the US? ### Response:
SELECT directed_by FROM table_18268826_1 WHERE us_viewers__million_ = "3.93"
### Instruction: CREATE TABLE table_2509202_2 ( guanay_municipality VARCHAR, combaya_municipality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number for the guanay municipality when combaya municipality is 0? ### Response:
SELECT guanay_municipality FROM table_2509202_2 WHERE combaya_municipality = "0"
### Instruction: CREATE TABLE table_60034 ( "Letter" text, "American" text, "British" text, "Australian" text, "Examples" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Australian equivalent to i / /? ### Response:
SELECT "Australian" FROM table_60034 WHERE "Letter" = 'i /ɪ/'
### Instruction: CREATE TABLE table_name_32 ( laps VARCHAR, time_retired VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the total number of Laps for time/retired for + 4 Laps and grid more than 20 ### Response:
SELECT COUNT(laps) FROM table_name_32 WHERE time_retired = "+ 4 laps" AND grid > 20
### Instruction: CREATE TABLE table_2259502_2 ( outcome VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the outcome in games where the score was 7-5, 2-6, [6-10]? ### Response:
SELECT outcome FROM table_2259502_2 WHERE score = "7-5, 2-6, [6-10]"
### Instruction: CREATE TABLE table_name_80 ( position INTEGER, goal_difference VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Position, when Goal Difference is '17', and when Wins is greater than 13? ### Response:
SELECT AVG(position) FROM table_name_80 WHERE goal_difference = 17 AND wins > 13
### Instruction: CREATE TABLE table_35611 ( "Rank" text, "Margin" text, "Opponent" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season has 2 as a rank? ### Response:
SELECT "Season" FROM table_35611 WHERE "Rank" = '2'
### Instruction: CREATE TABLE table_203_767 ( id number, "season" text, "club" text, "league" text, "apps" number, "goals" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the team with the most goals ### Response:
SELECT "club" FROM table_203_767 ORDER BY "goals" DESC LIMIT 1
### Instruction: CREATE TABLE table_name_55 ( gain VARCHAR, name VARCHAR, loss VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the total number of Gain that has the Name of williams, jonathan, and the Loss larger than 3? ### Response:
SELECT COUNT(gain) FROM table_name_55 WHERE name = "williams, jonathan" AND loss > 3
### Instruction: CREATE TABLE table_43882 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Player is 'Deane Beman'? ### Response:
SELECT "Score" FROM table_43882 WHERE "Player" = 'deane beman'
### Instruction: CREATE TABLE table_204_57 ( id number, "year" number, "film" text, "role" text, "language" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of films in tamil ? ### Response:
SELECT COUNT("film") FROM table_204_57 WHERE "language" = 'tamil'
### Instruction: CREATE TABLE table_name_59 ( Leading VARCHAR, opponent VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Leading Scorer has an Opponent of @ seattle, and a Record of 14-16? ### Response:
SELECT Leading AS scorer FROM table_name_59 WHERE opponent = "@ seattle" AND record = "14-16"
### Instruction: CREATE TABLE table_71079 ( "First game" real, "Played" real, "Drawn" real, "Lost" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the first game associated with over 4 losses? ### Response:
SELECT "First game" FROM table_71079 WHERE "Lost" > '4'
### Instruction: CREATE TABLE table_15124 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the venue for score of 1-3 ### Response:
SELECT "Venue" FROM table_15124 WHERE "Score" = '1-3'
### Instruction: CREATE TABLE table_name_92 ( goals INTEGER, matches VARCHAR, scorer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in? ### Response:
SELECT MIN(goals) FROM table_name_92 WHERE matches = "16" AND scorer = "park sang-in"
### Instruction: CREATE TABLE table_11951237_4 ( title VARCHAR, original_air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tittles have an original air date of March 19, 1998 ### Response:
SELECT title FROM table_11951237_4 WHERE original_air_date = "March 19, 1998"
### Instruction: CREATE TABLE table_56094 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which city has an ICAO of TBA? ### Response:
SELECT "City" FROM table_56094 WHERE "ICAO" = 'tba'
### Instruction: CREATE TABLE table_39807 ( "Name" text, "Novelty" text, "Status" text, "Authors" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Status with an Author that is woodruff? ### Response:
SELECT "Status" FROM table_39807 WHERE "Authors" = 'woodruff'
### Instruction: CREATE TABLE personfriend ( name text, friend text, year number ) CREATE TABLE person ( name text, age number, city text, gender text, job text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people are older than every engineer? ### Response:
SELECT COUNT(*) FROM person WHERE age > (SELECT MAX(age) FROM person WHERE job = 'engineer')
### Instruction: CREATE TABLE table_name_24 ( shirt_no INTEGER, height VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Shirt No for Henry Bell Cisnero whose height is less than 190? ### Response:
SELECT MAX(shirt_no) FROM table_name_24 WHERE height < 190 AND player = "henry bell cisnero"
### Instruction: CREATE TABLE table_62334 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date is Tie no 19? ### Response:
SELECT "Date" FROM table_62334 WHERE "Tie no" = '19'
### Instruction: CREATE TABLE table_name_25 ( Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles? ### Response:
SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = "kansas"
### Instruction: CREATE TABLE table_51465 ( "Driver" text, "Constructor" text, "Laps" text, "Time/Retired" text, "Grid" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the time for someone on grid 9? ### Response:
SELECT "Time/Retired" FROM table_51465 WHERE "Grid" = '9'
### Instruction: CREATE TABLE table_name_29 ( tournament VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tournament has a clay surface and partner henri leconte in 1983? ### Response:
SELECT tournament FROM table_name_29 WHERE surface = "clay" AND partner = "henri leconte" AND date = 1983
### Instruction: CREATE TABLE table_name_39 ( total INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total for teams with more than 1 gold, ranked over 3 and more than 3 bronze? ### Response:
SELECT AVG(total) FROM table_name_39 WHERE gold > 1 AND rank > 3 AND bronze > 3
### Instruction: CREATE TABLE table_name_4 ( grid INTEGER, driver VARCHAR, laps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid? ### Response:
SELECT MAX(grid) FROM table_name_4 WHERE driver = "giancarlo fisichella" AND laps < 52
### Instruction: CREATE TABLE table_11951237_2 ( title VARCHAR, original_air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes originally aired on August 31, 1995? ### Response:
SELECT COUNT(title) FROM table_11951237_2 WHERE original_air_date = "August 31, 1995"
### Instruction: CREATE TABLE table_name_26 ( japanese_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Japanese show on NHK had average ratings of 9.2%? ### Response:
SELECT japanese_title FROM table_name_26 WHERE tv_station = "nhk" AND average_ratings = "9.2%"
### Instruction: CREATE TABLE table_55093 ( "Title" text, "Year" real, "Country" text, "Music" text, "Uncut run time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What music is in the film before 1963? ### Response:
SELECT "Music" FROM table_55093 WHERE "Year" < '1963'
### Instruction: CREATE TABLE table_name_60 ( years INTEGER, tied VARCHAR, total_games VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of years associated with 51 games tied and over 1184 total games? ### Response:
SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184
### Instruction: CREATE TABLE table_34446 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team scored 5 5 1 1? ### Response:
SELECT "Home" FROM table_34446 WHERE "Record" = '5–5–1–1'
### Instruction: CREATE TABLE table_20799587_1 ( county VARCHAR, mccain_percentage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In how many counties did McCain get 65.72% of the votes? ### Response:
SELECT COUNT(county) FROM table_20799587_1 WHERE mccain_percentage = "65.72%"
### Instruction: CREATE TABLE table_6185 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the series record for the game on April 24? ### Response:
SELECT "Series" FROM table_6185 WHERE "Date" = 'april 24'
### Instruction: CREATE TABLE table_16803 ( "House Name" text, "Composition" text, "Named after" text, "Founded" real, "Colours" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the benue house made of? ### Response:
SELECT "Composition" FROM table_16803 WHERE "House Name" = 'Benue'
### Instruction: CREATE TABLE table_name_95 ( conference_joined VARCHAR, previous_conference VARCHAR, mascot VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers? ### Response:
SELECT conference_joined FROM table_name_95 WHERE previous_conference = "northwestern" AND mascot = "oilers"
### Instruction: CREATE TABLE table_17632217_1 ( number_of_clubs VARCHAR, runners_up VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many values for number of clubs have Shandong as the runner-up? ### Response:
SELECT COUNT(number_of_clubs) FROM table_17632217_1 WHERE runners_up = "Shandong"
### Instruction: CREATE TABLE table_2159537_3 ( district VARCHAR, date_successor_seated VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what district was the successor seated August 31, 1943? ### Response:
SELECT district FROM table_2159537_3 WHERE date_successor_seated = "August 31, 1943"
### Instruction: CREATE TABLE table_65181 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the tie number of 32? ### Response:
SELECT "Date" FROM table_65181 WHERE "Tie no" = '32'
### Instruction: CREATE TABLE table_name_28 ( visitor VARCHAR, game VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees? ### Response:
SELECT visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584
### Instruction: CREATE TABLE table_5090 ( "Station Code" text, "Station Name" text, "Arrival" text, "Departure" text, "Platform" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Station Name of the Arrival Starting Station? ### Response:
SELECT "Station Name" FROM table_5090 WHERE "Arrival" = 'starting station'
### Instruction: CREATE TABLE table_68201 ( "Team" text, "City" text, "Stadium" text, "Manager" text, "Past season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what city has a past season of n/a? ### Response:
SELECT "City" FROM table_68201 WHERE "Past season" = 'n/a'
### Instruction: CREATE TABLE table_36365 ( "Year" real, "Location" text, "Gold" text, "Silver" text, "Bronze" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which nation(s) won silver in Doha? ### Response:
SELECT "Silver" FROM table_36365 WHERE "Location" = 'doha'
### Instruction: CREATE TABLE table_58548 ( "Name" text, "Country" text, "Type" text, "Moving from" text, "Transfer window" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country is the athlete moving from Everton from? ### Response:
SELECT "Country" FROM table_58548 WHERE "Moving from" = 'everton'
### Instruction: CREATE TABLE table_50902 ( "Team" text, "Coach" text, "Home Ground" text, "Location" text, "Founded" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the coach of the team from Port Pirie? ### Response:
SELECT "Coach" FROM table_50902 WHERE "Location" = 'port pirie'
### Instruction: CREATE TABLE table_name_3 ( date INTEGER, length VARCHAR, builder VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Length of feet 9inches (m), and a Builder of portland terminal company? ### Response:
SELECT AVG(date) FROM table_name_3 WHERE length = "feet 9inches (m)" AND builder = "portland terminal company"
### Instruction: CREATE TABLE table_8854 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "Former Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Position has a Player of bernard thompson? ### Response:
SELECT "Position" FROM table_8854 WHERE "Player" = 'bernard thompson'
### Instruction: CREATE TABLE table_70381 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On the date of June 8 what was the record? ### Response:
SELECT "Record" FROM table_70381 WHERE "Date" = 'june 8'
### Instruction: CREATE TABLE table_name_7 ( result INTEGER, name VARCHAR, reaction_time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167? ### Response:
SELECT MAX(result) FROM table_name_7 WHERE name = "wallace spearmon" AND reaction_time > 0.167
### Instruction: CREATE TABLE table_37581 ( "Pick" real, "Player" text, "Team" text, "Position" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pick number for tulane university? ### Response:
SELECT SUM("Pick") FROM table_37581 WHERE "School" = 'tulane university'
### Instruction: CREATE TABLE table_name_60 ( d_45_o VARCHAR, d_41_√ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the value of D 45 O, when the value of D 41 is r 41 ? ### Response:
SELECT d_45_o FROM table_name_60 WHERE d_41_√ = "r 41 √"
### Instruction: CREATE TABLE table_31156 ( "Division" text, "Brigade" text, "Regiment" text, "Colonel" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which regiment was in the Fulton County ### Response:
SELECT "Regiment" FROM table_31156 WHERE "County" = 'Fulton'
### Instruction: CREATE TABLE table_23791 ( "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 shareholders have 0 A shares? ### Response:
SELECT "shareholder name" FROM table_23791 WHERE "A shares" = '0'
### Instruction: CREATE TABLE table_79773 ( "Region/Country" text, "Local name" text, "Network" text, "Dates aired" text, "Starring" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the star for the Vara network? ### Response:
SELECT "Starring" FROM table_79773 WHERE "Network" = 'vara'
### Instruction: CREATE TABLE table_54516 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps were completed in grid 18? ### Response:
SELECT SUM("Laps") FROM table_54516 WHERE "Grid" = '18'
### Instruction: CREATE TABLE table_13252 ( "Year" real, "Champion" text, "City" text, "LLWS" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the champion in 2008? ### Response:
SELECT "Record" FROM table_13252 WHERE "Year" = '2008'
### Instruction: CREATE TABLE table_14310 ( "Date" text, "Opponent" text, "City" text, "Result" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the game versus Tulsa? ### Response:
SELECT "Result" FROM table_14310 WHERE "Opponent" = 'tulsa'
### Instruction: CREATE TABLE table_name_73 ( category VARCHAR, nominee_s_ VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the category of the award that John Frank Levey was nominated for after 1995? ### Response:
SELECT category FROM table_name_73 WHERE nominee_s_ = "john frank levey" AND year > 1995
### Instruction: CREATE TABLE table_27277284_28 ( ht VARCHAR, release_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the ht for the model released on June 4, 2008? ### Response:
SELECT ht FROM table_27277284_28 WHERE release_date = "June 4, 2008"
### Instruction: CREATE TABLE table_name_25 ( rank VARCHAR, swing_to_gain VARCHAR, constituency VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rank was caerphilly with a Swing smaller than 6.92? ### Response:
SELECT COUNT(rank) FROM table_name_25 WHERE swing_to_gain < 6.92 AND constituency = "caerphilly"
### Instruction: CREATE TABLE table_204_336 ( id number, "operators" text, "named trains" text, "destination" text, "year begun" text, "year discontinued" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of year begun ? ### Response:
SELECT COUNT("year begun") FROM table_204_336
### Instruction: CREATE TABLE table_name_25 ( date VARCHAR, opponent VARCHAR, loss VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has an Opponent of @ mariners, and a Loss of hern ndez (0-1)? ### Response:
SELECT date FROM table_name_25 WHERE opponent = "@ mariners" AND loss = "hernández (0-1)"
### Instruction: CREATE TABLE table_5443 ( "Driver" text, "Seasons" text, "Entries" real, "3rd places" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which seasons have fernando alonso as the driver? ### Response:
SELECT "Seasons" FROM table_5443 WHERE "Driver" = 'fernando alonso'
### Instruction: CREATE TABLE table_66137 ( "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 notes when the rank is less than 2? ### Response:
SELECT "Notes" FROM table_66137 WHERE "Rank" < '2'
### Instruction: CREATE TABLE table_22982552_9 ( class_year INTEGER, highlight_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What class year was the player whose highlights were 35 career INTs from? ### Response:
SELECT MIN(class_year) FROM table_22982552_9 WHERE highlight_s_ = "35 career INTs"
### Instruction: CREATE TABLE table_23995075_2 ( confederation VARCHAR, remaining_places_in_finals VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the confederation when there are 4 places remaining in the finals? ### Response:
SELECT confederation FROM table_23995075_2 WHERE remaining_places_in_finals = "4"
### Instruction: CREATE TABLE table_21436373_8 ( stadium VARCHAR, result_games VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which stadium had the result/game montreal 20 @ ottawa 10? ### Response:
SELECT stadium FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10"
### Instruction: CREATE TABLE station ( LOCATION VARCHAR, number_of_platforms VARCHAR, total_passengers VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers. ### Response:
SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25
### Instruction: CREATE TABLE table_32666 ( "Player" text, "Nationality" text, "Position" text, "From" real, "School/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position is the player from 1987? ### Response:
SELECT "Position" FROM table_32666 WHERE "From" = '1987'
### Instruction: CREATE TABLE table_1637041_2 ( avg_start VARCHAR, winnings VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the average start(s) when he had $1,663,868? ### Response:
SELECT avg_start FROM table_1637041_2 WHERE winnings = "$1,663,868"
### Instruction: CREATE TABLE table_71187 ( "Event" text, "Time" text, "Venue" text, "Date" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which event had the time 45.74? ### Response:
SELECT "Event" FROM table_71187 WHERE "Time" = '45.74'
### Instruction: CREATE TABLE table_name_57 ( constellation VARCHAR, declination___j2000__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What constellation has a Declination ( J2000 ) of 32 39 ? ### Response:
SELECT constellation FROM table_name_57 WHERE declination___j2000__ = "°32′39″"