Question: What is the connection between Battlestar Galactica (the one whose producer is Ronald D. Moore) to Edward James Olmos?
Choices: location of formation
headquarters location
student
public holiday
board member
cast member
opposite of
theme music
replaced by
sibling
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Battlestar Galactica" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Ronald D. Moore" . ?e_2 <pred:name> "Edward James Olmos" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ronald D. Moore
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Battlestar Galactica
function: And
dependencies: 1
2
function: Find
inputs: Edward James Olmos
function: QueryRelation
dependencies: 3
4
Answer: cast member