Question: Are there more urban dwellers in Goa, founded on 1987-05-29, or in Jammu and Kashmir?
Choices:
Maharashtra
Kerala
Himachal Pradesh
Jammu and Kashmir
Karnataka
Goa
Jharkhand
Odisha
Haryana
Punjab
Program:
function: Find
inputs: Goa
function: FilterDate
dependencies: 0
inputs: inception
1987-05-29
=
function: Find
inputs: Jammu and Kashmir
function: SelectBetween
dependencies: 1
2
inputs: urban population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Goa" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1987-05-29"^^xsd:date . } UNION { ?e <pred:name> "Jammu and Kashmir" . } ?e <urban_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jammu and Kashmir