text
stringlengths 400
694
| __index_level_0__
int64 6
25k
|
---|---|
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the surface against monaco ### Input: CREATE TABLE table_25435 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"W\u2013L" text,
"Result" text
) ### Response: SELECT "Surface" FROM table_25435 WHERE "Against" = 'Monaco' | 748 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which year's rank was #4 when the country was the US? ### Input: CREATE TABLE table_76011 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" text
) ### Response: SELECT "Year" FROM table_76011 WHERE "Rank" = '#4' AND "Country" = 'us' | 17,750 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the title for episode 2? ### Input: CREATE TABLE table_73188 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
) ### Response: SELECT "Title" FROM table_73188 WHERE "Episode #" = '2' | 3,079 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many games did they play in 1905? ### Input: CREATE TABLE table_68655 (
"Stadium" text,
"Years" text,
"Played" real,
"Wins" real,
"Losses" real,
"Draw" text,
"Win Percentage" text
) ### Response: SELECT AVG("Played") FROM table_68655 WHERE "Years" = '1905' | 1,949 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the location attendance for memphis ### Input: CREATE TABLE table_2824 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) ### Response: SELECT "Location Attendance" FROM table_2824 WHERE "Team" = 'Memphis' | 5,105 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many values of r z (arcsecond) correspond with a r y (arcsecond) value of 0.247? ### Input: CREATE TABLE table_15318324_1 (
r_z___arcsecond__ VARCHAR,
r_y___arcsecond__ VARCHAR
) ### Response: SELECT r_z___arcsecond__ FROM table_15318324_1 WHERE r_y___arcsecond__ = "−0.247" | 1,394 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For each type, how many ships are there Plot them as bar chart, list y-axis in asc order. ### Input: CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) ### Response: SELECT Type, COUNT(*) FROM ship GROUP BY Type ORDER BY COUNT(*) | 3,620 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5? ### Input: CREATE TABLE table_44626 (
"Poll Source" text,
"Sample Size" real,
"Margin of Error" real,
"Date" text,
"Democrat" text,
"Republican" text
) ### Response: SELECT COUNT("Sample Size") FROM table_44626 WHERE "Poll Source" = 'rasmussen reports' AND "Margin of Error" > '4.5' | 8,025 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the sprint classification for michael barry ### Input: CREATE TABLE table_26424 (
"Stage (Winner)" text,
"General classification" text,
"Sprint Classification" text,
"Mountains Classification" text,
"Youth Classification" text,
"Aggressive Rider" text,
"Team Classification" text
) ### Response: SELECT "Sprint Classification" FROM table_26424 WHERE "Aggressive Rider" = 'Michael Barry' | 13,148 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What 2012 amount of earnings corresponds with less than 28 tournaments played? ### Input: CREATE TABLE table_name_59 (
earnings___$__ VARCHAR,
tournaments_played VARCHAR,
year VARCHAR
) ### Response: SELECT earnings___$__ FROM table_name_59 WHERE tournaments_played < 28 AND year = "2012" | 6,825 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the date of the match against western province? ### Input: CREATE TABLE table_9295 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) ### Response: SELECT "Date" FROM table_9295 WHERE "Opposing Team" = 'western province' | 7,715 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what were the total number of times the venue was located in the united states ? ### Input: CREATE TABLE table_204_450 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) ### Response: SELECT COUNT(*) FROM table_204_450 WHERE "venue" = 'united states' | 22,958 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which song has more than 66 points, a draw greater than 3, and is ranked 3rd? ### Input: CREATE TABLE table_75937 (
"Draw" real,
"Song" text,
"Performer" text,
"Points" real,
"Rank" text
) ### Response: SELECT "Song" FROM table_75937 WHERE "Points" > '66' AND "Draw" > '3' AND "Rank" = '3rd' | 12,965 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many horses finished the rase ? ### Input: CREATE TABLE table_204_330 (
id number,
"finished" text,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
) ### Response: SELECT COUNT("horse") FROM table_204_330 | 23,502 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many titles are there for season 8 ### Input: CREATE TABLE table_17277 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) ### Response: SELECT COUNT("Title") FROM table_17277 WHERE "Season #" = '8' | 9,645 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the 2nd leg result when team 2 is Morocco? ### Input: CREATE TABLE table_40570 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) ### Response: SELECT "2nd leg" FROM table_40570 WHERE "Team 2" = 'morocco' | 8,112 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the aircraft name for the flight with number 99 ### Input: CREATE TABLE Flight (
aid VARCHAR,
flno VARCHAR
)
CREATE TABLE Aircraft (
name VARCHAR,
aid VARCHAR
) ### Response: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 | 4,454 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the result in case 6B:E2:54:C6:58:D2? ### Input: CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
) ### Response: SELECT outcome FROM greatermanchestercrime WHERE crimeid = "6B:E2:54:C6:58:D2" | 20,864 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which car has a stock boost of over 7psi ? ### Input: CREATE TABLE table_203_525 (
id number,
"car" text,
"engine" text,
"compression" text,
"power" text,
"torque" text,
"turbo" text,
"stock boost" text,
"turbine" text,
"compressor" text
) ### Response: SELECT "car" FROM table_203_525 WHERE "stock boost" > 7 | 7,911 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What date was the visitor chicago black hawks, and a Record of 1-1? ### Input: CREATE TABLE table_34202 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) ### Response: SELECT "Date" FROM table_34202 WHERE "Visitor" = 'chicago black hawks' AND "Record" = '1-1' | 1,639 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which driver did not have his/her car ready ? ### Input: CREATE TABLE table_204_976 (
id number,
"pos" text,
"driver" text,
"entrant" text,
"constructor" text,
"time/retired" text,
"grid" number
) ### Response: SELECT "driver" FROM table_204_976 WHERE "time/retired" = 'car not ready' | 11,988 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Return a histogram on what is average age of male for different job title? ### Input: CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) ### Response: SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job | 9,208 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field? ### Input: CREATE TABLE table_name_26 (
role VARCHAR,
notes VARCHAR,
title VARCHAR
) ### Response: SELECT role FROM table_name_26 WHERE notes = "antagonist" AND title = "salud, dinero y amor" | 11,078 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who's the opponent for June 13? ### Input: CREATE TABLE table_77732 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) ### Response: SELECT "Opponent" FROM table_77732 WHERE "Date" = 'june 13' | 11,303 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Gold, when Bronze is 11? ### Input: CREATE TABLE table_76979 (
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
) ### Response: SELECT "Gold" FROM table_76979 WHERE "Bronze" = '11' | 11,231 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many were in attendance for a result of D, at H venue, and Arsenal as an opponent? ### Input: CREATE TABLE table_name_40 (
attendance VARCHAR,
opponents VARCHAR,
result VARCHAR,
venue VARCHAR
) ### Response: SELECT attendance FROM table_name_40 WHERE result = "d" AND venue = "h" AND opponents = "arsenal" | 10,571 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On January 15, what was the most in attendance? ### Input: CREATE TABLE table_78266 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) ### Response: SELECT MAX("Attendance") FROM table_78266 WHERE "Date" = 'january 15' | 10,775 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the womens singles of imam sodikin irawan andi tandaputra? ### Input: CREATE TABLE table_72270 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) ### Response: SELECT "Womens singles" FROM table_72270 WHERE "Mens doubles" = 'Imam Sodikin Irawan Andi Tandaputra' | 2,904 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many years have an Award of venice film festival, and a Title of lust, caution? ### Input: CREATE TABLE table_64622 (
"Award" text,
"Category" text,
"Year" real,
"Title" text,
"Result" text
) ### Response: SELECT COUNT("Year") FROM table_64622 WHERE "Award" = 'venice film festival' AND "Title" = 'lust, caution' | 991 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the player from club pro recco? ### Input: CREATE TABLE table_36487 (
"Name v t e" text,
"Pos." text,
"Height" text,
"Weight" text,
"Club" text
) ### Response: SELECT "Name v t e" FROM table_36487 WHERE "Club" = 'pro recco' | 12,713 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which party was re-elected in south carolina 5 district? ### Input: CREATE TABLE table_35816 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
) ### Response: SELECT "Party" FROM table_35816 WHERE "Result" = 're-elected' AND "District" = 'south carolina 5' | 12,290 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the away team at corio oval? ### Input: CREATE TABLE table_12019 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Away team" FROM table_12019 WHERE "Venue" = 'corio oval' | 15,863 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many total points were earned from the couple that averaged 29.0 points? ### Input: CREATE TABLE table_23662356_3 (
total_points_earned INTEGER,
average VARCHAR
) ### Response: SELECT MAX(total_points_earned) FROM table_23662356_3 WHERE average = "29.0" | 11,374 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the opponents for record of 2-1 ### Input: CREATE TABLE table_24124 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
) ### Response: SELECT "Opponents" FROM table_24124 WHERE "Record" = '2-1' | 16,407 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many series did John Banas direct? ### Input: CREATE TABLE table_1865 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) ### Response: SELECT "No. in series" FROM table_1865 WHERE "Directed by" = 'John Banas' | 22,896 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On what date was the attendance of the crowd 78,431? ### Input: CREATE TABLE table_52231 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) ### Response: SELECT "Date" FROM table_52231 WHERE "Attendance" = '78,431' | 25 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Paul McCartney has a Linda McCartney of keyboards or drum? ### Input: CREATE TABLE table_39560 (
"Paul McCartney" text,
"Stuart" text,
"McIntosh" text,
"Whitten" text,
"Linda McCartney" text
) ### Response: SELECT "Paul McCartney" FROM table_39560 WHERE "Linda McCartney" = 'keyboards or drum' | 6,887 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is the Winning Applicant of Block 10B in Derbyshire Area? ### Input: CREATE TABLE table_74565 (
"Area" text,
"Advertisement date" text,
"Block" text,
"Winning applicant" text,
"Ensemble name" text
) ### Response: SELECT "Winning applicant" FROM table_74565 WHERE "Block" = '10b' AND "Area" = 'derbyshire' | 4,175 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the Manchester performer of Lisa Davina Phillip's character? ### Input: CREATE TABLE table_22460085_1 (
original_manchester_performer VARCHAR,
original_west_end_performer VARCHAR
) ### Response: SELECT original_manchester_performer FROM table_22460085_1 WHERE original_west_end_performer = "Lisa Davina Phillip" | 2,745 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How much Gain has a Long of 29, and an Avg/G smaller than 33.7? ### Input: CREATE TABLE table_76772 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) ### Response: SELECT COUNT("Gain") FROM table_76772 WHERE "Long" = '29' AND "Avg/G" < '33.7' | 23,114 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the lowest Wins with a Top-10 that is larger than 9? ### Input: CREATE TABLE table_43336 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) ### Response: SELECT MIN("Wins") FROM table_43336 WHERE "Top-10" > '9' | 11,818 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who was ranked next after venezuela ? ### Input: CREATE TABLE table_204_922 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) ### Response: SELECT "nation" FROM table_204_922 WHERE "rank" = (SELECT "rank" FROM table_204_922 WHERE "nation" = 'venezuela') + 1 | 6,273 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many different municipal mayors were there in the municipality with an area of 42.66 km2? ### Input: CREATE TABLE table_216776_2 (
municipal_mayor VARCHAR,
area__km²_ VARCHAR
) ### Response: SELECT COUNT(municipal_mayor) FROM table_216776_2 WHERE area__km²_ = "42.66" | 7,372 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many weeks was the track Abrazame on the Billboard Latin Pop airplay before 1997? ### Input: CREATE TABLE table_5927 (
"Year" real,
"Chart" text,
"Track" text,
"Peak" real,
"Weeks on Chart" real
) ### Response: SELECT SUM("Weeks on Chart") FROM table_5927 WHERE "Track" = 'abrazame' AND "Chart" = 'billboard latin pop airplay' AND "Year" < '1997' | 3,035 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Call sign k216fo has what average ERP W? ### Input: CREATE TABLE table_40242 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"FCC info" text
) ### Response: SELECT AVG("ERP W") FROM table_40242 WHERE "Call sign" = 'k216fo' | 11,320 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the heat rank for senegal ### Input: CREATE TABLE table_32071 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" text
) ### Response: SELECT "Heat Rank" FROM table_32071 WHERE "Country" = 'senegal' | 2,142 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is the opponent with 16 points? ### Input: CREATE TABLE table_8055 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Falcons points" real,
"Opponents" real,
"Record" text
) ### Response: SELECT "Opponent" FROM table_8055 WHERE "Opponents" = '16' | 15,581 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: does scott tucker have the same nationality as yannick lupine ? ### Input: CREATE TABLE table_204_433 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text
) ### Response: SELECT (SELECT "nationality" FROM table_204_433 WHERE "name" = 'scott tucker') = (SELECT "nationality" FROM table_204_433 WHERE "name" = 'yannick lupien') | 4,468 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the name of the trainer of the first place horse ? ### Input: CREATE TABLE table_204_13 (
id number,
"finished" text,
"post" number,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
) ### Response: SELECT "trainer" FROM table_204_13 WHERE "finished" = 1 | 1,470 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When was the school in Springfield, Massachusetts founded? ### Input: CREATE TABLE table_23271 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
) ### Response: SELECT MAX("Founded") FROM table_23271 WHERE "Location" = 'Springfield, Massachusetts' | 5,461 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many Games have a Score of 5 4, and Points smaller than 49? ### Input: CREATE TABLE table_75364 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) ### Response: SELECT COUNT("Game") FROM table_75364 WHERE "Score" = '5–4' AND "Points" < '49' | 1,856 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which airline has the highest license # ### Input: CREATE TABLE table_203_58 (
id number,
"airline" text,
"airline (in russian)" text,
"licence #" number,
"icao" text,
"iata" text,
"domestic code" text,
"callsign" text,
"photo" text
) ### Response: SELECT "airline" FROM table_203_58 ORDER BY "licence #" DESC LIMIT 1 | 1,511 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When peninsula is the electorate what is the reason? ### Input: CREATE TABLE table_30838 (
"By-election" real,
"Electorate" text,
"Date" text,
"Incumbent" text,
"Reason" text,
"Winner" text
) ### Response: SELECT "Reason" FROM table_30838 WHERE "Electorate" = 'Peninsula' | 16,350 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which school's team has the nickname of the Wildcats? ### Input: CREATE TABLE table_20529 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) ### Response: SELECT "Institution" FROM table_20529 WHERE "Team Nickname" = 'Wildcats' | 19,093 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many times is the team oklahoma city? ### Input: CREATE TABLE table_3858 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) ### Response: SELECT COUNT("High points") FROM table_3858 WHERE "Team" = 'Oklahoma City' | 1,260 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who played in group 8 when Persinab Nabire played in Group 12? ### Input: CREATE TABLE table_19523142_5 (
group_8 VARCHAR,
group_12 VARCHAR
) ### Response: SELECT group_8 FROM table_19523142_5 WHERE group_12 = "Persinab Nabire" | 13,279 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the smallest number of fastest laps listed? ### Input: CREATE TABLE table_2028 (
"Name" text,
"Nation" text,
"Seasons" text,
"Championship Titles" text,
"Race Starts" real,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real
) ### Response: SELECT MIN("Fastest Laps") FROM table_2028 | 13,774 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What conditions had both prolonged bleeding times and prolonged partial thromboplastin times ### Input: CREATE TABLE table_1099080_1 (
condition VARCHAR,
partial_thromboplastin_time VARCHAR,
bleeding_time VARCHAR
) ### Response: SELECT condition FROM table_1099080_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged" | 10,037 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what's the current country of location with operational period of summer of 1941 to 28 june 1944 ### Input: CREATE TABLE table_10335_1 (
current_country_of_location VARCHAR,
operational VARCHAR
) ### Response: SELECT current_country_of_location FROM table_10335_1 WHERE operational = "Summer of 1941 to 28 June 1944" | 12,339 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Time/Retired of the Newman-Haas Racing team in under 51 laps? ### Input: CREATE TABLE table_40207 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) ### Response: SELECT "Time/Retired" FROM table_40207 WHERE "Laps" < '51' AND "Team" = 'newman-haas racing' | 3,351 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many FTE teachers are there when the student:teacher ration is 19? ### Input: CREATE TABLE table_1414743_1 (
fte_teachers VARCHAR,
pupil_teacher_ratio VARCHAR
) ### Response: SELECT fte_teachers FROM table_1414743_1 WHERE pupil_teacher_ratio = "19" | 3,546 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: laboratory findings of fasting triglycerides greater than or equal to 200 mg / dl ### Input: CREATE TABLE table_train_79 (
"id" int,
"fasting_triglycerides" int,
"fasting_total_cholesterol" int,
"fasting_glucose" int,
"age" float,
"NOUSE" float
) ### Response: SELECT * FROM table_train_79 WHERE fasting_triglycerides >= 200 | 7,387 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: during the second leg , what number of matches ended in a draw ? ### Input: CREATE TABLE table_204_475 (
id number,
"home team" text,
"score" text,
"away team" text,
"date" text,
"agg" text
) ### Response: SELECT COUNT(*) FROM table_204_475 WHERE "score" = "score" | 11,439 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the version shown for the Length of 4:58? ### Input: CREATE TABLE table_75019 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
) ### Response: SELECT "Version" FROM table_75019 WHERE "Length" = '4:58' | 9,789 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What surface did Ruxandra Dragomir play on? ### Input: CREATE TABLE table_59449 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) ### Response: SELECT "Surface" FROM table_59449 WHERE "Partner" = 'ruxandra dragomir' | 1,416 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the incumbent when ran william b. oliver (d) unopposed? ### Input: CREATE TABLE table_18735 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) ### Response: SELECT "Incumbent" FROM table_18735 WHERE "Candidates" = 'William B. Oliver (D) Unopposed' | 11,960 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: tell me the number of versions that are scrapped . ### Input: CREATE TABLE table_204_751 (
id number,
"date" text,
"train" text,
"location" text,
"present location" text,
"comments" text,
"top speed (km/h)" text
) ### Response: SELECT COUNT("train") FROM table_204_751 WHERE "present location" = 'scrapped' | 142 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: The building with 48 floors has an address in Las Vegas of what? ### Input: CREATE TABLE table_69008 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
) ### Response: SELECT "Street address" FROM table_69008 WHERE "Floors" = '48' | 16,270 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: If the Away team score was 13.20 (98), what was the Home team they played? ### Input: CREATE TABLE table_11893 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Home team" FROM table_11893 WHERE "Away team score" = '13.20 (98)' | 5,474 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What nationality is mark eaton, center position? ### Input: CREATE TABLE table_11492 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) ### Response: SELECT "Nationality" FROM table_11492 WHERE "Position" = 'center' AND "Player" = 'mark eaton' | 8,983 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the maximum population of the land with an area of 276.84 km2? ### Input: CREATE TABLE table_21284 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) ### Response: SELECT MAX("Population") FROM table_21284 WHERE "Area km 2" = '276.84' | 9,824 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many ranks are for Switzerland with more than 2 total medals? ### Input: CREATE TABLE table_71628 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT COUNT("Rank") FROM table_71628 WHERE "Nation" = 'switzerland' AND "Total" > '2' | 14,634 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which S.R. has a Average smaller than 23.63 Runs Scored of 49? ### Input: CREATE TABLE table_42794 (
"Name" text,
"Innings" real,
"Runs Scored" real,
"Balls Faced" real,
"Average" real,
"S.R." real
) ### Response: SELECT "S.R." FROM table_42794 WHERE "Average" < '23.63' AND "Runs Scored" = '49' | 10,215 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What country does the player who joined the Vancouver Canucks originally hail from? ### Input: CREATE TABLE table_4124 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) ### Response: SELECT "Nationality" FROM table_4124 WHERE "NHL team" = 'Vancouver Canucks' | 4,812 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the lowest pick number for Marc Pilon? ### Input: CREATE TABLE table_43930 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) ### Response: SELECT MIN("Pick #") FROM table_43930 WHERE "Player" = 'marc pilon' | 1,442 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who won the senate seat in arkansas ### Input: CREATE TABLE table_179 (
"State (linked to summaries below)" text,
"Senator" text,
"Party" text,
"Electoral history" text,
"Result" text,
"Candidates Winning candidate in bold" text
) ### Response: SELECT "Senator" FROM table_179 WHERE "State (linked to summaries below)" = 'Arkansas' | 14,365 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest season# for the writer Daegan Fryklind? ### Input: CREATE TABLE table_3235 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"Fox Int. air date" text
) ### Response: SELECT MAX("Season #") FROM table_3235 WHERE "Written by" = 'Daegan Fryklind' | 21,612 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When hale irwin is the winner what is the margin of victory? ### Input: CREATE TABLE table_73626 (
"Year" real,
"Tournament" text,
"Winner" text,
"Margin of victory" text,
"Winners share ( $ )" real,
"Par" real,
"Course length" text
) ### Response: SELECT "Margin of victory" FROM table_73626 WHERE "Winner" = 'Hale Irwin' | 6,504 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the writter for the episode identified by the production code 2t5954? ### Input: CREATE TABLE table_73966 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Patient Portrayer" text,
"Original air date" text,
"Production code" text
) ### Response: SELECT "Written by" FROM table_73966 WHERE "Production code" = '2T5954' | 710 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the lowest crowd at kardinia park ### Input: CREATE TABLE table_58066 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT MIN("Crowd") FROM table_58066 WHERE "Venue" = 'kardinia park' | 131 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which episode was Transmitted on friday if the episode of '515 the adventures of tintin' was transmitted on monday? ### Input: CREATE TABLE table_1825 (
"Episodes" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text
) ### Response: SELECT "Friday" FROM table_1825 WHERE "Monday" = '515 The Adventures of Tintin' | 15,941 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many votes did both the conservative party and the rainbow dream ticket party receive ? ### Input: CREATE TABLE table_202_271 (
id number,
"party" text,
"candidate" text,
"votes" number,
"%" number,
"\u00b1%" number
) ### Response: SELECT SUM("votes") FROM table_202_271 WHERE "party" IN ('conservative', 'rainbow dream ticket') | 14,835 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which first leg had Galatasaray as Team 1? ### Input: CREATE TABLE table_56853 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) ### Response: SELECT "1st leg" FROM table_56853 WHERE "Team 1" = 'galatasaray' | 6,338 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who vacated the Pennsylvania 6th district? ### Input: CREATE TABLE table_25069 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) ### Response: SELECT "Vacator" FROM table_25069 WHERE "District" = 'Pennsylvania 6th' | 14,682 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the most money United States player Bob Gilder won? ### Input: CREATE TABLE table_8070 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) ### Response: SELECT MAX("Money ( $ )") FROM table_8070 WHERE "Country" = 'united states' AND "Player" = 'bob gilder' | 3,334 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What opponent has a record of 86-62? ### Input: CREATE TABLE table_79724 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) ### Response: SELECT "Opponent" FROM table_79724 WHERE "Record" = '86-62' | 6,784 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When did an away team score 7.8 (50)? ### Input: CREATE TABLE table_33243 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Date" FROM table_33243 WHERE "Away team score" = '7.8 (50)' | 1,031 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the margin for 4 shot deficit ### Input: CREATE TABLE table_25148 (
"Year" real,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
) ### Response: SELECT "Margin" FROM table_25148 WHERE "54 holes" = '4 shot deficit' | 13,258 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8? ### Input: CREATE TABLE table_53268 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" real
) ### Response: SELECT AVG("Total (kg)") FROM table_53268 WHERE "Snatch" > '87.5' AND "Bodyweight" > '74.8' | 13,907 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When did the school from Logan Township, Pennsylvania join the Conference? ### Input: CREATE TABLE table_23180 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
) ### Response: SELECT "Joined" FROM table_23180 WHERE "Location" = 'Logan Township, Pennsylvania' | 22,420 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On which date did Footscray play an away game? ### Input: CREATE TABLE table_11892 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Date" FROM table_11892 WHERE "Away team" = 'footscray' | 11,066 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement? ### Input: CREATE TABLE table_58774 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) ### Response: SELECT "Grid" FROM table_58774 WHERE "Laps" > '8' AND "Manufacturer" = 'honda' AND "Time/Retired" = 'retirement' | 21,343 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the stadium where the attendance was 75,406? ### Input: CREATE TABLE table_19945 (
"#" real,
"Season" real,
"Bowl game" text,
"Result" text,
"Opponent" text,
"Stadium" text,
"Location" text,
"Attendance" text
) ### Response: SELECT "Stadium" FROM table_19945 WHERE "Attendance" = '75,406' | 16,738 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is FCC info when ERP W is larger than 92 and call sign has k264ba? ### Input: CREATE TABLE table_name_51 (
fcc_info VARCHAR,
erp_w VARCHAR,
call_sign VARCHAR
) ### Response: SELECT fcc_info FROM table_name_51 WHERE erp_w > 92 AND call_sign = "k264ba" | 8,134 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which viewers have the language of troff (typesetter runoff) , groff (gnu runoff)? ### Input: CREATE TABLE table_1574968_1 (
viewer VARCHAR,
language VARCHAR
) ### Response: SELECT viewer FROM table_1574968_1 WHERE language = "troff (typesetter runoff) , groff (GNU runoff)" | 16,282 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest attendance of the game on week 9? ### Input: CREATE TABLE table_35648 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) ### Response: SELECT MAX("Attendance") FROM table_35648 WHERE "Week" = '9' | 4,654 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the total role in the year 2008 ? ### Input: CREATE TABLE table_203_133 (
id number,
"year" number,
"japanese title" text,
"english title" text,
"role" text,
"network" text
) ### Response: SELECT COUNT("role") FROM table_203_133 WHERE "year" = 2008 | 16,196 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is the replaced by when the date of vacancy is 27 december 2010? ### Input: CREATE TABLE table_26998135_2 (
replaced_by VARCHAR,
date_of_vacancy VARCHAR
) ### Response: SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010" | 8,902 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many total opponents are there ? ### Input: CREATE TABLE table_204_441 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" number,
"scorers" text
) ### Response: SELECT COUNT("opponent") FROM table_204_441 | 13,868 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Nation, when the number of Bronze is less than 17, and when the number of Gold is less than 16? ### Input: CREATE TABLE table_45289 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT "Nation" FROM table_45289 WHERE "Bronze" < '17' AND "Gold" < '16' | 3,694 |