Question: How many United States towns are the headquarter location of Hollywood Records or are the death place of John Coltrane?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" .  { ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Hollywood Records" .  } UNION { ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "John Coltrane" .  } }
Program:
function: Find
inputs: Hollywood Records
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: town of the United States
function: Find
inputs: John Coltrane
function: Relate
dependencies: 3
inputs: place of death
forward
function: FilterConcept
dependencies: 4
inputs: town of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6