query-132de70f020a9cb6682babf5bca51f24
Elisabeth les plus connues
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 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 ?itemDescription (COUNT(*) AS ?count) WHERE {
VALUES ?target {
wd:Q385468
wd:Q17524931
wd:Q18093037
}
?item wdt:P31 wd:Q5;
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))
?sitelink schema:about ?item.
FILTER (SUBSTR(str(?sitelink), 11, 15) = ".wikipedia.org/") .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}
GROUP BY ?item ?itemLabel ?itemDescription
ORDER BY DESC (?count)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?count")
v5("?item"):::projected
v7("?rank")
v8("?rank2")
v2("?sitelink")
v6("?statement")
v4("?target")
c12(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c14(["fr,en"]):::literal
f0[["substring(str(?sitelink),'11^^xsd:integer','15^^xsd:integer') = '.wikipedia.org/'"]]
f0 --> v2
f1[["http://www.w3.org/2001/XMLSchema#integer(?rank2) < http://www.w3.org/2001/XMLSchema#integer('2^^xsd:integer')"]]
f1 --> v8
bind2[/VALUES ?target/]
bind2-->v4
bind20(["wd:Q385468"])
bind20 --> bind2
bind21(["wd:Q17524931"])
bind21 --> bind2
bind22(["wd:Q18093037"])
bind22 --> bind2
v5 --"p:direct/P31"--> c6
v5 --"p:P735"--> v6
v6 --"p:statement/P735"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."p:qualifier/P1545".-> v7
end
bind3[/"if(bound(?rank),?rank,'0^^xsd:integer')"/]
v7 --o bind3
bind3 --as--o v8
v2 --"schema:about"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind5[/"count(*)"/]
bind5 --as--o v8