how? you're just doing the same thing with MongoDB in their own json-like syntax instead of the T-SQL that everyone knows
But there are cases where you need to build the query object programmatically (and dynamically), and I believe it's a bit awkward to do that to obtain an SQL statement. But possibly it's just my personal taste :)