You can use Diagnostic tools in Visual Studio to see the generated query.
To enable this, go to top right corner, there you can see quick search and type diagnostic tools.
In the results, click on appropriate option and see below for query generated.