Question: How many classes of awards were nominated to The Commitments (whose release region is Turkey) or to The Hours (which was nominated for an Academy Award for Best Costume Design)?
Choices:
4
5
6
7
8
9
10
11
12
13
Program:
function: Find
inputs: Turkey
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Commitments
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: nominated for
forward
function: FilterConcept
dependencies: 4
inputs: class of award
function: Find
inputs: Academy Award for Best Costume Design
function: Relate
dependencies: 6
inputs: nominated for
backward
function: Find
inputs: The Hours
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: nominated for
forward
function: FilterConcept
dependencies: 10
inputs: class of award
function: Or
dependencies: 5
11
function: Count
dependencies: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "class of award" .  { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "The Commitments" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Turkey" .  } UNION { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "The Hours" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Costume Design" .  } }
Answer: 10