Question: Does Tom McCarthy (the one that is a member of Pittsburgh Pirates), have a death date before 1954?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "Tom McCarthy" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Pittsburgh Pirates" .  ?e <date_of_death> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1954 ) .  }
Program:
function: Find
inputs: Pittsburgh Pirates
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tom McCarthy
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: date of death
function: VerifyYear
dependencies: 4
inputs: 1954
<