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.2796922.5738421.3986820.9384920.61979180.038298263764-0.4385885420542124503874773712896
24.061123.9653522.6206521.2186120.52259180.04267773131-0.4691083569783924503600030023680
25.6531422.3243321.1413120.24919.68854180.051387136017-0.4443252262164564503874782101504
23.6961323.0675522.2638821.9788920.97115180.440764082858-0.4846114408227484503874807267352
17.7905316.4003115.8914115.7241415.63591180.31647108347-0.42923759683284503599962947656
24.145523.5092321.8962220.3581119.47299180.333297573683-0.4342536649403644503599895805968
23.350320.1163818.8606318.2938717.98158180.058440189914-0.4248395025451364503599929393168
19.7222318.6822618.3040318.1611118.10813180.055996599697-0.4817676348925094503599962947656
24.5256123.4149221.9251521.3074620.91851180.331561262046-0.4571415609751564503874916466704
25.913823.6701522.3333921.1833320.12726180.333576209525-0.4536785312449464503874773712896