Adds rough draft of SELECT query to script.