On AbuseFilter workboard we have some tasks blocked by the need of a database queries. In fact, in those tasks we're changing rules syntax and this requires that at the moment of the change some things shouldn't be used anywhere.
List of queries
SELECT af_id FROM abuse_filter WHERE af_pattern RLIKE '(context|(global|local)_log_ids) *:='
SELECT af_id FROM abuse_filter WHERE af_pattern RLIKE 'string\\(|\\\\n[\'"]'
SELECT af_id FROM abuse_filter WHERE af_pattern RLIKE 'article_(text|prefixedtext|articleid|restrictions_(edit|move|create|upload)|(recent|first)_contributor)|moved_(to|from)_(text|prefixedtext|articleid)'
And for T47301, only for thwiki we'd need the data in text table with old_id = 4626692, but that could be done with fetchText.php.
For all of these queries (apart from the last one), we'd need the wikiID where the filter is, together with filter IDs where a specific problem is found. Many thanks.