Question: How many singles use the English language or are a part of Virginia whose distributor is Paramount Pictures?
Choices:
16
17
18
19
20
21
22
23
24
25
Answer: 18
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" .  { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .  } UNION { ?e <part_of> ?e_1 . ?e_1 <pred:name> "Virginia" . ?e_1 <distributor> ?e_2 . ?e_2 <pred:name> "Paramount Pictures" .  } }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: FilterConcept
dependencies: 1
inputs: single
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 3
inputs: distributor
backward
function: Find
inputs: Virginia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: part of
backward
function: FilterConcept
dependencies: 7
inputs: single
function: Or
dependencies: 2
8
function: Count
dependencies: 9