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
25.4827322.9035721.2289719.9508219.23002180.08565943411-0.4386311918700514503874773745664
23.350320.1163818.8606318.2938717.98158180.058440189914-0.4248395025451364503599929393168
24.4020621.5741220.2108718.834218.06987180.225423802342-0.4359802968193074503874924740608
19.7222318.6822618.3040318.1611118.10813180.055996599697-0.4817676348925094503599962947656
25.6531422.3243321.1413120.24919.68854180.051387136017-0.4443252262164564503874782101504
22.9515822.0453421.7628121.6729321.53798180.225611835226-0.4468388311246764503599895805952
23.1082222.8230422.4158122.1764421.64675180.058607651166-0.4352645859259884503874773712896
21.5574318.8100217.4825616.8049716.41138180.193196008603-0.4314299656786394503599895838720
25.8131823.030621.7563620.388419.77336180.347848929074-0.4271356259260274503874773712896
24.1191823.6920221.9585921.6622521.32208180.19688216754-0.4726940812195444503599929393168