Question: Which state is bigger, North Dakota or Idaho (the one that is headed by Secretary of State)?
Choices:
Hawaii
Iowa
New Jersey
New Mexico
California
Idaho
Illinois
Massachusetts
Colorado
Florida
Program:
function: Find
inputs: Secretary of State
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Idaho
function: And
dependencies: 1
2
function: Find
inputs: North Dakota
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Idaho" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "Secretary of State" .   } UNION { ?e <pred:name> "North Dakota" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Idaho