Question: How many basketball teams are related to taekwondo or have Jermaine Jackson (the one that is related to sport basketball) as a member?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "basketball team" .  { ?e <sport> ?e_1 . ?e_1 <pred:name> "taekwondo" .  } UNION { ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Jermaine Jackson" . ?e_1 <sport> ?e_2 . ?e_2 <pred:name> "basketball" .  } }
Program:
function: Find
inputs: taekwondo
function: Relate
dependencies: 0
inputs: sport
backward
function: FilterConcept
dependencies: 1
inputs: basketball team
function: Find
inputs: basketball
function: Relate
dependencies: 3
inputs: sport
backward
function: Find
inputs: Jermaine Jackson
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: member of sports team
forward
function: FilterConcept
dependencies: 7
inputs: basketball team
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 4