Database: professional_basketball
Question: State the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000?
SQL: SELECT T1.name FROM teams AS T1 INNER JOIN series_post AS T2 ON T1.tmID = T2.tmIDLoser AND T1.year = T2.year WHERE T1.rank < 5 AND T2.lgIDLoser > 2 AND T2.year BETWEEN 1980 AND 2000