Question: Which political party was founded by James Madison (the one that has the occupation of lawyer)?
Choices: United National Party
Indian National Congress
New Zealand Labour Party
Labour Party
Nazi Party
Democratic-Republican Party
Ontario Liberal Party
Democratic Party
Communist Party of the Soviet Union
Conservative Party of Canada
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e <founded_by> ?e_1 . ?e_1 <pred:name> "James Madison" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "lawyer" .   }
Program:
function: Find
inputs: lawyer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: James Madison
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: founded by
backward
function: FilterConcept
dependencies: 4
inputs: political party
function: What
dependencies: 5
Answer: Democratic-Republican Party