query-db79b6461193187f1ef71464d1a1f38c

rq turtle/ttl

Ensemble des personnes avec comme prénom Élisabeth, Elisabeth ou Elizabeth de rang 1

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?item ?itemLabel  WHERE {
  VALUES ?target {
    wd:Q385468
    wd:Q17524931
    wd:Q18093037
  }
  ?item p:P735 ?statement.
  ?statement ps:P735  ?target.
  OPTIONAL { ?statement pq:P1545 ?rank. }
  BIND(IF(BOUND(?rank),?rank, 0) AS ?rank2)
  FILTER(xsd:integer(?rank2) < xsd:integer(2))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v5("?rank") v6("?rank2") v4("?statement") v2("?target") c6(["bd:serviceParam"]):::iri c8(["fr,en"]):::literal f0[["http://www.w3.org/2001/XMLSchema#integer(?rank2) < http://www.w3.org/2001/XMLSchema#integer('2^^xsd:integer')"]] f0 --> v6 bind1[/VALUES ?target/] bind1-->v2 bind10(["wd:Q385468"]) bind10 --> bind1 bind11(["wd:Q17524931"]) bind11 --> bind1 bind12(["wd:Q18093037"]) bind12 --> bind1 v3 --"p:P735"--> v4 v4 --"p:statement/P735"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P1545".-> v5 end bind2[/"if(bound(?rank),?rank,'0^^xsd:integer')"/] v5 --o bind2 bind2 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end