Question: Which is the higher total revenue, Hewlett -Packard or Google (one that produces computer science as a product or material)
Choices:
Skidmore Owings Merrill
Entertainment One
McDonald's
Silver Pictures
Adobe Inc.
KLM
Hewlett-Packard
Sega
Vodafone
Pfizer
Answer: Hewlett-Packard
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hewlett-Packard" .  } UNION { ?e <pred:name> "Google" . ?e <product_or_material_produced> ?e_1 . ?e_1 <pred:name> "computer science" .   } ?e <total_revenue> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hewlett-Packard
function: Find
inputs: computer science
function: Relate
dependencies: 1
inputs: product or material produced
backward
function: Find
inputs: Google
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: total revenue
greater