An old man is sleeping at a table in front of a book shelf.
An elderly person rests near some books.
old man is elderly person and sleeping means he rests.
exists e1 s1 x1 x2 x3 x4 x5.(at(e1,x2) & in(x2,x3) & of(x3,x4) & n_shelf(x4) & of(x4,x5) & n_book(x5) & n_front(x3) & n_table(x2) & Actor(e1,x1) & v_sleep(e1) & n_man(x1) & a_old(s1) & Theme(s1,x1))
exists e1 s1 x1 x2.(near(e1,x2) & n_book(x2) & Actor(e1,x1) & v_rest(e1) & n_person(x1) & a_elderly(s1) & Theme(s1,x1))