query-c78277610c24be5aa0ba5fef8f661234

rq turtle/ttl

Types of things that get replaced by something else (P1366) SELECT ?typeReplaced ?typeReplacedLabel (COUNT(DISTINCT ?item) AS ?numItems) WHERE { ?item wdt:P1366 [] ; wdt:P31 ?typeReplaced . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?typeReplaced ?typeReplacedLabel ORDER BY DESC(?numItems) LIMIT 100

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Types of things that get replaced by something else (P1366)
SELECT ?typeReplaced ?typeReplacedLabel (COUNT(DISTINCT ?item) AS ?numItems)
WHERE {
  ?item wdt:P1366 [] ;
        wdt:P31 ?typeReplaced .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?typeReplaced ?typeReplacedLabel
ORDER BY DESC(?numItems)
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v4("?numItems") v3("?typeReplaced"):::projected a1((" ")) c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P1366"--> a1 v2 --"wdt:P31"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v4