Question: Who stopped being Leonardo da Vinci's student in 1477?
Paraphrase: Who was a student of da Vinci's until 1477?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q762 p:P1066 ?s . ?s ps:P1066 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1477')) }