Hi,
you can use group predicate to combine queries
https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/query-builder/querybuilder-api.html?lang=en#search-under-multiple-paths-using-groups
Some sample queries
---------------
Type=cq:Page
group.1_path=/content/we-retail/us/en/experience
group.1_path.self=true
group.2_path=/content/we-retail/us/en/men
group.2_path.self=true
group.3_path=/content/we-retail/us/en/women
group.3_path.self=true
group.4_path=/content/we-retail/us/en/equipment
group.4_path.self=true
group.p.or=true
orderby=@jcr:created
p.limit=-1
--------------
group.1_property=color
group.1_property.operation= exists
group.1_property=font
group.1_property.operation= exists
group.1_property.or=true
group.2_property=jcr:primaryType
group.2_property.value=cq:Page
group.2_property=jcr:primaryType
group.2_property.value=dam:Asset
group.2_property.or=true
group.3_group.path=/content/geometrixx/en
group.3_group.path=/content/dam/geometrixx
group.3_property.or=true
group.p.or=false
------------------