Using the following https://dbpedia.org/page/Woody_Allen I have to list all the movies Woody Allen directed from oldest to newest using SPARQL and I have no idea how to make the query
DBpedia does not seem to have release dates for movies extracted comprehensively. You might consider a SPARQL query against Wikidata instead. You could start from something like this:
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie (MIN(YEAR(?date)) AS ?year)
WHERE {
?movie wdt:P57 wd:Q25089;
wdt:P577 ?date.
}
GROUP BY ?movie
ORDER BY ?year