query-d0d754d1c5de954df35c205e47bbe165

rq turtle/ttl

Propertiescountry of citizenship (P27)instance of (P31)participant in (P1344)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?athlete ?athleteLabel WHERE {
  ?athlete wdt:P27 wd:Q1028.
  ?olympics wdt:P31 wd:Q159821.
  ?athlete wdt:P1344 ?olympics.

  ?en_article schema:about ?athlete;
    schema:inLanguage "en";
    schema:isPartOf <https://en.wikipedia.org/>.
  MINUS {
    ?ar_article schema:about ?athlete;
      schema:isPartOf <https://ar.wikipedia.org/>.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en, ar". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?ar_article") v1("?athlete"):::projected v3("?en_article") v2("?olympics") c2(["wd:Q1028"]):::iri c8(["en"]):::literal c10([https://en.wikipedia.org/]):::iri c15(["en, ar"]):::literal c13(["bd:serviceParam"]):::iri c4(["wd:Q159821"]):::iri c11([https://ar.wikipedia.org/]):::iri v1 --"wdt:P27"--> c2 v2 --"wdt:P31"--> c4 v1 --"wdt:P1344"--> v2 v3 --"schema:about"--> v1 v3 --"schema:inLanguage"--> c8 v3 --"schema:isPartOf"--> c10 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v4 --"schema:about"--> v1 v4 --"schema:isPartOf"--> c11 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end