You can see the query in visual studio debugger itself, just put a break point in that query and run it. when it hits the break point, just check it. you can see the query generated in the background.Basically while we run a linq query, the matching sql query is generated at the background that we are not aware of.
Please refer this
Link[
^]