Question: How many filmmaking jobs are associated with the field of filmmaking or are the Wikidata property of Kick-Ass (with the narrative location in the US) ?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "filmmaking occupation" .  { ?e <field_of_this_occupation> ?e_1 . ?e_1 <pred:name> "filmmaking" .  } UNION { ?e <Wikidata_property> ?e_1 . ?e_1 <pred:name> "Kick-Ass" . ?e_1 <narrative_location> ?e_2 . ?e_2 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: filmmaking
function: Relate
dependencies: 0
inputs: field of this occupation
backward
function: FilterConcept
dependencies: 1
inputs: filmmaking occupation
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: narrative location
backward
function: Find
inputs: Kick-Ass
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: Wikidata property
backward
function: FilterConcept
dependencies: 7
inputs: filmmaking occupation
function: Or
dependencies: 2
8
function: Count
dependencies: 9