That feels like a weird requirement to me; an ORM is by its very nature not going to be able to validate queries at compile-time.
And even if you're writing queries directly, any time you need to write something dynamic, you're not going to be able to verify those at compile-time either.
And even if you're writing queries directly, any time you need to write something dynamic, you're not going to be able to verify those at compile-time either.