Question: Which one has more people, Cherokee (Quentin Tarantino belongs to this ethnic group) or Hungarians ?
Choices:
French American
Indian American
Koreans
Hungarians
Austrians
Armenians
American Jews
Cherokee
Swedes
Irish migration to Great Britain
Program:
function: Find
inputs: Quentin Tarantino
function: Relate
dependencies: 0
inputs: ethnic group
forward
function: Find
inputs: Cherokee
function: And
dependencies: 1
2
function: Find
inputs: Hungarians
function: SelectBetween
dependencies: 3
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cherokee" . ?e_1 <ethnic_group> ?e . ?e_1 <pred:name> "Quentin Tarantino" .   } UNION { ?e <pred:name> "Hungarians" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hungarians