Music is a type of Punishment. Jail can be used for Punishment. you are likely to find Crime in/at/on Jail. 
Pistol can be used for Train. Pistol is a type of Weapon. 
Music --IsA--> Punishment <--UsedFor-- Jail <--AtLocation-- Crime 
Train <--UsedFor-- Pistol --IsA--> Weapon 