what is the longest river that runs through a state that borders tennessee 
return states ;return #1 that  border tennessee ;return rivers that  run through #2 ;return longness of  #3 ;return #3 where #4 is  longest
['select', 'filter', 'project', 'project', 'superlative']