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
22.1324921.2085920.8285220.7237220.56906180.070814608527-0.2439848983095234503874773712912
21.7156720.6358420.3634120.2227720.20424180.996208555264-0.1705151883959944503874907930624
21.3611120.4007220.0560619.9186919.82822180.827832026163-0.08193593599114734503874773712896
22.2590521.523221.12720.9647121.07763180.826794947637-0.2054396428575344503874773712896
23.7665621.4937620.0972818.6832617.92603180.023949531459-0.3280469021486794503874773745664
24.8557224.83621.8841620.6688620.01238180.038420447757-0.3627066194279786755674587432208
20.9895718.7279217.6692517.2351216.98686180.038254122919-0.3189403689216044503599895969808
22.7996620.0753218.7276317.5038316.84884180.715584497442-0.08844238755254324503599895838720
21.4463820.1741119.6787919.4887619.3284180.456552733675-0.2505244928479894503600030056960
25.5274323.2497522.4196621.5582820.90497180.818214842686-0.1324053428625594503874773712896