human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: County, Population (2011), Population (2006), Change (%), Area (km²), Population density
###Question: In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135?
gpt
SELECT MAX Population density FROM table WHERE County = prince AND Area (km²) > 3.02 AND Population (2006) > 786 AND Population (2011) < 1135