Let's say all articles on the Polish Wikipedia with template "Meteoryt infobox" are about a meteorite. Many of them do not have any P31. Let's fix that:
# Museums around me that are open right now
SELECT ?place ?location ?distance ?placeLabel WHERE {
# Museums
?place p:P31/ps:P31/wdt:P279* wd:Q33506.
# Open today
# TODO
# Open today at now's time
# TODO
# Around me
SERVICE wikibase:around {
?place wdt:P625 ?location .
bd:serviceParam wikibase:center "Point(-122.399523 37.786952)"^^geo:wktLiteral .
bd:serviceParam wikibase:radius "1" .
bd:serviceParam wikibase:distance ?distance .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?distance LIMIT 10