Question: Which of two locations, Punjab (which has an inception time of 1956-01-01) or Andhra Pradesh (with a subreddit of andhra_pradesh) has a population containing fewer females?
Choices:
Andhra Pradesh
Haryana
Himachal Pradesh
Punjab
West Bengal
Odisha
Jharkhand
Gujarat
Kerala
Karnataka
Answer: Punjab
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Andhra Pradesh" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "andhra_pradesh" . } UNION { ?e <pred:name> "Punjab" . ?e <inception> ?pv_2 . ?pv_2 <pred:date> "1956-01-01"^^xsd:date . } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Andhra Pradesh
function: FilterStr
dependencies: 0
inputs: subreddit
andhra_pradesh
function: Find
inputs: Punjab
function: FilterDate
dependencies: 2
inputs: inception
1956-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: female population
less