Question: Who has fewer children, J. J. Abrams or Shakira (the one whose Instagram username is shakira)?
Choices:
David Byrne
Richard Gere
Max Fleischer
Sylvester Stallone
Simon Cowell
Rahul Dev Burman
J. J. Abrams
James E. Reilly
William Henry Harrison
Shakira
Program:
function: Find
inputs: J. J. Abrams
function: Find
inputs: Shakira
function: FilterStr
dependencies: 1
inputs: Instagram username
shakira
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "J. J. Abrams" . } UNION { ?e <pred:name> "Shakira" . ?e <Instagram_username> ?pv_1 . ?pv_1 <pred:value> "shakira" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Shakira