Question: What is the relationship between Galaxy Quest and David Newman (the one that is the composer of Hoffa)?
Choices:
replaced by
commissioned by
political alignment
interested in
official religion
partially contains
place served by transport hub
executive producer
composer
lyrics by
Answer: composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Galaxy Quest" . ?e_2 <pred:name> "David Newman" . ?e_3 <composer> ?e_2 . ?e_3 <pred:name> "Hoffa" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Galaxy Quest
function: Find
inputs: Hoffa
function: Relate
dependencies: 1
inputs: composer
forward
function: Find
inputs: David Newman
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4