what is the {astronomical filter} for {Pinwheel Galaxy} has {apparent magnitude} as {8.31} ?
Which astronomical filter for Pinwheel Galaxy has an apparent magnitude of 8.31?
What is the astronomical filter for Pinwheel Galaxy which has an apparent magnitude of 8.31?
SELECT ?m WHERE { resource:Pinwheel_Galaxy property:apparent_magnitude ?w . ?w property:astronomical_filter ?m . FILTER ( CONTAINS ( ?r , '8.31' ) ) . ?w property:apparent_magnitude ?r }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q14371> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1215> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <8.31> .
?statement <http://www.wikidata.org/entity/P1227> ?value. 
} 

SELECT ?value WHERE { wd:Q14371 p:P1215 ?s . ?s ps:P1215 ?x filter(contains(?x , '8.31')) . ?s pq:P1227 ?value}