query-846416ba452c603820c38cc2fdba2278
title: distribuzione fonti per statement occupazione scrittore del regno SELECT ?fonteoccLabel (COUNT(?item) AS ?count) WHERE { ?item wdt:P31 wd:Q5; wdt:P27 wd:Q172579; wdt:P106 wd:Q36180. ?item p:P106 ?statement. ?statement prov:wasDerivedFrom ?ref. ?ref pr:P248 ?fonteocc. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?fonteoccLabel
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: distribuzione fonti per statement occupazione scrittore del regno
SELECT ?fonteoccLabel (COUNT(?item) AS ?count) WHERE {
?item wdt:P31 wd:Q5;
wdt:P27 wd:Q172579;
wdt:P106 wd:Q36180.
?item p:P106 ?statement.
?statement prov:wasDerivedFrom ?ref.
?ref pr:P248 ?fonteocc.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?fonteoccLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v4("?fonteocc")
v1("?item"):::projected
v3("?ref")
v2("?statement")
c6(["wd:Q36180"]):::iri
c11(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["wd:Q172579"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P27"--> c4
v1 --"p:direct/P106"--> c6
v1 --"p:P106"--> v2
v2 --"prov:wasDerivedFrom"--> v3
v3 --"p:reference/P248"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end
bind1[/"count(?item)"/]
v1 --o bind1
bind1 --as--o v5