79799890

Date: 2025-10-26 07:26:56
Score: 1.5
Natty:
Report link

Interesting challenge. The following should do it. I don't use Trino myself so is not tested.

SELECT _.ID FROM
(
SELECT
ID,
reverse(split(URL, "/")) as Elements
) AS _
WHERE cardinality(_.Elements) >= 2 && _.Elements[0] = _.Elements[1]

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Simon Hooper