So i find out that in queries like this:
SELECT x.name, y.name FROM (select distinct name from demo) as x, (select distinct name from demo) as y
o