what is your last flight leaving san francisco and arriving in denver 
return flights ;return #1 leaving san francisco ;return #2 arriving in denver ;return which  #3 is  the last
['select', 'filter', 'filter', 'project']