SELECT objectId,jd,ra,decl,fid,magpsf FROM candidates WHERE jd BETWEEN 2458792.107882 and 2458794.107882 AND
((ra BETWEEN 205.0 and 210.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 210.0 and 215.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 215.0 and 220.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 220.0 and 225.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 200.0 and 205.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 225.0 and 230.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 195.0 and 200.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 185.0 and 190.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 190.0 and 195.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 180.0 and 185.0 AND decl BETWEEN 80.0 AND 85.0)
OR (ra BETWEEN 180.0 and 185.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 185.0 and 190.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 190.0 and 195.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 195.0 and 200.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 200.0 and 205.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 205.0 and 210.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 210.0 and 215.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 215.0 and 220.0 AND decl BETWEEN 75.0 AND 80.0)
OR (ra BETWEEN 185.0 and 190.0 AND decl BETWEEN 70.0 AND 75.0)
OR (ra BETWEEN 190.0 and 195.0 AND decl BETWEEN 70.0 AND 75.0)
OR (ra BETWEEN 195.0 and 200.0 AND decl BETWEEN 70.0 AND 75.0)
OR (ra BETWEEN 200.0 and 205.0 AND decl BETWEEN 70.0 AND 75.0)
OR (ra BETWEEN 155.0 and 160.0 AND decl BETWEEN 70.0 AND 75.0)
OR (ra BETWEEN 160.0 and 165.0 AND decl BETWEEN 70.0 AND 75.0)
OR (ra BETWEEN 155.0 and 160.0 AND decl BETWEEN 65.0 AND 70.0)
OR (ra BETWEEN 160.0 and 165.0 AND decl BETWEEN 65.0 AND 70.0)
OR (ra BETWEEN 150.0 and 155.0 AND decl BETWEEN 65.0 AND 70.0)
OR (ra BETWEEN 150.0 and 155.0 AND decl BETWEEN 60.0 AND 65.0)
OR (ra BETWEEN 155.0 and 160.0 AND decl BETWEEN 60.0 AND 65.0)
OR (ra BETWEEN 145.0 and 150.0 AND decl BETWEEN 60.0 AND 65.0)
OR (ra BETWEEN 140.0 and 145.0 AND decl BETWEEN 60.0 AND 65.0)
OR (ra BETWEEN 140.0 and 145.0 AND decl BETWEEN 55.0 AND 60.0)
OR (ra BETWEEN 145.0 and 150.0 AND decl BETWEEN 55.0 AND 60.0)
OR (ra BETWEEN 150.0 and 155.0 AND decl BETWEEN 55.0 AND 60.0)
OR (ra BETWEEN 135.0 and 140.0 AND decl BETWEEN 55.0 AND 60.0)
OR (ra BETWEEN 135.0 and 140.0 AND decl BETWEEN 50.0 AND 55.0)
OR (ra BETWEEN 140.0 and 145.0 AND decl BETWEEN 50.0 AND 55.0)
OR (ra BETWEEN 145.0 and 150.0 AND decl BETWEEN 50.0 AND 55.0)
OR (ra BETWEEN 135.0 and 140.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 140.0 and 145.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 130.0 and 135.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 130.0 and 135.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 135.0 and 140.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 140.0 and 145.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 130.0 and 135.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 135.0 and 140.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN 30.0 AND 35.0)
OR (ra BETWEEN 130.0 and 135.0 AND decl BETWEEN 30.0 AND 35.0)
OR (ra BETWEEN 135.0 and 140.0 AND decl BETWEEN 30.0 AND 35.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN 25.0 AND 30.0)
OR (ra BETWEEN 130.0 and 135.0 AND decl BETWEEN 25.0 AND 30.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN 20.0 AND 25.0)
OR (ra BETWEEN 120.0 and 125.0 AND decl BETWEEN 20.0 AND 25.0)
OR (ra BETWEEN 120.0 and 125.0 AND decl BETWEEN 15.0 AND 20.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN 15.0 AND 20.0)
OR (ra BETWEEN 120.0 and 125.0 AND decl BETWEEN 10.0 AND 15.0)
OR (ra BETWEEN 340.0 and 345.0 AND decl BETWEEN -10.0 AND -5.0)
OR (ra BETWEEN 340.0 and 345.0 AND decl BETWEEN -15.0 AND -10.0)
OR (ra BETWEEN 345.0 and 350.0 AND decl BETWEEN -15.0 AND -10.0)
OR (ra BETWEEN 340.0 and 345.0 AND decl BETWEEN -20.0 AND -15.0)
OR (ra BETWEEN 345.0 and 350.0 AND decl BETWEEN -20.0 AND -15.0)
OR (ra BETWEEN 350.0 and 355.0 AND decl BETWEEN -20.0 AND -15.0)
OR (ra BETWEEN 340.0 and 345.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 345.0 and 350.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 350.0 and 355.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 355.0 and 360.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 345.0 and 350.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 350.0 and 355.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 355.0 and 360.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 0.0 and 5.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 0.0 and 5.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 355.0 and 360.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 5.0 and 10.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 10.0 and 15.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 0.0 and 5.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 5.0 and 10.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 10.0 and 15.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 15.0 and 20.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 20.0 and 25.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 25.0 and 30.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 0.0 and 5.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 5.0 and 10.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 10.0 and 15.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 15.0 and 20.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 20.0 and 25.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 25.0 and 30.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 35.0 and 40.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 40.0 and 45.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 35.0 and 40.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 40.0 and 45.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 35.0 and 40.0 AND decl BETWEEN -55.0 AND -50.0)
) ORDER BY objectId