I was playing round the other night can came up with this SQL to solve a popular tongue twister:
COUNT(woodpile.is_chucked)
FROM
woodpile,
woodchuck
WHERE
woodchuck.can_chuck = 1
AND
woodpile.is_chucked = 1
Here is another one:
A couple more with the tongue twisters:
Which wristwatches are Swiss wristwatches?
Which witch wished which wicked wish?
Who washed Washington’s white woolen underwear
when Washington’s washer woman went west?
washer.name
FROM
washer
WHERE
washer.gender = ‘female’
AND
washer.went != ‘west’
AND
washer.washed = ‘underwear’
AND
washer.fabric = ‘wool’
AND
washer.washed_for = ‘Washington’

