query: #adapted from query by User:Matěj Suchánek
  SELECT ?item ?st ?sl ?ids (CONCAT("<","small>",str(?i),"/",str(?count),"</","small>") as ?offset)
  WITH { SELECT DISTINCT ?item        WHERE { ?item wdt:P31 wd:Q11424 . [] schema:about ?item ; schema:isPartOf <https://it.wikipedia.org/> . 
                                             ?item wikibase:statements ?st . FILTER(?st < 7 ) } } AS %all
  WITH { SELECT (COUNT(*) AS ?count)  WHERE { INCLUDE %all }  } AS %count
  WITH { SELECT (?item AS ?item2)     WHERE { INCLUDE %all }  } AS %all2
  WITH
  {
    SELECT ?item (SUM(?x) AS ?i)  WHERE  { INCLUDE %all . INCLUDE %all2 .
      BIND( IF( STR( ?item ) > STR( ?item2 ), 1, 0 ) AS ?x ) .
    } GROUP BY ?item
  } AS %main 
  WHERE
  {
    hint:Query hint:optimizer "None".
    INCLUDE %count .
    BIND(ROUND( ?count / 20) as ?slice ) BIND( ROUND(FLOOR( RAND() * ?count / 20 )) AS ?rnd) 
    INCLUDE %main .
    FILTER( ROUND( ( ?i/ ?slice - FLOOR( ?i / ?slice ) ) * ?slice ) = ?rnd)
    ?item wikibase:statements ?st; wikibase:sitelinks ?sl; wikibase:identifiers ?ids.
  }