Question: How many bands include Jim O'Rourke, who was educated at DePaul University, or is famous for folk rock?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "band" .  { ?e <has_part> ?e_1 . ?e_1 <pred:name> "Jim O'Rourke" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "DePaul University" .  } UNION { ?e_1 <famous_people> ?e . ?e_1 <pred:name> "folk rock" .  } }
Program:
function: Find
inputs: DePaul University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Jim O'Rourke
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
backward
function: FilterConcept
dependencies: 4
inputs: band
function: Find
inputs: folk rock
function: Relate
dependencies: 6
inputs: famous people
forward
function: FilterConcept
dependencies: 7
inputs: band
function: Or
dependencies: 5
8
function: Count
dependencies: 9