query-302b99e7919a16a14f46827cf11008d1

rq turtle/ttl

SEO Orgs?

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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE {
   {
  SELECT DISTINCT ?person WHERE {
    {
      ?person p:P106 ?statement0.
      ?statement0 (ps:P106/(wdt:P279*)) wd:Q4048723.
    }
    UNION
    {
      ?person p:P31 ?statement1.
      ?statement1 (ps:P31/(wdt:P279*)) wd:Q4048723.
    }
    UNION
    {
      ?person p:P101 ?statement2.
      ?statement2 (ps:P101/(wdt:P279*)) wd:Q180711.
    }
  }
  LIMIT 1000
}
  ?item p:P112 ?statementa.
  ?statementa (ps:P112/(wdt:P279*)) ?person.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?item"):::projected v1("?person") v2("?statement0") v3("?statement1") v4("?statement2") v6("?statementa") a1((" ")) a2((" ")) a3((" ")) a4((" ")) c9(["wd:Q180711"]):::iri c13(["bd:serviceParam"]):::iri c4(["wd:Q4048723"]):::iri c15(["#91;AUTO_LANGUAGE#93;"]):::literal 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; v1 --"p:P101"--> v4 v4 --"p:statement/P101"--> a3 a3 --"p:direct/P279"--> c9 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"p:P31"--> v3 v3 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c4 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"p:P106"--> v2 v2 --"p:statement/P106"--> a1 a1 --"p:direct/P279"--> c4 end union0r <== or ==> union0l end v5 --"p:P112"--> v6 v6 --"p:statement/P112"--> a4 a4 --"p:direct/P279"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end