CREATE TABLE "names_and_fleet_details" (
  "original_number" text,
  "uic_number" text,
  "name" text,
  "constructer" text,
  "constructor_number" real,
  "year" real,
  "withdrawn" text,
  "kilometers_worked" real
);

Question: When 19/05/2002 is the date of withdrawn what is the name?
SQL: SELECT "name" FROM "names_and_fleet_details" WHERE "withdrawn"='19/05/2002';

Question: When "virgen del perpetuo socorro" is the name what is the highest year?
SQL: SELECT MAX("year") FROM "names_and_fleet_details" WHERE "name"='\"Virgen del Perpetuo Socorro\"';

Question: When 2008 t is the original number what is the lowest year?
SQL: SELECT MIN("year") FROM "names_and_fleet_details" WHERE "original_number"='2008 T';

Question: When "virgen de gracia" is the name what is the date of withdrawn?
SQL: SELECT "withdrawn" FROM "names_and_fleet_details" WHERE "name"='\"Virgen de Gracia\"';

Question: When  9/07/1999 is the date of withdrawn what is the original number?
SQL: SELECT "original_number" FROM "names_and_fleet_details" WHERE "withdrawn"='9/07/1999';