Question: How many social sciences are the main subject of Ordinary People or whose Iconoclass notation is 49H1?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "social science" .  { ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Ordinary People" . ?e_1 <title> ?pv . ?pv <pred:value> "Ordinary People" .  } UNION { ?e <Iconclass_notation> ?pv . ?pv <pred:value> "49H1" .  } }
Program:
function: Find
inputs: Ordinary People
function: FilterStr
dependencies: 0
inputs: title
Ordinary People
function: Relate
dependencies: 1
inputs: main subject
forward
function: FilterConcept
dependencies: 2
inputs: social science
function: FindAll
function: FilterStr
dependencies: 4
inputs: Iconclass notation
49H1
function: FilterConcept
dependencies: 5
inputs: social science
function: Or
dependencies: 3
6
function: Count
dependencies: 7