Question: What is the capital city of the first-level administrative country subdivision abbreviated as RS?
Choices: Vienna
Kingston
Belo Horizonte
Trieste
Porto Alegre
Hamilton
Rio de Janeiro
Cork
Leipzig
Adelaide
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "first-level administrative country subdivision" . ?e_1 <short_name> ?pv . ?pv <pred:value> "RS" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: short name
RS
function: FilterConcept
dependencies: 1
inputs: first-level administrative country subdivision
function: Relate
dependencies: 2
inputs: capital
forward
function: FilterConcept
dependencies: 3
inputs: city
function: What
dependencies: 4
Answer: Porto Alegre