Question: How many electronic dance music origins from India which has a diplomatic relation with Paraguay or that origins from the Netherlands?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "electronic dance music" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "Paraguay" .  } UNION { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Netherlands" .  } }
Program:
function: Find
inputs: Paraguay
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: India
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: electronic dance music
function: Find
inputs: Netherlands
function: Relate
dependencies: 6
inputs: country of origin
backward
function: FilterConcept
dependencies: 7
inputs: electronic dance music
function: Or
dependencies: 5
8
function: Count
dependencies: 9