Question: Lewis Cass took part in which legislative term preceding the 31st session of the US Congress?
Choices:
25th United States Congress
6th United States Congress
14th United States Congress
35th Canadian Parliament
32nd United States Congress
110th United States Congress
31st United States Congress
30th United States Congress
39th Canadian Parliament
107th United States Congress
Answer: 30th United States Congress
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "legislative term" . ?e <participant> ?e_1 . ?e_1 <pred:name> "Lewis Cass" .  ?e <followed_by> ?e_2 . ?e_2 <pred:name> "31st United States Congress" .  }
Program:
function: Find
inputs: Lewis Cass
function: Relate
dependencies: 0
inputs: participant
backward
function: FilterConcept
dependencies: 1
inputs: legislative term
function: Find
inputs: 31st United States Congress
function: Relate
dependencies: 3
inputs: followed by
backward
function: FilterConcept
dependencies: 4
inputs: legislative term
function: And
dependencies: 2
5
function: What
dependencies: 6