Question: Which has a greater number of seats, the Christian Democratic Union or Kuomintang?
Choices:
Labour Party
Pakistan Peoples Party
Christian Democratic Union
United National Party
Ontario Liberal Party
Indian National Congress
Bharatiya Janata Party
Scottish National Party
Kuomintang
Communist Party of India (Marxist)
Program:
function: Find
inputs: Christian Democratic Union
function: Find
inputs: Kuomintang
function: SelectBetween
dependencies: 0
1
inputs: number of representatives in an organization/legislature
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Christian Democratic Union" .  } UNION { ?e <pred:name> "Kuomintang" .  } ?e <number_of_representatives_in_an_organization/legislature> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Christian Democratic Union