using System.Collections.Generic;
var sql = new Query("domains")
.SelectRaw("organizations.public_id")
.Join("organizations", "organizations.id", "domains.organization_id")
.WhereIn("organizations.public_id", new List<Guid>(){ Guid.Parse("00000000-0000-0000-0000-000000000000") });
var compiler = new PostgresCompiler();
var sql = compiler.Compile(query).ToString();