Question: What is the number of China provinces that are overseen by a mayor or that have a border in with Henan
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of China" .  { ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" .  } UNION { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Henan" .  } }
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: FilterConcept
dependencies: 1
inputs: province of China
function: Find
inputs: Henan
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: province of China
function: Or
dependencies: 2
5
function: Count
dependencies: 6