Question: How many social sciences have UDC 159.9 or have Earth (out-of-school children is 324000000) as a geography topic?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "social science" .  { ?e <Universal_Decimal_Classification> ?pv . ?pv <pred:value> "159.9" .  } UNION { ?e_1 <geography_of_topic> ?e . ?e_1 <pred:name> "Earth" . ?e_1 <number_of_out-of-school_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "324000000"^^xsd:double .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Universal Decimal Classification
159.9
function: FilterConcept
dependencies: 1
inputs: social science
function: Find
inputs: Earth
function: FilterNum
dependencies: 3
inputs: number of out-of-school children
324000000
=
function: Relate
dependencies: 4
inputs: geography of topic
forward
function: FilterConcept
dependencies: 5
inputs: social science
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 2