query-d322ba3ab9800c43c7ba1412a203941c
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?number WHERE {
{
SELECT ?number WHERE {
?nn wdt:P31 wd:Q21199.
?nn wdt:P1181 ?number .
FILTER (?number >= 1000 && ?number <= 10000)
} } BIND(xsd:integer(?number) as ?b)
?item wikibase:statements ?b.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by desc(?number)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?b")
v4("?item"):::projected
v2("?nn")
v1("?number"):::projected
c4(["wd:Q21199"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?number >= '1000^^xsd:integer'?number <= '10000^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P31"--> c4
v2 --"wdt:P1181"--> v1
bind1[/"http://www.w3.org/2001/XMLSchema#integer(?number)"/]
v1 --o bind1
bind1 --as--o v3
v4 --"wikibase:statements"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end