The boy is doing a handstand on the pavement.
The boy is doing a handstand in a church.
The boy performing a handstand on the pavement implies he is outdoors, as where the boy doing the handstand in the church implies he is indoors.
exists e1 x1 x2 x3.(n_pavement(x3) & n_boy(x1) & Theme(e1,x2) & Actor(e1,x1) & v_do(e1) & on(x2,x3) & n_handstand(x2))
exists e1 x1 x2 x3.(n_boy(x1) & Theme(e1,x2) & Actor(e1,x1) & v_do(e1) & in(x2,x3) & n_church(x3) & n_handstand(x2))