Question: What is the relation between Hoffa and David Newman (the one that is Jewish)?
Choices:
noble title
appears in the form of
history of topic
partner
has part
composer
has cause
operating area
notable work
seed team
Answer: composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hoffa" . ?e_2 <pred:name> "David Newman" . ?e_2 <ethnic_group> ?e_3 . ?e_3 <pred:name> "Jewish people" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Hoffa
function: Find
inputs: Jewish people
function: Relate
dependencies: 1
inputs: ethnic group
backward
function: Find
inputs: David Newman
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4