def _get_cqlsh_for_query(query: str):
    """
    Creates a `cqlsh` command for given query that will be executed over a TLS
    connection.
    """
    return 'cqlsh --cqlshrc="$MESOS_SANDBOX/cqlshrc" --ssl -e "{query}"'.format(
        query=query)