Question: How many medals are awarded for the field of number theory or were established later than 1862?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "medal" .  { ?e <award_disciplines_or_subjects> ?e_1 . ?e_1 <pred:name> "number theory" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1862 ) .  } }
Program:
function: Find
inputs: number theory
function: Relate
dependencies: 0
inputs: award disciplines or subjects
backward
function: FilterConcept
dependencies: 1
inputs: medal
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1862
>
function: FilterConcept
dependencies: 4
inputs: medal
function: Or
dependencies: 2
5
function: Count
dependencies: 6