Can I get backlinks of backlink?


I have a note 1, wich linked to note 2. And note 3, which linked to note 2
i.e note1<-note2<-note3

I get backlinks of note1 as code

table without id file.inlinks as Ссылки where = 

this code show note2.

But i want show in note1 link of note3(second level connection).Can i do this?