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.6715323.0084422.0710722.0313221.92347180.047656726551-0.4706969061384844503874907930624
23.465223.0935422.6401422.2367321.5809180.047979510543-0.4341272535577234503874773745664
23.0876823.4656322.2014921.9994321.87424180.048339730406-0.4978853989839534503599895805952
18.468917.1512616.6103616.3999116.28701180.146633856416-0.4446447999846814503599895969792
22.5451520.0240218.8013318.2665717.95969180.145751022438-0.4727664318057314503599895838720
23.7259822.6149221.3329720.7881620.57416180.144792561966-0.4774234955689824503874782134272
23.3815122.2022420.7029919.7751619.24054180.281839684125-0.4893849605800954503874773712896
24.9791222.8087622.0854121.8436321.03128180.414572224796-0.4955348037020174503599929360400
23.4431221.3291620.3732119.9354119.63795180.413982718474-0.4561296092438774503874773712896
24.5341323.0414222.1982521.8148921.56112180.41435866155-0.4330486848540734503874849243208