There is no layer definition query with rasters in Arcmap. Typically will will use the Con geoprocessing tool to test a condition (query). The Clip geoprocessing tool can be used to cut rasters inside polygons, be sure to check on the box "Use Feature Geometry"