# Pastebin ynCHwfn4 $ perl6 -Ilib -e ' use Red; model M is table { has Str $.a is column; has Bool $.b is column } my $*RED-DB = database "SQLite"; M.^create-table; my $*RED-DEBUG = True; say M.^all.map: { .a if .b } ' SQL : SELECT mmm.a as "data" FROM mmm WHERE not (b == 0 OR b IS NULL) ()