def create_query_object(self, tokens):
try:<EOL><INDENT>query_type = tokens['<STR_LIT:type>']<EOL>return getattr(self, '<STR_LIT>' % query_type)(tokens)<EOL><DEDENT>except (KeyError, TypeError):<EOL><INDENT>return self.invalid_query(tokens)<EOL><DEDENT>
Analyze query tokens and create an InfluxDBStatement from them
Return None on error
:param tokens: A list of InfluxDB query tokens