Table: giro_1982
Columns: date
course
distance
type
winner

Question: What is the distance for the team time trial?
SQL: SELECT "distance" FROM giro_1982 WHERE "type" = 'team time trial'

Question: What was the course on 13 may?
SQL: SELECT "course" FROM giro_1982 WHERE "date" = '13 may'

Question: What type has rest day as a course and was on 21 may?
SQL: SELECT "type" FROM giro_1982 WHERE "course" = 'rest day' AND "date" = '21 may'