query-007d652f195cb24f6f34ca691ac6991d

rq turtle/ttl

deprecated(P527)has part(s) (P361)part of (CLAIM[195:812285] OR CLAIM[195:(CLAIM[361:812285])] OR CLAIM[276:812285] OR CLAIM[276:(CLAIM[361:812285])]) AND (CLAIM[527] OR CLAIM[361])

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
  { ?item wdt:P195 wd:Q812285. }
  UNION
  {
    ?item wdt:P195 ?sub0.
    ?sub0 wdt:P361 wd:Q812285.
  }
  UNION
  { ?item wdt:P276 wd:Q812285. }
  UNION
  {
    ?item wdt:P276 ?sub1.
    ?sub1 wdt:P361 wd:Q812285.
  }
  { ?item wdt:P527 _:b16. }
  UNION
  { ?item wdt:P361 _:b17. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?sub0") v3("?sub1") a1((" ")) a2((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q812285"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P276"--> v3 v3 --"wdt:P361"--> c2 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P276"--> c2 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P195"--> v2 v2 --"wdt:P361"--> c2 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P195"--> c2 end union0r <== or ==> union0l end subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P361"--> a2 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P527"--> a1 end union3r <== or ==> union3l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end