Question: Does the person who is a cast member of Aliens (the one that has Sigourney Weaver as a cast member) (the character role of this statement is Bishop), have a work period (start) after 1943?
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> "Aliens" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Sigourney Weaver" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Bishop" . ?e <work_period_(start)> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1943 ) .  }
Program:
function: Find
inputs: Sigourney Weaver
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Aliens
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: QFilterStr
dependencies: 4
inputs: character role
Bishop
function: FilterConcept
dependencies: 5
inputs: human
function: QueryAttr
dependencies: 6
inputs: work period (start)
function: VerifyYear
dependencies: 7
inputs: 1943
>