@classmethod<EOL><INDENT>def from_statement(cls, statement):<DEDENT>
if statement[<NUM_LIT:0>] in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>return TimestampFunction.from_statement(statement)<EOL><DEDENT>elif statement[<NUM_LIT:0>] in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>return NowFunction.from_statement(statement)<EOL><DEDENT>else:<EOL><INDENT>raise SyntaxError("<STR_LIT>" % statement[<NUM_LIT:0>])<EOL><DEDENT>
Create a selection function from a statement