
USE ROLE ACCOUNTADMIN;
CREATE DATABASE IF NOT EXISTS ATLAN_GOLD;
CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.TAGS 
(
    asset_guid COMMENT 'The asset’s globally-unique identifier',
    asset_type COMMENT 'The asset’s type',
    tag_guid COMMENT 'The tag’s globally-unique identifier',
    tag_name COMMENT 'The tag’s name',
    tag_value COMMENT 'The tag’s value',
    tag_connector_name COMMENT 'The type of connector where this tag originates from, if applicable',
    propagate COMMENT 'Whether or not the tag propagates through hierarchy or parent-child relationships (True or False)'
)
COMMENT = 'Information about tagged assets in Atlan'
AS
SELECT
    entityguid AS asset_guid,
    entitytypename AS asset_type,
    tagguid AS tag_guid,
    tagname AS tag_name,
    tagvalue AS tag_value,
    tagconnectorname AS tag_connector_name,
    propagate AS propagate
FROM ATLAN_CONTEXT_STORE."entity_metadata".TagRelationship;


CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.CUSTOM_METADATA 
(
    asset_guid COMMENT 'The asset’s globally-unique identifier', 
    asset_type COMMENT 'The asset’s type',
    custom_metadata_guid COMMENT 'The globally-unique identifier for the custom metadata definition',
    custom_metadata_name COMMENT 'The name of the custom metadata definition',
    attribute_name COMMENT 'The name of the custom metadata attribute',
    attribute_value COMMENT 'The value of the custom metadata attribute',
    status COMMENT 'The status of the process custom metadata (active/inactive)'
)
COMMENT = 'Information about custom metadata in Atlan'
AS
SELECT
    entityguid AS asset_guid, 
    entitytypename AS asset_type,
    setguid AS custom_metadata_guid,
    setdisplayname AS custom_metadata_name,
    attributedisplayname AS attribute_name,
    attributevalue AS attribute_value,
    status AS status 
FROM ATLAN_CONTEXT_STORE."entity_metadata".CustommetadataRelationship;

CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.DATA_MESH_DETAILS
(
    guid COMMENT 'The asset’s globally-unique identifier',
    asset_type COMMENT 'Type of Data Mesh asset. Supported values: DataDomain, DataProduct',
    data_products COMMENT 'List of GUIDs for data products that exist within this data domain',
    parent_domain COMMENT 'GUID of the parent data domain in which this sub-data domain exists',
    stakeholders COMMENT 'List of GUIDs of stakeholders assigned to the data domain',
    subdomains COMMENT 'List of GUIDs of sub-data domains that exist within this data domain',
    data_product_status COMMENT 'Status of the data product (DAAPSTATUS)',
    criticality COMMENT 'Criticality of the data product (DAAPCRITICALITY)',
    sensitivity COMMENT 'Sensitivity of the data product (DAAPSENSITIVITY)',
    visibility COMMENT 'Visibility of the data product (DAAPVISIBILITY)',
    input_port_guids COMMENT 'List of GUIDs for input ports of the data product (DAAPINPUTPORTGUIDS)',
    output_port_guids COMMENT 'List of GUIDs for output ports of the data product (DAAPOUTPUTPORTGUIDS)',
    data_domain COMMENT 'GUID of the data domain in which this data product exists (DATADOMAIN)',
    assets_dsl COMMENT 'Search DSL used to define which assets are part of this data product (DATAPRODUCTASSETSDSL)',
    assets_playbook_filter COMMENT 'Playbook filter used to define which assets are part of this data product (DATAPRODUCTASSETSFILTER)'
)
COMMENT = 'Gold layer view providing Data Mesh details. This view consolidates metadata for DataDomain and DataProduct typedefs under the Data Mesh supertype.'
AS
SELECT
    guid                 AS guid,
    typename             AS asset_type,
    dataproducts         AS data_products,
    parentdomain[0]::VARCHAR AS parent_domain,
    stakeholders         AS stakeholders,
    subdomains           AS subdomains,
    NULL                 AS data_product_status,
    NULL                 AS criticality,
    NULL                 AS sensitivity,
    NULL                 AS visibility,
    NULL                 AS input_port_guids,
    NULL                 AS output_port_guids,
    NULL                 AS data_domain,
    NULL                 AS assets_dsl,
    NULL                 AS assets_playbook_filter
FROM ATLAN_CONTEXT_STORE."entity_metadata".DataDomain
UNION ALL
SELECT
    guid                     AS guid,
    typename                 AS asset_type,
    NULL                     AS data_products,
    NULL                     AS parent_domain,
    NULL                     AS stakeholders,
    NULL                     AS subdomains,
    daapstatus               AS data_product_status,
    daapcriticality          AS criticality,
    daapsensitivity          AS sensitivity,
    daapvisibility           AS visibility,
    daapinputportguids       AS input_port_guids,
    daapoutputportguids      AS output_port_guids,
    datadomain[0]::VARCHAR   AS data_domain,
    dataproductassetsdsl     AS assets_dsl,
    dataProductAssetsPlaybookFilter  AS assets_playbook_filter
FROM ATLAN_CONTEXT_STORE."entity_metadata".DataProduct;

CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.LINEAGE_PROCESSES (
    guid COMMENT 'The asset’s globally-unique identifier',
    type_name COMMENT 'The asset’s type (e.g., process, biprocess, columnprocess, dbtprocess, dbtcolumnprocess)',
    name COMMENT 'The asset’s name',
    qualified_name COMMENT 'The asset’s fully-qualified unique name',
    description COMMENT 'The asset’s description',
    status COMMENT 'The asset’s status (e.g., active, archived)',
    created_time COMMENT 'The time (epoch, milliseconds) at which the asset was created',
    updated_time COMMENT 'The time (epoch, milliseconds) at which the asset was last updated',
    created_by COMMENT 'The user or account that created the asset',
    updated_by COMMENT 'The user or account that last updated the asset',
    certificate_status COMMENT 'Certification status indicating trust or validation level of the process',
    connector_name COMMENT 'The type of connector through which this asset is accessible',
    connector_qualified_name COMMENT 'The unique, fully-qualified name of the connection through which this asset is accessible',
    connection_name COMMENT 'The name of the connection through which this asset is accessible',
    popularity_score COMMENT 'Popularity score representing usage or importance of the process',
    owner_users COMMENT 'List of users who own this asset',
    has_lineage COMMENT 'Indicates whether lineage information is available for this process',
    sql COMMENT 'The SQL transformation logic for this process',
    ast COMMENT 'Abstract Syntax Tree (AST) representation of the SQL or transformation logic',
    code COMMENT 'Non-SQL transformation code associated with the process',
    additional_etl_context COMMENT 'Additional ETL or execution context metadata for the process',
    inputs COMMENT 'List of GUIDs that this process takes as input',
    outputs COMMENT 'List of GUIDs that this process produces as output',
    process COMMENT 'The parent process associated with this asset (used primarily for column-level lineage)'
)
COMMENT = 'Information about asset-level and column-level lineage processes in Atlan'
AS
SELECT
    guid,
    typename AS type_name,
    name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description) AS description,
    status,
    createtime AS created_time,
    updatetime AS updated_time,
    createdby AS created_by,
    updatedby AS updated_by,
    certificatestatus AS certificate_status,
    connectorname AS connector_name,
    connectionqualifiedname AS connector_qualified_name,
    connectionname AS connection_name,
    popularityscore AS popularity_score,
    ownerusers AS owner_users,
    haslineage AS has_lineage,
    sql,
    ast,
    code,
    additionalEtlContext AS additional_etl_context,
    inputs,
    outputs,
    NULL AS process
FROM MDLH_CONTEXT_STORE."entity_metadata".process
UNION ALL
SELECT
    guid,
    typename AS type_name,
    name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description),
    status,
    createtime,
    updatetime,
    createdby,
    updatedby,
    certificatestatus,
    connectorname,
    connectionqualifiedname,
    connectionname,
    popularityscore,
    ownerusers,
    haslineage,
    sql,
    ast,
    code,
    additionalEtlContext,
    inputs,
    outputs,
    NULL AS process
FROM MDLH_CONTEXT_STORE."entity_metadata".biprocess
UNION ALL
SELECT
    guid,
    typename AS type_name,
    name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description),
    status,
    createtime,
    updatetime,
    createdby,
    updatedby,
    certificatestatus,
    connectorname,
    connectionqualifiedname,
    connectionname,
    popularityscore,
    ownerusers,
    haslineage,
    sql,
    ast,
    code,
    additionalEtlContext,
    inputs,
    outputs,
    NULL AS process
FROM MDLH_CONTEXT_STORE."entity_metadata".columnprocess
UNION ALL
SELECT
    guid,
    typename AS type_name,
    name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description),
    status,
    createtime,
    updatetime,
    createdby,
    updatedby,
    certificatestatus,
    connectorname,
    connectionqualifiedname,
    connectionname,
    popularityscore,
    ownerusers,
    haslineage,
    sql,
    ast,
    code,
    additionalEtlContext,
    inputs,
    outputs,
    NULL AS process
FROM MDLH_CONTEXT_STORE."entity_metadata".dbtprocess
UNION ALL
SELECT
    guid,
    typename AS type_name,
    name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description),
    status,
    createtime,
    updatetime,
    createdby,
    updatedby,
    certificatestatus,
    connectorname,
    connectionqualifiedname,
    connectionname,
    popularityscore,
    ownerusers,
    haslineage,
    sql,
    ast,
    code,
    additionalEtlContext,
    inputs,
    outputs,
    process
FROM MDLH_CONTEXT_STORE."entity_metadata".dbtcolumnprocess;

CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.GLOSSARY_DETAILS (
    guid COMMENT 'The asset’s globally-unique identifier',
    asset_type COMMENT 'E.g., Glossary, GlossaryTerm',
    name COMMENT 'E.g., Sales, Medical, Marketing',
    qualified_name COMMENT 'The unique qualified name of the asset',
    description COMMENT 'The asset’s description',
    status COMMENT 'The status of the asset',
    created_time COMMENT 'The time the asset was created',
    updated_time COMMENT 'The time the asset was last updated',
    created_by COMMENT 'The user who created the asset',
    updated_by COMMENT 'The user who last updated the asset',
    certificate_status COMMENT 'The certification status of the asset',
    connector_name COMMENT 'The name of the connector',
    connector_qualified_name COMMENT 'The qualified name of the connector',
    popularity_score COMMENT 'The popularity score of the asset',
    owner_users COMMENT 'The users who own the asset',
    has_lineage COMMENT 'Whether or not the asset has lineage',
    terms COMMENT 'List of terms that belong to the glossary or glossary category',
    categories COMMENT 'List of categories that belong to the glossary, or the glossary categories the term is attached to',
    assigned_entities COMMENT 'List of assets that the glossary term has been assigned to',
    readme_guid COMMENT 'The asset’s Readme guid',
    anchor_guid COMMENT 'The glossary guid that the term or category belongs to'
)
COMMENT = 'Information about glossaries, glossary categories, and terms'
AS
SELECT
    guid AS guid,
    typename AS asset_type,
    name AS name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description) AS description,
    status AS status,
    createtime AS created_time,
    updatetime AS updated_time,
    createdby AS created_by,
    updatedby AS updated_by,
    certificatestatus AS certificate_status,
    connectorname AS connector_name,
    connectionqualifiedname AS connector_qualified_name,
    popularityscore AS popularity_score,
    ownerusers AS owner_users,
    haslineage AS has_lineage,
    terms AS terms,
    categories AS categories,
    NULL AS assigned_entities,
    readme[0]::VARCHAR AS readme_guid,
    NULL AS anchor_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".GLOSSARY
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    name AS name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description) AS description,
    status AS status,
    createtime AS created_time,
    updatetime AS updated_time,
    createdby AS created_by,
    updatedby AS updated_by,
    certificatestatus AS certificate_status,
    connectorname AS connector_name,
    connectionqualifiedname AS connector_qualified_name,
    popularityscore AS popularity_score,
    ownerusers AS owner_users,
    haslineage AS has_lineage,
    NULL AS terms,
    categories AS categories,
    assignedentities AS assigned_entities,
    readme[0]::VARCHAR AS readme_guid,
    anchor[0]::VARCHAR AS anchor_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".GlossaryTerm
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    name AS name,
    qualifiedname AS qualified_name,
    COALESCE(userdescription, description) AS description,
    status AS status,
    createtime AS created_time,
    updatetime AS updated_time,
    createdby AS created_by,
    updatedby AS updated_by,
    certificatestatus AS certificate_status,
    connectorname AS connector_name,
    connectionqualifiedname AS connector_qualified_name,
    popularityscore AS popularity_score,
    ownerusers AS owner_users,
    haslineage AS has_lineage,
    terms AS terms,
    NULL AS categories,
    NULL AS assigned_entities,
    readme[0]::VARCHAR AS readme_guid,
    anchor[0]::VARCHAR AS anchor_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".GlossaryCategory;



CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.DATA_QUALITY_DETAILS (
    guid COMMENT 'The asset’s globally-unique identifier',
    asset_type COMMENT 'The type of asset',
    source_url COMMENT 'The source URL for this data quality check',
    anomalo_check_type COMMENT 'Type of Anomalo check',
    anomalo_check_category_type COMMENT 'Category type of the Anomalo check',
    anomalo_check_priority_level COMMENT 'Priority level of the Anomalo check',
    anomalo_check_status COMMENT 'Most recent status of the Anomalo check',
    anomalo_check_last_run_completed_at COMMENT 'Timestamp when the Anomalo check was last run',
    anomalo_check_linked_asset_qualified_name COMMENT 'Qualified name of the asset associated with the Anomalo check',
    soda_check_id COMMENT 'Identifier of the check in Soda',
    soda_check_definition COMMENT 'Definition of the Soda check',
    soda_check_evaluation_status COMMENT 'Most recent status of the Soda check',
    soda_check_last_scan_at COMMENT 'Timestamp when the Soda check was last run',
    soda_check_columns COMMENT 'List of columns associated with the Soda check',
    soda_check_assets COMMENT 'List of assets associated with the Soda check',
    mc_monitor_id COMMENT 'Identifier of the check in Monte Carlo',
    mc_monitor_type COMMENT 'Type of Monte Carlo monitor',
    mc_monitor_rule_type COMMENT 'Rule type of the Monte Carlo monitor',
    mc_monitor_priority COMMENT 'Priority level of the Monte Carlo monitor',
    mc_monitor_status COMMENT 'Most recent status of the Monte Carlo monitor',
    mc_monitor_rule_last_execution_time COMMENT 'Timestamp when the Monte Carlo monitor was last run',
    mc_monitor_assets COMMENT 'List of assets associated with the Monte Carlo monitor'
)
COMMENT = 'All assets in Atlan that pertain to data quality, including Atlan-native and third-party data quality rules'
AS
SELECT
    guid AS guid,
    typename AS asset_type,
    sourceurl AS source_url,

    -- AnomaloCheck-specific columns
    anomalochecktype AS anomalo_check_type,
    anomalocheckcategorytype AS anomalo_check_category_type,
    anomalocheckprioritylevel AS anomalo_check_priority_level,
    anomalocheckstatus AS anomalo_check_status,
    anomalochecklastruncompletedat AS anomalo_check_last_run_completed_at,
    anomalochecklinkedassetqualifiedname AS anomalo_check_linked_asset_qualified_name,

    -- SodaCheck-specific columns (NULL for Anomalo)
    NULL AS soda_check_id,
    NULL AS soda_check_definition,
    NULL AS soda_check_evaluation_status,
    NULL AS soda_check_last_scan_at,
    NULL AS soda_check_columns,
    NULL AS soda_check_assets,

    -- MCMonitor-specific columns (NULL for Anomalo)
    NULL AS mc_monitor_id,
    NULL AS mc_monitor_type,
    NULL AS mc_monitor_rule_type,
    NULL AS mc_monitor_priority,
    NULL AS mc_monitor_status,
    NULL AS mc_monitor_rule_last_execution_time,
    NULL AS mc_monitor_assets
FROM ATLAN_CONTEXT_STORE."entity_metadata".anomalocheck

UNION ALL

SELECT
    guid AS guid,
    typename AS asset_type,
    sourceurl AS source_url,

    -- AnomaloCheck columns as NULL
    NULL, NULL, NULL, NULL, NULL, NULL,

    -- SodaCheck columns
    sodacheckid AS soda_check_id,
    sodacheckdefinition AS soda_check_definition,
    sodacheckevaluationstatus AS soda_check_evaluation_status,
    sodachecklastscanat AS soda_check_last_scan_at,
    sodacheckcolumns AS soda_check_columns,
    sodacheckassets AS soda_check_assets,

    -- MCMonitor columns as NULL
    NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata".sodacheck

UNION ALL

SELECT
    guid AS guid,
    typename AS asset_type,
    sourceurl AS source_url,

    -- AnomaloCheck columns as NULL
    NULL, NULL, NULL, NULL, NULL, NULL,

    -- SodaCheck columns as NULL
    NULL, NULL, NULL, NULL, NULL, NULL,

    -- MCMonitor columns
    mcmonitorid AS mc_monitor_id,
    mcmonitortype AS mc_monitor_type,
    mcmonitorruletype AS mc_monitor_rule_type,
    mcmonitorpriority AS mc_monitor_priority,
    mcmonitorstatus AS mc_monitor_status,
    mcmonitorrulepreviousexecutiontime AS mc_monitor_rule_last_execution_time,
    mcmonitorassets AS mc_monitor_assets
FROM ATLAN_CONTEXT_STORE."entity_metadata".mcmonitor;


CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.PIPELINE_DETAILS 
(
    guid COMMENT 'The asset’s globally-unique identifier',
    asset_type COMMENT 'The asset’s type',
    input_guids_to_processes COMMENT 'Processes to which this asset is used as an input',
    output_guids_from_processes COMMENT 'Processes from which this asset is produced as output'
)
COMMENT = 'All assets in Atlan that pertain to orchestration, such as ADF, Airflow, Dbt, Fivetran, Matillion etc.'
AS
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".ADFActivity

UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".ADFDataflow
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".ADFDataset
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".ADFLinkedservice
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".ADFPipeline
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".AirflowDag
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".AirflowTask
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DBTModelColumn
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtColumnProcess
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtMetric
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtModel
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtProcess
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSeed
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSource
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtTag

UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtTest
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".FivetranConnector
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionComponent
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionGroup
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionJob
UNION ALL
SELECT
    guid AS guid,
    typename AS asset_type,
    inputtoprocesses AS input_guids_to_processes,
    outputfromprocesses AS output_guids_from_processes
FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionProject;


CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.RELATIONAL_ASSET_DETAILS (
    guid COMMENT 'The asset’s globally-unique identifier',
    asset_type COMMENT 'The type of asset',
    source_read_query_cost COMMENT 'Total cost of read queries at source',
    source_total_cost COMMENT 'Total cost of all operations at source',
    source_cost_unit COMMENT 'The unit of measure for cost at source (e.g., credits)',
    column_datatype COMMENT 'Data type of this column',
    column_is_nullable COMMENT 'Whether or not the values in this column can be null',
    column_queries COMMENT 'Queries that access this column',
    column_recent_users COMMENT 'List of usernames of the most recent users who read this column',
    column_table_name COMMENT 'Table in which this column exists',
    column_total_read_count COMMENT 'Total count of all read operations at source',
    column_view_name COMMENT 'View in which this column exists',
    database_schemas COMMENT 'GUIDs for schemas that exist within this database',
    function_language COMMENT 'Language of this function',
    function_return_type COMMENT 'Data type of the value returned by the function',
    function_schema COMMENT 'Schema in which this function exists',
    function_type COMMENT 'Type of this function',
    materialised_view_columns COMMENT 'List of GUIDs of columns that exist within this materialised view',
    materialised_view_definition COMMENT 'Definition of this materialized view',
    procedure_definition COMMENT 'Definition of this procedure',
    procedure_schema COMMENT 'Schema in which this procedure exists',
    query_columns COMMENT 'List of GUIDs for columns this query accesses',
    query_parent COMMENT 'Collection or folder in which this query exists',
    query_raw_query_text COMMENT 'Raw query text',
    query_tables COMMENT 'List of GUIDs for tables this query accesses',
    query_views COMMENT 'List of GUIDs for views this query accesses',
    schema_database_name COMMENT 'Database in which this schema exists',
    schema_materialised_views COMMENT 'GUIDs for materialised views that exist within this schema',
    schema_procedures COMMENT 'GUIDs for stored procedures that exist within this schema',
    schema_tables COMMENT 'GUIDs for tables that exist within this schema',
    schema_views COMMENT 'GUIDs for views that exist within this schema',
    table_columns COMMENT 'List of GUIDs of columns that exist within this table',
    table_column_count COMMENT 'Number of columns that exist within this table',
    table_queries COMMENT 'Queries that access this table',
    table_recent_users COMMENT 'List of usernames of the most recent users who read this table',
    table_row_count COMMENT 'Number of rows in this table',
    table_size_bytes COMMENT 'Size of this table, in bytes',
    table_total_read_count COMMENT 'Total count of all read operations at source',
    view_columns COMMENT 'List of GUIDs of columns that exist within this view',
    view_definition COMMENT 'SQL definition of this view',
    view_queries COMMENT 'Queries that access this view',
    view_recent_users COMMENT 'List of usernames of the most recent users who read this view',
    view_total_read_count COMMENT 'Total count of all read operations at source.'
)
COMMENT = 'A unified relational asset view that consolidates metadata for Databases, Schemas, Tables, Views, Columns, Queries, Materialized Views, Functions, and Procedures into a single registry with domain-specific attributes'
AS

SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 
    schemas, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata".Database
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, databasename, materialisedviews, procedures, tables, views, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata".Schema
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, columns, columncount,
    queries, sourcereadrecentuserlist, rowcount, sizebytes, sourceReadCount, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata"."Table"
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, columns, definition, queries, sourcereadrecentuserlist, sourceReadCount
FROM ATLAN_CONTEXT_STORE."entity_metadata".View
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    datatype, isnullable, queries, sourcereadrecentuserlist, tablename, sourceReadCount, viewname, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata"."Column"
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    functionlanguage, functionreturntype, functionschema, functiontype, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata".Function
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, columns, parent,
    rawquerytext, tables, views, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata".Query
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, columns, definition, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata".MaterialisedView
UNION ALL
SELECT
    guid, typename, sourcereadquerycost, sourcetotalcost, sourcecostunit,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, definition, schemaName, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM ATLAN_CONTEXT_STORE."entity_metadata".Procedure;

CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.README (
    guid COMMENT 'The asset’s globally-unique identifier',
    asset_type COMMENT 'The type of asset (typically Readme)',
    asset_name COMMENT 'The name of the Readme asset',
    description COMMENT 'The sanitized content of the Readme, decoded from URL encoding and stripped of HTML tags',
    status COMMENT 'The status of the asset (e.g., ACTIVE, DELETED)',
    created_time COMMENT 'The timestamp when the Readme was created',
    updated_time COMMENT 'The timestamp when the Readme was last updated',
    created_by COMMENT 'The user who created the Readme',
    updated_by COMMENT 'The user who last updated the Readme'
)
COMMENT = 'Sanitized Readme asset view that decodes URL-encoded text and removes HTML tags for readability'
AS
SELECT
    guid AS guid,
    typename AS asset_type,
    name AS asset_name,
    -- Step 1: replace common URL encodings
    REGEXP_REPLACE(
      REGEXP_REPLACE(
        REGEXP_REPLACE(
          REGEXP_REPLACE(
            REGEXP_REPLACE(
              REGEXP_REPLACE(
                REGEXP_REPLACE(
                  REGEXP_REPLACE(
                    REGEXP_REPLACE(
                      REGEXP_REPLACE(
                        REGEXP_REPLACE(
                          REGEXP_REPLACE(
                            REGEXP_REPLACE(
                              REGEXP_REPLACE(
                                REGEXP_REPLACE(
                                  REGEXP_REPLACE(
                                    REGEXP_REPLACE(
                                      REGEXP_REPLACE(
                                        DESCRIPTION,
                                        '%20', ' '
                                      ),
                                      '%0A', '\n'
                                    ),
                                    '%3C', '<'
                                  ),
                                  '%2A', '*'
                                ),
                                '%22', '"'
                              ),
                              '%3E', '>'
                            ),
                            '%2F', '/'
                          ),
                          '%3A', ':'
                        ),
                        '%2C', ','
                      ),
                      '%28', '('
                    ),
                    '%29', ')'
                  ),
                  '%5B', '['
                ),
                '%5D', ']'
              ),
              '%3B', ';'
            ),
            '%2B', '+'
          ),
          '%23', '#'
        ),
        '%2E', '.'
      ),
      '<[^>]*>', ''    -- Step 2: strip HTML tags
    ) AS description,
    status AS status,
    createtime AS created_time,
    updatetime AS updated_time,
    createdby AS created_by,
    updatedby AS updated_by
FROM ATLAN_CONTEXT_STORE."entity_metadata".Readme;

CREATE OR REPLACE TABLE ATLAN_GOLD.PUBLIC.ASSETS
(
guid COMMENT 'The asset’s globally-unique identifier',
asset_type COMMENT 'The asset’s type',
asset_name COMMENT 'The asset’s name',
asset_qualified_name COMMENT 'The asset’s unique, fully-qualified name',
description COMMENT 'The asset’s description',
readme_guid COMMENT 'The asset’s readme guid',
status COMMENT 'The asset’s status (e.g., active, archived)',
created_at COMMENT 'The time (epoch) at which the asset was created, in milliseconds',
created_by COMMENT 'The user or account that created the asset',
updated_at COMMENT 'The time (epoch) at which the asset was last updated, in milliseconds',
updated_by COMMENT 'The time (epoch) at which the asset was last updated, in milliseconds',
certificate_status COMMENT 'The asset`s certification status',
certificate_updated_by COMMENT 'The user or account that last updated the asset’s certification status',
certificate_updated_at COMMENT 'The time (epoch) at which the asset’s certification status was last updated, in milliseconds',
connector_name COMMENT 'The type of connector through which this asset is accessible',
connector_qualified_name COMMENT 'The unique, fully-qualified name of the connection through which this asset is accessible', 
source_created_at COMMENT 'Time (epoch) at which this asset was created in the source system, in milliseconds',
source_created_by COMMENT 'Name of the user who created this asset in the source system',
source_updated_at COMMENT 'Time (epoch) at which this asset was last updated in the source system, in milliseconds',
source_updated_by COMMENT 'Name of the user who last updated this asset, in the source system',
owner_users COMMENT 'List of users who own this asset',
owner_groups COMMENT 'List of groups who own this asset',
term_guids COMMENT 'List of glossary term GUIDs associated with the asset',
popularity_score COMMENT 'The asset’s popularity score',
tags COMMENT 'List of tags attached to this asset',
has_lineage COMMENT 'Whether this asset has lineage (true) or not (false)'
)
COMMENT = 'A unified asset registry view that consolidates all assets across SQL, BI, pipeline, data quality, and object domains. It serves as the central lookup source for resolving GUIDs to human-readable names, types, and associated metadata including tags and ownership details.'
AS
WITH tag_agg AS (
    SELECT
        asset_guid,
        ARRAY_AGG(DISTINCT tag_name) AS tag_names
    FROM ATLAN_GOLD.PUBLIC.TAGS
    GROUP BY asset_guid
)
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADF at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLSAccount at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLSContainer at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLSObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AI at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AIApplication at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AIModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AIModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".API at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIPath at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APISpec at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AWS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AccessControl at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfActivity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfDataflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfLinkedservice at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfPipeline at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Airflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AirflowDag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AirflowTask at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Anaplan at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanLineItem at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanList at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanModule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanSystemDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Anomalo at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnomaloCheck at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".App at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AppWorkflowRun at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Application at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ApplicationField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Asset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AtlanApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AtlanAppDeployment at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AtlanAppInstalled at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AuthPolicy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AuthService at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Azure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureEventHub at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureEventHubConsumerGroup at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBus at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBusNamespace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBusSchema at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBusTopic at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BI at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BIProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Badge at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BigqueryRoutine at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BigqueryTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicyException at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicyIncident at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicyLog at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CalculationView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cassandra at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraKeyspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Catalog at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cloud at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cognite at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cognite3DModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteEvent at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteFile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteSequence at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteTimeSeries at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cognos at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosDatasource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosExploration at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosFile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosModule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosPackage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Collection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata"."Column" at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ColumnProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Connection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ConnectionProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDBAccount at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDBCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDBDatabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cube at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CubeDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CubeField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CubeHierarchy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Custom at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CustomEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataContract at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataDomain at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataMesh at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataProduct at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataQuality at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataQualityRule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataQualityRuleTemplate at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataSet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataStudio at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataStudioAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Database at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Databricks at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksAIModelContext at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksAIModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksExternalLocation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksExternalLocationPath at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksMetricView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksNotebook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksUnityCatalogTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksVolume at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksVolumePath at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Dataverse at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataverseAttribute at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataverseEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Dbt at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtColumnProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtMeasure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtMetric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtModelColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSeed at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSemanticModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtTest at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DocumentDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DocumentDBCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DocumentDBDatabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Domo at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoCard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoDatasetColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Dremio at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioPhysicalDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioSource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioSpace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioVirtualDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBGlobalSecondaryIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBLocalSecondaryIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBSecondaryIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".EventStore at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Fabric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricActivity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDataPipeline at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDataflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDataflowEntityColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricSemanticModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricSemanticModelTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricSemanticModelTableColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricVisual at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".File at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Fivetran at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FivetranConnector at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Flow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowControlOperation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowDatasetOperation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowFieldOperation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowReusableUnit at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Folder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Form at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Function at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GCS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GCSBucket at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GCSObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Glossary at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GlossaryCategory at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GlossaryTerm at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Google at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Incident at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Infrastructure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Insight at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Kafka at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".KafkaConsumerGroup at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".KafkaTopic at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Link at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Looker at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerExplore at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerLook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerTile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MCIncident at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MCMonitor at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MaterialisedView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Matillion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionComponent at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionGroup at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionJob at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Metabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MetabaseCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MetabaseDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MetabaseQuestion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Metric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyAttribute at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyCube at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyDocument at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyDossier at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyFact at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyMetric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyVisualization at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Mode at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Model at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelAttribute at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelAttributeAssociation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelDataModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelEntityAssociation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MongoDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MongoDBCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MongoDBDatabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MonteCarlo at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MultiDimensionalDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Namespace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".NoSQL at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Notebook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ObjectStore at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Partial at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PartialField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PartialObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Persona at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBI at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDataflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDataflowEntityColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDatasource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIMeasure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBITable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBITile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Preset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Procedure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Process at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ProcessExecution at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Purpose at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Qlik at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikSheet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikSpace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikStream at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Query at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSight at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightAnalysis at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightAnalysisVisual at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDashboardVisual at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDatasetField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Readme at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ReadmeTemplate at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".RedashDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".RedashQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".RedashVisualization at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Resource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Response at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3 at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3Bucket at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3Object at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3Prefix at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SAP at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SQL at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SaaS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudio at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioAssetSchema at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioPublishedAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioSubscribedAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Salesforce at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceOrganization at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpAbapProgram at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpCdsView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpComponent at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpFunctionModule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpTransactionCode at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Schema at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SchemaRegistry at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SchemaRegistrySubject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Semantic at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticMeasure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Sigma at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDataElement at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDataElementField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDatasetColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaWorkbook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Sisense at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseDatamodel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseDatamodelTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseWidget at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Snowflake at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeAIModelContext at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeAIModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeDynamicTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakePipe at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeStage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeStream at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Soda at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SodaCheck at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SourceTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Spark at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SparkJob at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Stakeholder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".StakeholderTitle at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Superset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SupersetChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SupersetDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SupersetDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata"."Table" at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TablePartition at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Tableau at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauCalculatedField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDashboardField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDatasource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDatasourceField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauFlow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauMetric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauSite at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauWorkbook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauWorksheet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauWorksheetField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Tag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TagAttachment at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Task at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Thoughtspot at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotAnswer at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotDashlet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotLiveboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotWorksheet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".View at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Workflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".WorkflowRun at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".alpha_DQRule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".alpha_DQRuleTemplate at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid;

CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.LINEAGE_EDGES (
    process_guid COMMENT 'The globally-unique identifier of the process that connects the input and output assets',
    input_guid COMMENT 'The globally-unique identifier of the upstream (source) asset',
    output_guid COMMENT 'The globally-unique identifier of the downstream (target) asset'
)
COMMENT = 'Internal view used to derive the lineage across various process types including standard, BI, column, and DBT processes'
AS
SELECT 
    p.guid AS process_guid,
    f.value::string AS input_guid,
    o.value::string AS output_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".process p,
     LATERAL FLATTEN(inputs) f,
     LATERAL FLATTEN(outputs) o
WHERE status = 'ACTIVE'
UNION ALL 
SELECT 
    p.guid AS process_guid,
    f.value::string AS input_guid,
    o.value::string AS output_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".biprocess p,
     LATERAL FLATTEN(inputs) f,
     LATERAL FLATTEN(outputs) o
WHERE status = 'ACTIVE'
UNION ALL 
SELECT 
    p.guid AS process_guid,
    f.value::string AS input_guid,
    o.value::string AS output_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".columnprocess p,
     LATERAL FLATTEN(inputs) f,
     LATERAL FLATTEN(outputs) o
WHERE status = 'ACTIVE'
UNION ALL 
SELECT 
    p.guid AS process_guid,
    f.value::string AS input_guid,
    o.value::string AS output_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".dbtprocess p,
     LATERAL FLATTEN(inputs) f,
     LATERAL FLATTEN(outputs) o
WHERE status = 'ACTIVE'
UNION ALL 
SELECT 
    p.guid AS process_guid,
    f.value::string AS input_guid,
    o.value::string AS output_guid
FROM ATLAN_CONTEXT_STORE."entity_metadata".dbtcolumnprocess p,
     LATERAL FLATTEN(inputs) f,
     LATERAL FLATTEN(outputs) o
WHERE status = 'ACTIVE';

CREATE OR REPLACE TABLE ATLAN_GOLD.PUBLIC.BASE_EDGES (
    process_guid COMMENT 'The globally-unique identifier of the lineage process',
    input_guid COMMENT 'The globally-unique identifier of the upstream (source) asset',
    input_name COMMENT 'Human-readable name of the input asset; defaults to GUID if name is missing',
    input_type COMMENT 'The asset type of the input (e.g., Table, Column); defaults to unknown if not found',
    output_guid COMMENT 'The globally-unique identifier of the downstream (target) asset',
    output_name COMMENT 'Human-readable name of the output asset; defaults to GUID if name is missing',
    output_type COMMENT 'The asset type of the output (e.g., Table, Column); defaults to unknown if not found'
)
COMMENT = 'Internal table used for flattening lineage edges by resolving GUIDs to human-readable names and types from the asset registry'
AS
SELECT DISTINCT
    e.process_guid,
    e.input_guid,
    COALESCE(i.asset_name, e.input_guid) AS input_name,
    COALESCE(i.asset_type, 'unknown') AS input_type,
    e.output_guid,
    COALESCE(o.asset_name, e.output_guid) AS output_name,
    COALESCE(o.asset_type, 'unknown') AS output_type
FROM ATLAN_GOLD.PUBLIC.LINEAGE_EDGES e
LEFT JOIN (
    SELECT DISTINCT guid, asset_name, asset_type
    FROM ATLAN_GOLD.PUBLIC.ASSETS
) i ON e.input_guid = i.guid
LEFT JOIN (
    SELECT DISTINCT guid, asset_name, asset_type
    FROM ATLAN_GOLD.PUBLIC.ASSETS
) o ON e.output_guid = o.guid
WHERE e.input_guid IS NOT NULL 
  AND e.output_guid IS NOT NULL;

CREATE OR REPLACE VIEW ATLAN_GOLD.PUBLIC.LINEAGE (
    direction COMMENT 'The flow of the lineage traversal: UPSTREAM (sources) or DOWNSTREAM (targets)',
    start_guid COMMENT 'The globally-unique identifier of the asset for which lineage is being calculated',
    start_name COMMENT 'The human-readable name of the starting asset',
    start_type COMMENT 'The asset type of the starting asset',
    related_guid COMMENT 'The globally-unique identifier of the asset found during traversal',
    related_name COMMENT 'The human-readable name of the related asset',
    related_type COMMENT 'The asset type of the related asset',
    connecting_guid COMMENT 'The intermediate GUID that links the current hop to the previous asset in the chain',
    level COMMENT 'The distance (number of hops) between the starting asset and the related asset'
)
COMMENT = 'A recursive lineage view used to list the complete multi-hop lineage (upstream and downstream) of any given asset by traversing the flattened edges registry.'
AS
WITH
-- Downstream traversal (inputs → outputs)
DOWNSTREAM AS (
    SELECT
        input_guid AS start_guid,
        input_name AS start_name,
        input_type AS start_type,
        output_guid AS related_guid,
        output_name AS related_name,
        output_type AS related_type,
        input_guid AS connecting_guid,   
        1 AS level,
        input_guid || ',' || output_guid AS path_str
    FROM ATLAN_GOLD.PUBLIC.BASE_EDGES
    UNION ALL
    SELECT
        d.start_guid,
        d.start_name,
        d.start_type,
        e.output_guid AS related_guid,
        e.output_name AS related_name,
        e.output_type AS related_type,
        d.related_guid AS connecting_guid,   
        d.level + 1 AS level,
        d.path_str || ',' || e.output_guid AS path_str
    FROM DOWNSTREAM d
    JOIN ATLAN_GOLD.PUBLIC.BASE_EDGES e
        ON d.related_guid = e.input_guid
    WHERE POSITION(e.output_guid IN d.path_str) = 0  -- prevent cycles
),

-- Upstream traversal (outputs → inputs)
UPSTREAM AS (
    SELECT
        output_guid AS start_guid,
        output_name AS start_name,
        output_type AS start_type,
        input_guid AS related_guid,
        input_name AS related_name,
        input_type AS related_type,
        output_guid AS connecting_guid,   
        1 AS level,
        output_guid || ',' || input_guid AS path_str
    FROM ATLAN_GOLD.PUBLIC.BASE_EDGES
    UNION ALL
    SELECT
        u.start_guid,
        u.start_name,
        u.start_type,
        e.input_guid AS related_guid,
        e.input_name AS related_name,
        e.input_type AS related_type,
        u.related_guid AS connecting_guid,  
        u.level + 1 AS level,
        u.path_str || ',' || e.input_guid AS path_str
    FROM UPSTREAM u
    JOIN ATLAN_GOLD.PUBLIC.BASE_EDGES e
        ON u.related_guid = e.output_guid
    WHERE POSITION(e.input_guid IN u.path_str) = 0
)

-- Final combined lineage output
SELECT DISTINCT
    'DOWNSTREAM' AS direction,
    start_guid,
    start_name,
    start_type,
    related_guid,
    related_name,
    related_type,
    connecting_guid,    
    level
FROM DOWNSTREAM
WHERE related_guid IS NOT NULL
UNION ALL
SELECT DISTINCT
    'UPSTREAM' AS direction,
    start_guid,
    start_name,
    start_type,
    related_guid,
    related_name,
    related_type,
    connecting_guid,    
    level
FROM UPSTREAM
WHERE related_guid IS NOT NULL;

CREATE OR REPLACE TASK ATLAN_GOLD.PUBLIC.REFRESH_ASSETS
  SCHEDULE = 'USING CRON 0 * * * * UTC'
AS
  INSERT OVERWRITE INTO ATLAN_GOLD.PUBLIC.ASSETS
  WITH tag_agg AS (
    SELECT
        asset_guid,
        ARRAY_AGG(DISTINCT tag_name) AS tag_names
    FROM ATLAN_GOLD.PUBLIC.TAGS
    GROUP BY asset_guid
)

SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADF at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLSAccount at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLSContainer at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ADLSObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AI at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AIApplication at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AIModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AIModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".API at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIPath at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APIQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".APISpec at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AWS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AccessControl at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfActivity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfDataflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfLinkedservice at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AdfPipeline at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Airflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AirflowDag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AirflowTask at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Anaplan at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanLineItem at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanList at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanModule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanSystemDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnaplanWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Anomalo at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AnomaloCheck at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".App at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AppWorkflowRun at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Application at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ApplicationField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Asset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AtlanApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AtlanAppDeployment at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AtlanAppInstalled at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AuthPolicy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AuthService at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Azure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureEventHub at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureEventHubConsumerGroup at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBus at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBusNamespace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBusSchema at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".AzureServiceBusTopic at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BI at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BIProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Badge at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BigqueryRoutine at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BigqueryTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicyException at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicyIncident at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".BusinessPolicyLog at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CalculationView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cassandra at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraKeyspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CassandraView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Catalog at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cloud at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cognite at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cognite3DModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteEvent at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteFile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteSequence at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CogniteTimeSeries at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cognos at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosDatasource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosExploration at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosFile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosModule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosPackage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CognosReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Collection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata"."Column" at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ColumnProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Connection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ConnectionProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDBAccount at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDBCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CosmosMongoDBDatabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Cube at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CubeDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CubeField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CubeHierarchy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Custom at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".CustomEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataContract at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataDomain at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataMesh at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataProduct at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataQuality at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataQualityRule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataQualityRuleTemplate at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataSet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataStudio at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataStudioAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Database at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Databricks at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksAIModelContext at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksAIModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksExternalLocation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksExternalLocationPath at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksMetricView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksNotebook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksUnityCatalogTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksVolume at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DatabricksVolumePath at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Dataverse at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataverseAttribute at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DataverseEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Dbt at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtColumnProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtMeasure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtMetric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtModelColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtProcess at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSeed at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSemanticModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtSource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DbtTest at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DocumentDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DocumentDBCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DocumentDBDatabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Domo at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoCard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DomoDatasetColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Dremio at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioPhysicalDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioSource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioSpace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DremioVirtualDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBGlobalSecondaryIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBLocalSecondaryIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBSecondaryIndex at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".DynamoDBTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".EventStore at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Fabric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricActivity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDataPipeline at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDataflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricDataflowEntityColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricSemanticModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricSemanticModelTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricSemanticModelTableColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricVisual at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FabricWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".File at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Fivetran at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FivetranConnector at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Flow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowControlOperation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowDatasetOperation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowFieldOperation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".FlowReusableUnit at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Folder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Form at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Function at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GCS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GCSBucket at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GCSObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Glossary at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GlossaryCategory at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".GlossaryTerm at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Google at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Incident at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Infrastructure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Insight at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Kafka at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".KafkaConsumerGroup at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".KafkaTopic at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Link at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Looker at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerExplore at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerLook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerTile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".LookerView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MCIncident at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MCMonitor at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MaterialisedView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Matillion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionComponent at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionGroup at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionJob at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MatillionProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Metabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MetabaseCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MetabaseDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MetabaseQuestion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Metric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategy at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyAttribute at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyCube at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyDocument at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyDossier at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyFact at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyMetric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MicroStrategyVisualization at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Mode at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModeWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Model at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelAttribute at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelAttributeAssociation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelDataModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelEntityAssociation at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MongoDB at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MongoDBCollection at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MongoDBDatabase at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MonteCarlo at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".MultiDimensionalDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Namespace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".NoSQL at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Notebook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ObjectStore at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Partial at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PartialField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PartialObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Persona at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBI at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDataflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDataflowEntityColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIDatasource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIMeasure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBITable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBITile at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PowerBIWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Preset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".PresetWorkspace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Procedure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Process at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ProcessExecution at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Purpose at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Qlik at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikApp at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikSheet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikSpace at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QlikStream at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Query at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSight at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightAnalysis at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightAnalysisVisual at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDashboardVisual at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightDatasetField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".QuickSightFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Readme at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ReadmeTemplate at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".RedashDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".RedashQuery at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".RedashVisualization at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Resource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Response at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3 at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3Bucket at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3Object at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".S3Prefix at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SAP at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SQL at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SaaS at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudio at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioAssetSchema at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioPublishedAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SageMakerUnifiedStudioSubscribedAsset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Salesforce at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceObject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceOrganization at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SalesforceReport at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpAbapProgram at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpCdsView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpComponent at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpFunctionModule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpTransactionCode at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SapErpView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Schema at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SchemaRegistry at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SchemaRegistrySubject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Semantic at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticDimension at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticEntity at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticMeasure at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SemanticModel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Sigma at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDataElement at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDataElementField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaDatasetColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaPage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SigmaWorkbook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Sisense at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseDatamodel at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseDatamodelTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseFolder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SisenseWidget at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Snowflake at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeAIModelContext at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeAIModelVersion at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeDynamicTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakePipe at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeStage at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeStream at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SnowflakeTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Soda at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SodaCheck at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SourceTag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Spark at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SparkJob at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Stakeholder at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".StakeholderTitle at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Superset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SupersetChart at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SupersetDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".SupersetDataset at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata"."Table" at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TablePartition at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Tableau at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauCalculatedField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDashboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDashboardField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDatasource at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauDatasourceField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauFlow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauMetric at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauProject at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauSite at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauWorkbook at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauWorksheet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TableauWorksheetField at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Tag at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".TagAttachment at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Task at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Thoughtspot at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotAnswer at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotColumn at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotDashlet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotLiveboard at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotTable at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotView at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".ThoughtspotWorksheet at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".View at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".Workflow at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".WorkflowRun at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".alpha_DQRule at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid UNION ALL
SELECT at.guid AS guid, at.typename AS asset_type, at.name AS asset_name, at.qualifiedname AS asset_qualified_name, COALESCE(at.userdescription, at.description) AS description, readme[0]::VARCHAR AS readme_guid, at.status AS status, at.createtime AS created_at,at.createdby AS created_by, at.updatetime AS updated_at, at.updatedby AS updated_by, at.certificatestatus AS certificate_status, at.certificateupdatedby AS certificate_updated_by, at.certificateupdatedat AS certificate_updated_at, at.connectorname AS connector_name, at.connectionqualifiedname AS connector_qualified_name, at.sourcecreatedat AS source_created_at, at.sourcecreatedby AS source_created_by, at.sourceupdatedat AS source_updated_at, at.sourceupdatedby AS source_updated_by, at.ownerusers AS owner_users, at.ownergroups AS owner_groups, at.meanings AS term_guids,  at.popularityscore AS popularity_score, tag.tag_names AS tags, at.haslineage AS has_lineage FROM ATLAN_CONTEXT_STORE."entity_metadata".alpha_DQRuleTemplate at LEFT JOIN tag_agg tag ON at.guid = tag.asset_guid;

CREATE OR REPLACE TASK ATLAN_GOLD.PUBLIC.REFRESH_BASE_EDGES
  SCHEDULE = 'USING CRON 0 * * * * UTC'
AS
 INSERT OVERWRITE INTO ATLAN_GOLD.PUBLIC.BASE_EDGES
 SELECT DISTINCT
    e.process_guid,
    e.input_guid,
    COALESCE(i.asset_name, e.input_guid) AS input_name,
    COALESCE(i.asset_type, 'unknown') AS input_type,
    e.output_guid,
    COALESCE(o.asset_name, e.output_guid) AS output_name,
    COALESCE(o.asset_type, 'unknown') AS output_type
FROM ATLAN_GOLD.PUBLIC.LINEAGE_EDGES e
LEFT JOIN (
    SELECT DISTINCT guid, asset_name, asset_type
    FROM ATLAN_GOLD.PUBLIC.ASSETS
) i ON e.input_guid = i.guid
LEFT JOIN (
    SELECT DISTINCT guid, asset_name, asset_type
    FROM ATLAN_GOLD.PUBLIC.ASSETS
) o ON e.output_guid = o.guid
WHERE e.input_guid IS NOT NULL 
  AND e.output_guid IS NOT NULL;
  
ALTER TASK ATLAN_GOLD.PUBLIC.REFRESH_ASSETS RESUME;
ALTER TASK ATLAN_GOLD.PUBLIC.REFRESH_BASE_EDGES RESUME;
