Question: How is the Amazing Grace filmed in Baltimore related to the United States of America?
Choices:
language used
significant person
killed by
member of sports team
country of origin
illustrator
applies to jurisdiction
medical condition
followed by
shares border with
Answer: country of origin
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Amazing Grace" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "Baltimore" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Baltimore
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Amazing Grace
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4