Question: How many governors are the head of government of Massachusetts (that shares a border with Vermont) and apply to jurisdiction over Texas (whose nickname is The Lone Star State)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "governor" . ?e_1 <office_held_by_head_of_government> ?e . ?e_1 <pred:name> "Massachusetts" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Vermont" .  ?e <applies_to_jurisdiction> ?e_3 . ?e_3 <pred:name> "Texas" . ?e_3 <nickname> ?pv . ?pv <pred:value> "The Lone Star State" .  }
Program:
function: Find
inputs: Vermont
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Massachusetts
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: office held by head of government
forward
function: FilterConcept
dependencies: 4
inputs: governor
function: Find
inputs: Texas
function: FilterStr
dependencies: 6
inputs: nickname
The Lone Star State
function: Relate
dependencies: 7
inputs: applies to jurisdiction
backward
function: FilterConcept
dependencies: 8
inputs: governor
function: And
dependencies: 5
9
function: Count
dependencies: 10