instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_name_85 ( transfer_window VARCHAR, ends VARCHAR, country VARCHAR, type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the transfer window in esp with promoted type and more than 2010 ends? ### Response:
SELECT transfer_window FROM table_name_85 WHERE country = "esp" AND type = "promoted" AND ends > 2010
### Instruction: CREATE TABLE table_name_87 ( frequency INTEGER, type VARCHAR, brand VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Frequency, when Type is 'Norte o', and when Brand is 'La Cotorra'? ### Response:
SELECT AVG(frequency) FROM table_name_87 WHERE type = "norteño" AND brand = "la cotorra"
### Instruction: CREATE TABLE table_name_54 ( total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total when gold is 0, bronze is 0, and silver is smaller than 1? ### Response:
SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1
### Instruction: CREATE TABLE table_11621915_1 ( purse__ INTEGER, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the maximum purse( $ ) with score value of 204 (-9) ### Response:
SELECT MAX(purse__) AS $__ FROM table_11621915_1 WHERE score = "204 (-9)"
### Instruction: CREATE TABLE table_75491 ( "Version" text, "Length" text, "Album" text, "Remixed by" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Album of les mots had what lowest year? ### Response:
SELECT MIN("Year") FROM table_75491 WHERE "Album" = 'les mots'
### Instruction: CREATE TABLE table_name_44 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R? ### Response:
SELECT 1993 FROM table_name_44 WHERE 1990 = "qf" AND 1995 = "2r"
### Instruction: CREATE TABLE table_67664 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record after the April 6 game? ### Response:
SELECT "Record" FROM table_67664 WHERE "Date" = 'april 6'
### Instruction: CREATE TABLE table_202_80 ( id number, "name" text, "metres" number, "feet" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many peaks in the dolomites are above 10,000 feet ? ### Response:
SELECT COUNT(*) FROM table_202_80 WHERE "feet" >= 10000
### Instruction: CREATE TABLE table_52040 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What p;layer attended Concordia College? ### Response:
SELECT "Player" FROM table_52040 WHERE "College" = 'concordia'
### Instruction: CREATE TABLE table_64885 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average lane for Australia? ### Response:
SELECT AVG("Lane") FROM table_64885 WHERE "Nationality" = 'australia'
### Instruction: CREATE TABLE table_56768 ( "Pick" real, "Round" text, "Player" text, "Position" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was steve bartalo picked? ### Response:
SELECT MAX("Pick") FROM table_56768 WHERE "Player" = 'steve bartalo'
### Instruction: CREATE TABLE teachers ( lastname text, firstname text, classroom number ) CREATE TABLE list ( lastname text, firstname text, grade number, classroom number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For each classroom, show the classroom number and find how many students are using it. ### Response:
SELECT classroom, COUNT(*) FROM list GROUP BY classroom
### Instruction: CREATE TABLE table_12284476_8 ( denomination VARCHAR, year VARCHAR, reverse VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the denomination with year being 2008 and reverse being football ### Response:
SELECT denomination FROM table_12284476_8 WHERE year = 2008 AND reverse = "Football"
### Instruction: CREATE TABLE table_name_94 ( score VARCHAR, outcome VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score of the match on May 21, 1984 with Outcome of runner-up? ### Response:
SELECT score FROM table_name_94 WHERE outcome = "runner-up" AND date = "may 21, 1984"
### Instruction: CREATE TABLE table_47951 ( "Date" text, "Region" text, "Label" text, "Catalogue" text, "Format" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Label, when Date is 1987? ### Response:
SELECT "Label" FROM table_47951 WHERE "Date" = '1987'
### Instruction: CREATE TABLE table_5449 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Save" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much was the loss of April 25? ### Response:
SELECT "Loss" FROM table_5449 WHERE "Date" = 'april 25'
### Instruction: CREATE TABLE table_203_639 ( id number, "year" text, "number" text, "name" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long was w.b. kingsmill club president ? ### Response:
SELECT "year" - "year" FROM table_203_639 WHERE "name" = 'w.b. kingsmill'
### Instruction: CREATE TABLE table_name_43 ( lost INTEGER, pool_round VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the highest Lost that has the Pool/Round of pool 2, and the Played smaller than 6? ### Response:
SELECT MAX(lost) FROM table_name_43 WHERE pool_round = "pool 2" AND played < 6
### Instruction: CREATE TABLE table_69143 ( "Round" real, "Name" text, "Position" text, "School" text, "Signed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the player that played position 3b? ### Response:
SELECT "Name" FROM table_69143 WHERE "Position" = '3b'
### Instruction: CREATE TABLE table_20573232_1 ( nader_percentage VARCHAR, obama_percentage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Nader's percentage when Obama is 44.6%? ### Response:
SELECT nader_percentage FROM table_20573232_1 WHERE obama_percentage = "44.6%"
### Instruction: CREATE TABLE table_27988408_1 ( production_code INTEGER, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least production code for bryan moore & chris peterson ### Response:
SELECT MIN(production_code) FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson"
### Instruction: CREATE TABLE table_1342198_25 ( first_elected VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many were first elected when the incumbent was Morgan M. Moulder? ### Response:
SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder"
### Instruction: CREATE TABLE table_name_41 ( played INTEGER, club VARCHAR, goal_difference VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest play with ue figueres club and a goal difference more than 16? ### Response:
SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 16
### Instruction: CREATE TABLE table_name_34 ( average VARCHAR, total_points VARCHAR, rank_by_average VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total average with 54 total points and a rank less than 10? ### Response:
SELECT COUNT(average) FROM table_name_34 WHERE total_points = 54 AND rank_by_average < 10
### Instruction: CREATE TABLE table_24270 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Derik Fury plays for which college? ### Response:
SELECT "College" FROM table_24270 WHERE "Player" = 'Derik Fury'
### Instruction: CREATE TABLE table_5439 ( "Driver" text, "Seasons" text, "Entries" real, "3rd places" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver has 23 as 3rd places? ### Response:
SELECT "Driver" FROM table_5439 WHERE "3rd places" = '23'
### Instruction: CREATE TABLE table_62262 ( "Year" real, "Award Ceremony" text, "Category" text, "Nominee" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was jack cole nominated? ### Response:
SELECT "Year" FROM table_62262 WHERE "Nominee" = 'jack cole'
### Instruction: CREATE TABLE table_name_74 ( venue VARCHAR, winner VARCHAR, crowd VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Sydney Roosters won with a Crown of more than 7,426, what was the Venue? ### Response:
SELECT venue FROM table_name_74 WHERE winner = "sydney roosters" AND crowd > 7 OFFSET 426
### Instruction: CREATE TABLE table_name_95 ( away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the away team in a tie no larger than 16 with forest green rovers at home? ### Response:
SELECT away_team FROM table_name_95 WHERE tie_no > 16 AND home_team = "forest green rovers"
### Instruction: CREATE TABLE table_46864 ( "State" text, "Type" text, "Name" text, "Title" text, "Royal house" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of state was Chu? ### Response:
SELECT "Type" FROM table_46864 WHERE "State" = 'chu'
### Instruction: CREATE TABLE table_67217 ( "Year" real, "Award" text, "Category" text, "Title" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Title is listed for the Year of 1999? ### Response:
SELECT "Title" FROM table_67217 WHERE "Year" = '1999'
### Instruction: CREATE TABLE table_name_67 ( winning_driver VARCHAR, winning_team VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver won the Indianapolis 500 the year the Chaparral team also won it? ### Response:
SELECT winning_driver FROM table_name_67 WHERE winning_team = "chaparral" AND name = "indianapolis 500"
### Instruction: CREATE TABLE table_name_64 ( lane INTEGER, react VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest lane when react is more than 0.164 and the nationality is guinea? ### Response:
SELECT MIN(lane) FROM table_name_64 WHERE react > 0.164 AND nationality = "guinea"
### Instruction: CREATE TABLE table_name_85 ( version INTEGER, code VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the lowest version with a code of u+1034a that began after 2001. ### Response:
SELECT MIN(version) FROM table_name_85 WHERE code = "u+1034a" AND year > 2001
### Instruction: CREATE TABLE table_name_2 ( draws INTEGER, against VARCHAR, byes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average value for Draws, when Against is '2177', and when Byes is less than 4? ### Response:
SELECT AVG(draws) FROM table_name_2 WHERE against = 2177 AND byes < 4
### Instruction: CREATE TABLE table_27700375_8 ( high_rebounds VARCHAR, high_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who got the high rebounds if Brook Lopez (15) earned the high points? ### Response:
SELECT high_rebounds FROM table_27700375_8 WHERE high_points = "Brook Lopez (15)"
### Instruction: CREATE TABLE table_name_79 ( days VARCHAR, party VARCHAR, constituency VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone? ### Response:
SELECT days FROM table_name_79 WHERE party = "ulster unionist" AND constituency = "fermanagh and south tyrone"
### Instruction: CREATE TABLE table_1007688_1 ( smallpox INTEGER, typhoid_fever VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of smallpox when typhoid fever is 293 ### Response:
SELECT MAX(smallpox) FROM table_1007688_1 WHERE typhoid_fever = 293
### Instruction: CREATE TABLE table_name_73 ( poles INTEGER, series VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of poles of the firestone indy lights series before the 2009 season? ### Response:
SELECT SUM(poles) FROM table_name_73 WHERE series = "firestone indy lights series" AND season < 2009
### Instruction: CREATE TABLE table_name_47 ( manufacturer VARCHAR, laps VARCHAR, rider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Manufacturer, when Laps is 26, and when Rider is Aleix Espargaro? ### Response:
SELECT manufacturer FROM table_name_47 WHERE laps = 26 AND rider = "aleix espargaro"
### Instruction: CREATE TABLE table_65371 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the the Best of rodolfo lav n ### Response:
SELECT "Best" FROM table_65371 WHERE "Name" = 'rodolfo lavín'
### Instruction: CREATE TABLE table_name_71 ( top_25 INTEGER, top_5 VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11? ### Response:
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11
### Instruction: CREATE TABLE table_53568 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score June 22? ### Response:
SELECT "Loss" FROM table_53568 WHERE "Date" = 'june 22'
### Instruction: CREATE TABLE table_8919 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Spain's score? ### Response:
SELECT "Score" FROM table_8919 WHERE "Country" = 'spain'
### Instruction: CREATE TABLE table_29789_1 ( international_tourist_arrivals__2012_ VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many international tourists visited Russia in 2012? ### Response:
SELECT international_tourist_arrivals__2012_ FROM table_29789_1 WHERE country = "Russia"
### Instruction: CREATE TABLE table_10592536_8 ( date_of_appointment VARCHAR, replaced_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of appointment when replaced by is roy hodgson? ### Response:
SELECT date_of_appointment FROM table_10592536_8 WHERE replaced_by = "Roy Hodgson"
### Instruction: CREATE TABLE table_name_42 ( build_date VARCHAR, total_produced VARCHAR, model VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the build date of the locomotives with a total produced less than 45 and a fb-2 model? ### Response:
SELECT build_date FROM table_name_42 WHERE total_produced < 45 AND model = "fb-2"
### Instruction: CREATE TABLE table_68351 ( "Name" text, "Park" text, "Country" text, "Inversions" real, "Opened" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the opened for spain ### Response:
SELECT "Opened" FROM table_68351 WHERE "Country" = 'spain'
### Instruction: CREATE TABLE table_9136 ( "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 was the score fore the away team Dartford? ### Response:
SELECT "Score" FROM table_9136 WHERE "Away team" = 'dartford'
### Instruction: CREATE TABLE table_20631 ( "#" real, "Date" text, "at/vs." text, "Opponent" text, "Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most attendance ### Response:
SELECT MAX("Attendance") FROM table_20631
### Instruction: CREATE TABLE table_name_13 ( successful_defenses INTEGER, location VARCHAR, reign VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of successful defenses in brandon, florida and a reign less than 1? ### Response:
SELECT MAX(successful_defenses) FROM table_name_13 WHERE location = "brandon, florida" AND reign < 1
### Instruction: CREATE TABLE table_229917_2 ( date__ddmmyyyy_ VARCHAR, tail_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the airplane with tail number RA-85282 crash? ### Response:
SELECT date__ddmmyyyy_ FROM table_229917_2 WHERE tail_number = "RA-85282"
### Instruction: CREATE TABLE table_5468 ( "Year" real, "Champion" text, "Score" text, "Opponent" text, "State Champion Head coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the score in 1990 ### Response:
SELECT "Score" FROM table_5468 WHERE "Year" = '1990'
### Instruction: CREATE TABLE table_22050544_4 ( elapsed_time VARCHAR, prize VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the elapsed time for the championship that had $9,377.42 in prize money? ### Response:
SELECT elapsed_time FROM table_22050544_4 WHERE prize = "$9,377.42"
### Instruction: CREATE TABLE table_13008 ( "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. -- Name the team with a tie number of 6. ### Response:
SELECT "Date" FROM table_13008 WHERE "Tie no" = '6'
### Instruction: CREATE TABLE table_name_23 ( callsign VARCHAR, power__kw_ VARCHAR, branding VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the callsign of the 5kW Sonshine Radio Cotabato? ### Response:
SELECT callsign FROM table_name_23 WHERE power__kw_ = "5kw" AND branding = "sonshine radio cotabato"
### Instruction: CREATE TABLE table_35301 ( "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 February 11 as the date? ### Response:
SELECT "Visitor" FROM table_35301 WHERE "Date" = 'february 11'
### Instruction: CREATE TABLE table_39798 ( "Name" text, "Status" text, "Authors" text, "Unit" text, "Location" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What unit is in Mongolia? ### Response:
SELECT "Unit" FROM table_39798 WHERE "Location" = 'mongolia'
### Instruction: CREATE TABLE patient ( name VARCHAR, ssn VARCHAR ) CREATE TABLE appointment ( patient VARCHAR, start VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the patient who made the most recent appointment? ### Response:
SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1
### Instruction: CREATE TABLE table_58299 ( "Team" text, "Make" text, "Driver" text, "Sponsor" text, "Car Owner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who sponsors driver neil bonnett? ### Response:
SELECT "Sponsor" FROM table_58299 WHERE "Driver" = 'neil bonnett'
### Instruction: CREATE TABLE table_2560677_1 ( fan_title VARCHAR, end_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the fan title with an end date of 1967-11-12? ### Response:
SELECT fan_title FROM table_2560677_1 WHERE end_date = "1967-11-12"
### Instruction: CREATE TABLE table_name_55 ( rank INTEGER, current_seating_capacity VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Rank, when the Current Seating Capacity is 137,000? ### Response:
SELECT MIN(rank) FROM table_name_55 WHERE current_seating_capacity = 137 OFFSET 000
### Instruction: CREATE TABLE table_72533 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most field goals ### Response:
SELECT MAX("Field goals") FROM table_72533
### Instruction: CREATE TABLE table_23018775_3 ( avg_speed VARCHAR, lap_four VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average speed where lap four's time was 22.9049? ### Response:
SELECT avg_speed FROM table_23018775_3 WHERE lap_four = "22.9049"
### Instruction: CREATE TABLE table_28137918_5 ( new_adherents_per_year VARCHAR, religion VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of new adherents per year for confucianism ### Response:
SELECT COUNT(new_adherents_per_year) FROM table_28137918_5 WHERE religion = "Confucianism"
### Instruction: CREATE TABLE table_203_543 ( id number, "year" text, "show" text, "role" text, "channel" text, "extra" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which show was the last to air ? ### Response:
SELECT "show" FROM table_203_543 ORDER BY "year" DESC LIMIT 1
### Instruction: CREATE TABLE table_13557843_7 ( high_assists VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many high assbeingts with score being l 90 98 (ot) ### Response:
SELECT COUNT(high_assists) FROM table_13557843_7 WHERE score = "L 90–98 (OT)"
### Instruction: CREATE TABLE table_11728 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the record 3-14-6? ### Response:
SELECT "Date" FROM table_11728 WHERE "Record" = '3-14-6'
### Instruction: CREATE TABLE table_11734041_16 ( player VARCHAR, years_for_rockets VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total amount of players for the rockets in 1998 only? ### Response:
SELECT COUNT(player) FROM table_11734041_16 WHERE years_for_rockets = "1998"
### Instruction: CREATE TABLE table_22824199_1 ( three_pointers INTEGER, free_throws VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Of the players with 50 free throws, what is the lowest number of three pointers? ### Response:
SELECT MIN(three_pointers) FROM table_22824199_1 WHERE free_throws = 50
### Instruction: CREATE TABLE table_53656 ( "Member" text, "Party" text, "Electorate" text, "State" text, "First elected" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What state has Richard Foster as a member? ### Response:
SELECT "State" FROM table_53656 WHERE "Member" = 'richard foster'
### Instruction: CREATE TABLE table_33892 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date was the Venue Los Angeles? ### Response:
SELECT "Date" FROM table_33892 WHERE "Venue" = 'los angeles'
### Instruction: CREATE TABLE table_name_90 ( status VARCHAR, area_km_2 VARCHAR, population VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What status has an area km 2 less than 27.82, with 352 as the population? ### Response:
SELECT status FROM table_name_90 WHERE area_km_2 < 27.82 AND population = 352
### Instruction: CREATE TABLE table_67008 ( "Country" text, "Film title used in nomination" text, "Language" text, "Original title" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the Romanian film? ### Response:
SELECT "Director" FROM table_67008 WHERE "Language" = 'romanian'
### Instruction: CREATE TABLE table_65953 ( "Rank" real, "Athlete" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the athlete from Hong Kong? ### Response:
SELECT "Athlete" FROM table_65953 WHERE "Country" = 'hong kong'
### Instruction: CREATE TABLE Documents_to_be_destroyed ( Destruction_Authorised_by_Employee_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the id of each employee and the number of document destruction authorised by that employee. ### Response:
SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID
### Instruction: CREATE TABLE table_74869 ( "Team" text, "Class" text, "Chassis" text, "Engine" text, "Driver" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the team whose class is Rotax Light? ### Response:
SELECT "Team" FROM table_74869 WHERE "Class" = 'rotax light'
### Instruction: CREATE TABLE table_name_68 ( lane INTEGER, time VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8? ### Response:
SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8
### Instruction: CREATE TABLE table_name_1 ( surface VARCHAR, opponents_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what surface was the tournament with opponents kathleen horvath marcella mesker in the finals? ### Response:
SELECT surface FROM table_name_1 WHERE opponents_in_the_final = "kathleen horvath marcella mesker"
### Instruction: CREATE TABLE table_name_21 ( location VARCHAR, _number___county VARCHAR, enrollment VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location with enrollment of 316 and county is 68 Randolph? ### Response:
SELECT location FROM table_name_21 WHERE _number___county = "68 randolph" AND enrollment = 316
### Instruction: CREATE TABLE table_name_57 ( position VARCHAR, years VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position was played by the player during 1986 1991 1997 1999? ### Response:
SELECT position FROM table_name_57 WHERE years = "1986 – 1991 1997 – 1999"
### Instruction: CREATE TABLE table_name_22 ( round VARCHAR, method VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of rounds when method is tko (punches) and time is 0:40? ### Response:
SELECT COUNT(round) FROM table_name_22 WHERE method = "tko (punches)" AND time = "0:40"
### Instruction: CREATE TABLE table_12886178_4 ( points_for VARCHAR, points VARCHAR, won VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the points for count for the club with 41 points and 8 won games? ### Response:
SELECT points_for FROM table_12886178_4 WHERE points = "41" AND won = "8"
### Instruction: CREATE TABLE table_203_447 ( id number, "constituency" number, "region" text, "name" text, "party" text, "last elected" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the first name on the table ? ### Response:
SELECT "name" FROM table_203_447 WHERE id = 1
### Instruction: CREATE TABLE table_name_63 ( song_choice VARCHAR, original_artist VARCHAR, order__number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Song choice when The Beatles were the original artist, with an order # of 4? ### Response:
SELECT song_choice FROM table_name_63 WHERE original_artist = "the beatles" AND order__number = "4"
### Instruction: CREATE TABLE table_203_51 ( id number, "channel" text, "definition" text, "organisation" text, "ownership" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many private owned channels are there ? ### Response:
SELECT COUNT("channel") FROM table_203_51 WHERE "ownership" = 'private'
### Instruction: CREATE TABLE table_204_547 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many lanes were there ? ### Response:
SELECT COUNT("lane") FROM table_204_547
### Instruction: CREATE TABLE table_name_58 ( attendance INTEGER, opponent VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of the attendance during the game against the philadelphia eagles after week 9? ### Response:
SELECT SUM(attendance) FROM table_name_58 WHERE opponent = "philadelphia eagles" AND week > 9
### Instruction: CREATE TABLE table_61278 ( "Location" text, "Year" real, "Champion" text, "Runner-up" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What location did Anke Huber win the championship? ### Response:
SELECT "Location" FROM table_61278 WHERE "Champion" = 'anke huber'
### Instruction: CREATE TABLE table_53362 ( "City" text, "Country" text, "Airport" text, "IATA" text, "ICAO" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the IATA of wmkk ### Response:
SELECT "IATA" FROM table_53362 WHERE "ICAO" = 'wmkk'
### Instruction: CREATE TABLE table_46525 ( "Date" text, "Race" text, "Circuit" text, "Location" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the race on 23 october? ### Response:
SELECT "Race" FROM table_46525 WHERE "Date" = '23 october'
### Instruction: CREATE TABLE table_4812 ( "Rank" real, "Heat : Lane" text, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is sun yang's lowest rank? ### Response:
SELECT MIN("Rank") FROM table_4812 WHERE "Name" = 'sun yang'
### Instruction: CREATE TABLE table_38386 ( "Year" real, "English title" text, "Original title" text, "Country" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Original title with a Country that is canada? ### Response:
SELECT "Original title" FROM table_38386 WHERE "Country" = 'canada'
### Instruction: CREATE TABLE table_77918 ( "Year" real, "Organisation" text, "Ceremony" text, "Award" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the award for #100? ### Response:
SELECT "Award" FROM table_77918 WHERE "Result" = '#100'
### Instruction: CREATE TABLE table_10353 ( "Player" text, "Lost" text, "Drawn" text, "Ties" text, "Matches" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many ties drawed at 20? ### Response:
SELECT "Ties" FROM table_10353 WHERE "Drawn" = '20'
### Instruction: CREATE TABLE table_33294 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest attendance in week 1? ### Response:
SELECT MIN("Attendance") FROM table_33294 WHERE "Week" = '1'
### Instruction: CREATE TABLE table_40337 ( "Year" real, "Category" text, "Champion" text, "Runner-up" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which category had a year of 1991? ### Response:
SELECT "Category" FROM table_40337 WHERE "Year" = '1991'
### Instruction: CREATE TABLE table_26201 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Doug Borden's position? ### Response:
SELECT "Position" FROM table_26201 WHERE "Player" = 'Doug Borden'
### Instruction: CREATE TABLE table_17335602_1 ( winners_share___ INTEGER, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the winner's share in the wegmans lpga championship? ### Response:
SELECT MAX(winners_share___) AS $__ FROM table_17335602_1 WHERE tournament = "Wegmans LPGA Championship"
### Instruction: CREATE TABLE table_name_59 ( played INTEGER, team VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Played that's for the Team of Cerro Porte o, with a Position that's larger than 1? ### Response:
SELECT MAX(played) FROM table_name_59 WHERE team = "cerro porteño" AND position > 1