Question: How many countries are imported from Scotland (the one whose country calling code is +44)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" . ?e_1 <exported_to> ?e . ?e_1 <pred:name> "Scotland" . ?e_1 <country_calling_code> ?pv . ?pv <pred:value> "+44" .   }
Program:
function: Find
inputs: Scotland
function: FilterStr
dependencies: 0
inputs: country calling code
+44
function: Relate
dependencies: 1
inputs: exported to
forward
function: FilterConcept
dependencies: 2
inputs: country
function: Count
dependencies: 3