Question: Which one, Adam West (the one whose Twitter username is therealadamwest) or Mark Addy, has fewer number of children?
Choices:
David Byrne
Paul Simon
Rahul Dev Burman
Simon Cowell
Sylvester Stallone
James E. Reilly
Adam West
Mark Addy
Richard Gere
William Henry Harrison
Program:
function: Find
inputs: Adam West
function: FilterStr
dependencies: 0
inputs: Twitter username
therealadamwest
function: Find
inputs: Mark Addy
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Adam West" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "therealadamwest" . } UNION { ?e <pred:name> "Mark Addy" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mark Addy