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: What is the date of the match with a home team of Huddersfield Town and was a replay tie? ### Input: CREATE TABLE table_name_93 ( date VARCHAR, tie_no VARCHAR, home_team VARCHAR ) ### Response: SELECT date FROM table_name_93 WHERE tie_no = "replay" AND home_team = "huddersfield town"
1,076
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 # entries are there for the date of situation of 23 January 2003? ### Input: CREATE TABLE table_19398 ( "#" real, "Episode Title" text, "Situation" text, "Date of Situation" text, "Nature of Situation" text, "Original U.S. Airdate" text ) ### Response: SELECT COUNT("#") FROM table_19398 WHERE "Date of Situation" = '23 January 2003'
19,447
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 drawn when played is more than 14? ### Input: CREATE TABLE table_45413 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real ) ### Response: SELECT MAX("Drawn") FROM table_45413 WHERE "Played" > '14'
383
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 for 1970 at yankee stadium? ### Input: CREATE TABLE table_47265 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Location" text ) ### Response: SELECT "Result" FROM table_47265 WHERE "Year" = '1970' AND "Location" = 'yankee stadium'
18,459
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: In what year was cumulus founded? ### Input: CREATE TABLE table_27295 ( "Freq" real, "Call" text, "City" text, "Owner" text, "Start" real, "Day Power ( W )" real, "Night Power" real, "Nickname" text, "Format" text, "Stereo" text ) ### Response: SELECT MIN("Start") FROM table_27295 WHERE "Owner" = 'Cumulus'
71
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 names and ages of editors? Show me a bar chart, and sort Y-axis in ascending order please. ### Input: CREATE TABLE journal ( Journal_ID int, Date text, Theme text, Sales int ) CREATE TABLE editor ( Editor_ID int, Name text, Age real ) CREATE TABLE journal_committee ( Editor_ID int, Journal_ID int, Work_Type text ) ### Response: SELECT Name, Age FROM editor ORDER BY Age
1,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 wins did georgetown achieve in 1941 ? ### Input: CREATE TABLE table_204_36 ( id number, "date" text, "opponent" text, "site" text, "result" text, "attendance" number, "record" text ) ### Response: SELECT COUNT(*) FROM table_204_36 WHERE "result" = 'w' AND "date" = 1941
1,408
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 home team on April 13, 2008 when Itabuna was the away team? ### Input: CREATE TABLE table_75944 ( "Round" text, "Date" text, "Home team" text, "Score" text, "Away team" text ) ### Response: SELECT "Home team" FROM table_75944 WHERE "Date" = 'april 13, 2008' AND "Away team" = 'itabuna'
10,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: How many downloads of ep and album respectively? ### Input: CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) CREATE TABLE tags ( index number, id number, tag text ) ### Response: SELECT SUM(totalsnatched) FROM torrents WHERE releasetype = "ep" UNION SELECT SUM(totalsnatched) FROM torrents WHERE releasetype = "album"
2,707
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 Drawn has a Team of internacional-sp? ### Input: CREATE TABLE table_38553 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) ### Response: SELECT SUM("Drawn") FROM table_38553 WHERE "Team" = 'internacional-sp'
3,299
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 date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds? ### Input: CREATE TABLE weather ( date VARCHAR, mean_temperature_f VARCHAR, mean_humidity VARCHAR, max_gust_speed_mph VARCHAR ) ### Response: SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3
356
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: age 50 _ 89 years old ### 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 age >= 50 AND age <= 89
5,611
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: this first district representative lives in devil 's tower . ### Input: CREATE TABLE table_204_887 ( id number, "district" number, "representative" text, "party" text, "residence" text, "counties represented" text ) ### Response: SELECT "representative" FROM table_204_887 WHERE "residence" = 'devils tower' ORDER BY id LIMIT 1
6,412
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 guest starred on the episode with a 1.44m rating ### Input: CREATE TABLE table_30964 ( "Episode" real, "Broadcast date" text, "Guest(s)" text, "Singer(s)" text, "Ratings" text ) ### Response: SELECT "Guest(s)" FROM table_30964 WHERE "Ratings" = '1.44m'
15,870
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 rate limit when the desired rate change (%) is +40.4? ### Input: CREATE TABLE table_25316812_1 ( rate_limit__p_ VARCHAR, desired_rate_change___percentage_ VARCHAR ) ### Response: SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate_change___percentage_ = "+40.4"
436
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 to par for japan ### Input: CREATE TABLE table_66292 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) ### Response: SELECT "To par" FROM table_66292 WHERE "Country" = 'japan'
352
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 average age for a male in each job. Visualize by bar chart. ### 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
7,257
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 college has a pick less than 25, an overall greater than 159, a round less than 10, and wr as the position? ### Input: CREATE TABLE table_name_10 ( college VARCHAR, position VARCHAR, round VARCHAR, pick VARCHAR, overall VARCHAR ) ### Response: SELECT college FROM table_name_10 WHERE pick < 25 AND overall > 159 AND round < 10 AND position = "wr"
13,113
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 only team they had a losing record against . ### Input: CREATE TABLE table_203_506 ( id number, "opponent" text, "played" number, "won" number, "lost" number, "drawn" number, "% won overall" text ) ### Response: SELECT "opponent" FROM table_203_506 ORDER BY "lost" DESC LIMIT 1
7,726
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 teams have been winners at least 5 times ? ### Input: CREATE TABLE table_204_448 ( id number, "team" text, "winners" number, "runners-up" number, "years won" text, "years runner-up" text ) ### Response: SELECT COUNT("team") FROM table_204_448 WHERE "winners" >= 5
8,564
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 annie awards were won before 2009 ? ### Input: CREATE TABLE table_203_782 ( id number, "year" number, "actor" text, "award" text, "category" text, "role" text, "episode" text, "result" text ) ### Response: SELECT COUNT(*) FROM table_203_782 WHERE "award" = 'annie award' AND "year" < 2009
3,261
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 administrative capital that has a 2006 census population of 249425? ### Input: CREATE TABLE table_1966992_1 ( administrative_capital VARCHAR, census_2006_population VARCHAR ) ### Response: SELECT administrative_capital FROM table_1966992_1 WHERE census_2006_population = 249425
7,373
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 other team 's stadium has the same capacity as didcot town 's stadium ? ### Input: CREATE TABLE table_204_750 ( id number, "team" text, "stadium" text, "capacity" number, "seated" number ) ### Response: SELECT "stadium" FROM table_204_750 WHERE "team" <> 'didcot town' AND "capacity" = (SELECT "capacity" FROM table_204_750 WHERE "team" = 'didcot town')
24,573
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 number of bronze that has less than 2 gold, and more than 1 silver? ### Input: CREATE TABLE table_60713 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) ### Response: SELECT COUNT("Bronze") FROM table_60713 WHERE "Gold" < '2' AND "Silver" > '1'
14,022
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: In what Week was the Record 4 7 1? ### Input: CREATE TABLE table_62018 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Attendance" text ) ### Response: SELECT MIN("Week") FROM table_62018 WHERE "Record" = '4–7–1'
14,518
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: To what district does Bill Hefner belong? ### Input: CREATE TABLE table_18197 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Status" text, "Opponent" text ) ### Response: SELECT "District" FROM table_18197 WHERE "Incumbent" = 'Bill Hefner'
7,585
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 distinct colleges are associated with players from the team with name 'Columbus Crew'. ### Input: CREATE TABLE match_season ( College VARCHAR, Team VARCHAR ) CREATE TABLE team ( Team_id VARCHAR, Name VARCHAR ) ### Response: SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"
4,187
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 player Wally Johnson, with goals larger than 0, the debut year later than 1904, and games greater than 136, what were the years at club? ### Input: CREATE TABLE table_name_5 ( years_at_club VARCHAR, player VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR ) ### Response: SELECT years_at_club FROM table_name_5 WHERE goals > 0 AND debut_year > 1904 AND games > 136 AND player = "wally johnson"
2,580
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 where the only two submarines that where only damaged ? ### Input: CREATE TABLE table_203_268 ( id number, "date" text, "name" text, "nationality" text, "tonnage\n(grt)" number, "fate" text ) ### Response: SELECT "name" FROM table_203_268 WHERE "fate" = 'damaged'
5,234
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 points did agnieszka radwa ska score? ### Input: CREATE TABLE table_2356 ( "Sd" real, "Player" text, "Points" real, "Points defending" real, "Points won" real, "New points" real, "Status" text ) ### Response: SELECT "Points" FROM table_2356 WHERE "Player" = 'Agnieszka Radwańska'
151
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 did Johnnie Parsons finish when his qualifying time was 135.328? ### Input: CREATE TABLE table_67062 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) ### Response: SELECT "Rank" FROM table_67062 WHERE "Qual" = '135.328'
17,573
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 location had the most games ? ### Input: CREATE TABLE table_203_47 ( id number, "game" number, "date" text, "opponent" text, "location" text, "score" text, "ot" text, "attendance" number, "record" text ) ### Response: SELECT "location" FROM table_203_47 GROUP BY "location" ORDER BY COUNT("game") DESC LIMIT 1
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: Which drivers won $40,000 in the NASCAR Winston Cup? ### Input: CREATE TABLE table_21297652_1 ( driver VARCHAR, series VARCHAR, winnings VARCHAR ) ### Response: SELECT driver FROM table_21297652_1 WHERE series = "NASCAR Winston Cup" AND winnings = "$40,000"
19,574
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 city has a charter date of november 24, 1999? ### Input: CREATE TABLE table_60721 ( "Greek Designation" text, "Collegiate Institution" text, "Charter Date" text, "Status" text, "City" text, "U.S. State/District" text ) ### Response: SELECT "City" FROM table_60721 WHERE "Charter Date" = 'november 24, 1999'
23,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: What is the date construction is completed in Jo Daviess county? ### Input: CREATE TABLE table_67774 ( "CERCLIS ID" text, "County" text, "Listed" text, "Construction completed" text, "Partially deleted" text, "Deleted" text ) ### Response: SELECT "Construction completed" FROM table_67774 WHERE "County" = 'jo daviess'
18,251
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 who won in 1922, 1932? ### Input: CREATE TABLE table_12878 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text ) ### Response: SELECT AVG("Total") FROM table_12878 WHERE "Year(s) won" = '1922, 1932'
7,322
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 only team this team faced in january which was during the cotton bowl ? ### Input: CREATE TABLE table_204_994 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number ) ### Response: SELECT "opponent#" FROM table_204_994 WHERE "date" = 1
4,074
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 Venue has a Home team of essendon? ### Input: CREATE TABLE table_77837 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT "Venue" FROM table_77837 WHERE "Home team" = 'essendon'
1,043
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: List all the candidates for the seat where the incumbent is Sam Gibbons? ### Input: CREATE TABLE table_18167 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) ### Response: SELECT "Candidates" FROM table_18167 WHERE "Incumbent" = 'Sam Gibbons'
9,918
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 types are cardio? ### Input: CREATE TABLE table_74120 ( "Program" text, "Exercise" text, "Week" text, "Muscles Worked" text, "Type" text, "Ab Ripper X" text, "Length" text, "Equipment" text ) ### Response: SELECT COUNT("Program") FROM table_74120 WHERE "Type" = 'Cardio'
1,585
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 position does the player from texas a&m play? ### Input: CREATE TABLE table_12026 ( "Round" real, "Pick" real, "Name" text, "Position" text, "School" text ) ### Response: SELECT "Position" FROM table_12026 WHERE "School" = 'texas a&m'
2,726
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 sum of Gross Tonnage for isis ship on date commisioned less than 1842 ### Input: CREATE TABLE table_name_94 ( gross_tonnage INTEGER, ship VARCHAR, date_commissioned VARCHAR ) ### Response: SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = "isis" AND date_commissioned < 1842
17,717
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: age < 18 years ### Input: CREATE TABLE table_train_249 ( "id" int, "gender" string, "allergy_to_dapagliflozin" bool, "body_weight" float, "estimated_glomerular_filtration_rate_egfr" int, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) ### Response: SELECT * FROM table_train_249 WHERE age < 18
16,737
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 Records Time is 3:38? ### Input: CREATE TABLE table_69005 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text ) ### Response: SELECT "Record" FROM table_69005 WHERE "Time" = '3:38'
24,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: What is the average game number when the record is 4-1? ### Input: CREATE TABLE table_48453 ( "Game" real, "Date" text, "Team" text, "Score" text, "Location Attendance" text, "Record" text ) ### Response: SELECT AVG("Game") FROM table_48453 WHERE "Record" = '4-1'
233
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 Attendance on November 6, 1960? ### Input: CREATE TABLE table_8315 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) ### Response: SELECT "Attendance" FROM table_8315 WHERE "Date" = 'november 6, 1960'
1,996
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 Team 1 has a 2nd leg of 1-3? ### Input: CREATE TABLE table_59762 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) ### Response: SELECT "Team 1" FROM table_59762 WHERE "2nd leg" = '1-3'
13,526
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 poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0? ### Input: CREATE TABLE table_name_49 ( poll_wins INTEGER, ties VARCHAR, poll_losses VARCHAR, advocate VARCHAR ) ### Response: SELECT MAX(poll_wins) FROM table_name_49 WHERE poll_losses > 2 AND advocate = "andy kindler" AND ties < 0
6,945
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 team has the highest rank among those listed ? ### Input: CREATE TABLE table_204_219 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number ) ### Response: SELECT "opponent#" FROM table_204_219 ORDER BY "rank#" LIMIT 1
5,390
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 fewest tally for the game played at Vasil Levski National Stadium, Sofia, Bulgaria? ### Input: CREATE TABLE table_name_9 ( tally INTEGER, venue VARCHAR ) ### Response: SELECT MIN(tally) FROM table_name_9 WHERE venue = "vasil levski national stadium, sofia, bulgaria"
6,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: What was the nickname Established in 2002? ### Input: CREATE TABLE table_1456 ( "Institution" text, "Location" text, "Nickname" text, "Enrollment" real, "Established" real ) ### Response: SELECT "Nickname" FROM table_1456 WHERE "Established" = '2002'
9,557
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 first song on this album ? ### Input: CREATE TABLE table_204_573 ( id number, "#" number, "title" text, "performer(s)" text, "film" text, "length" text ) ### Response: SELECT "title" FROM table_204_573 WHERE "#" = 1
1,637
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 episodes have the production code 8.04 ### Input: CREATE TABLE table_24887 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) ### Response: SELECT COUNT("Directed by") FROM table_24887 WHERE "Production code" = '8.04'
16,821
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 minister of the labor party and had 26 goverments? ### Input: CREATE TABLE table_61585 ( "Minister" text, "Party" text, "Governments" text, "Term start" text, "Term end" text ) ### Response: SELECT "Minister" FROM table_61585 WHERE "Party" = 'labor party' AND "Governments" = '26'
1,457
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 position is 9th, what is the total podiums number? ### Input: CREATE TABLE table_2494 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" real, "Position" text ) ### Response: SELECT COUNT("Podiums") FROM table_2494 WHERE "Position" = '9th'
1,782
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 side has Orcagna as the inscription? ### Input: CREATE TABLE table_8987 ( "Side" text, "Group" text, "Inscription" text, "Official history" text, "Identification" text ) ### Response: SELECT "Side" FROM table_8987 WHERE "Inscription" = 'orcagna'
3,341
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 nhl team had the last pick ? ### Input: CREATE TABLE table_203_824 ( id number, "pick #" number, "player" text, "position" text, "nationality" text, "nhl team" text, "college/junior/club team" text ) ### Response: SELECT "nhl team" FROM table_203_824 ORDER BY "pick #" DESC LIMIT 1
5,419
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: List the branch name and city without any registered members. ### Input: CREATE TABLE membership_register_branch ( name VARCHAR, city VARCHAR, branch_id VARCHAR ) CREATE TABLE branch ( name VARCHAR, city VARCHAR, branch_id VARCHAR ) ### Response: SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)
23,305
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 institution won in 2010 with student Cheng Herng Yi? ### Input: CREATE TABLE table_45006 ( "Year" real, "Award" text, "Name" text, "Institution" text, "Chief Judge" text ) ### Response: SELECT "Institution" FROM table_45006 WHERE "Year" > '2010' AND "Name" = 'cheng herng yi'
22,163
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 week was the attendance 74303? ### Input: CREATE TABLE table_19718 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real ) ### Response: SELECT MAX("Week") FROM table_19718 WHERE "Attendance" = '74303'
7,362
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 branding of the callsign DWCI-TV? ### Input: CREATE TABLE table_73875 ( "Branding" text, "Callsign" text, "Ch. #" text, "Station Type" text, "Power kW (ERP)" text, "Location (Transmitter Site)" text ) ### Response: SELECT "Branding" FROM table_73875 WHERE "Callsign" = 'DWCI-TV'
17,137
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: previous to 1977 how many greek leagues were champion ? ### Input: CREATE TABLE table_203_391 ( id number, "season" text, "greek league" text, "greek cup" text, "europe" text, "coach" text, "roster" text ) ### Response: SELECT COUNT(*) FROM table_203_391 WHERE "season" < 1977 AND "greek league" = 'champion'
12,195
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 athena chu 's first role ? ### Input: CREATE TABLE table_203_239 ( id number, "year" number, "title" text, "chinese title" text, "role" text, "notes" text ) ### Response: SELECT "role" FROM table_203_239 WHERE id = 1
6,782
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 a country of Spain, place of t6, what is the Money ($)? ### Input: CREATE TABLE table_50928 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) ### Response: SELECT "Money ( $ )" FROM table_50928 WHERE "Place" = 't6' AND "Country" = 'spain'
11,614
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 Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13? ### Input: CREATE TABLE table_name_67 ( location VARCHAR, league_division VARCHAR, position_in_2012_13 VARCHAR ) ### Response: SELECT location FROM table_name_67 WHERE league_division = "second division" AND position_in_2012_13 = "4th, third division (promoted)"
24,370
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 probable future word for the simple present/future word high grade? ### Input: CREATE TABLE table_48152 ( "!Simple Present/Future" text, "Probable Future" text, "Simple Past" text, "Past Habitual" text, "Injunctive" text, "Imperative" text ) ### Response: SELECT "Probable Future" FROM table_48152 WHERE "!Simple Present/Future" = 'high grade'
21,034
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 awards did this actor win ? ### Input: CREATE TABLE table_204_970 ( id number, "year" number, "award" text, "category" text, "title" text, "result" text ) ### Response: SELECT COUNT("award") FROM table_204_970 WHERE "result" = 'won'
5,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: How many 140+ did Gary Anderson have? ### Input: CREATE TABLE table_23722 ( "Player" text, "Played" real, "Legs Won" real, "Legs Lost" real, "100+" real, "140+" real, "180s" real, "High Checkout" real, "3-dart Average" text ) ### Response: SELECT "140+" FROM table_23722 WHERE "Player" = 'Gary Anderson'
906
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 cars used number 48? ### Input: CREATE TABLE table_20106 ( "No" real, "Driver" text, "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text ) ### Response: SELECT COUNT("Engine") FROM table_20106 WHERE "No" = '48'
13,223
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 rider had a time of 1:54.26.6? ### Input: CREATE TABLE table_74608 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text ) ### Response: SELECT "Rider" FROM table_74608 WHERE "Time" = '1:54.26.6'
8,599
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 settlement is also called (hungarian: martonos)? ### Input: CREATE TABLE table_2562572_33 ( settlement VARCHAR, cyrillic_name_other_names VARCHAR ) ### Response: SELECT settlement FROM table_2562572_33 WHERE cyrillic_name_other_names = "Мартонош (Hungarian: Martonos)"
9,619
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 most recent year a height of 2770 m and a HC climb before 1992 was climbed? ### Input: CREATE TABLE table_name_56 ( most_recent VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR ) ### Response: SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = "2770" AND first_time_as_hc_climb < 1992
357
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 points when the chassis was Jaguar R3 later than 2002? ### Input: CREATE TABLE table_68991 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) ### Response: SELECT MAX("Points") FROM table_68991 WHERE "Chassis" = 'jaguar r3' AND "Year" > '2002'
16,391
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 City, when IATA is 'amm'? ### Input: CREATE TABLE table_8826 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) ### Response: SELECT "City" FROM table_8826 WHERE "IATA" = 'amm'
1,110
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: Loss of schrom happened on what date? ### Input: CREATE TABLE table_70160 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Crowd" text, "Record" text ) ### Response: SELECT "Date" FROM table_70160 WHERE "Loss" = 'schrom'
2,186
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 grid total for cars with over 69 laps? ### Input: CREATE TABLE table_58415 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT COUNT("Grid") FROM table_58415 WHERE "Laps" > '69'
3,688
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 film was directed by Sandro Aguilar? ### Input: CREATE TABLE table_70372 ( "Category" text, "Film" text, "Director(s)" text, "Country" text, "Nominating Festival" text ) ### Response: SELECT "Film" FROM table_70372 WHERE "Director(s)" = 'sandro aguilar'
1,844
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 songwriter for Track 4, produced by nigel wright and john smits? ### Input: CREATE TABLE table_12798 ( "Track" real, "Title" text, "Songwriter(s)" text, "Production credits" text, "Time" text ) ### Response: SELECT "Songwriter(s)" FROM table_12798 WHERE "Production credits" = 'nigel wright and john smits' AND "Track" = '4'
2,676
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 amount of stumpings any player had? ### Input: CREATE TABLE table_29971 ( "No." real, "Player" text, "Club" text, "Test career" text, "Tests" real, "Catches" real, "Stumpings" real, "Total dismissals" real ) ### Response: SELECT MAX("Stumpings") FROM table_29971
10,092
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: Where did the away team score 7.15 (57)? ### Input: CREATE TABLE table_4482 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT "Venue" FROM table_4482 WHERE "Away team score" = '7.15 (57)'
8,619
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 episodes were released on DVD in the US on October 13, 2009? ### Input: CREATE TABLE table_14855908_3 ( episodes VARCHAR, region_1__us_ VARCHAR ) ### Response: SELECT episodes FROM table_14855908_3 WHERE region_1__us_ = "October 13, 2009"
3,116
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 shooter with 15 rank points, and 0 score points? ### Input: CREATE TABLE table_79032 ( "Shooter" text, "Event" text, "Rank points" text, "Score points" text, "Total" text ) ### Response: SELECT "Shooter" FROM table_79032 WHERE "Rank points" = '15' AND "Score points" = '0'
9,020
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 teams scored exactly 38 points ### Input: CREATE TABLE table_19215 ( "Team" text, "First Played" real, "Played" real, "Win" real, "Draw" real, "Loss" real, "Points For" real, "Ponts Against" real, "Last Meeting" real ) ### Response: SELECT COUNT("Team") FROM table_19215 WHERE "Points For" = '38'
1,515
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 team with a grid of 14? ### Input: CREATE TABLE table_37672 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) ### Response: SELECT "Time/Retired" FROM table_37672 WHERE "Grid" = '14'
1,137
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 they played Universidad de Chile, what was the score of the first leg? ### Input: CREATE TABLE table_21445 ( "Team #1" text, "Points" text, "Team #2" text, "1st leg" text, "2nd leg" text ) ### Response: SELECT COUNT("1st leg") FROM table_21445 WHERE "Team #2" = 'Universidad de Chile'
5,596
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 aired on august19,2012? ### Input: CREATE TABLE table_2284 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (in millions)" text ) ### Response: SELECT "Title" FROM table_2284 WHERE "Original air date" = 'August19,2012'
15,987
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 episodes had at least an average of 0.70 ? ### Input: CREATE TABLE table_204_958 ( id number, "episode" number, "original broadcast date" text, "average" number, "rank" number, "remarks" text ) ### Response: SELECT COUNT("episode") FROM table_204_958 WHERE "average" >= 0.7
8,929
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 Total has a Set 1 of 25 22? ### Input: CREATE TABLE table_37921 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text ) ### Response: SELECT "Total" FROM table_37921 WHERE "Set 1" = '25–22'
8,989
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 points against when the losing bonus is 0 and the club is banwen rfc? ### Input: CREATE TABLE table_name_32 ( points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR ) ### Response: SELECT points_against FROM table_name_32 WHERE losing_bonus = "0" AND club = "banwen rfc"
2,744
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 president who was an independent also had the longest reign for an independent ? ### Input: CREATE TABLE table_201_29 ( id number, "#" text, "picture" text, "name" text, "took office" text, "left office" text, "party" text ) ### Response: SELECT "name" FROM table_201_29 WHERE "party" = 'independent' ORDER BY JULIANDAY("left office") - JULIANDAY("took office") DESC LIMIT 1
9,802
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 players are from Indianapolis, Indiana? ### Input: CREATE TABLE table_17085 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text ) ### Response: SELECT COUNT("Player") FROM table_17085 WHERE "Hometown" = 'Indianapolis, Indiana'
12,126
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 Place of the Player with a Score of 69-72-72=213? ### Input: CREATE TABLE table_12501 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) ### Response: SELECT "Place" FROM table_12501 WHERE "Score" = '69-72-72=213'
181
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 year with a kurtis kraft 500a chassis? ### Input: CREATE TABLE table_71618 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) ### Response: SELECT SUM("Year") FROM table_71618 WHERE "Chassis" = 'kurtis kraft 500a'
6,739
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 Outcome in 1983 of the WD Event? ### Input: CREATE TABLE table_75654 ( "Outcome" text, "Event" text, "Year" text, "Venue" text, "Partner" text ) ### Response: SELECT "Outcome" FROM table_75654 WHERE "Event" = 'wd' AND "Year" = '1983'
1,017
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: belinda and simona were among the oldest finalists but who was the youngest ? ### Input: CREATE TABLE table_203_129 ( id number, "finalist" text, "age" number, "from" text, "dress colour" text, "status" text ) ### Response: SELECT "finalist" FROM table_203_129 ORDER BY "age" LIMIT 1
7,446
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 attendance for the game against the Kansas City Chiefs earlier than week 13? ### Input: CREATE TABLE table_78612 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) ### Response: SELECT AVG("Attendance") FROM table_78612 WHERE "Opponent" = 'kansas city chiefs' AND "Week" < '13'
8,478
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 result for the bafta tv awards ### Input: CREATE TABLE table_53437 ( "Year" real, "Nominated For" text, "Award" text, "Category" text, "Result" text ) ### Response: SELECT "Result" FROM table_53437 WHERE "Award" = 'bafta tv awards'
10,772
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 home team is at 7:30pm in ESPN? ### Input: CREATE TABLE table_26842217_4 ( home_team VARCHAR, time VARCHAR, broadcast VARCHAR ) ### Response: SELECT home_team FROM table_26842217_4 WHERE time = "7:30pm" AND broadcast = "ESPN"
13,046
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: whom is listed first on the chart ? ### Input: CREATE TABLE table_204_978 ( id number, "position" number, "nation" number, "number" number, "name" text, "soproni liga" number, "uefa cup" number, "hungarian cup" number, "league cup" number, "total" number ) ### Response: SELECT "name" FROM table_204_978 WHERE id = 1
10,027
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 model had the highest starting price ### Input: CREATE TABLE table_203_42 ( id number, "model" text, "class" text, "length" text, "fuel" text, "starting price" text ) ### Response: SELECT "model" FROM table_203_42 ORDER BY "starting price" DESC LIMIT 1
9,234