def viewUnionSelectExpression(self,relations_only=False):
        rt=[]
        if relations_only and self.objectPropertyTable:
            return "select * from %s"%repr(self)
        
        if self.useSignedInts:
            int_cast = 'BIGINT'
        else:
            int_cast = 'UNSIGNED BIGINT'
        
        for idx in range(len(POSITION_LIST)):
            rdfTermLabel=SlotPrefixes[idx]
            if idx < len(self.columnNames) and self.columnNames[idx]:
                #there is a matching column
                rt.append(self.columnNames[idx]+' as %s'%rdfTermLabel)
                if self.termEnumerations[idx]:
                    #there is a corresponding term enumeration
                    rt.append(self.columnNames[idx] +
                              '_term as %s_term' % (rdfTermLabel,))
                else:
                    #no corresponding term enumeration (hardcoded)
                    rt.append("CAST('%s' as CHAR) as %s_term" %
                                (self.hardCodedResultTermsTypes[idx],
                                 rdfTermLabel))
            else:
                assert self.hardCodedResultFields[idx] == RDF.type
                if not self.store.can_cast_bigint:
                    rt.append("%s as %s" % (normalizeValue(
                      self.hardCodedResultFields[idx], 'U',
                      self.useSignedInts), rdfTermLabel))
                else:
                    rt.append("CAST('%s' as %s) as %s" % (normalizeValue(
                      self.hardCodedResultFields[idx], 'U',
                      self.useSignedInts), int_cast, rdfTermLabel))
                if self.hardCodedResultTermsTypes[idx]:
                    rt.append("CAST('%s' as CHAR) as %s_term" %
                                (self.hardCodedResultTermsTypes[idx],
                                 rdfTermLabel))
        if not relations_only:
            if self.literalTable:
                for i in self.columnNames[-2:]:
                    rt.append(i[0])
            else:
                if not self.store.can_cast_bigint:
                    rt.append('NULL as data_type')
                else:
                    rt.append('CAST(NULL as %s) as data_type' % (int_cast,))
                rt.append('CAST(NULL as char(3)) as language')
        return "select %s from %s"%(', '.join(rt),repr(self))
Let the user confirm the restart action interactively.
dataset/ETHPy150Open RDFLib/rdfextras/rdfextras/store/FOPLRelationalModel/BinaryRelationPartition.py/BinaryRelationPartition.viewUnionSelectExpression--crossover with--dataset/ETHPy150Open XiaoMi/minos/client/deploy_utils.py/confirm_restart