Question: How many California counties are an administrative division of the state in the United States that is the shooting location of Holes (whose genre is prison film)?
Choices:
37
38
39
40
41
42
43
44
45
46
Answer: 40
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_3 <filming_location> ?e_1 . ?e_3 <pred:name> "Holes" . ?e_3 <genre> ?e_4 . ?e_4 <pred:name> "prison film" .   }
Program:
function: Find
inputs: prison film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Holes
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: filming location
forward
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: Relate
dependencies: 5
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 6
inputs: county of California
function: Count
dependencies: 7