query-bf351ef0b27b1398c831eee14e5622b3
les éléments dans Wikidata disposant d'une ID SAPA et étant une organisation par type SELECT ?type ?typeLabel (COUNT(?type) AS ?count) WITH { SELECT DISTINCT ?item WHERE { ?item (wdt:P31/(wdt:P279*)) wd:Q43229. hint:Prior hint:gearing "forward". ?item wdt:P8974 []. hint:Prior hint:runFirst true. } } as %i WHERE { INCLUDE %i ?item wdt:P31 ?type. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?typeLabel ?type ?count ORDER BY DESC (?count)
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#>
#les éléments dans Wikidata disposant d'une ID SAPA et étant une organisation par type
SELECT ?type ?typeLabel (COUNT(?type) AS ?count) WHERE
{
{
SELECT DISTINCT ?item WHERE {
?item (wdt:P31/(wdt:P279*)) wd:Q43229.
hint:Prior hint:gearing "forward".
?item wdt:P8974 [].
hint:Prior hint:runFirst true.
} } ?item wdt:P31 ?type.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?typeLabel ?type ?count
ORDER BY DESC (?count)