query state rows
select-count finished 1200
