The method is construct_finder_sql(options) (lib/active_record/base.rb:1681) you will have to use __send__ because it is private.

Nice for use in IRB / testing small queries