{"id":2354,"date":"2021-07-19T19:26:20","date_gmt":"2021-07-19T19:26:20","guid":{"rendered":"https:\/\/wdqs-tutorial.toolforge.org\/?p=2354"},"modified":"2021-07-21T16:44:47","modified_gmt":"2021-07-21T16:44:47","slug":"modify-qualifier-exercise","status":"publish","type":"post","link":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/modifying-results-pt-br\/modify-qualifier-exercise\/?lang=pt-br","title":{"rendered":"Exerc\u00edcio"},"content":{"rendered":"\n<h4>| Exerc\u00edcio: Quais atrizes foram indicadas a mais de 3 Oscars, e quantas indica\u00e7\u00f5es elas receberam?<\/h4>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/\" style=\"width:100%;max-width:100%;height:450px\" frameborder=\"0\"><\/iframe>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">ver a resposta<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>Uma abordagem para este problema \u00e9 recuperar itens de mulheres que tenham &#8220;atriz&#8221; como ocupa\u00e7\u00e3o (ou uma subclasse de atriz, como &#8220;atriz de cinema&#8221;). E, ent\u00e3o, contar o n\u00famero de Oscars aos quais elas foram indicadas. Note, entretanto, que isso inclui todas as categorias de Oscars.<\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23%20Atrizes%20que%20foram%20indicadas%20a%20mais%20de%203%20Oscars%2C%20e%20a%20contagem%20de%20quantas%20indica%C3%A7%C3%B5es%20elas%20receberam%0A%0ASELECT%20%3Fatriz%20%3FatrizLabel%20%28COUNT%28DISTINCT%20%3FdeclaracaoPr%C3%AAmio%29%20AS%20%3Fcontagem%29%0AWHERE%20%7B%0A%20%20%3Fatriz%20wdt%3AP31%20wd%3AQ5%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20item%20%C3%A9%20uma%20inst%C3%A2ncia%20de%20ser%20humano...%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP21%20wd%3AQ6581072%3B%20%20%20%20%20%20%20%20%20%20%23%20...%20de%20sexo%20%2F%20g%C3%AAnero%20feminino%2C%20cuja%20...%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP106%2Fwdt%3AP279%2a%20wd%3AQ33999%3B%20%23%20...%20ocupa%C3%A7%C3%A3o%20seja%20atriz%2C%20ou%20uma%20subclasse%20de%20atriz...%0A%20%20%20%20%20%20%20%20%20%20%20p%3AP1411%20%3FdeclaracaoPr%C3%AAmio.%20%20%20%20%23%20...%20e%20as%20indica%C3%A7%C3%B5es%20a%20pr%C3%AAmios%20do%20item%20ser%C3%A3o%20armazenadas%20em%20declaracaoPr%C3%AAmio.%0A%20%20%3FdeclaracaoPr%C3%AAmio%20ps%3AP1411%20%3Fpr%C3%AAmio.%20%20%20%20%23%20O%20valor%20da%20propriedade%20de%20declara%C3%A7%C3%A3o%20%28ps%29%20do%20n%C3%B3%20de%20declara%C3%A7%C3%A3o%20%C3%A9%20armazenado%20em%20%3Fpr%C3%AAmio%0A%20%20%3Fpr%C3%AAmio%20wdt%3AP31%20wd%3AQ19020.%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20%3Fpr%C3%AAmio%20%C3%A9%20uma%20inst%C3%A2ncia%20de%20%C3%93scar%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%22%20.%20%7D%0A%20%20%7D%0AGROUP%20BY%20%3Fatriz%20%3FatrizLabel%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Os%20resultados%20s%C3%A3o%20apresentados%20por%20atriz%0AHAVING%20%28%3Fcontagem%3E3%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Somente%20atrizes%20com%20mais%20de%203%20indica%C3%A7%C3%B5es%0AORDER%20BY%20DESC%28%3Fcontagem%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Em%20ordem%20decrescente%20de%20indica%C3%A7%C3%B5es\" style=\"width:100%;max-width:100%;height:450px\" frameborder=\"0\"><\/iframe>\n\n\n\n<p>Por exemplo, a atriz Emma Thompson foi nomeada ao Oscar de Melhor Roteiro, e Melhor Adapta\u00e7\u00e3o.<\/p>\n\n\n\n<p>Outra poss\u00edvel abordagem seria olhar as vencedoras de &#8220;Oscar de Melhor Atriz&#8221;, e &#8220;Oscar de Melhor Atriz Coadjuvante&#8221;:<\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23%20Atrizes%20que%20foram%20indicadas%20a%20mais%20de%203%20Oscars%2C%20e%20a%20contagem%20de%20quantas%20indica%C3%A7%C3%B5es%20elas%20receberam%0A%0ASELECT%20%3Fatriz%20%3FatrizLabel%20%28COUNT%28DISTINCT%20%3FdeclaracaoPr%C3%AAmios%29%20AS%20%3Fcontagem%29%0AWHERE%20%7B%0A%20%20%3Fatriz%20wdt%3AP31%20wd%3AQ5%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20item%20%C3%A9%20uma%20inst%C3%A2ncia%20de%20ser%20humano...%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP21%20wd%3AQ6581072%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20...%20de%20sexo%20%2F%20g%C3%AAnero%20feminino%2C%20e%20...%0A%20%20%20%20%20%20%20%20%20%20%20p%3AP1411%20%3FdeclaracaoPr%C3%AAmios.%20%20%20%20%20%20%23%20as%20indica%C3%A7%C3%B5es%20a%20pr%C3%AAmios%20que%20%3Fitem%20recebeu%20s%C3%A3o%20armazenadas%20em%20%3FdeclaracaoPr%C3%AAmios%0A%20%20%7B%3FdeclaracaoPr%C3%AAmios%20ps%3AP1411%20wd%3AQ103618.%7D%20%20%20%20%20%20%20%20%20%23%20O%20valor%20da%20propriedade%20de%20declara%C3%A7%C3%A3o%20%28ps%29%20do%20n%C3%B3%20de%20declara%C3%A7%C3%A3o%20%C3%A9%20%22Oscar%20de%20melhor%20Atriz%22%20%20%20%20%20%20%20%0A%20%20UNION%20%7B%3FdeclaracaoPr%C3%AAmios%20ps%3AP1411%20wd%3AQ106301.%20%7D%20%20%23%20...%20ou%20%22Oscar%20de%20Melhor%20Atriz%20Coadjuvante%22%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%22%20.%20%7D%0A%20%20%7D%0AGROUP%20BY%20%3Fatriz%20%3FatrizLabel%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20os%20resultados%20s%C3%A3o%20apresentados%20por%20atriz%0AHAVING%20%28%3Fcontagem%3E3%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20somente%20atrizes%20com%20mais%20de%203%20indica%C3%A7%C3%B5es%0AORDER%20BY%20DESC%28%3Fcontagem%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20em%20ordem%20decrescente%20de%20indica%C3%A7%C3%B5es\" style=\"width:100%;max-width:100%;height:450px\" frameborder=\"0\"><\/iframe>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>| Exerc\u00edcio: Quais atrizes foram indicadas a mais de 3 Oscars, e quantas indica\u00e7\u00f5es elas receberam?<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/2354"}],"collection":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/comments?post=2354"}],"version-history":[{"count":2,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/2354\/revisions"}],"predecessor-version":[{"id":2448,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/2354\/revisions\/2448"}],"wp:attachment":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/media?parent=2354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/categories?post=2354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/tags?post=2354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}