Question: The film with Duke Ellington in its cast was released in how many US cities?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Duke Ellington
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Relate
dependencies: 2
inputs: film release region
forward
function: FilterConcept
dependencies: 3
inputs: city of the United States
function: Count
dependencies: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <film_release_region> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "film" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Duke Ellington" .   }
Answer: 2