{"id":1130,"date":"2020-02-18T15:46:57","date_gmt":"2020-02-18T15:46:57","guid":{"rendered":"http:\/\/wikidata.wwwnlsrc4.supercp.com\/?p=1130"},"modified":"2020-11-29T15:01:21","modified_gmt":"2020-11-29T15:01:21","slug":"modify-qualifier-exercise","status":"publish","type":"post","link":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/modifying-results\/modify-qualifier-exercise\/","title":{"rendered":"Exercise"},"content":{"rendered":"\n<h4>| Exercise: Which actresses were nominated for more than 3 Academy awards, and how many nominations did each have?<\/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\">show solution<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>One way to approach this question is to retrieve items of women who have &#8220;actor&#8221; as occupation (or a subclass thereof, such as &#8220;film actor&#8221;), and count the number of Academy Awards they have been nominated for. Note, however, that this includes all Academy Awards.<\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23%20Actresses%20that%20were%20nominated%20for%20more%20than%203%20Academy%20awards%2C%20and%20the%20count%20of%20nominations.%0A%0ASELECT%20%3Factress%20%3FactressLabel%20%28COUNT%28DISTINCT%20%3FawardStat%29%20AS%20%3Fcount%29%0AWHERE%20%7B%0A%20%20%3Factress%20wdt%3AP31%20wd%3AQ5%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Item%20is%20instance%20of%20human%20and...%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%23%20...is%20female%2C%20whose...%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP106%2Fwdt%3AP279%2a%20wd%3AQ33999%3B%20%20%23%20...occupation%20is%20actor%20or%20subclass%20thereof%20and...%0A%20%20%20%20%20%20%20%20%20%20%20p%3AP1411%20%3FawardStat.%20%20%20%20%20%20%20%20%20%20%20%20%23%20the%20item%27s%20award%20nominations%20collected%20by%20%3FawardStat%0A%20%20%3FawardStat%20ps%3AP1411%20%3Faward.%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20The%20value%20of%20the%20statement%20node%27s%20property%20statement%20%28ps%29%20is%20collected%20by%20%3Faward%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%3Faward%20wdt%3AP31%20wd%3AQ19020.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20%3Faward%20is%20an%20instance%20of%20Academy%20Award%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%22.%20%7D%0A%20%20%7D%0AGROUP%20BY%20%3Factress%20%3FactressLabel%20%20%20%20%20%20%20%20%20%20%23%20The%20results%20are%20shown%20per%20actress%0AHAVING%20%28%3Fcount%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%20Only%20actresses%20with%20more%20than%203%20nominations%0AORDER%20BY%20DESC%28%3Fcount%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20In%20descending%20order%20of%20number%20of%20nominations\" style=\"width:100%;max-width:100%;height:450px\" frameborder=\"0\"><\/iframe>\n\n\n\n<p>For example, actress Emma Thompson was also nominated for the Academy Award for Best Writing, Adapted Screenplay.<\/p>\n\n\n\n<p>Another approach is to look at the winners of the &#8220;Academy Award for Best Actress&#8221; and &#8220;Academy Award for Best Supporting Actress&#8221;:<\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23%20Actresses%20that%20were%20nominated%20for%20more%20than%203%20Academy%20awards%2C%20and%20the%20count%20of%20nominations.%0A%0ASELECT%20%3Factress%20%3FactressLabel%20%28COUNT%28DISTINCT%20%3FawardStat%29%20AS%20%3Fcount%29%0AWHERE%20%7B%0A%20%20%3Factress%20wdt%3AP31%20wd%3AQ5%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Item%20is%20instance%20of%20human%20and...%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...is%20female%20and...%0A%20%20%20%20%20%20%20%20%20%20%20p%3AP1411%20%3FawardStat.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20the%20item%27s%20award%20nominations%20collected%20are%20by%20%3FawardStat%0A%20%20%7B%3FawardStat%20ps%3AP1411%20wd%3AQ103618.%7D%20%20%20%20%20%20%20%20%20%23%20The%20value%20of%20the%20statement%20node%27s%20property%20statement%20%28ps%29%20is%20%22Academy%20Award%20for%20Best%20Actress%22...%20%20%20%20%20%20%20%20%20%0A%20%20UNION%20%7B%3FawardStat%20ps%3AP1411%20wd%3AQ106301.%20%7D%20%20%23%20...%20or%20%22Academy%20Award%20for%20Best%20Supporting%20Actress%22%0A%20%20%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%22.%20%7D%0A%20%20%7D%0AGROUP%20BY%20%3Factress%20%3FactressLabel%20%20%20%20%20%20%20%20%20%20%23%20The%20results%20are%20shown%20per%20actress%0AHAVING%20%28%3Fcount%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%20Only%20actresses%20with%20more%20than%203%20nominations%0AORDER%20BY%20DESC%28%3Fcount%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20In%20descending%20order%20of%20number%20of%20nominations\" 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>| Exercise: Which actresses were nominated for more than 3 Academy awards, and how many nominations did each have?<\/p>\n","protected":false},"author":1,"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\/1130"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/comments?post=1130"}],"version-history":[{"count":15,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/1130\/revisions"}],"predecessor-version":[{"id":1988,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/1130\/revisions\/1988"}],"wp:attachment":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/media?parent=1130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/categories?post=1130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/tags?post=1130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}