Question: What character role does Thomas Lennon play in the film How I Met Your Mother?
Choices:
Georges Duroy
Bryan Mills
Arthur Miller
Kay Adams-Corleone
Klaus
Aslan
Guinan
Jimmy McNulty
George Costanza
Janosz Poha
Answer: Klaus
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "How I Met Your Mother" . ?e_2 <pred:name> "Thomas Lennon" . ?e_3 <cast_member> ?e_2 . ?e_3 <pred:name> "How I Met Your Mother" . ?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: How I Met Your Mother
function: Find
inputs: How I Met Your Mother
function: Relate
dependencies: 1
inputs: cast member
forward
function: Find
inputs: Thomas Lennon
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role