Question: How many cable channels operate in the area of the Socialist Federal Republic of Yugoslavia or have a headquarters location is Santa Barbara (the birthplace of Ray Moyer)?
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> "cable channel" .  { ?e <operating_area> ?e_1 . ?e_1 <pred:name> "Socialist Federal Republic of Yugoslavia" .  } UNION { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Santa Barbara" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Ray Moyer" .  } }
Program:
function: Find
inputs: Socialist Federal Republic of Yugoslavia
function: Relate
dependencies: 0
inputs: operating area
backward
function: FilterConcept
dependencies: 1
inputs: cable channel
function: Find
inputs: Ray Moyer
function: Relate
dependencies: 3
inputs: place of birth
forward
function: Find
inputs: Santa Barbara
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: headquarters location
backward
function: FilterConcept
dependencies: 7
inputs: cable channel
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0