This is data engineering, where people spend thousands of dollars of their company's money to avoid learning SQL. The place with no Java is across the street (old Soviet joke, originally for meat/fish stores).
SELECT * FROM X, into a C# list, Filter it with LINQ, and then use C# to do calculations
"Why not EF?" "Someone told me it was slower"