Question: How many visual artworks are designed by the human who is the production designer of Cinderella (which is in the melodrama genre)?
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <production_designer> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <production_designer> ?e_1 . ?e_2 <pred:name> "Cinderella" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "melodrama" .   }
Program:
function: Find
inputs: melodrama
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Cinderella
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: production designer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: production designer
backward
function: FilterConcept
dependencies: 6
inputs: visual artwork
function: Count
dependencies: 7