Select all unresolved object in a specified region with cuts on attributes

[Common Queries]

SELECT objectId
FROM   Object
WHERE  areaSpec_box(:raMin, :declMin, :raMax, :declMax)
  AND  extendedParameter < 0.2
  AND  gMag-rMag > :grThreshold
  AND  (muRa * muRa + muDecl * muDecl) < :properMotionThreshold
  AND  redshift BETWEEN :z1 AND :z2

Origin: suggested by the LSST Science Collaboration (Stellar Populations)