Question: How many higher-education institutions are Paul Thomas Anderson's academic degree or are registered with the IRS?
Choices:
101
102
103
104
105
106
107
108
109
110
Answer: 108
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "higher education institution" .  { ?e_1 <academic_degree> ?e . ?e_1 <pred:name> "Paul Thomas Anderson" .  } UNION { ?e <registered_with> ?e_1 . ?e_1 <pred:name> "Internal Revenue Service" .  } }
Program:
function: Find
inputs: Paul Thomas Anderson
function: Relate
dependencies: 0
inputs: academic degree
forward
function: FilterConcept
dependencies: 1
inputs: higher education institution
function: Find
inputs: Internal Revenue Service
function: Relate
dependencies: 3
inputs: registered with
backward
function: FilterConcept
dependencies: 4
inputs: higher education institution
function: Or
dependencies: 2
5
function: Count
dependencies: 6