Have your fun ...
test1=> create table t2 (id int, n varchar(64), v varchar(64));
CREATE
test1=> insert into t2 values (1, 'a', 'A');
INSERT 263829 1
test1=> insert into t2 values (1, 'c', 'C');
INSERT 263830 1
test1=> insert into t2 values (1, 'b', 'B');
INSERT 263831 1
test1=> select * from t2;
id | n | v
----+---+---
1 | a | A
1 | c | C
1 | b | B
(3 rows)
test1=> create table t1 (id int, s varchar(64));
CREATE
test1=> insert into t1 values (1, 'Hello');
INSERT 263842 1
test1=> select t1.s, a.v, b.v, c.v from t1, t2 a, t2 b, t2 c where t1.id=1 and (a.id = t1.id and a.n = 'a') and (b.id = t1.id and b.n='b') and (c.id = t1.id and c.n='c');
s | v | v | v
-------+---+---+---
Hello | A | B | C
(1 row)