Question: How many provinces of Italy that has Naples (the one that is the twinned administrative body of Budapest) as a part or whose postal code is 09010–09033?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Budapest
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Naples
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of
forward
function: FilterConcept
dependencies: 4
inputs: province of Italy
function: FindAll
function: FilterStr
dependencies: 6
inputs: postal code
09010–09033
function: FilterConcept
dependencies: 7
inputs: province of Italy
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" .  { ?e_1 <part_of> ?e . ?e_1 <pred:name> "Naples" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Budapest" .  } UNION { ?e <postal_code> ?pv . ?pv <pred:value> "09010–09033" .  } }
Answer: 2