Question: Which has fewer children, James Caan (the one whose LinkedIn personal profile URL is https://www.linkedin.com/in/jamescaan/) or Alan Hume?
Choices:
Richard Gere
Max Fleischer
Simon Cowell
Rahul Dev Burman
James E. Reilly
William Henry Harrison
David Byrne
Alan Hume
James Caan
Sylvester Stallone
Program:
function: Find
inputs: James Caan
function: FilterStr
dependencies: 0
inputs: LinkedIn personal profile URL
https://www.linkedin.com/in/jamescaan/
function: Find
inputs: Alan Hume
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Caan" . ?e <LinkedIn_personal_profile_URL> ?pv_1 . ?pv_1 <pred:value> "https://www.linkedin.com/in/jamescaan/" . } UNION { ?e <pred:name> "Alan Hume" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: James Caan