Question: How many films are titled The Expendables or mainly portray aviation?
Choices: 47
48
49
50
51
52
53
54
55
56
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" .  { ?e <title> ?pv . ?pv <pred:value> "The Expendables" .  } UNION { ?e <main_subject> ?e_1 . ?e_1 <pred:name> "aviation" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
The Expendables
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: aviation
function: Relate
dependencies: 3
inputs: main subject
backward
function: FilterConcept
dependencies: 4
inputs: film
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 53