Nested select Entity Framework

Please how to transform below sql statement to entityFramework select statement ?

SQL

SELECT v.test1,v.test2, v.test3,i.test4,i.test5 
FROM dbo.table1 i INNER JOIN 
    dbo.table2 v ON i.ID_table1 = v.ID_table2 
    WHERE i.ID_table1" + " IN 
        ( SELECT MAX(ID_table1) 
           FROM dbo.table1 GROUP BY dbo.table.ID_table2 ) AND 
        DATEDIFF(day, getdate(), i.ToDate) < 20;