def METHOD_NAME(self, trait):
    with database_connection(get_setting("SQL_URI")) as conn, conn.cursor() as cursor:
        cursor.execute(
        "SELECT Strain.Name, PublishData.value, "
            "PublishSE.error, NStrain.count, "
            "Strain.Name2 FROM (PublishData, Strain, "
            "PublishXRef, PublishFreeze) LEFT JOIN "
            "PublishSE ON "
            "(PublishSE.DataId = PublishData.Id "
            "AND PublishSE.StrainId = PublishData.StrainId) "
            "LEFT JOIN NStrain ON "
            "(NStrain.DataId = PublishData.Id AND "
            "NStrain.StrainId = PublishData.StrainId) "
            "WHERE PublishXRef.InbredSetId = PublishFreeze.InbredSetId "
            "AND PublishData.Id = PublishXRef.DataId AND "
            "PublishXRef.Id = %s AND PublishFreeze.Id = %s "
            "AND PublishData.StrainId = Strain.Id "
            "ORDER BY Strain.Name", (trait, self.id))
        return cursor.fetchall()