Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
لوقا
.
Toggle Highlighting
SQL
/* select count(distinct page.page_title) from pagelinks inner join page on page.page_id = pagelinks.pl_from where pl_namespace in (100) and pl_title like "Trains" and pl_from_namespace in (1,0) */ /* select * from langlinks #here ll_lang like "ar" where ll_from in (11729) and ll_lang like "ar" */ /* select page.page_title from page where page_title in ( select distinct page.page_title from pagelinks inner join page on page.page_id = pagelinks.pl_from where pl_namespace in (100) and pl_title like "Trains" and pl_from_namespace in (1,0) ) and page.page_namespace in (0) and page.page_id in ( select ll_from from langlinks where ll_lang like "ar" ) limit 10 */ SELECT DISTINCT page.page_title FROM page JOIN pagelinks ON page.page_id = pagelinks.pl_from WHERE page.page_namespace = 0 AND LOCATE('Trains', page.page_title) > 0 AND pagelinks.pl_namespace = 100 AND pagelinks.pl_title = 'Trains' AND EXISTS ( SELECT 1 FROM langlinks WHERE langlinks.ll_from = page.page_id AND langlinks.ll_lang = 'ar' ) LIMIT 10;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...