Question: How many manifestations have the Stack Exchange tag https://stackoverflow.com/tags/blu-ray or are a part of Forbes (whose country is the United States of America)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "manifestation" .  { ?e <Stack_Exchange_tag> ?pv . ?pv <pred:value> "https://stackoverflow.com/tags/blu-ray" .  } UNION { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Forbes" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Stack Exchange tag
https://stackoverflow.com/tags/blu-ray
function: FilterConcept
dependencies: 1
inputs: manifestation
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: country
backward
function: Find
inputs: Forbes
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: has part
forward
function: FilterConcept
dependencies: 7
inputs: manifestation
function: Or
dependencies: 2
8
function: Count
dependencies: 9