Question: How many art movements are the genre of Tori Amos or have a movement by Pablo Picasso?
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 movement" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Tori Amos" .  } UNION { ?e_1 <movement> ?e . ?e_1 <pred:name> "Pablo Picasso" .  } }
Program:
function: Find
inputs: Tori Amos
function: Relate
dependencies: 0
inputs: genre
forward
function: FilterConcept
dependencies: 1
inputs: art movement
function: Find
inputs: Pablo Picasso
function: Relate
dependencies: 3
inputs: movement
forward
function: FilterConcept
dependencies: 4
inputs: art movement
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3