query-ef4123831c947690816bd4d11a351b72
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 ?item ?itemLabel ?value ?valueLabel ?start_time
WHERE
{
VALUES ?item {wd:Q241}
?item p:P35 ?statement . # has a P35 statement
?statement ps:P35 ?value .
?statement pq:P580 ?start_time .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Tagishsimon/Ambarish
- https://www.wikidata.org/wiki/User:Tagishsimon/WDQS
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v4("?start_time"):::projected
v2("?statement")
v3("?value"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q241"])
bind00 --> bind0
v1 --"p:P35"--> v2
v2 --"p:statement/P35"--> v3
v2 --"p:qualifier/P580"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end