The following wikidata query lists the teams Cristiano Ronaldo played for including start and end dates.
SELECT ?playerLabel ?teamLabel ?start ?end WHERE {
VALUES ?player {
wd:Q11571
}
?player p:P54 ?teams.
?teams ps:P54 ?team;
pq:P580 ?start.
OPTIONAL { ?teams pq:P582 ?end. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
His end date at Juventus is not a valid date.
Partial Result
playerLabel | teamLabel | start | end |
---|---|---|---|
Cristiano Ronaldo | Juventus F.C. | 10 July 2018 | t2136841315 |
Question: What is the correct way to show items with invalid dates?
t
s are blank node labels. See stackoverflow.com/q/44111025, stackoverflow.com/questions/44374813.isBlank
is what I'm looking for. Your StackOverflow links turned the light on in my head.