CREATE TABLE "winning_head_of_the_river_championship_e" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colours" text,
  "abbreviation" text,
  "in_competition_since" real
);

Question: How many schools have an enrollment of 850?
SQL: SELECT COUNT("founded") FROM "winning_head_of_the_river_championship_e" WHERE "enrolment"=850;

Question: What is the location of the school named Brisbane Girls' Grammar School?
SQL: SELECT "location" FROM "winning_head_of_the_river_championship_e" WHERE "school"='Brisbane Girls'' Grammar School';

Question: How many schools are located in South Brisbane?
SQL: SELECT COUNT("school") FROM "winning_head_of_the_river_championship_e" WHERE "location"='South Brisbane';

Question: When was SPLC founded?
SQL: SELECT MIN("founded") FROM "winning_head_of_the_river_championship_e" WHERE "abbreviation"='SPLC';

Question: What is the enrollment of STM which has been in competition since 1990?
SQL: SELECT COUNT("enrolment") FROM "winning_head_of_the_river_championship_e" WHERE "in_competition_since"=1990 AND "abbreviation"='STM';