Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Name the most population hervey bay for when population maryborough of 22,977 and population tiaro less than 3,287

### Inputs:
table_name: table, columns: ['Year', 'Population (Region total)', 'Population (Maryborough)', 'Population (Hervey Bay)', 'Population (Woocoo)', 'Population (Tiaro)']

### Response:
SELECT MAX Population (Hervey Bay) FROM table WHERE Population (Maryborough) = 22,977 AND Population (Tiaro) < 3,287