Split expression over multiple lines to make it easier to locate errors from line numbers
Extract out a top level dao element and defer entitiyt level queries to it