Question: The Lion King, released in Italy, is inspired by how many plays?
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> "play" . ?e_1 <inspired_by> ?e . ?e_1 <pred:name> "The Lion King" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Italy" .   }
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Lion King
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: inspired by
forward
function: FilterConcept
dependencies: 4
inputs: play
function: Count
dependencies: 5
Answer: 1