Question: Lisa Edelstein is cast in which role on House, also featuring Janel Moloney in its cast?
Choices:
Jane Porter
Kim Mills
Grampa Simpson
Balthazar Blake
Michael Bluth
Mei Ling
Piter De Vries
Lisa Cuddy
Boone Carlyle
Howard Hughes
Answer: Lisa Cuddy
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "House" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Janel Moloney" . ?e_2 <pred:name> "Lisa Edelstein" . ?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: Janel Moloney
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: House
function: And
dependencies: 1
2
function: Find
inputs: Lisa Edelstein
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role