Queiroz could take advice from Sir Alex Ferguson if he has a problem next summer , having worked as his assistant , but he is a coach in his own right having led Portugal in the ' 90s , as well as South Africa and Real Madrid .