Question: How many NEw York cities belong to a country that is the sovereign state and, at the same time, the country of Tony Award for Best Featured Actor in a Play ?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of New York" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Tony Award for Best Featured Actor in a Play" .   }
Program:
function: Find
inputs: Tony Award for Best Featured Actor in a Play
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: city of New York
function: Count
dependencies: 4