Question: How many news pieces do we know  whose composer is John Williams (the one that received 50th Academy Awards) or whose number of seasons is less than 25 ?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: 50th Academy Awards
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: John Williams
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
backward
function: FilterConcept
dependencies: 4
inputs: news
function: FindAll
function: FilterNum
dependencies: 6
inputs: number of seasons
25
<
function: FilterConcept
dependencies: 7
inputs: news
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "news" .  { ?e <composer> ?e_1 . ?e_1 <pred:name> "John Williams" . ?e_1 <award_received> ?e_2 . ?e_2 <pred:name> "50th Academy Awards" .  } UNION { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "25"^^xsd:double ) .  } }
Answer: 3