This query is marked as a draft This query has been published by Zache.

SQL

x
 
SELECT t.page_id, t.page_title FROM (
SELECT 
   page_id, 
   page_title
FROM 
   page, 
   categorylinks as cl1
WHERE 
    cl1.cl_to="Images_from_Wiki_Loves_Monuments_2022_in_Finland" 
   AND page_id=cl1.cl_from
   AND page_namespace=6
) as t,
(
SELECT 
   page_id, 
   page_title
FROM 
   page, 
   categorylinks as cl1
WHERE 
    cl1.cl_to="Cultural_heritage_monuments_in_Finland_without_image_in_Wikidata" 
   AND page_id=cl1.cl_from
   AND page_namespace=6
) as tt
WHERE t.page_id=tt.page_id
#categorylinks as cl2
#WHERE
#    cl2.cl_to="Cultural_heritage_monuments_in_Finland_without_image_in_Wikidata"
#        AND page_id=cl2.cl_from
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.

Checking query status...