Question: What is the connection between Bobby (the one that was born in Dhaka) to Dhaka?
Choices:
place of birth
subsidiary
source of income
board member
has part
theme music
currency
public holiday
platform
family name
Program:
function: Find
inputs: Dhaka
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Bobby
function: And
dependencies: 1
2
function: Find
inputs: Dhaka
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bobby" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Dhaka" . ?e_2 <pred:name> "Dhaka" . ?e_1 ?p ?e_2 .  }
Answer: place of birth