Question: How many public offices are in a country whose sovereign state is the origin country of Mona Lisa (the one whose OCLC control number is 16386945)?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "public office" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_origin> ?e_1 . ?e_2 <pred:name> "Mona Lisa" . ?e_2 <OCLC_control_number> ?pv . ?pv <pred:value> "16386945" .   }
Program:
function: Find
inputs: Mona Lisa
function: FilterStr
dependencies: 0
inputs: OCLC control number
16386945
function: Relate
dependencies: 1
inputs: country of origin
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: public office
function: Count
dependencies: 5