Description: The model of Petri for the analysis of inquiries in a database is given. The algorithm for construction a tree of accessible of a network of Petri is offered. The comparison with algorithm Little is carried out.