Question: What is the official name of Reading (the one that is the capital of Berkshire)?
Choices:
Liberty Records
Eiropas Savienība
جمهوری اکوادور
Chester City Football Club
Ковно
Derby County Football Club
Principat d'Andorra
Bradford
Swindon Town Football Club
Reading
Program:
function: Find
inputs: Berkshire
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Reading
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: official name
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Reading" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Berkshire" .  ?e <official_name> ?pv .  }
Answer: Reading