What is the {G-type main-sequence star} with the {MIN(metallicity)} whose {child astronomical body} is {348407 Patkosandras}  ?
What is the G-type main sequence star with the least metallicity who has a child astronomical body of 348407 Patkosandras?
select ?ent where { ?ent wdt:P31 wd:Q5864 . ?ent wdt:P2227 ?obj . ?ent wdt:P398 wd:Q18615985} ORDER BY ASC(?obj)LIMIT 5 
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5864>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2227>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P398> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q18615985> .

}
ORDER BY ASC(?obj1)
LIMIT 5
What is the G - type main sequence star with the least metallicity that has a 348407 Patkosandras child astronomical body?