Question: How many crimes are different from attack or have the country of Nazi Germany?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "crime" .  { ?e <different_from> ?e_1 . ?e_1 <pred:name> "attack" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Nazi Germany" .  } }
Program:
function: Find
inputs: attack
function: Relate
dependencies: 0
inputs: different from
backward
function: FilterConcept
dependencies: 1
inputs: crime
function: Find
inputs: Nazi Germany
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: crime
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2