Fix for long predicate comparisons with large numbers

Fixes an issue where we were downcasting to int when constructing our query.

@tgoyne 
Predicate format strings behave in mystical ways - using %lli the test fails