query-a3217ac7e2741732d3742080e558548d
all-time roaster to statement ?playervalueps:P527 to statement ?playerSentityp:P527 Predicates
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#>
SELECT ?player ?playerLabel ?from ?to WHERE {
wd:Q1738085 p:P527 ?playerS.
?playerS ps:P527 ?player.
OPTIONAL { ?playerS pq:P580 ?_from. }
OPTIONAL { ?playerS pq:P582 ?_to. }
OPTIONAL { ?player wdt:P1545 ?sortname. }
BIND(YEAR(?_from) AS ?from)
BIND(YEAR(?_to) AS ?to)
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
ORDER BY ?sortname
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_from")
v5("?_to")
v6("?from"):::projected
v3("?player"):::projected
v2("?playerS")
v1("?sortname")
v7("?to"):::projected
c10(["de"]):::literal
c8(["bd:serviceParam"]):::iri
c1(["wd:Q1738085"]):::iri
c1 --"p:P527"--> v2
v2 --"p:statement/P527"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P580".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P582".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P1545".-> v1
end
bind0[/"year-from-dateTime(?_from)"/]
v4 --o bind0
bind0 --as--o v6
bind1[/"year-from-dateTime(?_to)"/]
v5 --o bind1
bind1 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end