query-d88ee465aac125d8c98f568da826aa6a
Liste des éléments avec comme prénom de rang 1 Elisabeth
Use at
- https://query.wikidata.org/sparql
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 ?rank ?rank2 WHERE {
?item p:P735 ?statement.
?statement ps:P735 wd:Q385468.
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". }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?rank"):::projected
v5("?rank2"):::projected
v3("?statement")
c7(["bd:serviceParam"]):::iri
c4(["wd:Q385468"]):::iri
c9(["fr,en"]):::literal
f0[["http://www.w3.org/2001/XMLSchema#integer(?rank2) < http://www.w3.org/2001/XMLSchema#integer('2^^xsd:integer')"]]
f0 --> v5
v2 --"p:P735"--> v3
v3 --"p:statement/P735"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P1545".-> v4
end
bind1[/"if(bound(?rank),?rank,'0^^xsd:integer')"/]
v4 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end