User:Higa4

 { "type": "ExternalData", "service": "page", "title": "Sandbox/higa4/sinobazunoike.map" }

 { "type": "ExternalData", "service": "geoshape", "query": "PREFIX rdfs:  PREFIX p:  PREFIX pq:  PREFIX ps:  PREFIX wd:  PREFIX wikibase: 

SELECT ?id ?idLabel ?url WHERE { ?id p:P856 ?rank. ?rank a wikibase:BestRank ; ps:P856 ?url ; pq:P642 wd:Q309901. SERVICE wikibase:label { bd:serviceParam wikibase:language 'ja'. ?id rdfs:label ?idLabel. } } " }

 { "type": "ExternalData", "service": "geoshape", "query": " SELECT ?id WHERE {   ?id wdt:P31/wdt:P279* wd:Q1054813.  ?id wdt:P131 wd:Q80011 .  SERVICE wikibase:label {    bd:serviceParam wikibase:language 'ja' .    ?id rdfs:label ?stateLabel .  }  OPTIONAL {  } } GROUP BY ?id ?stateLabel limit 50 "}

 { "type": "ExternalData", "service": "geoshape", "query": " SELECT ?id ?head (SAMPLE(?img) as ?img)   (concat(, ?headLabel, ) as ?title)  (concat(?stateLabel, '\\n', '') as ?description) WHERE {    ?id wdt:P31/wdt:P279* wd:Q1054813.  ?id wdt:P6 ?head .  SERVICE wikibase:label {    bd:serviceParam wikibase:language 'ja' .    ?head rdfs:label ?headLabel .    ?id rdfs:label ?stateLabel .  }  OPTIONAL {    ?head wdt:P18 ?img .  }  ?link schema:about ?head .  ?link schema:isPartOf  . } GROUP BY ?id ?head ?headLabel ?link ?stateLabel limit 50 "}  { "type": "ExternalData", "service": "geoshape", "ids": "Q170616" }
 * 1)  (min(?partyId) as ?party)
 * 2)  (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill)
 * 1)  ?head wdt:P102 ?party.
 * 2)  BIND(if(?party = wd:Q327591, '0', if(?party = wd:Q232595, '1', '2')) as ?partyId)

 { "type": "ExternalData", "service": "geoshape", "query": " SELECT ?id ?head (SAMPLE(?img) as ?img)   (min(?partyId) as ?party)   (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill)  (concat(, ?headLabel, ) as ?title)  (concat(?stateLabel, '\\n', '') as ?description) WHERE {    ?id wdt:P31 wd:Q50337 .  ?id wdt:P6 ?head .  ?head wdt:P102 ?party .  BIND(if(?party = wd:Q327591, '0', if(?party = wd:Q232595, '1', '2')) as ?partyId)   SERVICE wikibase:label {    bd:serviceParam wikibase:language 'ja' .    ?head rdfs:label ?headLabel .    ?id rdfs:label ?stateLabel .  }  OPTIONAL {    ?head wdt:P18 ?img .  }  ?link schema:about ?head .  ?link schema:isPartOf  . } GROUP BY ?id ?head ?headLabel ?link ?stateLabel limit 50 "}