What is the average weeks of a song with a larger than 3 position after 1977?
CREATE TABLE "charts" (
  "year" real,
  "single" text,
  "chart" text,
  "position" real,
  "weeks_on_chart" real
);
SELECT AVG("weeks_on_chart") FROM "charts" WHERE "position">3 AND "year">1977;