Question: What is the association of Weeds (whose narrative location is San Diego) with Showtime (that originally airs Homeland)?
Choices: indigenous to
interests
discoverer or inventor
properties for this type
original network
industry
software engine
author
candidate
kit supplier
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Weeds" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "San Diego" . ?e_2 <pred:name> "Showtime" . ?e_4 <original_network> ?e_2 . ?e_4 <pred:name> "Homeland" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: San Diego
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Weeds
function: And
dependencies: 1
2
function: Find
inputs: Homeland
function: Relate
dependencies: 4
inputs: original network
forward
function: Find
inputs: Showtime
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: original network