Question: What is the relationship between Friends (the one that has the record label Capitol Records) and Capitol Records?
Choices:
position played on team / speciality
programming paradigm
make-up artist
has contributing factor
connects with
fabrication method
architectural style
vehicle normally used
soundtrack album
record label
Answer: record label
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Friends" . ?e_1 <record_label> ?e_3 . ?e_3 <pred:name> "Capitol Records" . ?e_2 <pred:name> "Capitol Records" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Capitol Records
function: Relate
dependencies: 0
inputs: record label
backward
function: Find
inputs: Friends
function: And
dependencies: 1
2
function: Find
inputs: Capitol Records
function: QueryRelation
dependencies: 3
4