A man is holding a drink next to another man smoking.
the men are by each other
The men are standing next to another, so it follows they are by each other.
exists e1 x1 x2 x3 x4 x5 x6.(Theme(e1,x2) & Actor(e1,x1) & v_hold(e1) & to(x3,x5) & n_smoking(x5) & of(x5,x6) & n_man(x6) & -(x5 = x4) & n_smoking(x4) & of(x4,x1) & n_man(x1) & n_man(x1) & next(x2,x3) & n_thing(x3) & n_drink(x2))
exists p1 x1.(n_man(x1) & all x2.(n_other(x2) -> by(x1,x2)))