Query for unload is not a select query.

The unload query does not contain a SELECT statement.

Modify the query so that it contains a SELECT statement.