This is a nice and interesting project!<p>Obviously, I had to do it for HN:<p><pre><code>    {
      page(url:&quot;https:&#x2F;&#x2F;news.ycombinator.com&quot;) {
        items: query(selector:&quot;tr.athing&quot;) {
          rank: text(selector:&quot;td span.rank&quot;)
          title: text(selector:&quot;td.title a&quot;)
          site: text(selector:&quot;span.comhead a&quot;)
          url: attr(selector:&quot;td.title a&quot;, name:&quot;href&quot;)
          attrs: next {
            score: text(selector:&quot;span.score&quot;)
            user: text(selector:&quot;a:eq(0)&quot;)
            comments: text(selector:&quot;a:eq(2)&quot;)
          }
        }
      }
    }
</code></pre>
In order to do that, I had to fork to add the support for &quot;next&quot; which will retrieve the immediately following sibling (ala jQuery), due to how HN is structured as table rows.