Question: How many languages are used by Juanes or are used by Julia (which uses the German language)?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: Find
inputs: Juanes
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
forward
function: FilterConcept
dependencies: 1
inputs: language
function: Find
inputs: German
function: Relate
dependencies: 3
inputs: language of work or name
backward
function: Find
inputs: Julia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: language of work or name
forward
function: FilterConcept
dependencies: 7
inputs: language
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "language" .  { ?e_1 <languages_spoken,_written_or_signed> ?e . ?e_1 <pred:name> "Juanes" .  } UNION { ?e_1 <language_of_work_or_name> ?e . ?e_1 <pred:name> "Julia" . ?e_1 <language_of_work_or_name> ?e_2 . ?e_2 <pred:name> "German" .  } }
Answer: 4