what african country has shorelines on both the atlantic ocean and mediterranean sea?
return country ;return #1 that is african ;return atlantic ocean ;return mediterranean sea ;return shorelines of #2 ;return #2 where  #5 is on #3 ;return #2 where  #5 is on #4 ;return #2 in  both  #6 and #7
['select', 'filter', 'select', 'select', 'project', 'comparative', 'comparative', 'intersection']