Question: How many United States cities are in the same sovereign state that is associated with William Friedkin?
Choices:
496
497
498
499
500
501
502
503
504
505
Answer: 497
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_citizenship> ?e_1 . ?e_2 <pred:name> "William Friedkin" .   }
Program:
function: Find
inputs: William Friedkin
function: Relate
dependencies: 0
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: city of the United States
function: Count
dependencies: 4