Comment Comment by xoogler_thr This already exists, in Google BigQuery. Uses darn near every trick in the book, and some that aren’t in the book. Source: shipped it. parent xoogler_thr 9 years ago