Question: Was Shelley Duvalls, a cast member of The Shining, playing Wendy Torrance, born before 1984?
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> "The Shining" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Shelley Duvall" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Wendy Torrance" . ?e <date_of_birth> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1984 ) .  }
Program:
function: Find
inputs: Shelley Duvall
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Shining
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: QFilterStr
dependencies: 4
inputs: character role
Wendy Torrance
function: FilterConcept
dependencies: 5
inputs: human
function: QueryAttr
dependencies: 6
inputs: date of birth
function: VerifyYear
dependencies: 7
inputs: 1984
<