query-a617e5b38f5f7fcaacfefe367d581caf
Most used properties for asteroid
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 ?avg WHERE {
{
SELECT ?property (COUNT(DISTINCT ?item) AS ?count) (COUNT(DISTINCT ?statement)/COUNT(DISTINCT ?item) AS ?avg) WHERE {
?item wdt:P31/wdt:P279* wd:Q3863;
?p ?statement.
?property a wikibase:Property;
wikibase:claim ?p.
}
GROUP BY ?property
ORDER BY DESC(?count)
}
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;
v6("?avg"):::projected
v6("?count"):::projected
v2("?item")
v3("?p")
v5("?property"):::projected
v4("?statement")
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wikibase:Property"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q3863"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 -->v3--> v4
v5 --"a"--> c5
v5 --"wikibase:claim"--> v3
bind3[/"count(?item)"/]
v2 --o bind3
bind3 --as--o v6
bind4[/" / "/]
null --o bind4
null --o bind4
bind4 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end