How to show block on pages with URLs containing a question mark ( 'searchquery' )?
You can use the Block Conditional Visibility by URI Query Parameters module to control block visibility via query string.


  Controls block visibility by URI Query Parameters. Drupal natively allows blocks to be placed on pages by using their paths, however, this module allows administrators to also display modules based on url query parameters.