Question: What is the role of Jerry O'Connell performing in Superman, where Nicolas Cage is also starring ?
Choices:
European Union
private school
overseas department of France
singer
single-phase electric power
band member
uncredited appearance
voice actor
lead vocalist
state school
Answer: voice actor
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Superman" . ?e_1 <performer> ?e_3 . ?e_3 <pred:name> "Nicolas Cage" . ?e_2 <pred:name> "Jerry O'Connell" . ?e_1 <performer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <performer> ; <pred:fact_t> ?e_2 ] <object_has_role> ?qpv .  }
Program:
function: Find
inputs: Nicolas Cage
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: Superman
function: And
dependencies: 1
2
function: Find
inputs: Jerry O'Connell
function: QueryRelationQualifier
dependencies: 3
4
inputs: performer
object has role