query-8479e811c66a7c026bc53c9b0aad18be
Hopejesus55shouldare used
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
{
{
SELECT ?property (COUNT(*) AS ?count)
{
{
SELECT DISTINCT ?country
{
?country wdt:P31 / wdt:P279 * wd:Q6256 . # ?country is a country or a subclass of it
}
} ?country ?truthy_claim [] .
?property wikibase:directClaim ?truthy_claim
}
GROUP BY ?property
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count"):::projected
v2("?country")
v4("?property"):::projected
v3("?truthy_claim")
a2((" "))
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q6256"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 -->v3--> a2
v4 --"wikibase:directClaim"--> v3
bind1[/"count(*)"/]
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end