query-b3f172267edcac527395c0ca5c237905
TODO
Use at
- https://query.wikidata.org/sparql
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 ?century (COUNT(?gizaki) as ?count) WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?gizaki wdt:P31 wd:Q5.
?gizaki wdt:P10242 ?Lur_Encyclopedic_Dictionary_ID.
?gizaki wdt:P569 ?jaiotza.
?gizaki wdt:P21 wd:Q6581097.
BIND(SUBSTR(STR(?jaiotza), 1, 2) as ?century)
}
group by ?century
order by asc(?century)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?Lur_Encyclopedic_Dictionary_ID")
v5("?century"):::projected
v5("?count")
v2("?gizaki"):::projected
v4("?jaiotza")
c2(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c10(["wd:Q6581097"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P31"--> c6
v2 --"wdt:P10242"--> v3
v2 --"wdt:P569"--> v4
v2 --"wdt:P21"--> c10
bind0[/"substring(str(?jaiotza),'1^^xsd:integer','2^^xsd:integer')"/]
v4 --o bind0
bind0 --as--o v5
bind2[/"count(?gizaki)"/]
v2 --o bind2
bind2 --as--o v5