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.1860821.3653721.1413620.964820.50892180.013333584389-0.4782380252918394503874773712896
20.0539119.2682618.9794118.833518.78498180.171191834578-0.4437156512734454503599962947656
25.1308822.5672120.8962120.0426219.48205180.21418754361-0.4660423622209874503874773712896
17.7905316.4003115.8914115.7241415.63591180.31647108347-0.42923759683284503599962947656
24.618822.5087820.8495319.4336318.60988180.365015339732-0.4445954261288944503874807398416
18.0167815.8676915.0083614.6861614.5021180.305164130951-0.4478325793281264503599895838720
23.6715323.0084422.0710722.0313221.92347180.047656726551-0.4706969061384844503874907930624
23.465223.0935422.6401422.2367321.5809180.047979510543-0.4341272535577234503874773745664
21.6212118.9656917.5800916.1178315.27498180.580660929162-0.4891027851128674503599895838720
23.0876823.4656322.2014921.9994321.87424180.048339730406-0.4978853989839534503599895805952