Question: What person is the director of Contact (that has Matthew McConaughey as a cast member) and the director of Back to the Future Part III?
Choices:
Simon Cowell
Max Fleischer
Babyface
David Byrne
William Henry Harrison
James E. Reilly
Paul Simon
Robert Zemeckis
Richard Gere
Rahul Dev Burman
Program:
function: Find
inputs: Matthew McConaughey
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Contact
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: director
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Find
inputs: Back to the Future Part III
function: Relate
dependencies: 6
inputs: director
forward
function: FilterConcept
dependencies: 7
inputs: human
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <director> ?e . ?e_1 <pred:name> "Contact" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Matthew McConaughey" .  ?e_3 <director> ?e . ?e_3 <pred:name> "Back to the Future Part III" .  }
Answer: Robert Zemeckis