Question: Which has the smaller population, Jamaica, located in Queens, or Venice, which has a subreddit of venice?
Choices:
Sherman Oaks
Venice
Studio City
Encino
Woodland Hills
Pacific Palisades
Northridge
Monte Carlo
Roxbury
Astoria
Answer: Venice
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jamaica" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Queens" . } UNION { ?e <pred:name> "Venice" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "venice" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Queens
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Jamaica
function: And
dependencies: 1
2
function: Find
inputs: Venice
function: FilterStr
dependencies: 4
inputs: subreddit
venice
function: SelectBetween
dependencies: 3
5
inputs: population
less