Question: Give me all actors starring in movies directed by William Shatner.
SPARQL query:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri WHERE { ?x onto:director res:William_Shatner . ?x onto:starring ?uri . }