I would like to get same transfer id with different group as the following script
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TransferDetail](
[Account] [float] NULL,
[TransferId] nvarchar NULL,
[TransferType] nvarchar NULL,
[TransferDate] [datetime] NULL,
[Description] nvarchar NULL,
[Currency] [float] NULL,
[Amount] [float] NULL
) ON [PRIMARY]
GO
INSERT [dbo].[TransferDetail] ([Account], [TransferId], [TransferType], [TransferDate], [Description], [Currency], [Amount]) VALUES (11111, N'ddd', N'From', CAST(0x0000AD9A00000000 AS DateTime), N'Transfer 11111', 702, -300)
INSERT [dbo].[TransferDetail] ([Account], [TransferId], [TransferType], [TransferDate], [Description], [Currency], [Amount]) VALUES (11111, N'aaa', N'From', CAST(0x0000AD9A00000000 AS DateTime), N'Transfer from 11111', 702, -100)
INSERT [dbo].[TransferDetail] ([Account], [TransferId], [TransferType], [TransferDate], [Description], [Currency], [Amount]) VALUES (11111, N'aaa', N'To', CAST(0x0000AD9A00000000 AS DateTime), N'Transfer To 11111', 840, 74.33)
INSERT [dbo].[TransferDetail] ([Account], [TransferId], [TransferType], [TransferDate], [Description], [Currency], [Amount]) VALUES (11111, N'bbb', N'From', CAST(0x0000AD9A00000000 AS DateTime), N'Transfer from 11111', 702, -200)
INSERT [dbo].[TransferDetail] ([Account], [TransferId], [TransferType], [TransferDate], [Description], [Currency], [Amount]) VALUES (11111, N'bbb', N'To', CAST(0x0000AD9A00000000 AS DateTime), N'Transfer To 11111', 840, 148.65)
INSERT [dbo].[TransferDetail] ([Account], [TransferId], [TransferType], [TransferDate], [Description], [Currency], [Amount]) VALUES (22222, N'ccc', N'From', CAST(0x0000AD9A00000000 AS DateTime), N'Transfer From 22222', 840, -200)
Here're the table data

I would like to get highlighted color records
Currently,I extract like that
Query 1: not got need result
select * from Transferdetail where TransferType ='From' and CURRENCY ='702' Or TransferType ='To' and CURRENCY ='840'
Query 2: got need result but I would like know more ways
select * from Transferdetail where TransferType IN ('From','To') and CURRENCY IN ('702','840')
and TransferId In (select TransferId from Transferdetail where TransferType ='To' and CURRENCY ='840' )
pls any way suggest.