Question: Which has fewer people, Hastings (the one that is located in Dakota County) or Hollywood (the one whose official website is http://www.hollywoodfl.org)?
Choices:
Hollywood
Greenville
Oakland
Compton
Columbus
Lansing
Waukegan
Franklin
Hastings
Boulder
Program:
function: Find
inputs: Dakota County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Hastings
function: And
dependencies: 1
2
function: Find
inputs: Hollywood
function: FilterStr
dependencies: 4
inputs: official website
http://www.hollywoodfl.org
function: SelectBetween
dependencies: 3
5
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hastings" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Dakota County" . } UNION { ?e <pred:name> "Hollywood" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.hollywoodfl.org" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hastings