The error "The Name '' is not valid. Names should start with a letter and can only contain..." is from the domain model. As the Use Response button try to create new entity based on your query.
I don see your full query, but i can see that the name of your table after the FROM statement starts with '[' and you cannot create an entity with that character at the beginning.
Try to modify your SQL query by removing the [ ] characters.