SELECT WorkspaceId,
       GraphId,
       Version,
       State,
       Name,
       Description,
       GraphJson,
       PoliciesJson,
       MetadataJson,
       SubmittedAt,
       SubmittedBy,
       PublishedAt,
       PublishedBy,
       PublishNotes,
       CreatedAt,
       UpdatedAt,
       CreatedBy,
       UpdatedBy
FROM [dbo].[OrchestrationGraphs]
WHERE WorkspaceId = @WorkspaceId
  AND GraphId = @GraphId
ORDER BY Version;
