Question: What number of novels are titled Frankenstein or inspires The Talented Mr. Ripley (the one whose publication date is 1999-12-25)?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "novel" .  { ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "The Talented Mr. Ripley" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1999-12-25"^^xsd:date .  } UNION { ?e <title> ?pv . ?pv <pred:value> "Frankenstein" .  } }
Program:
function: Find
inputs: The Talented Mr. Ripley
function: FilterDate
dependencies: 0
inputs: publication date
1999-12-25
=
function: Relate
dependencies: 1
inputs: derivative work
backward
function: FilterConcept
dependencies: 2
inputs: novel
function: FindAll
function: FilterStr
dependencies: 4
inputs: title
Frankenstein
function: FilterConcept
dependencies: 5
inputs: novel
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2