Refer to this post. Use the query control plugin. Need to install manually or via BRAT (search “brat” in community plugins).