Question: How many MTV Video Music Awards were created after 1989 or nominated to Bryan Adams (the one nominated for MTV Video Music Award for Best Male Video) ?
Choices:
5
6
7
8
9
10
11
12
13
14
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "MTV Video Music Award" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1989 ) .  } UNION { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Bryan Adams" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "MTV Video Music Award for Best Male Video" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1989
>
function: FilterConcept
dependencies: 1
inputs: MTV Video Music Award
function: Find
inputs: MTV Video Music Award for Best Male Video
function: Relate
dependencies: 3
inputs: nominated for
backward
function: Find
inputs: Bryan Adams
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: nominated for
forward
function: FilterConcept
dependencies: 7
inputs: MTV Video Music Award
function: Or
dependencies: 2
8
function: Count
dependencies: 9