Q:

Range of numbers

Came over a similar problem in a project I'm working on and found it quite hard to solve it without excesive use of if. I'm eager to see if anyone can come up with more elegant solutions to this, with the aribitary numbers I have given to the line segments.
The problem
You are given two integers that act like the end points of a line segment. Determine what existing line segments this line will overlap with. 
Intervals / line segments
The other lines, named Q, W, E, R and T, are as following:
Q:   0 -   7
W:   8 -  18
E:  19 -  32
R:  33 - 135
T: 136 - 

The last one, T, starts at 136 and has no end point.
Example
Given the numbers 5 and 27, the line will overlapp with Q, W and E. This can be roughly illustrated like this:
    Q  W   E       R           T 
---+--+---+-------+-----------+-----
   0  7   18      32         135

     +---------+
     5         27

  (somewhat arbitrary scale)

Input
Two integers from stdin.
Output
A String containing the names of the lines that our new line overlap with, for instance in the example above QWE.
Rules
Shortest code.

A:

APL (39)
'QWERT'/⍨1↓⊃≠/1 0⌽¨0,¨0 7 18 32 135∘<¨⎕

Takes input as two whitespace-separated numbers.
Explanation:

0 7 18 32 135∘<¨⎕: For each number in the input, see if 0, 7, 18, 32, and/or 135 is smaller than the number. If the input was 5 27 we now have (1 0 0 0 0) (1 1 1 0 0). (The first one is taken to be the start of the line and the second one the end).
1 0⌽¨0,¨: Prefix a zero to each of those lists and rotate the first one left by 1. (We now have (1 0 0 0 0 0) (0 1 1 1 0 0)).
≠/: Gives a list where the individual items of the two input lists were not equal. (We now have 1 1 1 1 0 0).
1↓⊃: Remove the first item from this list. The other five stand for whether or not to display a Q, W, E, R or T.
'QWERT'/⍨: For each letter, output N of those letters, where N is the corresponding value in the list on the right. Since the list was 1 1 1 0 0 the answer is QWE.

A:

Python 82 84
There you are. Edit: Fixed for inputs like -1 10 and -10 -1 for 2 chars
z=lambda a:(a>7)+(a>18)+(a>32)+(a>135)+1
a,b=input()
print"QWERT"[z(a)-1:z(b)*(b>0)]

A:

GolfScript (43 32 30 chars)
Contains escape characters. As a hex dump:
00000000  7e 29 27 51 08 57 0b 45  0e 52 67 27 32 2f 7b 29  |~)'Q.W.E.Rg'2/{)|
00000010  2a 7d 25 27 54 27 32 24  2a 2b 3c 3e 2e 26        |*}%'T'2$*+<>.&|

Base-64 encoded:
fiknUQhXC0UOUmcnMi97KSp9JSdUJzIkKis8Pi4m

Using bold to indicate escape characters:
~)'Q^HW^KE^NRg'2/{)*}%'T'2$*+<>.&
Thanks to Howard for the suggestion to use escape characters.

