Question: What is the relationship between Pittsburgh (the one that has Moby as a cast member) and United States of America?
Choices:
location of formation
member of
country of origin
diplomatic relation
maintained by
honorific prefix
legal form
instrument
part of the series
has parts of the class
Program:
function: Find
inputs: Moby
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Pittsburgh
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> "Pittsburgh" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Moby" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Answer: country of origin