Question: How many visual artworks are named after John F. Kennedy or are distributed by Universal Pictures (that is the distributor of The Invention of Lying)?
Choices: 143
144
145
146
147
148
149
150
151
152
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" .  { ?e <named_after> ?e_1 . ?e_1 <pred:name> "John F. Kennedy" .  } UNION { ?e <distributor> ?e_1 . ?e_1 <pred:name> "Universal Pictures" . ?e_2 <distributor> ?e_1 . ?e_2 <pred:name> "The Invention of Lying" .  } }
Program:
function: Find
inputs: John F. Kennedy
function: Relate
dependencies: 0
inputs: named after
backward
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: The Invention of Lying
function: Relate
dependencies: 3
inputs: distributor
forward
function: Find
inputs: Universal Pictures
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: distributor
backward
function: FilterConcept
dependencies: 7
inputs: visual artwork
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 148