Question: How many products are said to be the same as sucrose or are Kevin Costner's last meal?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "product" .  { ?e_1 <said_to_be_the_same_as> ?e . ?e_1 <pred:name> "sucrose" .  } UNION { ?e_1 <had_as_last_meal> ?e . ?e_1 <pred:name> "Kevin Costner" .  } }
Program:
function: Find
inputs: sucrose
function: Relate
dependencies: 0
inputs: said to be the same as
forward
function: FilterConcept
dependencies: 1
inputs: product
function: Find
inputs: Kevin Costner
function: Relate
dependencies: 3
inputs: had as last meal
forward
function: FilterConcept
dependencies: 4
inputs: product
function: Or
dependencies: 2
5
function: Count
dependencies: 6