Question: Which character is Peter Gallagher cast as on The O.C.?
Choices: Poison Ivy
Vito Corleone
Sandy Cohen
Krusty the Clown
Storm
Maid Marian
Dieter Reinhardt
D'Artagnan
Bud Fox
Izzie Stevens
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The O.C." . ?e_2 <pred:name> "Peter Gallagher" . ?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: The O.C.
function: Find
inputs: Peter Gallagher
function: QueryRelationQualifier
dependencies: 0
1
inputs: cast member
character role
Answer: Sandy Cohen