"Compared to most other devs I work with, 7 or sometimes 8. Compared to people who do SQL for a living, possibly a 4, or a 5 if I'm feeling cocky. It all depends on what the '10' really represents - the best of the best, or the best of the people I'd be working with."
Well, something like that. That last bit - I've said it more tactfully in the past.
Said wrongly, it implies that the company has crap people working at it, and that's generally not a way to get hired. But most companies know they're not getting the 'best of the best' when they hire - they're getting the best they can afford in their geographic area during a certain time frame.
If you answered 10, you just might find Guido or Josh Bloch on your interview panel.
Has there ever been a great company or great interviewer who would seriously ask this question?