You might like QUEL, precursor to SQL (and the original language of Ingres and Postgres) where range variables came first. https://en.wikipedia.org/wiki/QUEL_query_languages#Usage
You might like QUEL, precursor to SQL (and the original language of Ingres and Postgres) where range variables came first. https://en.wikipedia.org/wiki/QUEL_query_languages#Usage