Question: Angelina Jolie is cast as which character on Mr. & Mrs. Smith, clocking in at 126 minutes?
Choices:
0.00044
15003000
Jane Smith
mesa
close match
Jai
¥
John Smith
southwest
Angel
Answer: Jane Smith
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Mr. & Mrs. Smith" . ?e_1 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> "126"^^xsd:double . ?e_2 <pred:name> "Angelina Jolie" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <name_of_the_character_role> ?qpv .  }
Program:
function: Find
inputs: Mr. & Mrs. Smith
function: FilterNum
dependencies: 0
inputs: duration
126 minute
=
function: Find
inputs: Angelina Jolie
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
name of the character role