Question: How many town has TOID 4000000074545582 or the formation location of Porcupine Tree?
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> "town" .  { ?e <TOID> ?pv . ?pv <pred:value> "4000000074545582" .  } UNION { ?e_1 <location_of_formation> ?e . ?e_1 <pred:name> "Porcupine Tree" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
4000000074545582
function: FilterConcept
dependencies: 1
inputs: town
function: Find
inputs: Porcupine Tree
function: Relate
dependencies: 3
inputs: location of formation
forward
function: FilterConcept
dependencies: 4
inputs: town
function: Or
dependencies: 2
5
function: Count
dependencies: 6