Question: What number of bands have record producer as an occupation or Amy Ryan as an employer?
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> "band" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "Amy Ryan" .  } UNION { ?e <occupation> ?e_1 . ?e_1 <pred:name> "record producer" .  } }
Program:
function: Find
inputs: Amy Ryan
function: Relate
dependencies: 0
inputs: employer
forward
function: FilterConcept
dependencies: 1
inputs: band
function: Find
inputs: record producer
function: Relate
dependencies: 3
inputs: occupation
backward
function: FilterConcept
dependencies: 4
inputs: band
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1