create query on page 111 from Graph DB book