Question: Was the cast member in the role of Two-Face on Batman, also featuring Pat Hingle as a cast member, born prior to 1947?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Batman" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Pat Hingle" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Two-Face" . ?e <date_of_birth> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1947 ) .  }
Program:
function: Find
inputs: Pat Hingle
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Batman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: QFilterStr
dependencies: 4
inputs: character role
Two-Face
function: FilterConcept
dependencies: 5
inputs: human
function: QueryAttr
dependencies: 6
inputs: date of birth
function: VerifyYear
dependencies: 7
inputs: 1947
<