Question: How many ice hockey teams are related to ice hocey sport or drafted Tim Armstrong (the one that is a member of Toronto Maple Leafs)?
Choices:
43
44
45
46
47
48
49
50
51
52
Answer: 46
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ice hockey team" .  { ?e <sport> ?e_1 . ?e_1 <pred:name> "ice hockey" .  } UNION { ?e_1 <drafted_by> ?e . ?e_1 <pred:name> "Tim Armstrong" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Toronto Maple Leafs" .  } }
Program:
function: Find
inputs: ice hockey
function: Relate
dependencies: 0
inputs: sport
backward
function: FilterConcept
dependencies: 1
inputs: ice hockey team
function: Find
inputs: Toronto Maple Leafs
function: Relate
dependencies: 3
inputs: member of sports team
backward
function: Find
inputs: Tim Armstrong
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: drafted by
forward
function: FilterConcept
dependencies: 7
inputs: ice hockey team
function: Or
dependencies: 2
8
function: Count
dependencies: 9