Question: How many legislative terms are between the 17th and the 31st United States Congress?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: 17th United States Congress
function: Relate
dependencies: 0
inputs: followed by
forward
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: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "legislative term" .  { ?e_1 <followed_by> ?e . ?e_1 <pred:name> "17th United States Congress" .  } UNION { ?e <followed_by> ?e_1 . ?e_1 <pred:name> "31st United States Congress" .  } }
Answer: 2