Min value (transformed) of a group of related nodes

You might take a look at the following post.

Cypher query for return node which <some_field> = max(<some_field>) value out of a group of nodes - Neo4j Graph Platform - Neo4j Online Community