CREATE TABLE "resident_heads_of_missions" (
  "mission" text,
  "location" text,
  "type" text,
  "head_of_mission" text,
  "position" text,
  "list" text
);

Question: what is the mission when the location is rome?
SQL: SELECT "mission" FROM "resident_heads_of_missions" WHERE "location"='rome';

Question: what is the mission when the head of mission is pedro blandino?
SQL: SELECT "mission" FROM "resident_heads_of_missions" WHERE "head_of_mission"='pedro blandino';

Question: what is the location when the type is embassy and the head of mission is josé manuel castillo?
SQL: SELECT "location" FROM "resident_heads_of_missions" WHERE "type"='embassy' AND "head_of_mission"='josé manuel castillo';

Question: what is the location when the type is embassy and the mission is panama?
SQL: SELECT "location" FROM "resident_heads_of_missions" WHERE "type"='embassy' AND "mission"='panama';

Question: what is the mission when the location is brasilia?
SQL: SELECT "mission" FROM "resident_heads_of_missions" WHERE "location"='brasilia';

Question: what is the type when the position is ambassador and the location is rabat?
SQL: SELECT "type" FROM "resident_heads_of_missions" WHERE "position"='ambassador' AND "location"='rabat';