fixed top_voted queries to rank votes