1)the same +名词+as +从句,从句中有省略情况,as为连词
如 I want to buy the same as you did
2)the same +名词+with+宾语,因为with是介词,
如 I want to buy the same with yours(=your book)
3)the same +名词+that 定语从句,其中that指代的先行词和the same 后面的是一样的
如 the book is the same one that you bought yesterday.
这本书就是我昨天买的书.
ps:您的那几个例子,都是有点瑕疵的.