2

you could add this line: BIND( STR(?end) as ?ended ). SELECT ?playerLabel ?teamLabel ?start ?ended WHERE { VALUES ?player { wd:Q11571 } ?player p:P54 ?teams. ?teams ps:P54 ?team; pq:P580 ?start. OPTIONAL { ?teams pq:P582 ?end. BIND( STR(?end) as ?ended ). } SERVICE wikibase:label { bd:serviceParam wikibase:...


Only top voted, non community-wiki answers of a minimum length are eligible