Question: Which has more total assets, Goldman Sachs or Google which produces advertising as a product or material?
Choices:
Silver Pictures
McDonald's
Skidmore Owings Merrill
Adobe Inc.
Google
Sega
Pfizer
Vodafone
KLM
Goldman Sachs
Program:
function: Find
inputs: Goldman Sachs
function: Find
inputs: advertising
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 assets
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Goldman Sachs" .  } UNION { ?e <pred:name> "Google" . ?e <product_or_material_produced> ?e_1 . ?e_1 <pred:name> "advertising" .   } ?e <total_assets> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Goldman Sachs