query-fc2c3e78c0e15a19a45bac560d243e63
Amadalvarez Compta quants statements té un tipus d'itemVersió més reduïda i ràpida de l'anterior. Compta els "claims" de les P31/P279 = eleccions
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 ?property ?propertyLabel ?count
WHERE
{
{
SELECT ?property (COUNT(*) as ?count)
WHERE
{
{
SELECT DISTINCT ?item
WHERE
{
?item wdt:P31/wdt:P279* wd:Q40231 .
}
} ?item ?claim [] .
?property wikibase:claim ?claim .
}
GROUP BY ?property
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY DESC(?count)
Query found at
- https://www.wikidata.org/wiki/User:Amadalvarez/Queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2020/11
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?claim")
v5("?count"):::projected
v2("?item")
v4("?property"):::projected
a2((" "))
a1((" "))
c6(["bd:serviceParam"]):::iri
c3(["wd:Q40231"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 -->v3--> a2
v4 --"wikibase:claim"--> v3
bind1[/"count(*)"/]
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end