Question: How many research universities were founded in a year other than 1908 or employ Duke University alumnus Clarence Brown ?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "research university" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "Clarence Brown" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "Duke University" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1908 ) .  } }
Program:
function: Find
inputs: Duke University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Clarence Brown
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: employer
forward
function: FilterConcept
dependencies: 4
inputs: research university
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1908
!=
function: FilterConcept
dependencies: 7
inputs: research university
function: Or
dependencies: 5
8
function: Count
dependencies: 9