Question: How many subsidiary companies are either owned by Microsoft (whose net profit is 16798000000 USD) or use http://www.foxsearchlight.com/  as the official website ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "subsidiary company" .  { ?e_1 <owner_of> ?e . ?e_1 <pred:name> "Microsoft" . ?e_1 <net_profit> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "16798000000"^^xsd:double .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.foxsearchlight.com/" .  } }
Program:
function: Find
inputs: Microsoft
function: FilterNum
dependencies: 0
inputs: net profit
16798000000 United States dollar
=
function: Relate
dependencies: 1
inputs: owner of
forward
function: FilterConcept
dependencies: 2
inputs: subsidiary company
function: FindAll
function: FilterStr
dependencies: 4
inputs: official website
http://www.foxsearchlight.com/
function: FilterConcept
dependencies: 5
inputs: subsidiary company
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2