A girl wearing an hat and holding an iPod sits on the side of a building.
A girl sits on the side of building with hat and ipod.
Both sentence are talking about girl.
exists e2 e1 e3 x1 x2 x3 x4 x5 x6 x7.(n_side(x6) & on(e3,x6) & of(x6,x7) & n_building(x7) & Actor(e3,x1) & v_sit(e3) & Theme(e2,x5) & Actor(e2,x4) & v_hold(e2) & n_ipod(x5) & (x1 = x4) & Theme(e1,x3) & Actor(e1,x2) & v_wear(e1) & n_hat(x3) & (x1 = x2) & n_girl(x1))
exists e1 x1 x2 x3 x4 x5 x6.(n_side(x2) & with(e1,x4) & n_ipod(x6) & n_hat(x5) & subset_of(x6,x4) & subset_of(x5,x4) & on(e1,x2) & of(x2,x3) & n_building(x3) & Actor(e1,x1) & v_sit(e1) & n_girl(x1))