=query(G2:I80,"select G,H,I where H=max(H) group by I",-1)
Columnn G is names Column H is vote count and Column I is Their respective teams.
I want to view the top voted names of each team and sometimes the some top voted names are tied so I wanna view both names using the query above but it dont seem to work.
I am not entirely sure what you want (a formula that does not work is not a good guide) but perhaps: