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.5520121.1279920.6052820.3557520.26868180.099121089074-0.4391924729789694503874782134272
18.746717.6421617.2540217.1183917.0697180.039554654698-0.4531102818930192310346609109532688
20.5609417.9117216.7708616.3493916.11848180.232750139903-0.4946337613883454503599895838720
25.4827322.9035721.2289719.9508219.23002180.08565943411-0.4386311918700514503874773745664
24.341422.8741621.5426920.4232119.78389180.040672653717-0.4563096630966994503874773712896
23.350320.1163818.8606318.2938717.98158180.058440189914-0.4248395025451364503599929393168
23.0573922.5721422.1377721.8855921.49733180.115013253032-0.4329086169086474503874907930624
18.5102317.5858117.3166917.2014217.13651180.209822473814-0.4338703709415514503599895838720
24.618822.5087820.8495319.4336318.60988180.365015339732-0.4445954261288944503874807398416
19.7222318.6822618.3040318.1611118.10813180.055996599697-0.4817676348925094503599962947656