I have the following query that works fine (ms-sql db), but cannot figure out how to run it using a Linq query. Also I could run it directly in Linq but have no idea in how