SELECT homeTeam,awayTeam FROM Team T1 LEFT JOIN Matches T2 ON T1.teamId=T2.homeTeam WHERE T2.homeTeam = or T2.awayTeam =