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
17.8128316.8515316.5074816.3764816.32963180.330545839202-0.4903100550702764503599895838736
22.8797222.2023721.9638321.8628921.61448180.188108446133-0.499119897676446755674587398160
23.3375821.1556119.8063318.9387718.34619180.241558534623-0.4971349562898464503874840855112
24.1189123.7498722.4512622.464222.37029180.237641197609-0.425674931001864503874773712896
23.6544321.2167919.8712318.5903817.85919180.382284699864-0.436081476390184503874773712912
24.50423.8716522.7332722.7046622.20151180.390532097517-0.4535705655152774503874907930624
21.4261619.071817.6968616.3959415.69702180.524614658961-0.4586916595001424503599895969808
25.2700423.3041321.6656420.6078520.05632180.775987689226-0.4724476971080424503600030056448
22.0120.933620.3943420.2776720.22151180.731135685101-0.4298461064932184503874773745664
20.1492817.424816.0136915.3351614.95719180.78093849484-0.4951787558606184503599895838736