Question: How many Academy Awards were nominated to Thomas Newman or whose official website is http://oscars.org/?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Academy Awards" .  { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Thomas Newman" .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://oscars.org/" .  } }
Program:
function: Find
inputs: Thomas Newman
function: Relate
dependencies: 0
inputs: nominated for
forward
function: FilterConcept
dependencies: 1
inputs: Academy Awards
function: FindAll
function: FilterStr
dependencies: 3
inputs: official website
http://oscars.org/
function: FilterConcept
dependencies: 4
inputs: Academy Awards
function: Or
dependencies: 2
5
function: Count
dependencies: 6