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.9243221.346220.5522720.2350320.08512180.6000433456690.08447236775639044503874773712896
23.7781221.8150320.3826619.0839318.33717180.6006224943670.1987585656343354503874773712896
25.9560124.4309722.4581121.1829620.06729180.6049441966180.08817072600173164503600038445056
25.8946622.9786721.6502520.2584719.70001180.6013568063380.09094525883905624503874782134272
25.1970622.5376820.7499419.8104119.2703180.6089996891570.2080745262655924503874773712896
21.619220.3041819.8003119.6278719.54671180.613666399720.06351900792380024503874773712896
24.4837124.3778522.7466322.3962321.72994180.5923379708060.1828811254776824503874907930624
26.077923.1020122.4661822.652222.8935180.6029731236920.007225309984385194503874773712896
26.0656122.903522.3973222.6479521.64781180.6030324466010.2061931040029114503874773712896
22.2917422.4869522.2825221.7591622.00095180.6418725657020.0902812243504644503874773713408