What is the {country} with the {MAX(nominal GDP)} whose {member of} is {International Centre for Settlement of Investment Disputes}  ?
Name the country that has the most GDP AND is also a member of the International Centre for Settlement of Investment Disputes.
What country that is a member of the International Centre for Settlement of Investment Disputes has the most GDP?
SELECT ?m WHERE { ?m property:member_of resource:International_Centre_for_Settlement_of_Investment_Disputes . ?m property:nominal_GDP ?s . ?m rdf:type ontology:country }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6256>.

?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/P2131>.
?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/P463> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q899770> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q6256 . ?ent wdt:P2131 ?obj . ?ent wdt:P463 wd:Q899770 } ORDER BY DESC(?obj)LIMIT 5 
Kingdom of the Netherlands Denmark Czech Republic