Support numeric and boolean literals in query builder.