Your SQL command was:
SELECT TOP 10 u,g,r,i,z,ra,dec, flags_r 
FROM Star 
WHERE 
 ra BETWEEN 180 and 181 AND dec BETWEEN -0.5 and 0.5
 AND ((flags_r & 0x10000000) != 0)
 AND ((flags_r & 0x8100000c00a4) = 0) 
 AND (((flags_r & 0x400000000000) = 0) or (psfmagerr_r <= 0.2))
 AND (((flags_r & 0x100000000000) = 0) or (flags_r & 0x1000) = 0)

Your query output (max 500,000 rows):

ugrizradecflags_r
24.061123.9653522.6206521.2186120.52259180.04267773131-0.4691083569783924503600030023680
22.8797222.2023721.9638321.8628921.61448180.188108446133-0.499119897676446755674587398160
24.145523.5092321.8962220.3581119.47299180.333297573683-0.4342536649403644503599895805968
23.9027121.7804520.1971919.403418.8724180.053620822951-0.4291858267009842310346883987439632
24.5256123.4149221.9251521.3074620.91851180.331561262046-0.4571415609751564503874916466704
24.3004322.3374320.8901719.6538519.04738180.117861264834-0.4988759937540964503874773712896
25.913823.6701522.3333921.1833320.12726180.333576209525-0.4536785312449464503874773712896
20.5609417.9117216.7708616.3493916.11848180.232750139903-0.4946337613883454503599895838720
24.2651323.5183221.9407321.2022220.78839180.24411914537-0.4580077960505614521466959888384
23.9383823.647122.0647221.0261520.15038180.229677050367-0.4569168821031994503874773712896