{"id":954,"date":"2020-02-03T17:11:22","date_gmt":"2020-02-03T17:11:22","guid":{"rendered":"http:\/\/wikidata.wwwnlsrc4.supercp.com\/?p=954"},"modified":"2020-11-29T14:49:22","modified_gmt":"2020-11-29T14:49:22","slug":"dates-and-qualifiers","status":"publish","type":"post","link":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/when-queries\/dates-and-qualifiers\/","title":{"rendered":"Dates and qualifiers"},"content":{"rendered":"\n<h2>Dates and qualifiers<\/h2>\n\n\n\n<p>If you have learned how to query <a href=\"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries\/qualifiers\/statements-with-qualifiers\/\">statements with qualifiers<\/a>, try this exercise:<\/p>\n\n\n\n<h4>| Exercise: Write a query to show on a timeline the date of birth of actors that played James Bond in the James Bond film series (Q2484680)<\/h4>\n\n\n\n<p> Hint: the cast member property (P161) has P453 (character role) property as a qualifier with the value Q2009573 (James Bond) <\/p>\n\n\n\n<p> Tip: use&nbsp;<a href=\"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries\/instances-and-classes\/distinct\/\">DISTINCT&nbsp;<\/a>to remove duplicates from the results<\/p>\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><\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23Actors%20who%20played%20James%20Bond%20and%20their%20dates%20of%20birth%0A%23defaultView%3ATimeline%0A%0ASELECT%20DISTINCT%20%3Factor%20%3FactorLabel%20%3Fdate%0AWHERE%20%0A%7B%20%20%3Fitem%20wdt%3AP179%20wd%3AQ2484680.%20%20%20%20%20%20%23%20Item%20is%20part%20of%20the%20James%20Bond%20film%20series%0A%20%20%20%3Fitem%20p%3AP161%20%3FmemberStat.%20%20%20%20%20%20%20%20%23%20The%20%22cast%20member%22%20statement%20is%20collected%20by%20%3FmemberStat%20variable%0A%20%20%20%3FmemberStat%20ps%3AP161%20%3Factor.%20%20%20%20%20%20%23%20The%20value%20of%20the%20statement%20node%27s%20property%20statement%20%28ps%29%20is%20collected%20by%20the%20%3Factor%20variable%0A%20%20%20%3FmemberStat%20pq%3AP453%20wd%3AQ2009573.%20%23%20The%20statement%20node%20has%20a%20qualifier%20with%20a%20P453%20%28character%20role%29%20property%20%28pq%29%20that%20has%20a%20value%20Q2009573%20%28James%20Bond%29%20%0A%20%20%20%3Factor%20wdt%3AP569%20%3Fdate.%20%20%20%20%20%20%20%20%20%20%20%23%20The%20value%20of%20P569%20is%20collected%20by%20the%20variable%20%3Fdate%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%22.%20%7D%0A%7D\" style=\"width:100%;max-width:100%;height:450px\" frameborder=\"0\"><\/iframe>\n<\/div><\/details><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Dates and qualifiers If you have learned how to query statements with qualifiers, try this exercise: | Exercise: Write a query to show on a timeline the date of birth of actors that played James Bond in the James Bond film series (Q2484680) Hint: the cast member property (P161) has P453 (character role) property as [&hellip;]<\/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":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/954"}],"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=954"}],"version-history":[{"count":15,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/954\/revisions"}],"predecessor-version":[{"id":1980,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/954\/revisions\/1980"}],"wp:attachment":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/media?parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/categories?post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/tags?post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}