CREATE TABLE "notes" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "first_elected" text
);

Question: What state has Richard Foster as a member?
SQL: SELECT "state" FROM "notes" WHERE "member"='richard foster';

Question: Which member has Cook as the electorate?
SQL: SELECT "member" FROM "notes" WHERE "electorate"='cook';