query-5e9f4e55e152617eaca3e3bfbc2f9657
Propertiesaward received (P166)image (P18)country (P17)point in time (P585)instance of (P31)applies to part, aspect, or form (P518)
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#>
#defaultView:Timeline
#
# Baum des Jahres
#
SELECT ?item ?itemLabel ?countryLabel ?year ?pic
WHERE
{
BIND(wd:Q3796486 AS ?pictype) #P31 botanische Illustration
#BIND(wd:Q125191 as ?pictype) #P31 Fotografie
BIND(wd:Q10884 as ?picpart) #P518 betroffener Teil = Baum
?item wdt:P166 wd:Q167898.
?item p:P166 ?awardstatement.
?awardstatement pq:P17 ?country.
?awardstatement pq:P585 ?year.
?item p:P18 ?picstatement.
?picstatement ps:P18 ?pic.
# ?picstatement pq:P31 ?pictype.
?picstatement pq:P518 ?picpart.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}
order by ?country ?year
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?awardstatement")
v1("?country")
v5("?item"):::projected
v8("?pic"):::projected
v4("?picpart")
v7("?picstatement")
v3("?pictype")
v2("?year"):::projected
c2(["wd:Q167898"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["de,en"]):::literal
bind0[/"'wd:Q3796486'"/]
bind0 --as--o v3
bind1[/"'wd:Q10884'"/]
bind1 --as--o v4
v5 --"p:direct/P166"--> c2
v5 --"p:P166"--> v6
v6 --"p:qualifier/P17"--> v1
v6 --"p:qualifier/P585"--> v2
v5 --"p:P18"--> v7
v7 --"p:statement/P18"--> v8
v7 --"p:qualifier/P518"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end