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
23.4536722.9889722.6116522.0958321.93262180.081803290253-0.01929784071277054503874773712896
24.271923.2265522.7945223.1680822.41205180.082467590416-0.154978847104194503874916352256
20.8683718.9320918.2204417.9408817.78792180.079117339094-0.1277704199240054503599895969808
21.4404219.9397319.3314219.1054419.02929180.027636725797-0.08956653184082364503599895838720
23.2752621.7501121.4313121.3331221.56495180.083453819881-0.0569333873041584503874782134272
23.1025920.0981618.6619917.3579816.67823180.079984349139-0.103113866728142310346609109635088
24.0528123.5210922.5092421.8547721.65287180.084486336935-0.1765890572082624503600038445568
23.5671621.600320.2196619.4805519.08976180.079567783469-0.1829706698062624503874773712896
24.6861623.6020922.7512922.2495921.77751180.081166224317-0.03006884300778594503600038412288
25.4350622.5563821.4893620.9838420.94643180.028914981687-0.1612177440712324503874773712896