Question: Among Google (the one whose subreddit is google) or Goldman Sachs, which one has less total equity
Choices:
Entertainment One
McDonald's
Sega
Vodafone
Silver Pictures
KLM
Goldman Sachs
Pfizer
Skidmore Owings Merrill
Google
Program:
function: Find
inputs: Google
function: FilterStr
dependencies: 0
inputs: subreddit
google
function: Find
inputs: Goldman Sachs
function: SelectBetween
dependencies: 1
2
inputs: total equity
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Google" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "google" . } UNION { ?e <pred:name> "Goldman Sachs" . } ?e <total_equity> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Google