Question: How many Florida counties are an administrative division of the state of the United States that is the filming location of Great Expectations (that is filmed in New York City)?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 19
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Florida" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "Great Expectations" . ?e_2 <filming_location> ?e_3 . ?e_3 <pred:name> "New York City" .   }
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Great Expectations
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 Florida
function: Count
dependencies: 7