Building a Poll App & Advanced SQL - PostgreSQL window functions