query-3b538ecb7ffaf9af9d8e2efc1b8f74e2

rq turtle/ttl

Gib mir die Schnittmenge aus Konsortialbeteiligten (Applicants. Coaplicants, Participants) und Vereinsmitgliedern!

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?p ?pLabel ?w ?wLabel ?affiliationType ?affiliationTypeLabel
WHERE 
{
  ?w wdt:P463 wd:Q105757481 .
  ?p wdt:P31 wd:Q98270496 .
  ?p p:P1416 ?statement .
  ?statement ps:P1416 ?wx .
  ?wx wdt:P361* ?w . 
#   {{ ?wx wdt:P361* ?w } UNION { ?wx wdt:P749* ?w }} 
  #?wx (wdt:P361|wdt:P749)* ?w .
  OPTIONAL { ?statement pq:P3831 ?affiliationType .}  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} ORDER BY ASC(?pLabel) ASC(?wLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?affiliationType"):::projected v4("?p"):::projected v1("?pLabel"):::projected v5("?statement") v3("?w"):::projected v2("?wLabel"):::projected v6("?wx") c10(["bd:serviceParam"]):::iri c2(["wd:Q105757481"]):::iri c12(["de,en"]):::literal c4(["wd:Q98270496"]):::iri v3 --"p:direct/P463"--> c2 v4 --"p:direct/P31"--> c4 v4 --"p:P1416"--> v5 v5 --"p:statement/P1416"--> v6 v6 --"p:direct/P361"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P3831".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end