public function getClauseConditionSql(string $conditionType, array $clauseConditions) : string
    {
        if (count($clauseConditions) === 0) {
            return '';
        }

        $sql = ' ' . strtoupper($conditionType);
        // This will help us keep track of whether or not we've added at least one clause
        $haveAddedAClause = false;

        foreach ($clauseConditions as $conditionData) {
            $sql .= ($haveAddedAClause ? ' ' . strtoupper($conditionData['operation']) : '')
                . " ({$conditionData['condition']})";
            $haveAddedAClause = true;
        }

        return $sql;
    }