Question: What capital has land area that is 307 square kilometers and is the twinned administrative body of Dallas (that is the residence of Erykah Badu)?
Choices:
Nanjing
Tallinn
Mexico City
Sarajevo
Manila
Riga
New Delhi
Moscow
Doha
Paris
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
307 square kilometre
=
function: FilterConcept
dependencies: 1
inputs: capital
function: Find
inputs: Erykah Badu
function: Relate
dependencies: 3
inputs: residence
forward
function: Find
inputs: Dallas
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 7
inputs: capital
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "307"^^xsd:double . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Dallas" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Erykah Badu" .  }
Answer: Riga