Question: How many schools are the employer of John Davis (who is educated at Iowa State University) or have the official website http://gsd.harvard.edu/?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "school" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "John Davis" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "Iowa State University" .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://gsd.harvard.edu/" .  } }
Program:
function: Find
inputs: Iowa State University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: employer
forward
function: FilterConcept
dependencies: 4
inputs: school
function: FindAll
function: FilterStr
dependencies: 6
inputs: official website
http://gsd.harvard.edu/
function: FilterConcept
dependencies: 7
inputs: school
function: Or
dependencies: 5
8
function: Count
dependencies: 9