Question: Tell me the one that has less seats, Social Democratic party of Germany or Bharatiya-Janata-party.
Choices:
United National Party
Pakistan Peoples Party
Kuomintang
Labour Party
Indian National Congress
Bharatiya Janata Party
Communist Party of India (Marxist)
Conservative Party of Canada
Social Democratic Party of Germany
Ontario Liberal Party
Program:
function: Find
inputs: Social Democratic Party of Germany
function: Find
inputs: Bharatiya Janata Party
function: SelectBetween
dependencies: 0
1
inputs: number of representatives in an organization/legislature
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Social Democratic Party of Germany" .  } UNION { ?e <pred:name> "Bharatiya Janata Party" .  } ?e <number_of_representatives_in_an_organization/legislature> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bharatiya Janata Party