Question: What is the character role of Alyssa Milano in Charmed (the one whose producer is Aaron Spelling)?
Choices:
Éowyn
Phyllis Lindstrom
Phoebe Halliwell
Moaning Myrtle
Ethan Kanin
Rupert Giles
Laurence Olivier
Harry Brighton
Hector
Riddler
Answer: Phoebe Halliwell
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Charmed" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Aaron Spelling" . ?e_2 <pred:name> "Alyssa Milano" . ?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: Aaron Spelling
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Charmed
function: And
dependencies: 1
2
function: Find
inputs: Alyssa Milano
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role