what is the capital of the country whose boarder is germany and poland?
return countries ;return boarders of #1 ;return #1 where  #2 is germany ;return #3 where  #2 is poland ;return capital of #4
['select', 'project', 'comparative', 'comparative', 'project']