query-577dce0cf583f308eeb3c5022f5f63dd
TODO
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#>
SELECT ?quarterlySummary ?quarterlySummaryLabel ?tour ?tourLabel ?year WHERE {
?quarterlySummary wdt:P31 wd:Q48783127 .
OPTIONAL { ?quarterlySummary wdt:P1269 ?tour . OPTIONAL { ?tour wdt:P585 ?pit . BIND(YEAR(?pit) AS ?year) } }
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("?pit")
v1("?quarterlySummary"):::projected
v2("?tour"):::projected
v4("?year"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q48783127"]):::iri
v1 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1269".-> v2
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P585".-> v3
bind0[/"year-from-dateTime(?pit)"/]
v3 --o bind0
bind0 --as--o v4
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end