Question: How many universities do we recognize that are located in Alabama (the one whose motto text is Audemus iura nostra defendere) or whose rector is Brian Cox (the one that is a cast member of Match Point) ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "university" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Alabama" . ?e_1 <motto_text> ?pv . ?pv <pred:value> "Audemus iura nostra defendere" .  } UNION { ?e <rector> ?e_1 . ?e_1 <pred:name> "Brian Cox" . ?e_2 <cast_member> ?e_1 . ?e_2 <pred:name> "Match Point" .  } }
Program:
function: Find
inputs: Alabama
function: FilterStr
dependencies: 0
inputs: motto text
Audemus iura nostra defendere
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: university
function: Find
inputs: Match Point
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: Brian Cox
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: rector
backward
function: FilterConcept
dependencies: 8
inputs: university
function: Or
dependencies: 3
9
function: Count
dependencies: 10
Answer: 4