it’s convenient when you want to extract parts of query to functions, i like piping in general, i hate pipe style query syntax, especially when multiple tables are referenced. If only the syntax was not so weird, i’d use pipe style queries
I most often do the first because I tend to change a query in multiple steps that doesn’t pipe well (it would with a monadic pipe though, but elixir’s standard library lacks that very common feature). If it is truly a super short single expression query like that then I’d generally do 2.