CREATE TABLE "losers_knockout" (
  "home_1st_leg" text,
  "home_2nd_leg" text,
  "1st_leg" text,
  "2nd_leg" text,
  "aggregate" text
);

Question: If the aggregate is 3-4, what is the first leg?
SQL: SELECT "home_1st_leg" FROM "losers_knockout" WHERE "aggregate"='3-4';

Question: If the second leg is Instituto, what is the total number of aggregate?
SQL: SELECT COUNT("aggregate") FROM "losers_knockout" WHERE "home_2nd_leg"='Instituto';

Question: If the second leg is 1-1, what is the first leg?
SQL: SELECT "home_1st_leg" FROM "losers_knockout" WHERE "2nd_leg"='1-1';

Question: If the second leg is 3-2, what is the first leg?
SQL: SELECT "home_1st_leg" FROM "losers_knockout" WHERE "2nd_leg"='3-2';

Question: If the second leg is 1-1, what is the first leg?
SQL: SELECT "1st_leg" FROM "losers_knockout" WHERE "2nd_leg"='1-1';