Question: How many liberal arts colleges in the US are located in Richmont (the one with postal codes 47374–47375) or were established after 1837 ?
Choices: 8
9
10
11
12
13
14
15
16
17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "liberal arts college in the United States" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Richmond" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "47374–47375" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1837 ) .  } }
Program:
function: Find
inputs: Richmond
function: FilterStr
dependencies: 0
inputs: postal code
47374–47375
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: liberal arts college in the United States
function: FindAll
function: FilterYear
dependencies: 4
inputs: inception
1837
>
function: FilterConcept
dependencies: 5
inputs: liberal arts college in the United States
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 9