Question: Does the written work, whose director is Lewis Gilbert (the one that has the occupation of screenwriter), have an ISBN-10 equal to 84-663-0903-9?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e <director> ?e_1 . ?e_1 <pred:name> "Lewis Gilbert" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "screenwriter" .  ?e <ISBN-10> ?pv . ?pv <pred:value> "84-663-0903-9" .  }
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Lewis Gilbert
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: director
backward
function: FilterConcept
dependencies: 4
inputs: written work
function: QueryAttr
dependencies: 5
inputs: ISBN-10
function: VerifyStr
dependencies: 6
inputs: 84-663-0903-9