instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_44720 ( "Year" text, "Winner" text, "Country" text, "Score" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Country of the Championship with a Score of 293? ### Response:
SELECT "Country" FROM table_44720 WHERE "Score" = '293'
### Instruction: CREATE TABLE table_75081 ( "Venue" text, "Home" text, "Guest" text, "Score" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score for the game with FK Bratstvo as home team? ### Response:
SELECT "Score" FROM table_75081 WHERE "Home" = 'fk bratstvo'
### Instruction: CREATE TABLE table_name_41 ( rocket VARCHAR, block VARCHAR, cospar_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rocket has a Block of block i and a COSPAR ID of 1995-060a? ### Response:
SELECT rocket FROM table_name_41 WHERE block = "block i" AND cospar_id = "1995-060a"
### Instruction: CREATE TABLE table_name_84 ( fs VARCHAR, sp INTEGER, points VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest SP+FS that has 131.02 Points, and a Rank larger than 15? ### Response:
SELECT MAX(sp) + fs FROM table_name_84 WHERE points = 131.02 AND rank > 15
### Instruction: CREATE TABLE table_name_61 ( joined INTEGER, nickname VARCHAR, enrollment VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Joined has a Nickname of knights, and an Enrollment larger than 2,960? ### Response:
SELECT SUM(joined) FROM table_name_61 WHERE nickname = "knights" AND enrollment > 2 OFFSET 960
### Instruction: CREATE TABLE table_name_95 ( played INTEGER, position VARCHAR, drawn VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6? ### Response:
SELECT MAX(played) FROM table_name_95 WHERE drawn = 5 AND team = "palmeiras" AND position < 6
### Instruction: CREATE TABLE table_name_49 ( decile VARCHAR, roll VARCHAR, authority VARCHAR, area VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total Decile that has a state authority, fairlie area and roll smarter than 206? ### Response:
SELECT COUNT(decile) FROM table_name_49 WHERE authority = "state" AND area = "fairlie" AND roll < 206
### Instruction: CREATE TABLE table_76692 ( "Date" text, "Time" text, "Opponent" text, "Score" text, "Site" text, "City" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which site has a Score of 0-1? ### Response:
SELECT "Site" FROM table_76692 WHERE "Score" = '0-1'
### Instruction: CREATE TABLE table_40439 ( "Band" text, "Value" text, "Ratio" text, "Ratio as %" text, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Band has a Ratio of 13/9? ### Response:
SELECT "Band" FROM table_40439 WHERE "Ratio" = '13/9'
### Instruction: CREATE TABLE student ( id VARCHAR, dept_name VARCHAR ) CREATE TABLE advisor ( s_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the id of the instructor who advises of all students from History department? ### Response:
SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'
### Instruction: CREATE TABLE table_name_23 ( tonnage_grt INTEGER, type VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway? ### Response:
SELECT SUM(tonnage_grt) FROM table_name_23 WHERE type = "cargo ship" AND nationality = "norway"
### Instruction: CREATE TABLE table_12004 ( "Name" text, "District (Region)" text, "Took Office" text, "Left Office" text, "Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which deputy took office in 1976? ### Response:
SELECT "Name" FROM table_12004 WHERE "Took Office" = '1976'
### Instruction: CREATE TABLE table_72518 ( "School" text, "Winners" real, "Finalists" real, "Total Finals" real, "Year of last win" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the names that had a finalist score of 2? ### Response:
SELECT "School" FROM table_72518 WHERE "Finalists" = '2'
### Instruction: CREATE TABLE table_name_95 ( winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What driver won in the xv grand prix de l'albigeois in a vehicle by ferrari? ### Response:
SELECT winning_driver FROM table_name_95 WHERE constructor = "ferrari" AND race_name = "xv grand prix de l'albigeois"
### Instruction: CREATE TABLE table_204_952 ( id number, "rank" number, "player" text, "county" text, "tally" text, "total" number, "opposition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many people are on the list ? ### Response:
SELECT COUNT(DISTINCT "player") FROM table_204_952
### Instruction: CREATE TABLE table_1725 ( "Player" text, "League" real, "Scottish Cup" real, "League Cup" real, "Challenge Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the league for paul paton ### Response:
SELECT "League" FROM table_1725 WHERE "Player" = 'Paul Paton'
### Instruction: CREATE TABLE table_68894 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the opponent with record of 12-18 ### Response:
SELECT "Opponent" FROM table_68894 WHERE "Record" = '12-18'
### Instruction: CREATE TABLE table_name_8 ( week_2_sept_7 VARCHAR, week_7_oct_12 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Week 2 Sept 7 has a Week 7 Oct 12 of ball state (7-0)? ### Response:
SELECT week_2_sept_7 FROM table_name_8 WHERE week_7_oct_12 = "ball state (7-0)"
### Instruction: CREATE TABLE table_19451 ( "Virtual" real, "Physical" real, "Call sign" text, "Branding" text, "Network" text, "Owner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the branding for forum communications ### Response:
SELECT "Branding" FROM table_19451 WHERE "Owner" = 'Forum Communications'
### Instruction: CREATE TABLE table_29141354_2 ( scores VARCHAR, jamie_and_johns_guest VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the scores when Jamie and Johns guest was Phillips Idowu? ### Response:
SELECT scores FROM table_29141354_2 WHERE jamie_and_johns_guest = "Phillips Idowu"
### Instruction: CREATE TABLE table_name_46 ( not_usable INTEGER, retired VARCHAR, launch_failures VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of not usable satellited when there are 0 retired, and the launch failures are less than 1? ### Response:
SELECT AVG(not_usable) FROM table_name_46 WHERE retired = 0 AND launch_failures < 1
### Instruction: CREATE TABLE table_name_61 ( particle VARCHAR, rest_mass_mev___c_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Particle has a Rest mass MeV/c 2 of 1192.642(24)? ### Response:
SELECT particle FROM table_name_61 WHERE rest_mass_mev___c_2 = "1192.642(24)"
### Instruction: CREATE TABLE table_name_77 ( catalogue VARCHAR, recorded VARCHAR, release_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What catalogue was recorded on 9/10/67 and a release date of 1/9/68? ### Response:
SELECT catalogue FROM table_name_77 WHERE recorded = "9/10/67" AND release_date = "1/9/68"
### Instruction: CREATE TABLE table_45118 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" real, "Year named" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the longitude of Angerona Tholus? ### Response:
SELECT "Longitude" FROM table_45118 WHERE "Name" = 'angerona tholus'
### Instruction: CREATE TABLE table_203_3 ( id number, "province" text, "capital" text, "population" number, "density" text, "municipalities" text, "legal districts" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of legal districts in almeria province ? ### Response:
SELECT COUNT(*) FROM table_203_3
### Instruction: CREATE TABLE table_name_20 ( points INTEGER, date VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest points on October 12, when the attendance where is over 10,701? ### Response:
SELECT MAX(points) FROM table_name_20 WHERE date = "october 12" AND attendance > 10 OFFSET 701
### Instruction: CREATE TABLE table_45658 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the location on november 23? ### Response:
SELECT "Location" FROM table_45658 WHERE "Date" = 'november 23'
### Instruction: CREATE TABLE table_68137 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the score for april 28 ### Response:
SELECT "Score" FROM table_68137 WHERE "Date" = 'april 28'
### Instruction: CREATE TABLE table_49890 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What round was the player drafted from mississippi valley state? ### Response:
SELECT "Round" FROM table_49890 WHERE "College" = 'mississippi valley state'
### Instruction: CREATE TABLE table_7111 ( "Year" real, "Conventional plans" text, "HMOs" text, "PPOs" text, "POS plans" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which conventional plan has a POS of 13%? ### Response:
SELECT "Conventional plans" FROM table_7111 WHERE "POS plans" = '13%'
### Instruction: CREATE TABLE table_57557 ( "Stations" text, "Place" text, "Managed By" text, "Platforms" real, "Zone" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the average zone for waddon marsh tram stop ### Response:
SELECT AVG("Zone") FROM table_57557 WHERE "Stations" = 'waddon marsh tram stop'
### Instruction: CREATE TABLE table_68767 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first year of the European Championships competition? ### Response:
SELECT MIN("Year") FROM table_68767 WHERE "Competition" = 'european championships'
### Instruction: CREATE TABLE table_name_61 ( wins VARCHAR, season VARCHAR, conference VARCHAR, division VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for Wins when there was a Conference of , western division, in the 1967 68 season? ### Response:
SELECT wins FROM table_name_61 WHERE conference = "—" AND division = "western" AND season = "1967–68"
### Instruction: CREATE TABLE table_25287007_2 ( june_10_11 VARCHAR, november_3 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many solar eclipse on June 10-11, while November 3 is 153? ### Response:
SELECT june_10_11 FROM table_25287007_2 WHERE november_3 = "153"
### Instruction: CREATE TABLE table_76041 ( "Year" real, "Championship" text, "Winning score" text, "Margin" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What championship was in 1985? ### Response:
SELECT "Championship" FROM table_76041 WHERE "Year" = '1985'
### Instruction: CREATE TABLE table_51734 ( "Name" text, "Street address" text, "Years as tallest" text, "Height ft / m" text, "Floors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the street address of Oliver Building? ### Response:
SELECT "Street address" FROM table_51734 WHERE "Name" = 'oliver building'
### Instruction: CREATE TABLE table_50487 ( "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 team was the home team when Manchester City was the away team? ### Response:
SELECT "Home team" FROM table_50487 WHERE "Away team" = 'manchester city'
### Instruction: CREATE TABLE table_name_13 ( silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals? ### Response:
SELECT COUNT(silver) FROM table_name_13 WHERE gold < 2 AND bronze = 1 AND total > 2
### Instruction: CREATE TABLE table_name_64 ( round INTEGER, club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average round for Club team of garmisch-partenkirchen riessersee sc (germany 2)? ### Response:
SELECT AVG(round) FROM table_name_64 WHERE club_team = "garmisch-partenkirchen riessersee sc (germany 2)"
### Instruction: CREATE TABLE table_name_27 ( sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, melbourne VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no? ### Response:
SELECT sydney FROM table_name_27 WHERE perth = "no" AND melbourne = "yes" AND gold_coast = "no"
### Instruction: CREATE TABLE table_13836704_9 ( aircraft_movements INTEGER, international_passengers VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the maximum aircraft movements with international passengers being 21002260 ### Response:
SELECT MAX(aircraft_movements) FROM table_13836704_9 WHERE international_passengers = 21002260
### Instruction: CREATE TABLE table_15306 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What record has November 15 as the date? ### Response:
SELECT "Record" FROM table_15306 WHERE "Date" = 'november 15'
### Instruction: CREATE TABLE table_79259 ( "Railroad (quantity)" text, "Class" text, "Road numbers" text, "Builder" text, "Build year" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the road numbers when the class is z-7? ### Response:
SELECT "Road numbers" FROM table_79259 WHERE "Class" = 'z-7'
### Instruction: CREATE TABLE table_78877 ( "Pick #" real, "Brand (to)" text, "Employee (Real name)" text, "Role" text, "Brand (from)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What role did Pick # 10 have? ### Response:
SELECT "Role" FROM table_78877 WHERE "Pick #" = '10'
### Instruction: CREATE TABLE table_216776_2 ( municipal_mayor VARCHAR, area__km²_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different municipal mayors were there in the municipality with an area of 42.66 km2? ### Response:
SELECT COUNT(municipal_mayor) FROM table_216776_2 WHERE area__km²_ = "42.66"
### Instruction: CREATE TABLE table_13839 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year has Notes of 87.17 m? ### Response:
SELECT "Year" FROM table_13839 WHERE "Notes" = '87.17 m'
### Instruction: CREATE TABLE table_67827 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the qual for year of 1960 ### Response:
SELECT "Qual" FROM table_67827 WHERE "Year" = '1960'
### Instruction: CREATE TABLE table_75947 ( "Round" text, "Date" text, "Home team" text, "Score" text, "Away team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who played as the home team when Vit ria was the away team? ### Response:
SELECT "Home team" FROM table_75947 WHERE "Away team" = 'vitória'
### Instruction: CREATE TABLE table_67810 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the engine with entrant of larrousse f1 ### Response:
SELECT "Engine" FROM table_67810 WHERE "Entrant" = 'larrousse f1'
### Instruction: CREATE TABLE table_57940 ( "Year" text, "Driver" text, "Constructor" text, "Category" text, "Location" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the driver in 1955? ### Response:
SELECT "Driver" FROM table_57940 WHERE "Year" = '1955'
### Instruction: CREATE TABLE table_35314 ( "Year" real, "Event" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who has the lead on Lisa Weagle? ### Response:
SELECT "Skip" FROM table_35314 WHERE "Lead" = 'lisa weagle'
### Instruction: CREATE TABLE table_203_382 ( id number, "date" text, "opponent" text, "site" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what were the number of wins in the month of october ? ### Response:
SELECT COUNT(*) FROM table_203_382 WHERE "result" = 'w' AND "date" = 10
### Instruction: CREATE TABLE table_34601 ( "Game" real, "February" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the team's record on februrary 23? ### Response:
SELECT "Record" FROM table_34601 WHERE "February" = '23'
### Instruction: CREATE TABLE table_16199 ( "Institution" text, "Nickname" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- point park university is what type of institution ### Response:
SELECT "Type" FROM table_16199 WHERE "Institution" = 'Point Park University'
### Instruction: CREATE TABLE table_204_665 ( id number, "rank" number, "name" text, "notability" text, "birthplace" text, "advocate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which canadian was ranked first and considered the greatest ? ### Response:
SELECT "name" FROM table_204_665 WHERE "rank" = 1
### Instruction: CREATE TABLE table_55109 ( "Team" text, "City/Area" text, "Arena" text, "Capacity" text, "Last season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the last season the Worcester Wolves played? ### Response:
SELECT "Last season" FROM table_55109 WHERE "Team" = 'worcester wolves'
### Instruction: CREATE TABLE table_1977630_2 ( nosotros___nosotras VARCHAR, él___ella___usted VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are all the conjugated forms of the verb where the el/ ella/usted verb is piense? ### Response:
SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = "piense"
### Instruction: CREATE TABLE table_15472061_1 ( original_air_date VARCHAR, no_in_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of original air date for when the number in season is 10/11 ### Response:
SELECT COUNT(original_air_date) FROM table_15472061_1 WHERE no_in_season = "10/11"
### Instruction: CREATE TABLE table_62247 ( "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 is Home Team, when Tie no is '27'? ### Response:
SELECT "Home team" FROM table_62247 WHERE "Tie no" = '27'
### Instruction: CREATE TABLE table_name_93 ( different_holders INTEGER, country VARCHAR, giro_wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the least different holders when the country is ireland and giro wins is less than 1? ### Response:
SELECT MIN(different_holders) FROM table_name_93 WHERE country = "ireland" AND giro_wins < 1
### Instruction: CREATE TABLE table_33756 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the attendance for week 11? ### Response:
SELECT "Attendance" FROM table_33756 WHERE "Week" = '11'
### Instruction: CREATE TABLE table_80035 ( "Country" text, "Film title used in nomination" text, "Language" text, "Original name" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country is the director Roland Verhavert from? ### Response:
SELECT "Country" FROM table_80035 WHERE "Director" = 'roland verhavert'
### Instruction: CREATE TABLE table_72501 ( "Shirt No" real, "Nationality" text, "Player" text, "Birth Date" text, "Height" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How tall is Maksim Botin? ### Response:
SELECT "Height" FROM table_72501 WHERE "Player" = 'Maksim Botin'
### Instruction: CREATE TABLE table_79600 ( "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest lane number of Xue Ruipeng? ### Response:
SELECT MIN("Lane") FROM table_79600 WHERE "Name" = 'xue ruipeng'
### Instruction: CREATE TABLE table_1341472_15 ( candidates VARCHAR, first_elected VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the total number of candidates for first elected in 1948 , 1964 ### Response:
SELECT COUNT(candidates) FROM table_1341472_15 WHERE first_elected = "1948 , 1964"
### Instruction: CREATE TABLE table_55694 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the time/retired for driver richard attwood? ### Response:
SELECT "Time/Retired" FROM table_55694 WHERE "Driver" = 'richard attwood'
### Instruction: CREATE TABLE table_name_55 ( points_1 INTEGER, team VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Points 1, when Team is 'Gainsborough Trinity', and when Played is greater than 46? ### Response:
SELECT SUM(points_1) FROM table_name_55 WHERE team = "gainsborough trinity" AND played > 46
### Instruction: CREATE TABLE table_70935 ( "Team" text, "Manager 1" text, "Captain" text, "Kit manufacturer" text, "Shirt sponsor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On which team was Robbie Earle the captain? ### Response:
SELECT "Team" FROM table_70935 WHERE "Captain" = 'robbie earle'
### Instruction: CREATE TABLE Student ( Fname VARCHAR, Lname VARCHAR, Sex VARCHAR, Age VARCHAR, Major VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all female students age is older than 18 who is not majoring in 600. List students' first name and last name. ### Response:
SELECT Fname, Lname FROM Student WHERE Age > 18 AND Major <> 600 AND Sex = 'F'
### Instruction: CREATE TABLE table_39158 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points have November of 15? ### Response:
SELECT SUM("Points") FROM table_39158 WHERE "November" = '15'
### Instruction: CREATE TABLE table_name_66 ( to_par VARCHAR, player VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par of player jerry pate, who has a 70-69=139 score? ### Response:
SELECT to_par FROM table_name_66 WHERE score = 70 - 69 = 139 AND player = "jerry pate"
### Instruction: CREATE TABLE ALBUM ( ArtistId VARCHAR ) CREATE TABLE ARTIST ( ArtistId VARCHAR, Name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Hom many albums does the artist 'Metallica' have? ### Response:
SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "Metallica"
### Instruction: CREATE TABLE table_26338 ( "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. -- Name the team number 1 for san lorenzo ### Response:
SELECT "Team #1" FROM table_26338 WHERE "Team #2" = 'San Lorenzo'
### Instruction: CREATE TABLE table_16319 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player is on the Montreal Alouettes CFl team? ### Response:
SELECT "Player" FROM table_16319 WHERE "CFL Team" = 'Montreal Alouettes'
### Instruction: CREATE TABLE table_65325 ( "Year" real, "Artist" text, "Song" text, "UK Chart" text, "At Eurovision" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where did Scott Fitzgerald rank on the UK charts? ### Response:
SELECT "UK Chart" FROM table_65325 WHERE "Artist" = 'scott fitzgerald'
### Instruction: CREATE TABLE table_1615980_4 ( tournament VARCHAR, winning_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what tournament was the winning score 68-67-65-66=266? ### Response:
SELECT tournament FROM table_1615980_4 WHERE winning_score = 68 - 67 - 65 - 66 = 266
### Instruction: CREATE TABLE table_204_824 ( id number, "no." number, "train no:" text, "origin" text, "destination" text, "train name" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which train number has its destination in kannur ? ### Response:
SELECT "train no:" FROM table_204_824 WHERE "destination" = 'kannur'
### Instruction: CREATE TABLE table_58692 ( "Stage" text, "Winner" text, "General classification" text, "Mountains classification" text, "Points classification" text, "Team Classification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What general classification has 4 as the stage? ### Response:
SELECT "General classification" FROM table_58692 WHERE "Stage" = '4'
### Instruction: CREATE TABLE table_64836 ( "Japanese Title" text, "English Title" text, "Year" real, "First publisher" text, "ISBN" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the First Publisher in 2007? ### Response:
SELECT "First publisher" FROM table_64836 WHERE "Year" = '2007'
### Instruction: CREATE TABLE table_3775 ( "Province" text, "Formed date" text, "Formed from" text, "Dissolution date" text, "Reason" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What provinces were formed from New Munster? ### Response:
SELECT "Province" FROM table_3775 WHERE "Formed from" = 'New Munster'
### Instruction: CREATE TABLE table_22748 ( "Player" text, "Original Season" text, "Gender" text, "Eliminated" text, "Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the season where Evelyn Smith was on? ### Response:
SELECT "Original Season" FROM table_22748 WHERE "Player" = 'Evelyn Smith'
### Instruction: CREATE TABLE table_4553 ( "Round" real, "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning car" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which circuit did Guy Edwards win? ### Response:
SELECT "Circuit" FROM table_4553 WHERE "Winning driver" = 'guy edwards'
### Instruction: CREATE TABLE table_24281 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pick # for player wes lysack? ### Response:
SELECT "Pick #" FROM table_24281 WHERE "Player" = 'Wes Lysack'
### Instruction: CREATE TABLE table_66077 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has w 14-10 as the result? ### Response:
SELECT "Date" FROM table_66077 WHERE "Result" = 'w 14-10'
### Instruction: CREATE TABLE table_name_23 ( laps INTEGER, time_retired VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average lap time for retired time of +23.707 and a Grid greater than 21? ### Response:
SELECT AVG(laps) FROM table_name_23 WHERE time_retired = "+23.707" AND grid > 21
### Instruction: CREATE TABLE albums ( title VARCHAR, id VARCHAR ) CREATE TABLE tracks ( genre_id VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is title of album which track Balls to the Wall belongs to? ### Response:
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "Balls to the Wall"
### Instruction: CREATE TABLE table_name_61 ( tuesday_tiw__tyr VARCHAR, sunday_sunna_sól VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag? ### Response:
SELECT tuesday_tiw__tyr FROM table_name_61 WHERE sunday_sunna_sól = "sondag"
### Instruction: CREATE TABLE table_11734041_11 ( height_in_ft VARCHAR, years_for_rockets VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the height for the player in 1968-72? ### Response:
SELECT height_in_ft FROM table_11734041_11 WHERE years_for_rockets = "1968-72"
### Instruction: CREATE TABLE table_name_24 ( sex_ratio__child_ INTEGER, work_participation___percentage_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the child sex ration for the population with 37.7% work participation? ### Response:
SELECT MAX(sex_ratio__child_) FROM table_name_24 WHERE work_participation___percentage_ = "37.7%"
### Instruction: CREATE TABLE table_29574579_1 ( uk_viewers__million_ VARCHAR, share___percentage_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many millions of viewers are listed when the share is 10.8? ### Response:
SELECT uk_viewers__million_ FROM table_29574579_1 WHERE share___percentage_ = "10.8"
### Instruction: CREATE TABLE table_name_82 ( date VARCHAR, label VARCHAR, catalog VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482? ### Response:
SELECT date FROM table_name_82 WHERE label = "sony bmg, epic" AND catalog = "5187482"
### Instruction: CREATE TABLE table_64235 ( "Title" text, "Label" text, "Year of Release" real, "Country of Release" text, "Peaches:" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which title has origianal sound entertainment as its label? ### Response:
SELECT "Title" FROM table_64235 WHERE "Label" = 'origianal sound entertainment'
### Instruction: CREATE TABLE table_28138035_20 ( year_location VARCHAR, mens_doubles VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years did lin gaoyuan wu jiaji play mens doubles? ### Response:
SELECT COUNT(year_location) FROM table_28138035_20 WHERE mens_doubles = "Lin Gaoyuan Wu Jiaji"
### Instruction: CREATE TABLE table_47124 ( "Date" text, "Location" text, "Head coach" text, "Opponent" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the head coach when the opponent was Arsenal? ### Response:
SELECT "Head coach" FROM table_47124 WHERE "Opponent" = 'arsenal'
### Instruction: CREATE TABLE table_18278508_2 ( position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did Pranita Sahu's team get? ### Response:
SELECT position FROM table_18278508_2 WHERE co_contestant__yaar_vs_pyaar_ = "Pranita Sahu"
### Instruction: CREATE TABLE table_name_45 ( performer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16? ### Response:
SELECT performer_s_ FROM table_name_45 WHERE recorded_at = "the cabin in the woods studio" AND time = "3:16"
### Instruction: CREATE TABLE table_name_56 ( elector VARCHAR, faction VARCHAR, elevated VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Elector with a Faction of roman, and an Elevated with 1244, may 28? ### Response:
SELECT elector FROM table_name_56 WHERE faction = "roman" AND elevated = "1244, may 28"
### Instruction: CREATE TABLE table_26733129_1 ( episode_number INTEGER, three_darts_challenge VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes are there for the three darts challenge with Sharon Osbourne? ### Response:
SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = "Sharon Osbourne"
### Instruction: CREATE TABLE table_7972 ( "Aircraft" text, "Type" text, "Version" text, "Produced" text, "Quantity" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the Kai Kuh-1 Surion Produced? ### Response:
SELECT "Produced" FROM table_7972 WHERE "Aircraft" = 'kai kuh-1 surion'
### Instruction: CREATE TABLE table_13618358_1 ( agri_culture_b VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was head count in 2010 where the farm production is 6.9? ### Response:
SELECT MAX(2010 AS _population__000_) FROM table_13618358_1 WHERE agri_culture_b = "6.9"