query and conversion completed

better query for summary page
Please document the return type ("returns list of tuples with tree, status_str)")