with data as ( select resourceId, targetPartnerType, targetPartnerId, targetPartnerDescription, targetContactId, targetContactDescription, externalResourceLink_1, externalResourceLink_2, externalResourceLink_3 from tbl_GTM_ExternalResources with (nolock) where ownerId = and ownerType = and campaignId = ) #forJSON( 'data', attributes.datastore, 'targetPartnerDescription' )#