Question: What is the connection between James Madison (the one that is the participant of 4th United States Congress) to diplomat?
Choices:
location of discovery
dissertation submitted to
has parts of the class
occupation
set in period
this taxon is source of
donated by
used by
composer
licensed to broadcast to
Program:
function: Find
inputs: 4th United States Congress
function: Relate
dependencies: 0
inputs: participant
forward
function: Find
inputs: James Madison
function: And
dependencies: 1
2
function: Find
inputs: diplomat
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Madison" . ?e_3 <participant> ?e_1 . ?e_3 <pred:name> "4th United States Congress" . ?e_2 <pred:name> "diplomat" . ?e_1 ?p ?e_2 .  }
Answer: occupation