• maybe this for the size requirement:

    WHERE

    (convert(varchar,((sys.dm_db_partition_stats.used_page_count*8)/1048576))>10)