SELECT objectId,jd,ra,decl,fid,magpsf FROM candidates WHERE jd BETWEEN 2458735.559942 and 2458737.559942 AND
((ra BETWEEN 300.0 and 305.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 305.0 and 310.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 295.0 and 300.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 310.0 and 315.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 290.0 and 295.0 AND decl BETWEEN 45.0 AND 50.0)
OR (ra BETWEEN 290.0 and 295.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 295.0 and 300.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 300.0 and 305.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 305.0 and 310.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 310.0 and 315.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 285.0 and 290.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 280.0 and 285.0 AND decl BETWEEN 40.0 AND 45.0)
OR (ra BETWEEN 280.0 and 285.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 285.0 and 290.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 290.0 and 295.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 295.0 and 300.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 300.0 and 305.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 275.0 and 280.0 AND decl BETWEEN 35.0 AND 40.0)
OR (ra BETWEEN 275.0 and 280.0 AND decl BETWEEN 30.0 AND 35.0)
OR (ra BETWEEN 280.0 and 285.0 AND decl BETWEEN 30.0 AND 35.0)
OR (ra BETWEEN 285.0 and 290.0 AND decl BETWEEN 30.0 AND 35.0)
OR (ra BETWEEN 270.0 and 275.0 AND decl BETWEEN 30.0 AND 35.0)
OR (ra BETWEEN 270.0 and 275.0 AND decl BETWEEN 25.0 AND 30.0)
OR (ra BETWEEN 275.0 and 280.0 AND decl BETWEEN 25.0 AND 30.0)
OR (ra BETWEEN 280.0 and 285.0 AND decl BETWEEN 25.0 AND 30.0)
OR (ra BETWEEN 265.0 and 270.0 AND decl BETWEEN 25.0 AND 30.0)
OR (ra BETWEEN 265.0 and 270.0 AND decl BETWEEN 20.0 AND 25.0)
OR (ra BETWEEN 270.0 and 275.0 AND decl BETWEEN 20.0 AND 25.0)
OR (ra BETWEEN 275.0 and 280.0 AND decl BETWEEN 20.0 AND 25.0)
OR (ra BETWEEN 260.0 and 265.0 AND decl BETWEEN 20.0 AND 25.0)
OR (ra BETWEEN 265.0 and 270.0 AND decl BETWEEN 15.0 AND 20.0)
OR (ra BETWEEN 270.0 and 275.0 AND decl BETWEEN 15.0 AND 20.0)
OR (ra BETWEEN 260.0 and 265.0 AND decl BETWEEN 15.0 AND 20.0)
OR (ra BETWEEN 50.0 and 55.0 AND decl BETWEEN -5.0 AND 0.0)
OR (ra BETWEEN 50.0 and 55.0 AND decl BETWEEN -10.0 AND -5.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -10.0 AND -5.0)
OR (ra BETWEEN 50.0 and 55.0 AND decl BETWEEN -15.0 AND -10.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -15.0 AND -10.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -15.0 AND -10.0)
OR (ra BETWEEN 50.0 and 55.0 AND decl BETWEEN -20.0 AND -15.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -20.0 AND -15.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -20.0 AND -15.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -20.0 AND -15.0)
OR (ra BETWEEN 50.0 and 55.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -25.0 AND -20.0)
OR (ra BETWEEN 50.0 and 55.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -30.0 AND -25.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -35.0 AND -30.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 75.0 and 80.0 AND decl BETWEEN -40.0 AND -35.0)
OR (ra BETWEEN 55.0 and 60.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 75.0 and 80.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 80.0 and 85.0 AND decl BETWEEN -45.0 AND -40.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 75.0 and 80.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 80.0 and 85.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 85.0 and 90.0 AND decl BETWEEN -50.0 AND -45.0)
OR (ra BETWEEN 60.0 and 65.0 AND decl BETWEEN -55.0 AND -50.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -55.0 AND -50.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -55.0 AND -50.0)
OR (ra BETWEEN 75.0 and 80.0 AND decl BETWEEN -55.0 AND -50.0)
OR (ra BETWEEN 80.0 and 85.0 AND decl BETWEEN -55.0 AND -50.0)
OR (ra BETWEEN 85.0 and 90.0 AND decl BETWEEN -55.0 AND -50.0)
OR (ra BETWEEN 90.0 and 95.0 AND decl BETWEEN -55.0 AND -50.0)
OR (ra BETWEEN 65.0 and 70.0 AND decl BETWEEN -60.0 AND -55.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -60.0 AND -55.0)
OR (ra BETWEEN 75.0 and 80.0 AND decl BETWEEN -60.0 AND -55.0)
OR (ra BETWEEN 80.0 and 85.0 AND decl BETWEEN -60.0 AND -55.0)
OR (ra BETWEEN 85.0 and 90.0 AND decl BETWEEN -60.0 AND -55.0)
OR (ra BETWEEN 90.0 and 95.0 AND decl BETWEEN -60.0 AND -55.0)
OR (ra BETWEEN 95.0 and 100.0 AND decl BETWEEN -60.0 AND -55.0)
OR (ra BETWEEN 70.0 and 75.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 75.0 and 80.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 80.0 and 85.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 85.0 and 90.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 90.0 and 95.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 95.0 and 100.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 100.0 and 105.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 105.0 and 110.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 110.0 and 115.0 AND decl BETWEEN -65.0 AND -60.0)
OR (ra BETWEEN 75.0 and 80.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 80.0 and 85.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 85.0 and 90.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 90.0 and 95.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 95.0 and 100.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 100.0 and 105.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 105.0 and 110.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 110.0 and 115.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 115.0 and 120.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 120.0 and 125.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 130.0 and 135.0 AND decl BETWEEN -70.0 AND -65.0)
OR (ra BETWEEN 90.0 and 95.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 95.0 and 100.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 100.0 and 105.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 105.0 and 110.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 110.0 and 115.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 115.0 and 120.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 120.0 and 125.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 130.0 and 135.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 135.0 and 140.0 AND decl BETWEEN -75.0 AND -70.0)
OR (ra BETWEEN 115.0 and 120.0 AND decl BETWEEN -80.0 AND -75.0)
OR (ra BETWEEN 120.0 and 125.0 AND decl BETWEEN -80.0 AND -75.0)
OR (ra BETWEEN 125.0 and 130.0 AND decl BETWEEN -80.0 AND -75.0)
) ORDER BY objectId