simpler get_votes query