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.7627421.6145321.3204121.0771221.16332180.102955001234-0.4299962425710254503874773712896
24.2714624.1784522.9341322.8455222.51663180.102360174618-0.4622522083954674503874807398416
23.6664421.2226919.790618.4382417.61501180.358654309519-0.4986102219093014503874773745664
25.0348522.502220.9288520.0146719.39805180.358318579778-0.4714868035886764503874773745664
24.5639922.7541721.0440219.4734118.54427180.077418734882-0.4590282251279094503874773745664
23.7527922.6562322.0966321.8397121.79178180.494988630945-0.4297613620976794503874807267344
23.0662723.3213922.2675621.9510821.66725180.075789465189-0.4211922832534674503874907930624
21.0961818.6414617.5259417.084916.83317180.12052507772-0.4471424575849034503599895838736
25.1308822.5672120.8962120.0426219.48205180.21418754361-0.4660423622209874503874773712896
23.8870122.9142321.4642820.382919.76734180.106055596863-0.4281204043148294503874773712896