Question: How many Netherlands provinces border Utrecht whose licence plate code is L?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Utrecht" . ?e_1 <licence_plate_code> ?pv . ?pv <pred:value> "L" .   }
Program:
function: Find
inputs: Utrecht
function: FilterStr
dependencies: 0
inputs: licence plate code
L
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: province of the Netherlands
function: Count
dependencies: 3