Question: How many non-metro districts are in the UK or make up the filming location of Some Like it Hot (with Adolph Deutsch as the composer) ?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Some Like It Hot" . ?e_1 <composer> ?e_2 . ?e_2 <pred:name> "Adolph Deutsch" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: Adolph Deutsch
function: Relate
dependencies: 3
inputs: composer
backward
function: Find
inputs: Some Like It Hot
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: filming location
forward
function: FilterConcept
dependencies: 7
inputs: non-metropolitan district
function: Or
dependencies: 2
8
function: Count
dependencies: 9