Build a blocks_to_rowrecs_q() control table that specifies a pivot (query based, takes name of table).
Useful links