Question: what is the number of house music that has famous people Tommy Lee (who is famous for hard rock) or Timbaland.
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> "house music" .  { ?e <famous_people> ?e_1 . ?e_1 <pred:name> "Tommy Lee" . ?e_2 <famous_people> ?e_1 . ?e_2 <pred:name> "hard rock" .  } UNION { ?e <famous_people> ?e_1 . ?e_1 <pred:name> "Timbaland" .  } }
Program:
function: Find
inputs: hard rock
function: Relate
dependencies: 0
inputs: famous people
forward
function: Find
inputs: Tommy Lee
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: famous people
backward
function: FilterConcept
dependencies: 4
inputs: house music
function: Find
inputs: Timbaland
function: Relate
dependencies: 6
inputs: famous people
backward
function: FilterConcept
dependencies: 7
inputs: house music
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 3