WITH `bfcte_0` AS (
  SELECT
    *,
    RAND() AS `bfcol_16`
  FROM UNNEST(ARRAY<STRUCT<`bfcol_0` BOOLEAN, `bfcol_1` BYTES, `bfcol_2` DATE, `bfcol_3` DATETIME, `bfcol_4` GEOGRAPHY, `bfcol_5` INT64, `bfcol_6` INT64, `bfcol_7` NUMERIC, `bfcol_8` FLOAT64, `bfcol_9` INT64, `bfcol_10` INT64, `bfcol_11` STRING, `bfcol_12` TIME, `bfcol_13` TIMESTAMP, `bfcol_14` INT64, `bfcol_15` INT64>>[STRUCT(
    TRUE,
    CAST(b'Hello, World!' AS BYTES),
    CAST('2021-07-21' AS DATE),
    CAST('2021-07-21T11:39:45' AS DATETIME),
    ST_GEOGFROMTEXT('POINT(-122.0838511 37.3860517)'),
    123456789,
    0,
    CAST(1.234567890 AS NUMERIC),
    1.25,
    0,
    0,
    'Hello, World!',
    CAST('11:41:43.076160' AS TIME),
    CAST('2021-07-21T17:43:43.945289+00:00' AS TIMESTAMP),
    4,
    0
  ), STRUCT(
    FALSE,
    CAST(b'\xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1\xe3\x81\xaf' AS BYTES),
    CAST('1991-02-03' AS DATE),
    CAST('1991-01-02T03:45:06' AS DATETIME),
    ST_GEOGFROMTEXT('POINT(-71.104 42.315)'),
    -987654321,
    1,
    CAST(1.234567890 AS NUMERIC),
    2.51,
    1,
    1,
    'こんにちは',
    CAST('11:14:34.701606' AS TIME),
    CAST('2021-07-21T17:43:43.945289+00:00' AS TIMESTAMP),
    -1000000,
    1
  ), STRUCT(
    TRUE,
    CAST(b'\xc2\xa1Hola Mundo!' AS BYTES),
    CAST('2023-03-01' AS DATE),
    CAST('2023-03-01T10:55:13' AS DATETIME),
    ST_GEOGFROMTEXT('POINT(-0.124474760143016 51.5007826749545)'),
    314159,
    0,
    CAST(101.101010100 AS NUMERIC),
    25000000000.0,
    2,
    2,
    '  ¡Hola Mundo!  ',
    CAST('23:59:59.999999' AS TIME),
    CAST('2023-03-01T10:55:13.250125+00:00' AS TIMESTAMP),
    0,
    2
  ), STRUCT(
    CAST(NULL AS BOOLEAN),
    CAST(NULL AS BYTES),
    CAST(NULL AS DATE),
    CAST(NULL AS DATETIME),
    CAST(NULL AS GEOGRAPHY),
    CAST(NULL AS INT64),
    1,
    CAST(NULL AS NUMERIC),
    CAST(NULL AS FLOAT64),
    3,
    3,
    CAST(NULL AS STRING),
    CAST(NULL AS TIME),
    CAST(NULL AS TIMESTAMP),
    CAST(NULL AS INT64),
    3
  ), STRUCT(
    FALSE,
    CAST(b'\xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1\xe3\x81\xaf' AS BYTES),
    CAST('2021-07-21' AS DATE),
    CAST(NULL AS DATETIME),
    CAST(NULL AS GEOGRAPHY),
    -234892,
    -2345,
    CAST(NULL AS NUMERIC),
    CAST(NULL AS FLOAT64),
    4,
    4,
    'Hello, World!',
    CAST(NULL AS TIME),
    CAST(NULL AS TIMESTAMP),
    31540000000000,
    4
  ), STRUCT(
    FALSE,
    CAST(b'G\xc3\xbcten Tag' AS BYTES),
    CAST('1980-03-14' AS DATE),
    CAST('1980-03-14T15:16:17' AS DATETIME),
    CAST(NULL AS GEOGRAPHY),
    55555,
    0,
    CAST(5.555555000 AS NUMERIC),
    555.555,
    5,
    5,
    'Güten Tag!',
    CAST('15:16:17.181921' AS TIME),
    CAST('1980-03-14T15:16:17.181921+00:00' AS TIMESTAMP),
    4,
    5
  ), STRUCT(
    TRUE,
    CAST(b'Hello\tBigFrames!\x07' AS BYTES),
    CAST('2023-05-23' AS DATE),
    CAST('2023-05-23T11:37:01' AS DATETIME),
    ST_GEOGFROMTEXT('LINESTRING(-0.127959 51.507728, -0.127026 51.507473)'),
    101202303,
    2,
    CAST(-10.090807000 AS NUMERIC),
    -123.456,
    6,
    6,
    'capitalize, This ',
    CAST('01:02:03.456789' AS TIME),
    CAST('2023-05-23T11:42:55.000001+00:00' AS TIMESTAMP),
    CAST(NULL AS INT64),
    6
  ), STRUCT(
    TRUE,
    CAST(NULL AS BYTES),
    CAST('2038-01-20' AS DATE),
    CAST('2038-01-19T03:14:08' AS DATETIME),
    CAST(NULL AS GEOGRAPHY),
    -214748367,
    2,
    CAST(11111111.100000000 AS NUMERIC),
    42.42,
    7,
    7,
    ' سلام',
    CAST('12:00:00.000001' AS TIME),
    CAST('2038-01-19T03:14:17.999999+00:00' AS TIMESTAMP),
    4,
    7
  ), STRUCT(
    FALSE,
    CAST(NULL AS BYTES),
    CAST(NULL AS DATE),
    CAST(NULL AS DATETIME),
    CAST(NULL AS GEOGRAPHY),
    2,
    1,
    CAST(NULL AS NUMERIC),
    6.87,
    8,
    8,
    'T',
    CAST(NULL AS TIME),
    CAST(NULL AS TIMESTAMP),
    432000000000,
    8
  )])
), `bfcte_1` AS (
  SELECT
    *
  FROM `bfcte_0`
  WHERE
    `bfcol_16` < 0.1
)
SELECT
  `bfcol_0` AS `bool_col`,
  `bfcol_1` AS `bytes_col`,
  `bfcol_2` AS `date_col`,
  `bfcol_3` AS `datetime_col`,
  `bfcol_4` AS `geography_col`,
  `bfcol_5` AS `int64_col`,
  `bfcol_6` AS `int64_too`,
  `bfcol_7` AS `numeric_col`,
  `bfcol_8` AS `float64_col`,
  `bfcol_9` AS `rowindex`,
  `bfcol_10` AS `rowindex_2`,
  `bfcol_11` AS `string_col`,
  `bfcol_12` AS `time_col`,
  `bfcol_13` AS `timestamp_col`,
  `bfcol_14` AS `duration_col`
FROM `bfcte_1`
ORDER BY
  `bfcol_15` ASC NULLS LAST