Create hard_query