Question: How many liberal-arts colleges are registered with Internal Revenue Service or have a number of students less than 1200?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "liberal arts college" .  { ?e <registered_with> ?e_1 . ?e_1 <pred:name> "Internal Revenue Service" .  } UNION { ?e <students_count> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "1200"^^xsd:double ) .  } }
Program:
function: Find
inputs: Internal Revenue Service
function: Relate
dependencies: 0
inputs: registered with
backward
function: FilterConcept
dependencies: 1
inputs: liberal arts college
function: FindAll
function: FilterNum
dependencies: 3
inputs: students count
1200
<
function: FilterConcept
dependencies: 4
inputs: liberal arts college
function: Or
dependencies: 2
5
function: Count
dependencies: 6