Modified sql.