Question: How many comedies sharing the genre of War of the Worlds are set in Los Angeles?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comedy" . ?e <genre> ?e_1 . ?e_1 <pred:name> "War of the Worlds" .  ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "Los Angeles" .  }
Program:
function: Find
inputs: War of the Worlds
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: comedy
function: Find
inputs: Los Angeles
function: Relate
dependencies: 3
inputs: narrative location
backward
function: FilterConcept
dependencies: 4
inputs: comedy
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 0