query-5c20fb6c7a401ea6133c4293108f7c60
Most common social media platforms for government organizations in a given country
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#>
#title: Most common social media platforms for government organizations in South Africa
#defaultView:BubbleChart
SELECT DISTINCT ?property ?propertyLabel (COUNT(?item) AS ?count) WHERE {
?property wdt:P31 wd:Q105388954;
wikibase:directClaim ?wdt .
?item ?wdt [] ;
wdt:P31/wdt:P279* wd:Q2659904 ;
wdt:P17 wd:Q258 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?property ?propertyLabel ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v4("?item"):::projected
v2("?property"):::projected
v3("?wdt")
a1((" "))
a2((" "))
c7(["wd:Q258"]):::iri
c5(["wd:Q2659904"]):::iri
c2(["wd:Q105388954"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wikibase:directClaim"--> v3
v4 -->v3--> a1
v4 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c5
v4 --"wdt:P17"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind1[/"count(?item)"/]
v4 --o bind1
bind1 --as--o v5