yql-19192.sql 345 B

123456789101112
  1. $samples1 = AsList(<|sampl: 1|>, <|sampl: 2|>);
  2. $sampling_cumulative_prob1 = AsList(<|color: "blue", cum_prob: 3|>);
  3. $cumulative_bounds = SELECT
  4. LAG(cum_prob) OVER () AS lower_cum_bound
  5. FROM AS_TABLE($sampling_cumulative_prob1);
  6. SELECT
  7. s.sampl,
  8. cb.lower_cum_bound
  9. FROM AS_TABLE($samples1) AS s
  10. CROSS JOIN $cumulative_bounds AS cb;