Question: What time of kinship is between Randy Newman and David Newman (the one born in Los Angeles), Randy's relative ?
Choices: cousin
husband's brother
father-in-law
male first cousin
sister-in-law
adoptive parent
grandson
sister's husband
aunt
granddaughter
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Randy Newman" . ?e_2 <pred:name> "David Newman" . ?e_2 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Los Angeles" . ?e_1 <relative> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <relative> ; <pred:fact_t> ?e_2 ] <type_of_kinship> ?qpv .  }
Program:
function: Find
inputs: Randy Newman
function: Find
inputs: Los Angeles
function: Relate
dependencies: 1
inputs: place of birth
backward
function: Find
inputs: David Newman
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: relative
type of kinship
Answer: male first cousin