Question: How many fictional professionals are USA citizens or have the occupation of superhero?
Choices:
21
22
23
24
25
26
27
28
29
30
Answer: 24
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional profession" .  { ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e <occupation> ?e_1 . ?e_1 <pred:name> "superhero" .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: FilterConcept
dependencies: 1
inputs: fictional profession
function: Find
inputs: superhero
function: Relate
dependencies: 3
inputs: occupation
backward
function: FilterConcept
dependencies: 4
inputs: fictional profession
function: Or
dependencies: 2
5
function: Count
dependencies: 6