query-b64ef7eb84f3ee3eba17824aaa4b767d

rq turtle/ttl

...(Co-)applicants only

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 ?consortium1Label ?organisationLabel ?consortium2Label
WHERE 
{ 
  ?consortium1 wdt:P31 wd:Q98270496 .
  ?consortium2 wdt:P31 wd:Q98270496 .
  ?consortium1 p:P1416 ?statement1 .
  ?statement1 ps:P1416 ?organisation .
  {?statement1 pq:P3831 wd:Q54875338} UNION {?statement1 pq:P3831 wd:Q105906738}
  ?statement1 pq:P3831 ?affiliationType . 
  ?consortium2 p:P1416 ?statement2 .
  ?statement2 ps:P1416 ?organisation .
  {?statement2 pq:P3831 wd:Q54875338} UNION {?statement2 pq:P3831 wd:Q105906738}
  ?statement2 pq:P3831 ?affiliationType . 
  FILTER (?consortium1 != ?consortium2)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" . }
} ORDER BY ASC(?consortium1Label) ASC(?organisationLabel) ASC(?consortium2Label)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?affiliationType") v4("?consortium1") v1("?consortium1Label"):::projected v5("?consortium2") v3("?consortium2Label"):::projected v7("?organisation") v2("?organisationLabel"):::projected v6("?statement1") v9("?statement2") c6(["wd:Q54875338"]):::iri c9(["bd:serviceParam"]):::iri c7(["wd:Q105906738"]):::iri c11(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal c2(["wd:Q98270496"]):::iri f0[["?consortium1 != ?consortium2"]] f0 --> v4 f0 --> v5 v4 --"p:direct/P31"--> c2 v5 --"p:direct/P31"--> c2 v4 --"p:P1416"--> v6 v6 --"p:statement/P1416"--> v7 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v6 --"p:qualifier/P3831"--> c7 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v6 --"p:qualifier/P3831"--> c6 end union0r <== or ==> union0l end v6 --"p:qualifier/P3831"--> v8 v5 --"p:P1416"--> v9 v9 --"p:statement/P1416"--> v7 subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v9 --"p:qualifier/P3831"--> c7 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v9 --"p:qualifier/P3831"--> c6 end union1r <== or ==> union1l end v9 --"p:qualifier/P3831"--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end