query-6521d1cacc74ae5f0b7f75e72c01c683

rq turtle/ttl

DescriptionEvery person with Bangladeshi citizenship with a description in English language but not in Bangla.

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemLabel_bn {
   {
  SELECT ?item WHERE {
    ?item wdt:P31 wd:Q5 .
    ?item wdt:P27 wd:Q902 .
    filter not exists { ?item schema:description ?itemDesc_bn . filter(lang(?itemDesc_bn)="bn") }
  } LIMIT 200
}  optional {?item rdfs:label ?itemLabel_bn . filter(lang(?itemLabel_bn)="bn")}
  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; v3("?item"):::projected v2("?itemDesc_bn") v1("?itemLabel_bn"):::projected c9(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q902"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?itemDesc_bn = 'bn'"]] e0f0 --> e0v1 e0v2 --"schema:description"--> e0v1 e0v2("?item"):::projected e0v1("?itemDesc_bn"):::projected end f0--EXISTS--> f0e0 f0 --> v2 f0 --> v3 f0 --> c2 f1[["?itemDesc_bn = 'bn'"]] f1 --> v2 v3 --"schema:description"--> v2 v3 --"wdt:P31"--> c4 v3 --"wdt:P27"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end