Question: Who is taller, Jill Scott (the one whose Twitter username is jillscott12) or Lamar Odom?
Choices:
James E. Reilly
Sylvester Stallone
William Henry Harrison
Max Fleischer
David Byrne
Lamar Odom
Richard Gere
Paul Simon
Simon Cowell
Rahul Dev Burman
Program:
function: Find
inputs: Jill Scott
function: FilterStr
dependencies: 0
inputs: Twitter username
jillscott12
function: Find
inputs: Lamar Odom
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jill Scott" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "jillscott12" . } UNION { ?e <pred:name> "Lamar Odom" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lamar Odom