Question: How many musical compositions have the composer Barry Gibb or have the title Wuthering Heights?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical composition" .  { ?e <composer> ?e_1 . ?e_1 <pred:name> "Barry Gibb" .  } UNION { ?e <title> ?pv . ?pv <pred:value> "Wuthering Heights" .  } }
Program:
function: Find
inputs: Barry Gibb
function: Relate
dependencies: 0
inputs: composer
backward
function: FilterConcept
dependencies: 1
inputs: musical composition
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
Wuthering Heights
function: FilterConcept
dependencies: 4
inputs: musical composition
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3