Question: What's the relation that the United States has to the movie Halloween, which has Judy Greer in its cast?
Choices:
diplomatic relation
head of state
legislative body
winner
studies
works in collection
business division
country of origin
talk show guest
cites
Program:
function: Find
inputs: Judy Greer
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Halloween
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Halloween" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Judy Greer" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Answer: country of origin