Question: Which area is smaller, Virginia (the one whose population is 2061612) or Texas (the one that contains Texas A&M University)?
Choices:
Massachusetts
California
Virginia
Hawaii
Iowa
New Mexico
New Jersey
Illinois
Colorado
Texas
Program:
function: Find
inputs: Virginia
function: FilterNum
dependencies: 0
inputs: population
2061612
=
function: Find
inputs: Texas A&M University
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Texas
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Virginia" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2061612"^^xsd:double . } UNION { ?e <pred:name> "Texas" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Texas A&M University" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Virginia