Question: How many administrative territorial entities have the postal code EN or have a diplomatic relation with United States of America?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" .  { ?e <postal_code> ?pv . ?pv <pred:value> "EN" .  } UNION { ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
EN
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: Or
dependencies: 2
5
function: Count
dependencies: 6