CREATE TABLE "results" (
  "party" text,
  "previous_council" real,
  "staying_councillors" real,
  "seats_up_for_election" real,
  "election_result" real,
  "new_council" real
);

Question: Which Seats up for election have an Election result larger than 8, and Staying councillors of 24?
SQL: SELECT MAX("seats_up_for_election") FROM "results" WHERE "election_result">8 AND "staying_councillors"=24;

Question: Which New council has an Election result larger than 24?
SQL: SELECT AVG("new_council") FROM "results" WHERE "election_result">24;

Question: Which Staying councillors have a New council of 7, and a Previous council larger than 8?
SQL: SELECT AVG("staying_councillors") FROM "results" WHERE "new_council"=7 AND "previous_council">8;