Puedes declararte unas constantes con las consultas (si estas son fijas) o bien montarlas en tiempo de ejecución o, incluso, dejarlas escritas en diseño en la propiedad SQL del TQuery
Aquí te pongo algún ejemplo a ver si te sirve
Código Delphi
[-]
Query.SQL.Clear;
Query.SQL.Add('select * from tabla');
Query.SQL.Add('WHERE id > 6');
try
Query.Open;
if Query.IsNull then
else
except
end;
Código Delphi
[-]
const
SQL1 = 'select * from tabla where condicion =
aram';
.....
begin
Query.SQL.Text := SQL1;
Query.ParamByName('param').AsInteger := 6;
try
Query.Open;
if Query.IsNull then
else
except
end;
end;
Espero que los ejemplos te sirvan