depts = {
'American Decorative Arts':'https://www.metmuseum.org/about-the-met/curatorial-departments/the-american-wing',
'Ancient Near Eastern Art':'https://www.metmuseum.org/about-the-met/curatorial-departments/ancient-near-eastern-art',
'Arms and Armor':'https://www.metmuseum.org/about-the-met/curatorial-departments/arms-and-armor',
'Arts of Africa: Oceania, and the Americas':'https://www.metmuseum.org/about-the-met/curatorial-departments/art-of-africa-oceania-and-the-americas',
'Asian Art':'https://www.metmuseum.org/about-the-met/curatorial-departments/asian-art',
'Drawings and Prints':'https://www.metmuseum.org/about-the-met/curatorial-departments/drawings-and-prints',
'Egyptian Art':'https://www.metmuseum.org/about-the-met/curatorial-departments/egyptian-art',
'European Paintings':'https://www.metmuseum.org/about-the-met/curatorial-departments/european-paintings',
'European Sculpture and Decorative Arts':'https://www.metmuseum.org/about-the-met/curatorial-departments/european-sculpture-and-decorative-arts',
'Greek and Roman Art':'https://www.metmuseum.org/about-the-met/curatorial-departments/greek-and-roman-art',
'Islamic Art':'https://www.metmuseum.org/about-the-met/curatorial-departments/islamic-art',
'Medieval Art':'https://www.metmuseum.org/about-the-met/curatorial-departments/medieval-art-and-the-cloisters',
'Modern and Contemporary Art':'https://www.metmuseum.org/about-the-met/curatorial-departments/modern-and-contemporary-art',
'Musical Instruments':'https://www.metmuseum.org/about-the-met/curatorial-departments/musical-instruments',
'Photographs':'https://www.metmuseum.org/about-the-met/curatorial-departments/european-paintings',
'Robert Lehman Collection':'https://www.metmuseum.org/about-the-met/curatorial-departments/the-robert-lehman-collection',
'The Libraries':'https://www.metmuseum.org/art/libraries-and-research-centers'
}

# 'The Costume Institute':'https://www.metmuseum.org/about-the-met/curatorial-departments/the-costume-institute',

statements='''
CREATE
LAST|Len|"{}"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"{}"
'''

subsidiary_statements='''
Q160236|P355|{}
'''

deptqnumbers=[
'Q1138030',
'Q16729216',
'Q67087093',
'Q67429123',
'Q67429126',
'Q67429127',
'Q67429128',
'Q67429130',
'Q67429132',
'Q67429133',
'Q67429134',
'Q67429136',
'Q67429137',
'Q67429139',
'Q67429140',
'Q67429142',
'Q67429143',
'Q67429146',
'Q67429147',
'Q67429148'
]

for key in depts:
    #print (key, depts[key])
    print (statements.format(key,depts[key]))

for key in deptqnumbers:
    print (subsidiary_statements.format(key))
CREATE
LAST|Len|"American Decorative Arts"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/the-american-wing"


CREATE
LAST|Len|"Ancient Near Eastern Art"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/ancient-near-eastern-art"


CREATE
LAST|Len|"Arms and Armor"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/arms-and-armor"


CREATE
LAST|Len|"Arts of Africa: Oceania, and the Americas"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/art-of-africa-oceania-and-the-americas"


CREATE
LAST|Len|"Asian Art"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/asian-art"


CREATE
LAST|Len|"Drawings and Prints"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/drawings-and-prints"


CREATE
LAST|Len|"Egyptian Art"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/egyptian-art"


CREATE
LAST|Len|"European Paintings"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/european-paintings"


CREATE
LAST|Len|"European Sculpture and Decorative Arts"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/european-sculpture-and-decorative-arts"


CREATE
LAST|Len|"Greek and Roman Art"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/greek-and-roman-art"


CREATE
LAST|Len|"Islamic Art"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/islamic-art"


CREATE
LAST|Len|"Medieval Art"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/medieval-art-and-the-cloisters"


CREATE
LAST|Len|"Modern and Contemporary Art"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/modern-and-contemporary-art"


CREATE
LAST|Len|"Musical Instruments"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/musical-instruments"


CREATE
LAST|Len|"Photographs"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/european-paintings"


CREATE
LAST|Len|"Robert Lehman Collection"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/about-the-met/curatorial-departments/the-robert-lehman-collection"


CREATE
LAST|Len|"The Libraries"
LAST|Den|"curatorial department of The Metropolitan Museum of Art in New York, USA"
LAST|P31|Q61781831
LAST|P749|Q160236
LAST|P856|"https://www.metmuseum.org/art/libraries-and-research-centers"


Q160236|P355|Q1138030


Q160236|P355|Q16729216


Q160236|P355|Q67087093


Q160236|P355|Q67429123


Q160236|P355|Q67429126


Q160236|P355|Q67429127


Q160236|P355|Q67429128


Q160236|P355|Q67429130


Q160236|P355|Q67429132


Q160236|P355|Q67429133


Q160236|P355|Q67429134


Q160236|P355|Q67429136


Q160236|P355|Q67429137


Q160236|P355|Q67429139


Q160236|P355|Q67429140


Q160236|P355|Q67429142


Q160236|P355|Q67429143


Q160236|P355|Q67429146


Q160236|P355|Q67429147


Q160236|P355|Q67429148