Flag is part of Dog. Dog is related to Tail. Tail is related to String. String is related to Stretch. 
Base is the opposite of Head. Head is related to Piece. 
Flag --PartOf--> Dog <--RelatedTo--> Tail <--RelatedTo--> String <--RelatedTo--> Stretch 
Base <--Antonym--> Head <--RelatedTo--> Piece 