Question: What is the connection between Avatar (the one whose script is wrote by David Duchovny) to Mitch Pileggi?
Choices:
patron saint
cast member
mascot
after a work by
member of political party
office held by head of government
has edition
programming language
drug used for treatment
product or material produced
Program:
function: Find
inputs: David Duchovny
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Avatar
function: And
dependencies: 1
2
function: Find
inputs: Mitch Pileggi
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Avatar" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "David Duchovny" . ?e_2 <pred:name> "Mitch Pileggi" . ?e_1 ?p ?e_2 .  }
Answer: cast member