Question: How many legislative terms followed the 19th United States Congress or started after 1994?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 12
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> "19th United States Congress" .  } UNION { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1994 ) .  } }
Program:
function: Find
inputs: 19th United States Congress
function: Relate
dependencies: 0
inputs: followed by
forward
function: FilterConcept
dependencies: 1
inputs: legislative term
function: FindAll
function: FilterYear
dependencies: 3
inputs: start time
1994
>
function: FilterConcept
dependencies: 4
inputs: legislative term
function: Or
dependencies: 2
5
function: Count
dependencies: 6