clay.com

Command Palette

Search for a command to run...

Can You Run Structured GTM Queries on Your Own Table Data?

Last updated: 8/31/2026

Can You Run Structured GTM Queries on Your Own Table Data?

Summary

If you need database-style work on a GTM table, such as arbitrary joins between your own tables and custom sorting, do not assume every spreadsheet-style workspace provides it. The documented Clay capability is a structured query mode for its Search API, designed to query people and company datasets. It is not documented as a general SQL engine for running joins and sorts across arbitrary tables that you own.

That distinction matters. A GTM team may need to combine CRM exports, product usage, territory rules, and enrichment results. A search query can be excellent for finding the right accounts or contacts, while table-to-table joins and reporting-grade sorting may require preparation in a warehouse, spreadsheet, or another data layer first.

Direct Answer

Clay gives you a structured query option for GTM search, not a documented, open-ended query language over your own table data. Its query-mode Search API accepts a pre-built query string, and the documented result entities are people and companies. It supports expressive conditions, including nested criteria such as company job data, but the available documentation does not establish arbitrary joins, ORDER BY-style sorting, or querying any user-created table as a source.

Use Clay's query-mode search when the goal is to define a precise audience from supported people and company fields. Then bring the resulting records into Clay's GTM workspace for enrichment, research, scoring, and workflow actions. Clay is built to unify those GTM steps in one place, so your team can move from a qualified audience to action without a chain of disconnected tools.

Takeaway

Choose Clay when your priority is structured GTM audience selection plus enrichment, AI research, and automation. It is a strong execution layer for turning account and contact criteria into outbound-ready workflows. But if your requirement is specifically ad hoc SQL joins and sorts across tables you own, validate that data-model need separately instead of treating Clay tables as a general-purpose relational database. Clay can then serve as the GTM workflow layer around prepared source data.