query-229430df7ff59c452e87bd61980cf811

rq turtle/ttl

title:Objects that have appeared in most exhibitions SELECT ?item ?itemLabel ?itemDescription (COUNT(DISTINCT ?exhibited) as ?count) WHERE { ?item wdt:P608 ?exhibited MINUS {?item wdt:P31 wd:Q5} # exclude artists MINUS {?item wdt:P279 []} # exclude types of thing (e.g. fighter aircraft!) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } } GROUP BY ?item ?itemLabel ?itemDescription ORDER BY DESC(?count) LIMIT 10

Use at

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:Objects that have appeared in most exhibitions
SELECT ?item ?itemLabel ?itemDescription (COUNT(DISTINCT ?exhibited) as ?count) WHERE {
  ?item wdt:P608 ?exhibited
  MINUS {?item wdt:P31 wd:Q5} # exclude artists
  MINUS {?item wdt:P279 []} # exclude types of thing (e.g. fighter aircraft!)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} GROUP BY ?item ?itemLabel ?itemDescription
ORDER BY DESC(?count) LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v3("?exhibited"):::projected v2("?item"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P608"--> v3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> c3 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P279"--> a1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind3[/"count(?exhibited)"/] v3 --o bind3 bind3 --as--o v4