SQL
x
set @dab_pageids := (
select GROUP_CONCAT(cl_from)
from categorylinks
where cl_to = "All_disambiguation_pages"
);
select * from categorylinks
inner join redirect on rd_from = cl_from
inner join page on page_namespace = rd_namespace and page_title = rd_title
where cl_to = "Redirects_connected_to_a_Wikidata_item"
and FIND_IN_SET(page_id, @dab_pageids)
limit 3;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.