Sample with SQL lite operations