Question: How many industries are produced by the agent that owns Microsoft (whose total assets are 458268000 Czech korunas)?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "industry" . ?e <manufacturer> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "agent" . ?e_2 <owned_by> ?e_1 . ?e_2 <pred:name> "Microsoft" . ?e_2 <total_assets> ?pv_1 . ?pv_1 <pred:unit> "Czech koruna" . ?pv_1 <pred:value> "458268000"^^xsd:double .   }
Program:
function: Find
inputs: Microsoft
function: FilterNum
dependencies: 0
inputs: total assets
458268000 Czech koruna
=
function: Relate
dependencies: 1
inputs: owned by
forward
function: FilterConcept
dependencies: 2
inputs: agent
function: Relate
dependencies: 3
inputs: manufacturer
backward
function: FilterConcept
dependencies: 4
inputs: industry
function: Count
dependencies: 5