Postgres requires that a WINDOW clause, if one exists, follow the WHERE,
GROUP BY, and HAVING clauses, if they exist.