Table: tourofpoland_results
Columns: stage
winner
general_classification_ta_koszulka
mountains_classification_klasyfikacja_g_rska
intermediate_sprints_classification_klasyfikacja_najaktywniejszych
points_classification_klasyfikacja_punktowa
teams_classification

Question: What was the intermediate sprint classification for the race whose winner was Daniel Martin?
SQL: SELECT "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" FROM tourofpoland_results WHERE "winner" = 'Daniel Martin'

Question: Which teams classification winners had a general classification winner of Allan Davis?
SQL: SELECT "teams_classification" FROM tourofpoland_results WHERE "general_classification_ta_koszulka" = 'Allan Davis'

Question: Who won the points classification when the teams classification winner was Lampre-Farnese?
SQL: SELECT "points_classification_klasyfikacja_punktowa" FROM tourofpoland_results WHERE "teams_classification" = 'Lampre-Farnese'