writing one query method for poll results