To create a query diagram see the section called “Query Diagram (current project)”
How to search for entities into the database: see paragraph 2.