if you just need to "translate" graphql query to sql-query (ir doesn't matter is it mssql or PostgreSQL) - you may take a look NReco.GraphQL (which is based on GraphQL.Net engine). Ofc, if you have .Net stack -
https://www.nuget.org/packages/NReco.GraphQL/