CREATE TABLE "summary_of_results_2005" (
  "party" text,
  "burnley" real,
  "chorley" real,
  "fylde" real,
  "hyndburn" real,
  "lancaster" real,
  "pendle" real,
  "preston" real,
  "ribble_valley" real,
  "rossendale" real,
  "south_ribble" real,
  "west_lancashire" real,
  "wyre" real,
  "total" real
);

Question: What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire?
SQL: SELECT MIN("chorley") FROM "summary_of_results_2005" WHERE "preston"=6 AND "west_lancashire"<4;

Question: What is the average rating for a Flyde that has a Burnley less than 0?
SQL: SELECT AVG("fylde") FROM "summary_of_results_2005" WHERE "burnley"<0;

Question: What is the highest rated West Lancashire with a Pendle greater than 1 and a Rossendale more than 2?
SQL: SELECT MAX("west_lancashire") FROM "summary_of_results_2005" WHERE "pendle">1 AND "rossendale">2;

Question: What was the average Chorley for the Labour party that had a Rossendale greater than 0 and a Pendle less than 1?
SQL: SELECT AVG("chorley") FROM "summary_of_results_2005" WHERE "rossendale">0 AND "party"='labour' AND "pendle"<1;