Question: How many of the social sciences have the subreddit psychology or include an economic history component?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: subreddit
psychology
function: FilterConcept
dependencies: 1
inputs: social science
function: Find
inputs: economic history
function: Relate
dependencies: 3
inputs: part of
forward
function: FilterConcept
dependencies: 4
inputs: social science
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "social science" .  { ?e <subreddit> ?pv . ?pv <pred:value> "psychology" .  } UNION { ?e_1 <part_of> ?e . ?e_1 <pred:name> "economic history" .  } }
Answer: 2