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
JHernandez (WMF)
.
Toggle Highlighting
SQL
-- Getting results from commons joined the en wiki results from https://quarry.wmflabs.org/query/49931 -- We ask commons for the img_name's based on the enwiki query, and then with the results the application code -- will have to compare the sha1 (originally `ci.img_sha1 != wi.img_sha1`) or other cross-join conditions USE commonswiki_p; SELECT img_name FROM image INNER JOIN page ON page_title = img_name AND page_namespace = 6 LEFT JOIN templatelinks ON tl_from = page_id AND tl_namespace = 10 AND tl_title = 'Deletion_template_tag' WHERE img_name in ( -- img_name from the enwiki query, images uploaded last week (in this case 100 of them) "\"Love_Me_Again\"_single_cover_by_RAYE.jpg", "\"Nobody_but_You\"_music_video.jpg", "\"maryfrances\".webp", "'39_(1976_single).jpg", "'39_(Queen_song).mp3", "'BTBAS'_Title_Card.png", "'Usapang_Real_Life'_Title_card.png", "...And_a_Little_Pleasure.jpg", "1-ykD13vyoRxi_BYM4_pLqLQ.jpeg", "1._FC_Phönix_Lübeck_logo.png", "10,000_Maniacs_-_Our_Time_in_Eden.png", "100monoTobira.jpg", "101_Dalmatians_TV_Logo.png", "11RazonesAitana.jpeg", "121_Financial_Ballpark.jpg", "133rd_test_squadron_emblem.JPG", "180_george_street_parramatta.jpg", "1947PhotoOfShokler.jpg", "1950_Senior_Bowl_program_cover.jpg", "1968Sunflowers.jpg", "1968_Oklahoma_license_plate.jpg", "1974PeaceDoves.jpg", "1980SummerGarden.jpg", "1982PhotoOfGoldsteinInStudio.jpg", "1988_film_necromancer.jpg", "1990_AFL_Grand_Final_Logo.png", "1995_Delphi_Fact_Sheet.jpeg", "1999jlmdatelethon.jpg", "19_HMS-Dixie-Vodka-400_C.png", "1_Night_in_San_Diego.jpg", "2000_Vana_Ufan_Dhuvas.jpg", "2000and4Eva_-_Bree_Runway.jpg", "2012ArtistPhoto.jpg", "2014_The_Games_Award_Logo.jpg", "2014_University_of_New_Orleans_Basketball.png", "2015_Compressor_Logo.png", "2015_Final_Cut_Pro_Logo.png", "2015_Logic_Pro_Logo.png", "2015_Motion_Logo.png", "2016-10-28_Diffeo_team_winning_big_check_at_NGA_Disparate_Data_Challenge.jpg", "2017_European_Acrobatics_Championships.jpg", "2018-John-Souder-Memorial-Fund.jpg", "2018_World_Series_program.jpg", "2018_World_University_Wrestling_Championships_logo.png", "2019_Diffeo_Company_Meeting_at_Carahsoft.jpg", "2019_Ohio_License_Plate.jpg", "2019_Pegasus_cover.jpg", "2019_World_Cup_Snooker.jpg", "2019_World_Series_program.jpg", "2020-Pocono-350-Logo-Medium.png", "2020-Womens-t20-challenge.jpg", "2020-all-star-race-logo.jpg", "202011_1950_opportunity_way_reston_va_town_center_parkway.jpg", "2020_American_League_Championship_Series_logo.png", "2020_Basketball_Champions_League_Final_Eight_logo.png", "2020_Japan_Series_Logo.png", "2020_Korean_Series_Logo.png", "2020_Lanka_Premier_League.jpg", "2020_MAMA_Poster.jpg", "2020_MLR_Draft_logo.jpg", "2020_NHRA_Camping_World_logo.jpg", "2020_United_States_presidential_election_-_Percentage_of_votes_cast_for_Kanye_West_by_county.svg", "2020_United_States_presidential_election_-_Percentage_of_votes_cast_for_Kanye_West_by_county_2.svg", "2020_United_States_presidential_election_-_Percentage_of_votes_cast_for_Kanye_West_by_state.svg", "2020_United_States_presidential_election_in_Maryland_-_Percentage_of_votes_cast_for_Jerome_Segal_by_county.svg", "2020_WWE_Draft_poster.jpg", "2020–21_BCB_President's_Cup.jpg", "2020–21_Indian_Super_League_poster.png", "2021_CFP_Miami_logo.png", "2021_Dakar_Rally_logo.jpg", "2021_FCS_National_Championship_Game_logo.png", "2021_Open_Championship_logo.png", "2021_PGA_Championship_logo.png", "2021_U.S._Open_(golf)_logo.png", "2021_Women's_Rugby_World_Cup_Qualification.png", "2064_Read_Only_Memories_Cover_Art.png", "20_DAR_Cook-Out-Southern-500-4C.png", "20_–_En_jubileumssamling.jpg", "21_Martyrs_of_Libya.jpg", "21_x_21_Magic_Square_Shapes.png", "25_miles_to_kissimmee_line-up.jpg", "2_Chainz_--_So_Help_Me_God!.jpg", "2_Chainz_-_So_Help_Me_God!.gif", "2_in_a_Room-Wiggle_It.jpg", "30,000_Miles_Under_the_Sea_DVD_Cover.jpg", "310_Relay_titlecard.png", "3_Hudson_Boulevard.jpg", "3_Minute_Movies.jpg", "3_in_1_College_&_Pro_Football.jpg", "40_Sticks_Film.jpg", "4_Little_Girls.png", "4womeninblankets.jpg", "50th_Fiesta_Bowl_logo.jpeg", "51PANJ4FEWL.jpg", "53-Terrasson.jpg", "5th_Fleet_cover.jpg", "702_No_Doubt.jpg", "742_Clara_Street._Focus_of_Outbreak.jpg", "76_Days.jpg", "7BeerInchTitleCard.png" ) AND ct.tl_from IS NULL
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...