Question: How many saxophones are famously associated with the composer of the literature-based film Alfie?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Alfie
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: famous people
backward
function: FilterConcept
dependencies: 6
inputs: saxophone
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "saxophone" . ?e <famous_people> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <composer> ?e_1 . ?e_2 <pred:name> "Alfie" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" .   }
Answer: 2