Question: How many pieces of art fall within the genre of Mona Lisa (the one that origins from Italy), or, have 82131604 as their UNSPSC Code?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "art" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Mona Lisa" . ?e_1 <country_of_origin> ?e_2 . ?e_2 <pred:name> "Italy" .  } UNION { ?e <UNSPSC_Code> ?pv . ?pv <pred:value> "82131604" .  } }
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Mona Lisa
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: art
function: FindAll
function: FilterStr
dependencies: 6
inputs: UNSPSC Code
82131604
function: FilterConcept
dependencies: 7
inputs: art
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2