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
Rlee0001
.
Toggle Highlighting
SQL
SELECT p.page_title, REGEXP_REPLACE(el_imdb.el_to, '.*/title/(tt[0-9]+).*', '\\1') AS imdb_id, REGEXP_REPLACE(el_bom.el_to, '.*id=([^\\.]+).htm.*', '\\1') AS box_office_mojo_id, REGEXP_REPLACE(el_rt.el_to, '.*/m/([^/?]+).*', '\\1') AS rotton_tomatoes_id FROM externallinks el_imdb INNER JOIN page p ON (p.page_id = el_imdb.el_from) INNER JOIN externallinks el_bom ON (el_bom.el_from = p.page_id) INNER JOIN externallinks el_rt ON (el_rt.el_from = p.page_id) WHERE p.page_namespace = 0 AND el_imdb.el_to LIKE '%://www.imdb.com/title/%' AND el_bom.el_to LIKE '%://www.boxofficemojo.com/movies/%' AND el_rt.el_to LIKE '%://www.rottentomatoes.com/m/%' 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...