Regarding extraction of structural parameter from lammps trajectory

Hi I am using compute command like below. My intention was to calculate bond distance between atom 1 and atom 2 which is type 1 in bond type section. I am little confused how to use the compute property/local command. In both cases, I got Illegal compute property/local error. Can anybody correct me where I am making mistake here.