query-3f87d6fedee06c0ee9985268cc5c8b18
aukcje/ceny/waluty
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 pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?locLabel ?date ?price ?unitLabel WHERE {
?item wdt:P170 wd:Q381238 .
?item wdt:P18 ?img .
?item p:P793 ?statement .
?statement pq:P276 ?loc.
?statement pq:P585 ?date.
?statement pq:P2284 ?price_statement.
?statement pqv:P2284 [ wikibase:quantityAmount ?price ; wikibase:quantityUnit ?unit ] .
?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")
v2("?item"):::projected
v5("?loc")
v7("?price"):::projected
v6("?price_statement")
v4("?statement")
v8("?unit")
a1((" "))
c12(["wd:Q177923"]):::iri
c16(["pl,pl"]):::literal
c2(["wd:Q381238"]):::iri
c14(["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
v4 --"p:qualifier/P2284"--> v6
a1 --"wikibase:quantityAmount"--> v7
a1 --"wikibase:quantityUnit"--> v8
v4 --"p:qualifier/value/P2284"--> a1
v4 --"p:statement/P793"--> c12
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end