query-d2fe6f9a1b1a7ceafd2f23e8978682a8
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 DISTINCT ?item ?itemLabel ?itemDescription ?awardreceivedLabel ?awardreceivedDescription ?awardreceiveddate ?awardreceivedworkLabel WHERE {
VALUES ?item {wd:Q7334335 wd:Q711333}
OPTIONAL {?item p:P166 ?awardstatement.
?awardstatement a wikibase:BestRank.
?awardstatement ps:P166 ?awardreceived.
OPTIONAL { ?awardstatement pq:P585 ?awardreceiveddate.}
OPTIONAL { ?awardstatement pq:P1686 ?awardreceivedwork .}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?awardreceived")
v4("?awardreceiveddate"):::projected
v5("?awardreceivedwork")
v2("?awardstatement")
v1("?item"):::projected
c8(["bd:serviceParam"]):::iri
c3(["wikibase:BestRank"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q7334335"])
bind00 --> bind0
bind01(["wd:Q711333"])
bind01 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P166".-> v2
v2 --"a"--> c3
v2 --"p:statement/P166"--> v3
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P585".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1686".-> v5
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end