Question: How many movies are there whose genre is the same as the genre of Cars (produced by Walt Disney Pictures) ?
Choices:
60
61
62
63
64
65
66
67
68
69
Answer: 66
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <genre> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "film" . ?e_2 <genre> ?e_1 . ?e_2 <pred:name> "Cars" . ?e_2 <production_company> ?e_3 . ?e_3 <pred:name> "Walt Disney Pictures" .   }
Program:
function: Find
inputs: Walt Disney Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Cars
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: film
function: Relate
dependencies: 5
inputs: genre
backward
function: FilterConcept
dependencies: 6
inputs: film
function: Count
dependencies: 7