Question: How many business schools have the Instagram username 'whartonschool' or are the employer of John Davis (who has the occupation of diplomat)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Instagram username
whartonschool
function: FilterConcept
dependencies: 1
inputs: business school
function: Find
inputs: diplomat
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: John Davis
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: employer
forward
function: FilterConcept
dependencies: 7
inputs: business school
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "business school" .  { ?e <Instagram_username> ?pv . ?pv <pred:value> "whartonschool" .  } UNION { ?e_1 <employer> ?e . ?e_1 <pred:name> "John Davis" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "diplomat" .  } }
Answer: 2