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.0137921.2518620.863520.7117720.87385180.021826842409-0.4489590759809244503874773712896
21.0961818.6414617.5259417.084916.83317180.12052507772-0.4471424575849034503599895838736
19.1444818.2451417.9350217.8206917.79496180.242045638493-0.4802857405174694503599929360400
24.2225422.4061821.6553721.294720.34921180.002648784049-0.4782900211612964503874773712896
23.4159423.9388722.4591422.1718622.26885180.003480967382-0.4586113780435784503874773712896
23.8001323.0309922.1285122.1560221.46461180.008030827997-0.4700695044675034521467169636425
23.5826222.9951622.4444222.0147621.69982180.253437034969-0.4617959505549844503874773712896
23.3375821.1556119.8063318.9387718.34619180.241558534623-0.4971349562898464503874840855112
24.9053520.9674419.679718.9492118.5074180.257185040131-0.4783492685956994503599929360400
21.0313321.2320.9610820.8520420.7241180.284422092655-0.4393996222737474503874773712896