Question: How many Academy Awards come after 42nd Academy awards or were not in place in 1958 ?
Choices:
54
55
56
57
58
59
60
61
62
63
Answer: 63
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Academy Awards ceremony" .  { ?e <point_in_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1958 ) .  } UNION { ?e_1 <followed_by> ?e . ?e_1 <pred:name> "42nd Academy Awards" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: point in time
1958
!=
function: FilterConcept
dependencies: 1
inputs: Academy Awards ceremony
function: Find
inputs: 42nd Academy Awards
function: Relate
dependencies: 3
inputs: followed by
forward
function: FilterConcept
dependencies: 4
inputs: Academy Awards ceremony
function: Or
dependencies: 2
5
function: Count
dependencies: 6