Question: How many cities are either a place where Filipino Americans live or is not in the London Borough of Enfield?
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> "city" .  { ?e_1 <geographic_distribution> ?e . ?e_1 <pred:name> "Filipino Americans" .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "London Borough of Enfield" .  } }
Program:
function: Find
inputs: Filipino Americans
function: Relate
dependencies: 0
inputs: geographic distribution
forward
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: London Borough of Enfield
function: Relate
dependencies: 3
inputs: different from
backward
function: FilterConcept
dependencies: 4
inputs: city
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 0