Is there any way to express and add to custom queries, queries like:
# Any project that has subprojects
# Any project than is NOT a subproject
# Joined projects that have subprojects
# Joined projects that are not subproject themselves
# Joined projects that have subprojects and are not subproject themselves