CREATE TABLE table_1284347_2 (distance VARCHAR2, race VARCHAR2)

How many races is different distances does Rosehill Guineas compete in?
SELECT COUNT(distance) FROM table_1284347_2 WHERE race = "Rosehill Guineas"
SELECT COUNT("distance") FROM "table_1284347_2" WHERE "Rosehill Guineas" = "race"