Question: What is the relationship between Dynasty (the one whose genre is rock music) and disco?
Choices: game mode
subsidiary
permanent resident of
replaces
programming language
drafted by
genre
family
employer
significant person
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Dynasty" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "rock music" . ?e_2 <pred:name> "disco" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: rock music
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Dynasty
function: And
dependencies: 1
2
function: Find
inputs: disco
function: QueryRelation
dependencies: 3
4
Answer: genre