Question: Who has more children, Liv Tyler or Charles Bronson who has http://www.charlesbronson.info/ as his official website?
Choices:
David Byrne
Sylvester Stallone
Paul Simon
Richard Gere
Max Fleischer
Charles Bronson
Rahul Dev Burman
William Henry Harrison
James E. Reilly
Liv Tyler
Program:
function: Find
inputs: Charles Bronson
function: FilterStr
dependencies: 0
inputs: official website
http://www.charlesbronson.info/
function: Find
inputs: Liv Tyler
function: SelectBetween
dependencies: 1
2
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charles Bronson" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.charlesbronson.info/" . } UNION { ?e <pred:name> "Liv Tyler" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Charles Bronson