query-2afd91e9ecb0cb488b318c7f4557d0c7
auction houses
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?loc ?locLabel (count(?item) as ?count) (SAMPLE(?item) as ?sampleitem) WHERE {
?item wdt:P170 wd:Q381238 .
?item p:P793 ?statement .
?statement pq:P276 ?loc.
?statement ps:P793 wd:Q177923
SERVICE wikibase:label { bd:serviceParam wikibase:language "pl,pl" }
} group by ?loc ?locLabel
order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v2("?item"):::projected
v4("?loc"):::projected
v5("?sampleitem")
v3("?statement")
c10(["pl,pl"]):::literal
c2(["wd:Q381238"]):::iri
c8(["bd:serviceParam"]):::iri
c6(["wd:Q177923"]):::iri
v2 --"p:direct/P170"--> c2
v2 --"p:P793"--> v3
v3 --"p:qualifier/P276"--> v4
v3 --"p:statement/P793"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v5
bind3[/"sample(?item)"/]
v2 --o bind3
bind3 --as--o v5