Question: How many art forms match the industry associated with Televisa or come from Lebanon (the one having diplomatic relations with Russia) ?
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> "art form" .  { ?e_1 <industry> ?e . ?e_1 <pred:name> "Televisa" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Lebanon" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Russia" .  } }
Program:
function: Find
inputs: Televisa
function: Relate
dependencies: 0
inputs: industry
forward
function: FilterConcept
dependencies: 1
inputs: art form
function: Find
inputs: Russia
function: Relate
dependencies: 3
inputs: diplomatic relation
backward
function: Find
inputs: Lebanon
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: art form
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0