Updated the ProvenanceQueryDialog.

This commit adds some functionality to the dialog.