Create a Materialized Segment
Define the SQL query
Click + Load Entities and enter a SQL query that returns the entity IDs you want to include in the segment.
Run the query and select the column
Run the query and select the correct column from the response that contains your entity IDs.

