Question: What is the connection between They Might Be Giants (the one whose narrative location is New York City) to John Barry (the one that is the composer of Midnight Cowboy)?
Choices:
start point
appointed by
author
languages spoken, written or signed
worshipped by
composer
twinned administrative body
approved by
home world
eye color
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: They Might Be Giants
function: And
dependencies: 1
2
function: Find
inputs: Midnight Cowboy
function: Relate
dependencies: 4
inputs: composer
forward
function: Find
inputs: John Barry
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "They Might Be Giants" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "New York City" . ?e_2 <pred:name> "John Barry" . ?e_4 <composer> ?e_2 . ?e_4 <pred:name> "Midnight Cowboy" . ?e_1 ?p ?e_2 .  }
Answer: composer