query-67b45964b13feb078ebe365f08acca66
title:100 latest built outdoor gyms in Sweden SELECT ?date ?item ?itemLabel ?www ?adminLabel WHERE { ?item wdt:P6104 wd:Q107186275; wdt:P17 wd:Q34; #Q34 Sweden wdt:P571 ?plannedDate.
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en,de" . }
?item wdt:P571 ?date. # date OPTIONAL { ?item wdt:P18 ?img. } OPTIONAL { ?item wdt:P131 ?admin. } OPTIONAL { ?item wdt:P856 ?www. } OPTIONAL { ?item wdt:P625 ?coord. } OPTIONAL { ?item wdt:P217 ?id. } FILTER (?plannedDate < NOW()) } order by desc(?date) limit 100
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#>
#title:100 latest built outdoor gyms in Sweden
SELECT ?date ?item ?itemLabel ?www ?adminLabel WHERE {
?item wdt:P6104 wd:Q107186275;
wdt:P17 wd:Q34; #Q34 Sweden
wdt:P571 ?plannedDate.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "sv,en,de" .
}
?item wdt:P571 ?date. # date
OPTIONAL { ?item wdt:P18 ?img. }
OPTIONAL { ?item wdt:P131 ?admin. }
OPTIONAL { ?item wdt:P856 ?www. }
OPTIONAL { ?item wdt:P625 ?coord. }
OPTIONAL { ?item wdt:P217 ?id. }
FILTER (?plannedDate < NOW())
} order by desc(?date)
limit 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?admin")
v7("?coord")
v1("?date"):::projected
v8("?id")
v4("?img")
v3("?item"):::projected
v2("?plannedDate")
v6("?www"):::projected
c9(["sv,en,de"]):::literal
c4(["wd:Q34"]):::iri
c7(["bd:serviceParam"]):::iri
c2(["wd:Q107186275"]):::iri
f0[["?plannedDate < NOW()"]]
f0 --> v2
v3 --"wdt:P6104"--> c2
v3 --"wdt:P17"--> c4
v3 --"wdt:P571"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
v3 --"wdt:P571"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P856".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P625".-> v7
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P217".-> v8
end