Question: What is the character role of Edward James Olmos in Battlestar Galactica (the one that is created by Ronald D. Moore)?
Choices: Calibos
Jimmy Darmody
Clayface
Matchmaker
Rain Ocampo
Rafe McCawley
Arthur Dallas
Leland Palmer
Asher Talos
William Adama
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Battlestar Galactica" . ?e_1 <creator> ?e_3 . ?e_3 <pred:name> "Ronald D. Moore" . ?e_2 <pred:name> "Edward James Olmos" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Ronald D. Moore
function: Relate
dependencies: 0
inputs: creator
backward
function: Find
inputs: Battlestar Galactica
function: And
dependencies: 1
2
function: Find
inputs: Edward James Olmos
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: William Adama