Question: How many New Jersey counties lie in a country which is the sovereign state and the country Public Enemies (the one that is 140 minutes long) come from ?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_origin> ?e_1 . ?e_2 <pred:name> "Public Enemies" . ?e_2 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> "140"^^xsd:double .   }
Program:
function: Find
inputs: Public Enemies
function: FilterNum
dependencies: 0
inputs: duration
140 minute
=
function: Relate
dependencies: 1
inputs: country of origin
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: county of New Jersey
function: Count
dependencies: 5