in
objects
where
the query is * and the on_display is false and the has_no_known_copyright is false and the location is united and the medium_id is 51496357 and the type_id is 35251739 and the width is 100-500 and the height is 100-500
that have images.