Question: How many diseases, within the psychiatry field of healthcare, can be treated by The Girl with the Dragon Tattoo (the one whose OCLC control number is 259742180)?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" .  { ?e <health_specialty> ?e_1 . ?e_1 <pred:name> "psychiatry" .  } UNION { ?e <medical_treatment> ?e_1 . ?e_1 <pred:name> "The Girl with the Dragon Tattoo" . ?e_1 <OCLC_control_number> ?pv . ?pv <pred:value> "259742180" .  } }
Program:
function: Find
inputs: psychiatry
function: Relate
dependencies: 0
inputs: health specialty
backward
function: FilterConcept
dependencies: 1
inputs: disease
function: Find
inputs: The Girl with the Dragon Tattoo
function: FilterStr
dependencies: 3
inputs: OCLC control number
259742180
function: Relate
dependencies: 4
inputs: medical treatment
backward
function: FilterConcept
dependencies: 5
inputs: disease
function: Or
dependencies: 2
6
function: Count
dependencies: 7