fold in sample db query