Question: What is the relationship between San Antonio (whose distributor is Warner Bros.) and Western (that is the genre of Edgar Rice Burroughs)?
Choices:
official religion
enclave within
subsidiary
cites
has cause
genre
head coach
use
color
takes place in fictional universe
Program:
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: San Antonio
function: And
dependencies: 1
2
function: Find
inputs: Edgar Rice Burroughs
function: Relate
dependencies: 4
inputs: genre
forward
function: Find
inputs: Western
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "San Antonio" . ?e_1 <distributor> ?e_3 . ?e_3 <pred:name> "Warner Bros." . ?e_2 <pred:name> "Western" . ?e_4 <genre> ?e_2 . ?e_4 <pred:name> "Edgar Rice Burroughs" . ?e_1 ?p ?e_2 .  }
Answer: genre