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.7146920.2025918.7832117.9872917.5144180.013729022362-0.4662561509980674503599895838720
25.6247121.446919.9205718.8594418.24654180.0141923919910.3613301590501374503874983460936
19.9979719.0464118.7266218.5941118.60097180.1390485798460.3109167714175334503599895838720
24.6219223.5162222.1478120.8139720.21728180.1396085657760.3268241091534754503874908061696
23.2936523.8120621.5782220.8092520.33906180.0095215860390.2469918803224234503874773712896
22.9336521.9465921.1322320.818320.56226180.008300658827-0.4595040585961274503874773712912
23.8001323.0309922.1285122.1560221.46461180.008030827997-0.4700695044675034521467169636425
24.5408622.3529921.3704120.8746120.52489180.1393408045870.3779057144941124503874773843984
25.0823422.8595721.3855820.5547820.01163180.1392481447290.3198193416275084503874773712896
22.8422521.5204421.1420220.9722221.09469180.1392233721420.3650581229835044503874773712896