Question: Who has more kids, Lynn Redgrave or Freddie Prinze whose official website is http://www.freddieprinzejr.com?
Choices:
James E. Reilly
Simon Cowell
Rahul Dev Burman
Lynn Redgrave
Sylvester Stallone
Richard Gere
William Henry Harrison
Freddie Prinze
Paul Simon
David Byrne
Program:
function: Find
inputs: Lynn Redgrave
function: Find
inputs: Freddie Prinze
function: FilterStr
dependencies: 1
inputs: official website
http://www.freddieprinzejr.com
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lynn Redgrave" . } UNION { ?e <pred:name> "Freddie Prinze" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.freddieprinzejr.com" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lynn Redgrave