Question: How many male given names are German in language or are different from RoboCop (release region is Germany)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "male given name" .  { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "German" .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "RoboCop" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Germany" .  } }
Program:
function: Find
inputs: German
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: FilterConcept
dependencies: 1
inputs: male given name
function: Find
inputs: Germany
function: Relate
dependencies: 3
inputs: film release region
backward
function: Find
inputs: RoboCop
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: different from
backward
function: FilterConcept
dependencies: 7
inputs: male given name
function: Or
dependencies: 2
8
function: Count
dependencies: 9