First queries implementation