Question: What is the number of medals that are named after Benjamin Franklin ( the name from which is derived the Franklin Medal) or were started after 1731?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Franklin Medal
function: Relate
dependencies: 0
inputs: named after
forward
function: Find
inputs: Benjamin Franklin
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: medal
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1731
>
function: FilterConcept
dependencies: 7
inputs: medal
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> "medal" .  { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Benjamin Franklin" . ?e_2 <named_after> ?e_1 . ?e_2 <pred:name> "Franklin Medal" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1731 ) .  } }
Answer: 8