Question: How many visual artworks composed by James Horner were inspired by the Hamlet titled The Tragedy of Hamlet, Prince of Denmark?
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> "visual artwork" . ?e <composer> ?e_1 . ?e_1 <pred:name> "James Horner" .  ?e <inspired_by> ?e_2 . ?e_2 <pred:name> "Hamlet" . ?e_2 <title> ?pv . ?pv <pred:value> "The Tragedy of Hamlet, Prince of Denmark" .  }
Program:
function: Find
inputs: James Horner
function: Relate
dependencies: 0
inputs: composer
backward
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: Hamlet
function: FilterStr
dependencies: 3
inputs: title
The Tragedy of Hamlet, Prince of Denmark
function: Relate
dependencies: 4
inputs: inspired by
backward
function: FilterConcept
dependencies: 5
inputs: visual artwork
function: And
dependencies: 2
6
function: Count
dependencies: 7
Answer: 0