Question: How many US states overlap the New York metro area or are subsequent to The Last Picture Show?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" .  { ?e_1 <territory_overlaps> ?e . ?e_1 <pred:name> "New York metropolitan area" .  } UNION { ?e_1 <followed_by> ?e . ?e_1 <pred:name> "The Last Picture Show" .  } }
Program:
function: Find
inputs: New York metropolitan area
function: Relate
dependencies: 0
inputs: territory overlaps
forward
function: FilterConcept
dependencies: 1
inputs: state of the United States
function: Find
inputs: The Last Picture Show
function: Relate
dependencies: 3
inputs: followed by
forward
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6