user: ### NOW ANSWER:
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 4597?
Columns: ['2005', '2006', '2007', '2008', '2009', '2010', 'Total', 'Average annual']
Types: ['real', 'real', 'real', 'real', 'real', 'real', 'real', 'real']
Sample row: [310.0, 310.0, 310.0, 310.0, 310.0, 310.0, 1860.0, 310.0]
SQL:

assistant: SELECT AVG("2005") FROM "Table" WHERE "2008" > 0.0 AND "2007" > 310.0 AND "Average annual" = 767.0 AND "Total" > 4597.0;