Question: What is the number of legislative terms that apply to jurisdiction over the United States of America or have an ending date that is after 1997?
Choices:
38
39
40
41
42
43
44
45
46
47
Answer: 39
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "legislative term" .  { ?e <applies_to_jurisdiction> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1997 ) .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: applies to jurisdiction
backward
function: FilterConcept
dependencies: 1
inputs: legislative term
function: FindAll
function: FilterYear
dependencies: 3
inputs: end time
1997
>
function: FilterConcept
dependencies: 4
inputs: legislative term
function: Or
dependencies: 2
5
function: Count
dependencies: 6