Here's my poke at this:
select column1, column2
from table1
where (column3 in (
select top(1) column4
from table2
inner join table3
on (table2.column1 = table3.column1)
))
;
- Everything lowercase because it's easier to read lowercase characters (and we have code highlighting to emphasize keywords) also easier to type
- Every restriction or option on a keyword (like the from on the select or the on on the join) is indented to show their dependance on the outward keyword
- The closing bracket is at the same indenting level as the opening where
- Use brackets for where- and on-clauses to increase readability
- Have the semicolon closing the select-statement at the same indenting so multiple statements can be distinguished better (if you need a semicolon in your language like SAS PROC SQL does)
- It's still quite compact and does not stretch all over the page