Sounds like you're being prompted for substitution variables, because part of your query has somethling like and col = 'AT&T'
- the ampersand is interpreted as a variable by default, and you're prompted for a value for &T
(or whataver your actual value is interpreted as).
You can add set define off
to your script to stop it looking for, and prompting for, a value when that is not what you want.
(The links are for SQL*Plus documentation, but much of that applies to SQL Developer as well; the documentation for that is a bit sparser),