Question: How many businesses whose OSM tag or key is Tag:tourism=hotel or that owns NBCUniversal?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "business" .  { ?e <OSM_tag_or_key> ?pv . ?pv <pred:value> "Tag:tourism=hotel" .  } UNION { ?e_1 <owned_by> ?e . ?e_1 <pred:name> "NBCUniversal" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: OSM tag or key
Tag:tourism=hotel
function: FilterConcept
dependencies: 1
inputs: business
function: Find
inputs: NBCUniversal
function: Relate
dependencies: 3
inputs: owned by
forward
function: FilterConcept
dependencies: 4
inputs: business
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2