Question: Among the port cities that is the twinned administrative body of Saint Petersburg,which one has the largest area ?
Choices:
Basra
Eswatini
Tianjin
İzmir
Odessa
Alexandria
Barcelona
Fremantle
Gibraltar
Busan
Program:
function: Find
inputs: Saint Petersburg
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 1
inputs: port city
function: SelectAmong
dependencies: 2
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "port city" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Saint Petersburg" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alexandria