A man is sitting at a table, working with a machine of some sort.
A man is sitting at a table with his friends, working with a machine of some sort.
Because a man is working on a machine does not mean he is with friends.
exists e1 e2 x1 x2 x3 x4.(for(e1,e2) & with(e2,x3) & of(x3,x4) & n_sort(x4) & n_machine(x3) & Actor(e2,x1) & v_work(e2) & at(e1,x2) & n_table(x2) & Actor(e1,x1) & v_sit(e1) & n_man(x1))
exists e1 e2 x1 x2 x3 x4 x5.(for(e1,e2) & with(e2,x4) & of(x4,x5) & n_sort(x5) & n_machine(x4) & Actor(e2,x1) & v_work(e2) & with(e1,x3) & n_friend(x3) & of(x3,x1) & n_male(x1) & at(e1,x2) & n_table(x2) & Actor(e1,x1) & v_sit(e1) & n_man(x1))