Question: Regarding the person who is the Wyoming head of government (which shares a border with South Dakota), what is the number of children he or she has?
Choices: 3 son
8
9
10
2 daughter
1
3
11
4
0
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <head_of_government> ?e . ?e_1 <pred:name> "Wyoming" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "South Dakota" .  ?e <number_of_children> ?pv .  }
Program:
function: Find
inputs: South Dakota
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Wyoming
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: head of government
forward
function: FilterConcept
dependencies: 4
inputs: human
function: QueryAttr
dependencies: 5
inputs: number of children
Answer: 4