Question: How many law schools were attended by US Army member William McKinley or founded later than 1888?
Choices:
9
10
11
12
13
14
15
16
17
18
Program:
function: Find
inputs: United States Army
function: Relate
dependencies: 0
inputs: military branch
backward
function: Find
inputs: William McKinley
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: educated at
forward
function: FilterConcept
dependencies: 4
inputs: law school
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1888
>
function: FilterConcept
dependencies: 7
inputs: law school
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "law school" .  { ?e_1 <educated_at> ?e . ?e_1 <pred:name> "William McKinley" . ?e_1 <military_branch> ?e_2 . ?e_2 <pred:name> "United States Army" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1888 ) .  } }
Answer: 9