Question: How many classes of instrument are used by Paul McCartney or are originally from Cuba (whose fertility rate is 1.63B)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Paul McCartney
function: Relate
dependencies: 0
inputs: instrument
forward
function: FilterConcept
dependencies: 1
inputs: class of instruments
function: Find
inputs: Cuba
function: FilterNum
dependencies: 3
inputs: total fertility rate
1.638
=
function: Relate
dependencies: 4
inputs: country of origin
backward
function: FilterConcept
dependencies: 5
inputs: class of instruments
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "class of instruments" .  { ?e_1 <instrument> ?e . ?e_1 <pred:name> "Paul McCartney" .  } UNION { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Cuba" . ?e_1 <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "1.638"^^xsd:double .  } }
Answer: 6