Question: How many basketball teams have swingman Michael Jordan as their owner or have a founding year besides 1995?
Choices:
28
29
30
31
32
33
34
35
36
37
Answer: 37
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "basketball team" .  { ?e_1 <owner_of> ?e . ?e_1 <pred:name> "Michael Jordan" . ?e_1 <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "swingman" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1995 ) .  } }
Program:
function: Find
inputs: swingman
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Michael Jordan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: owner of
forward
function: FilterConcept
dependencies: 4
inputs: basketball team
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1995
!=
function: FilterConcept
dependencies: 7
inputs: basketball team
function: Or
dependencies: 5
8
function: Count
dependencies: 9