What year had a pole smaller than 0 and in 77th position?
CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
SELECT MAX("year") FROM "nascar_sprint_cup_series" WHERE "position"='77th' AND "poles"<0;