Question: What is the official name of Rotterdam, twinned administrative body of Lille?
Choices:
Republica Bulgaria
Tijuana
Regensburg
Reino de España
Εθνική Κύπρου
Associazione Calcio Bellinzona
Los Angeles Airport
Melbourne
Poola Vabariik
Rotterdam
Program:
function: Find
inputs: Lille
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Rotterdam
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: official name
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Rotterdam" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Lille" .  ?e <official_name> ?pv .  }
Answer: Rotterdam