ROM table_name limit 200",
                             cartocss: '#table_name {marker-fill: #F0F0F0;}'
                    });

// change the query for the first layer
layer.getSubLayer(0).setSQL("SELECT * FROM table_name limit 10");
}).on('error', function() {
                        //log the error
                    });
         }

         function updateQuery(crime) {
             var color;
             switch(crime) {
                 case "HOMICIDIO DOLOSO":
                     color = "#e41a1c";