Added query which get multiple instances of a model using a given sql.