Postgres View Function Sql Syntax Interview