Question: What is the relationship of Iron Man (that has Paul Bettany as a cast member) with the arms industry?
Choices:
manner of death
narrative location
narrator
original film format
legislative body
parent astronomical body
sidekick of
main subject
official language
honorific suffix
Program:
function: Find
inputs: Paul Bettany
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Iron Man
function: And
dependencies: 1
2
function: Find
inputs: arms industry
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Iron Man" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Paul Bettany" . ?e_2 <pred:name> "arms industry" . ?e_1 ?p ?e_2 .  }
Answer: main subject