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.2157721.1751220.5439120.295819.94644180.661378313029-0.4656620036378794503874773745664
23.0272623.5397922.4293722.7411621.40832180.6623521786-0.4338229278707324503874907930624
17.488315.9723715.4403315.2634715.1861180.383963696665-0.1782565742841074503599895969808
22.1733521.4491821.079721.0025320.79567180.38667883391-0.07138206867398164503874773712896
22.0316321.2733120.8651220.7776920.51535180.388446781043-0.04839430557548084503874773712896
23.4315622.3143121.6882421.4518321.54182180.384939979945-0.1468389082350134503874773712912
24.2379723.3547121.7740121.5189820.96614180.389035367186-0.1127631121983264503874773712896
24.4762223.2480322.2074821.7257421.11017180.389959978062-0.1345339049802974503874773712896
25.5661423.4829822.6346422.2398522.87397180.384370469948-0.08061743552796784503874773712896
24.1985923.3324222.5356222.3963121.41262180.386967496496-0.09931828710068524503874782101760