user: ### NOW ANSWER:
Question: Median household income of $40,340, and a Number of households smaller than 64767 is what average population?
Columns: ['County', 'Per capita income', 'Median household income', 'Median family income', 'Population', 'Number of households']
Types: ['text', 'text', 'text', 'text', 'real', 'real']
Sample row: ['Maricopa', '$27,816', '$55,054', '$65,438', 3817117.0, 1411583.0]
SQL:

assistant: SELECT AVG("Population") FROM "Table" WHERE "Median household income" = '$40,340' AND "Number of households" < 64767.0;