I would say that you have to create 2 queries, "Parent" and "Child", first with "Project Name" field, second with "Project Name" and "Parent Project Name" field. Join them with "Project Name" and "Parent Project Name" as key and from result set you'll see which projects have no child projects.