Question: What is the connection between Bel Ami (the one whose genre is novel) to French?
Choices:
owner of
partner
designed by
coextensive with
official residence
month of the year
work location
language of work or name
country of origin
depicts
Answer: language of work or name
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bel Ami" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "novel" . ?e_2 <pred:name> "French" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: novel
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Bel Ami
function: And
dependencies: 1
2
function: Find
inputs: French
function: QueryRelation
dependencies: 3
4