Which Staying councillors have a New council of 7, and a Previous council larger than 8?
CREATE TABLE "results" (
  "party" text,
  "previous_council" real,
  "staying_councillors" real,
  "seats_up_for_election" real,
  "election_result" real,
  "new_council" real
);
SELECT AVG("staying_councillors") FROM "results" WHERE "new_council"=7 AND "previous_council">8;