Question: Is redone the Instagram username for the person who was born in Morocco (that has a diplomatic relation with Germany)?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Morocco" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Germany" .  ?e <Instagram_username> ?pv . ?pv <pred:value> "redone" .  }
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Morocco
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
backward
function: FilterConcept
dependencies: 4
inputs: human
function: QueryAttr
dependencies: 5
inputs: Instagram username
function: VerifyStr
dependencies: 6
inputs: redone