Question: What is the relationship between John Adams (the one that origins from United States of America) and Benjamin Franklin (the one that belongs to United States of America)?
Choices:
educated at
hair color
studied by
voice type
home port
presenter
characters
family
has quality
highest judicial authority
Answer: characters
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "Benjamin Franklin" . ?e_2 <country_for_sport> ?e_4 . ?e_4 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country for sport
backward
function: Find
inputs: Benjamin Franklin
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7