def check(self, query):
if query.get_type() not in {Keyword.SELECT}:<EOL><INDENT>return Ok(True)<EOL><DEDENT>earliest_date = query.get_earliest_date()<EOL>if earliest_date >= self.min_start_date:<EOL><INDENT>return Ok(True)<EOL><DEDENT>if query.limit_stmt:<EOL><INDENT>return Ok(True)<EOL><DEDENT>return Err(("<STR_LIT>"<EOL>"<STR_LIT>").format(self.min_start_date.strftime("<STR_LIT>"),<EOL>earliest_date))<EOL>
:param query: