Simple query builder.