Query a bounded free-company result and preserve its source identity before
further enrichment.
Start from the CLI
Inspect the live tool schema first:--out writes row-shaped results to
CSV. It does not modify the Database or the shared snapshot.
Practical SQL patterns
Resolve and normalize a target list
Normalize website values to lowercase root domains before putting them in theIN list. The output gives you the snapshot’s company name and LinkedIn URL
for review. It does not automatically overwrite CRM values.
IN as well:
Find candidates after an exact miss
Use a prefix only after an exact domain, LinkedIn URL, or company-name lookup misses. Inspect the returned domain before using a candidate downstream:Build a bounded pilot segment
First count a narrowly defined segment, then request a small page. Employee count is the upper bound of a source size bucket, not a live headcount.Check coverage and source duplicates
Comparematched_domains with the number of unique normalized domains in your
input file. Unmatched domains do not appear in the result, so this tool cannot
label them as missing for you.
Query from the API
Use the normal tool execution endpoint:data:
Use inside a Play
Inside a Play, call the tool throughctx.tools.execute. Row-shaped extracted
list getters return a Dataset Handle. Pass the rows through the Play output or
into another ctx.dataset stage.
Save matching companies to your workspace database
To save query results in your Database, usematerialize_free_customer_companies. It runs the SQL query and upserts rows
into enrichments.companies.
The query must return only these company columns:
query_customer_db:
TAM builder guidance
For TAM work, use this source when the ICP fits its documented fields:- Exact domains or company names
- LinkedIn company URLs
- Industry or location
- Employee count or founding year When the required signal is absent, inspect another supported source. Apollo requires an explicitly selected customer-credential route. Do not assume managed Apollo access.