Question: How many diseases, that are treated with antibiotics, are a risk factor related to attention deficit hyperactivity disorder?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" .  { ?e <drug_used_for_treatment> ?e_1 . ?e_1 <pred:name> "antibiotic" .  } UNION { ?e <risk_factor> ?e_1 . ?e_1 <pred:name> "attention deficit hyperactivity disorder" .  } }
Program:
function: Find
inputs: antibiotic
function: Relate
dependencies: 0
inputs: drug used for treatment
backward
function: FilterConcept
dependencies: 1
inputs: disease
function: Find
inputs: attention deficit hyperactivity disorder
function: Relate
dependencies: 3
inputs: risk factor
backward
function: FilterConcept
dependencies: 4
inputs: disease
function: Or
dependencies: 2
5
function: Count
dependencies: 6