CREATE TABLE "investment" (
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "total" real,
  "average_annual" real
);

Question: What is the average value for 2005, when the value for 2008 is greater than 0, when the value for 2007 is greater than 310, when the Average annual is 767, and when the Total is greater than 4,597?
SQL: SELECT AVG("2005") FROM "investment" WHERE "2008">0 AND "2007">310 AND "average_annual"=767 AND "total">'4,597';

Question: What is the average value for 2005, when the value for Average annual is 767?
SQL: SELECT AVG("2005") FROM "investment" WHERE "average_annual"=767;