Question: How many governors comprise the head of Kentucky government (attorney general) or apply to jurisdiction over Texas (population 20,851,820)
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
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> "Kentucky" . ?e_1 <office_held_by_head_of_government> ?e_2 . ?e_2 <pred:name> "attorney general" .  } UNION { ?e <applies_to_jurisdiction> ?e_1 . ?e_1 <pred:name> "Texas" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "20851820"^^xsd:double .  } }
Program:
function: Find
inputs: attorney general
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Kentucky
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: FilterNum
dependencies: 6
inputs: population
20851820
=
function: Relate
dependencies: 7
inputs: applies to jurisdiction
backward
function: FilterConcept
dependencies: 8
inputs: governor
function: Or
dependencies: 5
9
function: Count
dependencies: 10