query-4e749b758369ed263670e7a810121c8f
Propertiesinstance of (P31)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription (COUNT(DISTINCT STR(?prefLabel)) AS ?strCount)
WHERE {
VALUES ?item {
wd:Q845648
wd:Q934262
wd:Q10450274
wd:Q1059073
wd:Q431758
wd:Q1699018
wd:Q127578
wd:Q804988
wd:Q1634177
wd:Q1159973
wd:Q611733
wd:Q804970
wd:Q1679557
}
?item wdt:P31 wd:Q101352 ;
rdfs:label ?prefLabel .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?itemDescription
ORDER BY DESC(?strCount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?prefLabel"):::projected
v4("?strCount")
c2(["wd:Q101352"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v2
bind00(["wd:Q845648"])
bind00 --> bind0
bind01(["wd:Q934262"])
bind01 --> bind0
bind02(["wd:Q10450274"])
bind02 --> bind0
bind03(["wd:Q1059073"])
bind03 --> bind0
bind04(["wd:Q431758"])
bind04 --> bind0
bind05(["wd:Q1699018"])
bind05 --> bind0
bind06(["wd:Q127578"])
bind06 --> bind0
bind07(["wd:Q804988"])
bind07 --> bind0
bind08(["wd:Q1634177"])
bind08 --> bind0
bind09(["wd:Q1159973"])
bind09 --> bind0
bind010(["wd:Q611733"])
bind010 --> bind0
bind011(["wd:Q804970"])
bind011 --> bind0
bind012(["wd:Q1679557"])
bind012 --> bind0
v2 --"wdt:P31"--> c2
v2 --"rdfs:label"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(str(?prefLabel))"/]
v3 --o bind2
bind2 --as--o v4