Return a function which will use LATERAL when literalized:
Sequel.function(:foo, :col).lateral # LATERAL foo(col)
1424 1425 1426
# File 'lib/sequel/sql.rb', line 1424 def lateral with_opts(:lateral=>true) end