Question: How many counties in Texas are an administrative division of the US state where No Country for Old Men (written by Cormac McCarthy) took place?
Choices: 11
12
13
14
15
16
17
18
19
20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" . ?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 <narrative_location> ?e_1 . ?e_3 <pred:name> "No Country for Old Men" . ?e_3 <author> ?e_4 . ?e_4 <pred:name> "Cormac McCarthy" .   }
Program:
function: Find
inputs: Cormac McCarthy
function: Relate
dependencies: 0
inputs: author
backward
function: Find
inputs: No Country for Old Men
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative 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 Texas
function: Count
dependencies: 7
Answer: 17