Question: What is the association of the 25th United States Congress with James Buchanan (who is involved in the War of 1812)?
Choices: chief executive officer
has contributing factor
follows
contains administrative territorial entity
symptom of
professional or sports partner
honorific suffix
participant
place of publication
producer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "25th United States Congress" . ?e_2 <pred:name> "James Buchanan" . ?e_2 <conflict> ?e_3 . ?e_3 <pred:name> "War of 1812" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: 25th United States Congress
function: Find
inputs: War of 1812
function: Relate
dependencies: 1
inputs: conflict
backward
function: Find
inputs: James Buchanan
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: participant