arXiv:2609.05756cs.DBSep 2026

Manuscript Offprint

arXiv:2609.05756

Concord: A Video Relational Algebra for Cross-Modal Query Optimization

Sultan Muratbek, Charisse Ivana Yeung, Chanwut Kittivorawong, Alvin Cheung

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Semantic video queries let users embed natural language prompts and use multimodal large language models (MLLMs) to interpret the video. Such queries are increasingly popular for querying video data. However, their expressiveness comes at a steep cost: an MLM may process hours of media to return only seconds of relevant output, making naive execution slow, expensive, and inaccurate.

We propose Concord, a system for expressing and optimizing semantic video queries. We makes three contributions. First, we introduce Video Relational Algebra (VRA), a nested algebra over videos, transcripts, frames, and object tracks that captures common semantic video operations. Second, we derive a set of approximate optimizations that rewrite VRA queries to reduce MLM usage while improving result quality. For narrated video, Concord either processes transcripts instead of video or uses them to identify video clips for MLM processing. For cross-camera queries without narration, detection and tracking replace a whole-video MLM join with a track-level relational join.

Third, we evaluate Concord on real-world videos. Across 4.59 hours of soccer broadcasts and 3.92 hours of lectures, transcript-to-video queries send only 5.32% and 2.47% of source-video duration to the MLM and reduce MLM cost by up to 87%. In two five-second highway clips with 18 manually adjudicated cross-camera vehicles, a Detect-Track-Join query improves F1 from .364 to .813 while making no MLM calls. See our project at concord-db.github.io.

1 Introduction

Multimodal large language models (MLLMs) let users ask semantic questions over videos: when a goal is scored in a soccer match, when an experiment visibly succeeds in a lab demo, or which vehicle appears across multiple camera views of the same highway. Naive execution sends complete, temporally redundant videos to an MLM, incurring high cost and latency when relevant evidence is sparse. Furthermore, Video contains source-aligned modalities such as frames, audio, transcripts, and metadata. Many videos, including those on YouTube, already provide narration or transcripts. In narrated videos, transcripts offer a cheaper access path: they may answer a query directly or identify candidate source-time intervals for video inference. For example, a commentator announces a goal or a lecturer introduces a demo before it is visible. When the transcript lacks sufficient evidence to answer the query directly, it can still identify candidate intervals, source-time regions likely to contain an answer. The MLM can then process these short regions instead of the complete video.

Not all videos have useful text channels. For cross-camera vehicle association, a direct implementation sends the synchronized videos to an MLM, which must discover vehicles, maintain their identities

within each video, and associate them across camera views. Concord instead decomposes this semantic operation into a Detect-Track-Join query that derives entity tracks from pixels and joins them across cameras. This alternative changes the query's processing granularity from whole videos to entity-level records.

Current video analytics systems optimize video processing through sampling, proxies, indexes, materialized views, and relational hints [3, 10, 11, 16], while semantic data systems optimize programs whose operators may invoke foundation models [9, 13, 17]. What is missing is a compact algebra in which ordinary relational operators compose with media-specific representations. Such an algebra expresses video-only inference, transcript substitution, transcript-to-video pushdown, and track-level joins as alternative queries with the same intent.

Towards that goal, we present Concord, a declarative system for multimodal analytic workflows. Concord provides a query API over records containing audio, video, transcripts, source-time views, frames, detections, and tracks. Users construct Video Relational Algebra (VRA) queries through this API. Concord then optimizes the VRA queries by rewriting them to using different media inputs, temporal extent, or processing granularity.

In sum, this paper makes three contributions:

  • We define VRA: its media model, source-time views, deterministic and semantic functions, and operators for various video-related operations (§3).
  • We describe three VRA rewrites: modality substitution, cross-modal temporal pushdown, and the algebraic decomposition of whole-video semantic association into Detect-Track-Join (§4).
  • We evaluate Concord's query rewrites on real-world videos. Transcript-to-video queries improve the cost–quality frontier for narrated event localization (§5.1 and §5.2), while Detect-Track-Join improves cross-camera F1 from .364 to .813 with no MLM calls (§5.3).

Through our case studies, Concord presents an opportunity for future semantic video processing systems, where modality, temporal extent, and processing granularity should be explicit query choices, subject to event- and entity-coverage constraints.