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
19.8077917.6238116.6312316.221115.95853180.333288545247-0.4960640982323944503599895838720
22.8797222.2023721.9638321.8628921.61448180.188108446133-0.499119897676446755674587398160
24.3687323.0557922.0092721.530121.36353180.109587445772-0.426273284480654503874773712912
24.145523.5092321.8962220.3581119.47299180.333297573683-0.4342536649403644503599895805968
23.6094922.3213521.7153221.6993921.37968180.113132312594-0.463446897009044503874773712896
17.8128316.8515316.5074816.3764816.32963180.330545839202-0.4903100550702764503599895838736
24.5256123.4149221.9251521.3074620.91851180.331561262046-0.4571415609751564503874916466704
25.913823.6701522.3333921.1833320.12726180.333576209525-0.4536785312449464503874773712896
23.0573922.5721422.1377721.8855921.49733180.115013253032-0.4329086169086474503874907930624
23.8985622.6763621.4847720.3271519.47192180.3301623196-0.4609271109103374503874773712912