query-3df6dd66368ac94859bb52dd7d08f857
catalog auction results
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 ?item ?img ?locLabel ?date ?price WHERE {
?item wdt:P170 wd:Q381238 .
?item wdt:P18 ?img .
?item p:P793 ?statement .
?statement pq:P276 ?loc.
?statement pq:P585 ?date.
optional{?statement pq:P2284 ?price.}
optional{?statement pq:P4775 ?lot.}
?statement ps:P793 wd:Q177923
SERVICE wikibase:label { bd:serviceParam wikibase:language "pl,pl" }
} order by desc(?date)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v3("?img"):::projected
v2("?item"):::projected
v5("?loc")
v7("?lot")
v6("?price"):::projected
v4("?statement")
c10(["wd:Q177923"]):::iri
c14(["pl,pl"]):::literal
c2(["wd:Q381238"]):::iri
c12(["bd:serviceParam"]):::iri
v2 --"p:direct/P170"--> c2
v2 --"p:direct/P18"--> v3
v2 --"p:P793"--> v4
v4 --"p:qualifier/P276"--> v5
v4 --"p:qualifier/P585"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P2284".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P4775".-> v7
end
v4 --"p:statement/P793"--> c10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end