Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select
  2.     count(*), page_namespace, page_title
  3. from
  4.     pagelinks
  5. inner join
  6.     (select * from page inner join categorylinks on cl_from=page_id where cl_to='English_language_movies') as foo on pl_from=foo.page_id
  7. where
  8.     (pl_title, pl_namespace) in (select page_title, page_namespace from page inner join categorylinks on cl_from=page_id where cl_to='English_language_movies')
  9.     and page_namespace=0 group by page_title, page_namespace order by count desc limit 10;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement