Question: How many medications have a mass that is under 190 grams per mole and are the official symbol of Massachusetts (that is the narrative location of St. Elsewhere)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "medication" . ?e <mass> ?pv . ?pv <pred:unit> "gram per mole" . ?pv <pred:value> ?v . FILTER ( ?v < "190"^^xsd:double ) . ?e_1 <official_symbol> ?e . ?e_1 <pred:name> "Massachusetts" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "St. Elsewhere" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: mass
190 gram per mole
<
function: FilterConcept
dependencies: 1
inputs: medication
function: Find
inputs: St. Elsewhere
function: Relate
dependencies: 3
inputs: narrative location
forward
function: Find
inputs: Massachusetts
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: official symbol
forward
function: FilterConcept
dependencies: 7
inputs: medication
function: And
dependencies: 2
8
function: Count
dependencies: 9