SQL vs Ecto optimization/translation help

that wasn’t done as a reply to any of you so you may not see it.. @OvermindDL1 / @cmkarlsson / @kip