This query is marked as a draft This query has been published by IKhitron.

SQL

AخA
 
use hewiki_p;
select el_to as adress, replace(page_title, "_", " ") as page from externallinks inner join page
on el_from = page_id
and page_namespace = 0
and (substr(el_to, 1,locate('/',el_to, 9)) like '%/m.%/%'
or substr(el_to, 1,locate('/',el_to, 9)) like '%.m.%/%'
or substr(el_to, 1,locate('/',el_to, 9)) like '%/mobile.%/%' 
or substr(el_to, 1,locate('/',el_to, 9)) like '%.mobile.%/%')
and not locate(".maariv.", el_to ,1)
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.

Checking query status...