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
25.276823.6877622.2439721.4776821.45382180.080459612251-0.4959209135036164503874975039560
23.7599622.9087622.4189623.0556922.66374180.09301171445-0.4886486815240954503874916352512
23.0573922.5721422.1377721.8855921.49733180.115013253032-0.4329086169086474503874907930624
24.1486723.6011722.1189521.5156721.07533180.088193966955-0.4938138787502564503874773712896
22.7627421.6145321.3204121.0771221.16332180.102955001234-0.4299962425710254503874773712896
21.001919.7106319.0879518.8795518.72669180.204208081514-0.4500704797146344503599895839232
17.3413215.5334414.8461614.6036214.48534180.246857593961-0.4675877277508234503599912615936
24.4020621.5741220.2108718.834218.06987180.225423802342-0.4359802968193074503874924740608
25.4827322.9035721.2289719.9508219.23002180.08565943411-0.4386311918700514503874773745664
19.5417918.366217.9302817.7712817.67345180.206073156982-0.4814118469204034503599895838720