Question: How many schools of business employ the diplomat John Davis or have the official website www.london.edu?
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> "business school" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "John Davis" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "diplomat" .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.london.edu/" .  } }
Program:
function: Find
inputs: diplomat
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: employer
forward
function: FilterConcept
dependencies: 4
inputs: business school
function: FindAll
function: FilterStr
dependencies: 6
inputs: official website
http://www.london.edu/
function: FilterConcept
dependencies: 7
inputs: business school
function: Or
dependencies: 5
8
function: Count
dependencies: 9