Question: What is the relationship between Angelina Jolie or Debra Messing?
Choices:
David Byrne
Max Fleischer
Richard Gere
Angelina Jolie
Sylvester Stallone
William Henry Harrison
James E. Reilly
Debra Messing
Rahul Dev Burman
Simon Cowell
Program:
function: Find
inputs: Angelina Jolie
function: Find
inputs: Debra Messing
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Angelina Jolie" .  } UNION { ?e <pred:name> "Debra Messing" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Angelina Jolie