Illegal is similar to Hot. Hot is a synonym of Beautiful. Beautiful is a synonym of Just. Just is a synonym of Square. 
Nice is related to Clock. you are likely to find Clock in/at/on Car. Cab is a type of Car. Cab is related to Passenger. 
Illegal <--SimilarTo--> Hot <--Synonym--> Beautiful <--Synonym--> Just <--Synonym--> Square 
Nice <--RelatedTo--> Clock --AtLocation--> Car <--IsA-- Cab <--RelatedTo--> Passenger 