Question: How many liberal arts college in the United States has the religion Religious Society of Friends or the employer of James Brown whose height is 198 centimetre?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "liberal arts college in the United States" .  { ?e <religion> ?e_1 . ?e_1 <pred:name> "Religious Society of Friends" .  } UNION { ?e_1 <employer> ?e . ?e_1 <pred:name> "James Brown" . ?e_1 <height> ?pv . ?pv <pred:unit> "centimetre" . ?pv <pred:value> "198"^^xsd:double .  } }
Program:
function: Find
inputs: Religious Society of Friends
function: Relate
dependencies: 0
inputs: religion
backward
function: FilterConcept
dependencies: 1
inputs: liberal arts college in the United States
function: Find
inputs: James Brown
function: FilterNum
dependencies: 3
inputs: height
198 centimetre
=
function: Relate
dependencies: 4
inputs: employer
forward
function: FilterConcept
dependencies: 5
inputs: liberal arts college in the United States
function: Or
dependencies: 2
6
function: Count
dependencies: 7