Enable "when" queries for bills and resolutions.

Fixes #6780