Question: How many counties of Illinois have an inception time after 1836 or were named after Donald Trump (who was educated at Johns Hopkins School of Medicine)?
Choices:
4
5
6
7
8
9
10
11
12
13
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1836
>
function: FilterConcept
dependencies: 1
inputs: county of Illinois
function: Find
inputs: Johns Hopkins School of Medicine
function: Relate
dependencies: 3
inputs: educated at
backward
function: Find
inputs: Donald Trump
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: county of Illinois
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1836 ) .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Donald Trump" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "Johns Hopkins School of Medicine" .  } }
Answer: 4