Question: How many dogs are the mascots of the German Army of Nazi Germany or of the US Marine Corps?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Nazi Germany
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: German Army
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: mascot
forward
function: FilterConcept
dependencies: 4
inputs: dog
function: Find
inputs: United States Marine Corps
function: Relate
dependencies: 6
inputs: mascot
forward
function: FilterConcept
dependencies: 7
inputs: dog
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> "dog" .  { ?e_1 <mascot> ?e . ?e_1 <pred:name> "German Army" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Nazi Germany" .  } UNION { ?e_1 <mascot> ?e . ?e_1 <pred:name> "United States Marine Corps" .  } }
Answer: 1