Question: How many organizations have Tommy Lee (the one that is the citizen of United Kingdom) as a member or are the production company of Quantum of Solace?
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> "organization" .  { ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Tommy Lee" . ?e_1 <country_of_citizenship> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } UNION { ?e_1 <production_company> ?e . ?e_1 <pred:name> "Quantum of Solace" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Tommy Lee
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: FilterConcept
dependencies: 4
inputs: organization
function: Find
inputs: Quantum of Solace
function: Relate
dependencies: 6
inputs: production company
forward
function: FilterConcept
dependencies: 7
inputs: organization
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2