Input query language in Panel, parse in template

I don’t really know if this is the best way to go about it, just found this looking for “query” in the source code.

But yes, provided your query returns pages:

$query = Kirby\Form\Options::query('site.find("notes").children');
$collection = new Pages(A::pluck($query, 'value'));
foreach ($collection as $item) {
  echo $item->title();
}

May I ask what’s your use case?