Question: What is the character role of Anthony Edwards (the one that has the occupation of actor) in ER?
Choices: Edna Krabappel
Monica Reyes
Warren Worthington III
Mandarin
John Locke
Anna Valerious
Veronica Mars
Sir Nicholas de Mimsy-Porpington
Mark Greene
Ray Cash
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "ER" . ?e_2 <pred:name> "Anthony Edwards" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?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: ER
function: Find
inputs: actor
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Anthony Edwards
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role
Answer: Mark Greene