Question: How many French departments are the twinned administrative bodies of Moscow, US, or show 50 as their INSEE department code ?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "departments of France" .  { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Moscow" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  } UNION { ?e <INSEE_department_code> ?pv . ?pv <pred:value> "50" .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Moscow
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: departments of France
function: FindAll
function: FilterStr
dependencies: 6
inputs: INSEE department code
50
function: FilterConcept
dependencies: 7
inputs: departments of France
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 1