user: Question: Name the most population hervey bay for when population maryborough of 22977 and population tiaro less than 3287
Columns: ['Year', 'Population (Region total)', 'Population (Maryborough)', 'Population (Hervey Bay)', 'Population (Woocoo)', 'Population (Tiaro)']
Types: ['real', 'real', 'real', 'real', 'real', 'real']
Sample row: [1933.0, 22170.0, 11415.0, 6835.0, 777.0, 3143.0]
SQL:

assistant: SELECT MAX("Population (Hervey Bay)") FROM "Table" WHERE "Population (Maryborough)" = 22977.0 AND "Population (Tiaro)" < 3287.0;