Question: What is the relationship between From the Earth to the Moon (the one whose genre is film based on literature) and the United States of America?
Choices:
has contributing factor
does not have part
notable work
country of origin
natural product of taxon
subject has role
production designer
drafted by
patron saint
from fictional universe
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: From the Earth to the Moon
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> "From the Earth to the Moon" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Answer: country of origin