SQL
AخA
SELECT CONCAT('[[',plwiki_p.page.page_title,']]') AS pl, CONCAT('[[:de:',dewiki_p.page.page_title,'|',dewiki_p.page.page_title,']]') AS de
FROM dewiki_p.page
JOIN plwiki_p.page
ON dewiki_p.page.page_title = plwiki_p.page.page_title
LEFT JOIN plwiki_p.langlinks
ON ll_from = plwiki_p.page.page_id
LEFT JOIN (SELECT * FROM plwiki_p.page_props WHERE pp_propname = 'wikibase_item') AS props
ON pp_page = plwiki_p.page.page_id
LEFT JOIN plwiki_p.templatelinks
ON tl_from = plwiki_p.page.page_id
WHERE plwiki_p.page.page_namespace = 0
AND plwiki_p.page.page_is_redirect = 0
AND dewiki_p.page.page_namespace = 0
AND dewiki_p.page.page_is_redirect = 0
AND ll_title IS NULL
AND pp_value IS NULL
AND plwiki_p.page.page_title NOT IN (
'Abel_Martínez','Ailill','Albert_Johnson','Aleksandr_Kostin','Alfonso_González','Alfred_Heinrich','Allan_Scott','Andrew_Green',
'Antigona','Arbela','Arleston','Historie','Horizontalism','Hydropolis','Ave','Ballarini','Basket','Biopreparat','Callum_Morris',
'Captain','Carl_Crawford','Charles_Barnes','Chicago_Stadium','Colin_Morris','Cyril_Cameron','Cássio_Oliveira','D35','Daniel_Zimmermann',
'Debir','Existence','Młynkowiec','Nie_zatrzymasz_mnie','Polonia_Świdnica','Styria','Stöckli','Thomas_Rowley','Thomas_Warner',
'Torbjörn_Johansson','Trevor_French','Tuya','Uath','Ulu_Wang_Jin','White_Heat','Wildflower','Wilhelm_Meyer','Workplace','Zahid_Khan',
'Bolama','Sing_Your_Song','Something_Personal','Spencer_Oliver','The_New_Tradition','Peter_Gibson','Pierre_Perret','Planchet','Promesa',
'Qana','Quién','Rachel_Thompson','Rafał_Sarnecki','Raging_Bull','Rahima','Real_Hero','Roberto_Acosta','Roger_Maxwell','Sancho_Martin',
'Savana','Seven_Lucky_Gods','The_Authority','Ulu','Wang_Jin','Þorsteinn_Þorsteinsson','Hurricane_Dean','Gerald_Meyer','David_Crabb',
'Danny_Hughes','Jeffrey_Harrison','John_Calvin','John_Thomas_Moore','Kyle_Russell','Paul_Keenan','Laurence_Jones','Luis_Sandoval',
'Dustin_Watten','Helena_Costa','Jacopo_Massari','Karolina_Goliat','Tom_Strohbach','Lauriane_Truchetet','Terence_Fisher',
'Mareike_Hindriksen','Renáta_Sándor','Rebecca_Pavan','Louise_Lamphere','Martijn_Colson','Martin_Kraus','Megan_Cyr','Melissa_Vargas',
'Michael_Wilde','Michelina_of_Pesaro','Nick_Capra','Nicolas_Rossard','Oliver_Venno','Patrick_Schmidt','ASJ_Soyaux','Muhammad_Salih',
'Mike_Clelland','Long_Mountain','Eduardo_Estrada','Esteban_Sánchez','Geira','Gerhardt','Happy_Returns','Hiraeth','Ibrahim_Ahmad',
'In_Awe','Isana','Jacob_Ross','Johnny_Guitar','Kameleon_2','Kapik','Khuru','Kinderszenen','Lal','Land_of_Gold','Les_Femmes','Lubich',
'Lunatique','Lur','Maqsood_Ahmed','Mr._DJ','Parsley','Payas','Taylor_Brown','24_Hours','Aku','Angel_in_Disguise','Angelo_Acciaiuoli',
'Azusa','Bazin','Bernartice_u_Trutnova','Bibliotheca_Mundi','Borys_Olijnyk','Braken','Bunda','Bělá_u_Staré_Paky',
'Chlumec_u_Českých_Budějovic','Cove_Island','Coya','Czech_Open','David_Griffith','Demonstration','Demon’s_Dance','Dietger_Hahn',
'Dubok','Eternal_Flame','ETV','Exempla','Fares','Festa','Fjalar','Fort_Ransom','FPL','Freefall','Frontschwein','Furier','GE_Money_Bank',
'Haft','HAR','Heinrich_Bußmann','Hermann_Fischer','Hlinsko_v_Čechách','Holder','Hostomice_pod_Brdy','Hořice_v_Podkrkonoší',
'Hradečná','Hrádek_u_Rokycan','Hrádek_u_Sušice','Iso_Rivolta','James_Crawford','Jelení_vrch','JK','John_Carr','Jonathan_Phillips',
'Jílové_u_Děčína','Karl_Weber','Kissin','Klaret','Konkurs','Lafon','Leeds_Carnegie','Lipová_u_Šluknova','Lípa_nad_Dřevnicí',
'Malé_Březno_nad_Labem','Manfred_Berger','Manners','Martin_Hamann','Mayan','Michael_Hutchinson','Mond','Mount_Dawson','Move_On',
'Nová_Ves_u_Českých_Budějovic','Nové_Město_nad_Cidlinou','Nové_Sedlo_u_Lokte','ONTV','Open_Space','Ostrov_nad_Ohří','Palmer_Island',
'Pantheon','Pappenheimer','Peter_Findeisen','Philippe_Chopin','Pischinger','Popovice_u_Rajhradu','Power_Play','Precious_Metal',
'Rag','Remarketing','Rivals','Rosice_u_Brna','Roztoky_u_Prahy','Rudná_u_Prahy','RWF','Sajan','Santander_Consumer_Bank',
'Sedlec_u_Mikulova','Serso','Shooter','Siegfried_Seifert','Střítež_u_Jihlavy','Taster','Troas','Tybee_Island','View','Vlkov_nad_Lužnicí',
'Volker','Vráž_u_Berouna','Weidel','Werbka','Werner_Lehmann','Wilhelm_Brix','Willy_Lehmann','Černovice_u_Chomutova','Černovice_u_Tábora',
'Švihov_u_Klatov','Artur_Majewski','Jan_Gericke','Rugi','Youssouf_Traoré','Dunajewski','Lumina'
)
AND NOT EXISTS
(SELECT * FROM plwiki_p.page_props AS disambig1
WHERE disambig1.pp_propname LIKE 'disambiguation'
AND disambig1.pp_page = plwiki_p.page.page_id)
AND NOT EXISTS
(SELECT * FROM dewiki_p.page_props AS disambig2
WHERE disambig2.pp_propname LIKE 'disambiguation'
AND disambig2.pp_page = dewiki_p.page.page_id)
GROUP BY dewiki_p.page.page_title, plwiki_p.page.page_title;
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.