Sometimes the best way to analyze a sentence is to rearrange it.
Your base sentence is "They are the best". That is subject - verb -article - predicate adjective. Now what do we do with "by far"? It is an adverbial prepositional phrase that modifies the adjective "best".
Student or Learner