Question: Who has fewer children, Eric Dane or Jerry Nelson (the one whose name in kana is ジェリー・ネルソン)?
Choices:
William Henry Harrison
Rahul Dev Burman
Jerry Nelson
Sylvester Stallone
James E. Reilly
Richard Gere
Max Fleischer
Paul Simon
Eric Dane
David Byrne
Program:
function: Find
inputs: Eric Dane
function: Find
inputs: Jerry Nelson
function: FilterStr
dependencies: 1
inputs: name in kana
ジェリー・ネルソン
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eric Dane" . } UNION { ?e <pred:name> "Jerry Nelson" . ?e <name_in_kana> ?pv_1 . ?pv_1 <pred:value> "ジェリー・ネルソン" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jerry Nelson