Question: How many works of literature originate in France or end with the sentence: "Instead, he smiled, raised a hand in farewell, turned around and led the way out of the station towards the sunlit street, with Uncle Vernon, Aunt Petunia and Dudley hurrying along in his wake."?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" .  { ?e <last_line> ?pv . ?pv <pred:value> "Instead, he smiled, raised a hand in farewell, turned around and led the way out of the station towards the sunlit street, with Uncle Vernon, Aunt Petunia and Dudley hurrying along in his wake." .  } UNION { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "France" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: last line
Instead, he smiled, raised a hand in farewell, turned around and led the way out of the station towards the sunlit street, with Uncle Vernon, Aunt Petunia and Dudley hurrying along in his wake.
function: FilterConcept
dependencies: 1
inputs: literary work
function: Find
inputs: France
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: literary work
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 4