Question: How many associations have the Instagram username ioyalacademyofarts or were founded by Benjamin Franklin (whose profession is librarian)?
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> "association" .  { ?e <Instagram_username> ?pv . ?pv <pred:value> "royalacademyofarts" .  } UNION { ?e <founded_by> ?e_1 . ?e_1 <pred:name> "Benjamin Franklin" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "librarian" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Instagram username
royalacademyofarts
function: FilterConcept
dependencies: 1
inputs: association
function: Find
inputs: librarian
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Benjamin Franklin
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: founded by
backward
function: FilterConcept
dependencies: 7
inputs: association
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2