def wrap_string_with_appropriate_quotes(text: str) -> str:
    """Wraps given string with appropriate quotes (for SQL insert query)"""
    has_single_quote = "'" in text
    has_double_quote = '"' in text
    if not has_single_quote and not has_double_quote:
        return f"'{text}'"
    if has_single_quote and not has_double_quote:
        return f'"{text}"'
    if not has_single_quote and has_double_quote:
        return f"'{text}'"
    return f'"{text}"'