SELECT [Id], [ExecutionMode], [WorkKind], [ExecutionType], [AssignedAgent], [QueuedAt], [StartedAt], [FinishedAt], [Status], [InputDataJson], [OutputDataJson], [OutputDataRef], [ErrorMessage], [CorrelationId], [ReplayedFromTaskId], [WorkspaceId], [AssignmentType], [ConfidenceScore], [RetryCount], [LastRetryAt], [MaxRetryAttempts], [RetryReason], [Priority], [RetryOfTaskId], [SuggestionLogId], [CreatedAt], [SuggestedPatchJson], [AiReviewEvidenceManifestJson], [AiReviewStatus], [CreatedVia], [Language], [Domain], [RepositoryUrl], [Branch], [FilePath], [Prompt], [OutputFormat], [TriggerSource], [ExternalId], [ExternalSystem], [RowVersion]
FROM [dbo].[TaskExecutions]
WHERE [Id] = @Id;
