Question: Was the literary work that derives Trainspotting (the one that is shot in Glasgow) published after 1974?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "Trainspotting" . ?e_1 <filming_location> ?e_2 . ?e_2 <pred:name> "Glasgow" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1974 ) .  }
Program:
function: Find
inputs: Glasgow
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Trainspotting
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: literary work
function: QueryAttr
dependencies: 5
inputs: publication date
function: VerifyYear
dependencies: 6
inputs: 1974
>