-- ERROR:  failed to build any 5-way joins
select 1 from
  (select sample_37.surface as c0
          from
            public.shighway as sample_37
          where sample_37.name >= sample_37.surface) as subq_17
      right join public.equipment_r as sample_42
        inner join pg_catalog.pg_user as ref_48
        on (sample_42.hobby = ref_48.passwd )
      on (subq_17.c0 = ref_48.passwd )
    left join (select
          sample_43.b as c0,
          sample_43.b as c1
        from
          public.rtest_nothn1 as sample_43
        where sample_43.b ~<=~ sample_43.b) as subq_18
    on (subq_17.c0 = subq_18.c0 ),
  lateral (select subq_18.c1 as c0
      from
        public.test_storage as sample_44
      where subq_18.c1 <= subq_18.c0
      fetch first 57 rows only) as subq_19
where sample_42.hobby ~>~ subq_19.c0;

-- ERROR:  failed to build any 7-way joins
select 1 from
  (select
	    sample_30.age as c0,
	    sample_30.age as c1,
	    sample_30.name as c2,
	    sample_30.age as c3
	  from
	    public.student as sample_30
	  where sample_30.name !~ sample_30.name) as subq_21
      inner join public.onek2 as ref_37
      on (subq_21.c1 = ref_37.unique1 )
    right join (select
	      ref_87.id1 as c0
	    from
	      public.num_exp_sub as ref_87
	    where ref_87.expected > ref_87.expected) as subq_35
	right join public.dropcolumnanother as sample_89
	  right join information_schema.element_types as ref_91
	  on (sample_89.d = ref_91.character_maximum_length )
	on (subq_35.c0 = ref_91.character_maximum_length )
      left join pg_catalog.pg_conversion as sample_90
      on (sample_89.e = sample_90.conforencoding )
    on (subq_21.c3 = subq_35.c0 ),
  lateral (select
	sample_89.d as c0,
	ref_91.collection_type_identifier as c1,
	sample_90.connamespace as c2
      from
	public.d_star as sample_91
      where subq_21.c2 >= subq_21.c2
      limit 1) as subq_36
where subq_36.c2 >= sample_90.conowner;
