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

Question: What is the average new council number when the election result is smaller than 0?
SQL: SELECT AVG("new_council") FROM "council_composition" WHERE "election_result"<0;

Question: How many seats were up for election during the vote where the election result was 9 and the new council 27?
SQL: SELECT SUM("seats_up_for_election") FROM "council_composition" WHERE "election_result"=9 AND "new_council">27;

Question: How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?
SQL: SELECT AVG("staying_councillors") FROM "council_composition" WHERE "election_result">0 AND "party"='conservatives' AND "new_council"<27;