def _parse_query_modifier(self, modifier, qval, is_escaped):
if modifier == '<STR_LIT>':<EOL><INDENT>if not qval[<NUM_LIT:0>]:<EOL><INDENT>start = '<STR_LIT:*>'<EOL><DEDENT>elif isinstance(qval[<NUM_LIT:0>], date):<EOL><INDENT>start = self._handle_date(qval[<NUM_LIT:0>])<EOL><DEDENT>elif isinstance(qval[<NUM_LIT:0>], datetime):<EOL><INDENT>start = self._handle_datetime(qval[<NUM_LIT:0>])<EOL><DEDENT>elif not is_escaped:<EOL><INDENT>start = self._escape_query(qval[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>start = qval[<NUM_LIT:0>]<EOL><DEDENT>if not qval[<NUM_LIT:1>]:<EOL><INDENT>end = '<STR_LIT:*>'<EOL><DEDENT>elif isinstance(qval[<NUM_LIT:1>], date):<EOL><INDENT>end = self._handle_date(qval[<NUM_LIT:1>])<EOL><DEDENT>elif isinstance(qval[<NUM_LIT:1>], datetime):<EOL><INDENT>end = self._handle_datetime(qval[<NUM_LIT:1>])<EOL><DEDENT>elif not is_escaped:<EOL><INDENT>end = self._escape_query(qval[<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>end = qval[<NUM_LIT:1>]<EOL><DEDENT>qval = '<STR_LIT>' % (start, end)<EOL><DEDENT>else:<EOL><INDENT>if not is_escaped and not isinstance(qval, (date, datetime, int, float)):<EOL><INDENT>qval = self._escape_query(qval)<EOL><DEDENT>if modifier == '<STR_LIT>':<EOL><INDENT>qval = qval<EOL><DEDENT>elif modifier == '<STR_LIT>':<EOL><INDENT>qval = "<STR_LIT>" % qval<EOL><DEDENT>elif modifier == '<STR_LIT>':<EOL><INDENT>qval = "<STR_LIT>" % qval<EOL><DEDENT>elif modifier == '<STR_LIT>':<EOL><INDENT>qval = "<STR_LIT>" % qval<EOL><DEDENT>elif modifier == '<STR_LIT>':<EOL><INDENT>qval = '<STR_LIT>' % qval<EOL><DEDENT>elif modifier == '<STR_LIT>':<EOL><INDENT>qval = '<STR_LIT>' % qval<EOL><DEDENT>elif modifier == '<STR_LIT>':<EOL><INDENT>if isinstance(qval, int):<EOL><INDENT>qval -= <NUM_LIT:1><EOL><DEDENT>qval = '<STR_LIT>' % qval<EOL><DEDENT>elif modifier == '<STR_LIT>':<EOL><INDENT>if isinstance(qval, int):<EOL><INDENT>qval += <NUM_LIT:1><EOL><DEDENT>qval = '<STR_LIT>' % qval<EOL><DEDENT><DEDENT>return qval<EOL>
Parses query_value according to query_type

Args:
    modifier (str): Type of query. Exact, contains, lte etc.
    qval: Value partition of the query.

Returns:
    Parsed query_value.