Question: Which area is larger, Berkeley (the one that is the birthplace of Kathleen Kennedy) or Lynn (the one whose official website is http://www.ci.lynn.ma.us/)?
Choices:
Greenville
Boulder
Berkeley
Columbus
Compton
New Haven
Lansing
Franklin
Waukegan
Oakland
Program:
function: Find
inputs: Kathleen Kennedy
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Berkeley
function: And
dependencies: 1
2
function: Find
inputs: Lynn
function: FilterStr
dependencies: 4
inputs: official website
http://www.ci.lynn.ma.us/
function: SelectBetween
dependencies: 3
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Berkeley" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Kathleen Kennedy" . } UNION { ?e <pred:name> "Lynn" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.ci.lynn.ma.us/" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Berkeley