Question: How many governors were established in 1780 or are the head of government of Texas (the place serving as the narrative location of Days of Heaven) ?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "governor" .  { ?e <inception> ?pv . ?pv <pred:year> 1780 .  } UNION { ?e_1 <office_held_by_head_of_government> ?e . ?e_1 <pred:name> "Texas" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Days of Heaven" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1780
=
function: FilterConcept
dependencies: 1
inputs: governor
function: Find
inputs: Days of Heaven
function: Relate
dependencies: 3
inputs: narrative location
forward
function: Find
inputs: Texas
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: office held by head of government
forward
function: FilterConcept
dependencies: 7
inputs: governor
function: Or
dependencies: 2
8
function: Count
dependencies: 9