Question: What is the connection between John Adams (the one that has Tom Hollander as a cast member) to George Washington (the one that is the head of government of United States of America)?
Choices:
developer
professorship
military conflicts
subsidiary
relative
characters
languages spoken, written or signed
designated as terrorist by
official symbol
fictional universe described in
Answer: characters
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Tom Hollander" . ?e_2 <pred:name> "George Washington" . ?e_4 <head_of_government> ?e_2 . ?e_4 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Tom Hollander
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: head of government
forward
function: Find
inputs: George Washington
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7