Your SQL command was:
SELECT TOP 10 u,g,r,i,z,ra,dec, flags_r 
FROM Galaxy 
WHERE
 ra BETWEEN 180 and 181 AND dec BETWEEN -0.5 and 0.5
 AND ((flags_r & 0x10000000) != 0)
 AND ((flags_r & 0x8100000c00a0) = 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.4398120.9333419.9029819.5025719.30116180.124732868148-0.4650196223122524503874773745664
22.4075122.5133721.1858120.4172219.94742180.103436276509-0.4615899855793256755674587562000
24.1572422.2117321.4882321.3583721.17303180.1254860368-0.4841735852949622312598683801092112
23.8934524.5933822.4405221.8483821.10357180.101307284655-0.4480170038266664503874916319488
23.1226922.2183421.3845120.9493420.93616180.108317904604-0.4359414625314734503874773712896
24.589322.7447221.7171221.3417721.20915180.126809899175-0.4513533602939084503874773745664
23.5615224.2185222.0761321.4335220.90229180.103535528761-0.4437936521298084503874782134528
24.1131423.2861822.3513822.6101122.62839180.124586391182-0.44491080409728813511074028453888
24.8002822.9483621.8915120.8112219.89801180.108430784083-0.4573137150503194503874782134272
22.9564123.9921922.5205522.3491823.72297180.125127325275-0.47506848597150449539871055839488