CREATE TABLE "eighthfinals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);

Question: Which 2nd leg has pamesa valencia for team #2?
SQL: SELECT "2nd_leg" FROM "eighthfinals" WHERE "team_num2"='pamesa valencia';

Question: What is the team #1 that has unics kazan for team #2?
SQL: SELECT "team_num1" FROM "eighthfinals" WHERE "team_num2"='unics kazan';

Question: What is the 1st leg that has akasvayu girona as team #2?
SQL: SELECT "1st_leg" FROM "eighthfinals" WHERE "team_num2"='akasvayu girona';