query-7c73d931940e62a43f94464a78bde424
All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title All Law & Order episodes on Wikidata.
According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode { # All episodes should be instance of episode with series Law & Order. ?episode wdt:P31 wd:Q21191270; wdt:P179 wd:Q321423. # Many of them also have the season as series, so we can get episode and season number from qualifiers there. OPTIONAL { ?episode p:P179 [ # the season also has series Law & Order ps:P179/p:P179 [ ps:P179 wd:Q321423; pq:P1545 ?seasonNumber ] ; pq:P1545 ?episodeNumber ] } OPTIONAL { ?episode wdt:P1476 ?title. } OPTIONAL { ?episode wdt:P577 ?pubDate. } } GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
# All Law & Order episodes on Wikidata.
# According to enwp, “[a] total of 456 original episodes… aired before cancellation” (https://en.wikipedia.org/wiki/List_of_Law_%26_Order_episodes).
# As of this writing, the query returns 451 results, so some episodes are missing (either without item or lacking the necessary statements to match this query).
SELECT (SAMPLE(?seasonNumber) AS ?seasonNumber) (SAMPLE(?episodeNumber) AS ?episodeNumber) (SAMPLE(?title) AS ?title) (MIN(?pubDate) AS ?pubDate) ?episode
{
# All episodes should be instance of episode with series Law & Order.
?episode wdt:P31 wd:Q21191270;
wdt:P179 wd:Q321423.
# Many of them also have the season as series, so we can get episode and season number from qualifiers there.
OPTIONAL {
?episode p:P179 [
# the season also has series Law & Order
ps:P179/p:P179 [
ps:P179 wd:Q321423;
pq:P1545 ?seasonNumber
] ;
pq:P1545 ?episodeNumber
]
}
OPTIONAL { ?episode wdt:P1476 ?title. }
OPTIONAL { ?episode wdt:P577 ?pubDate. }
}
GROUP BY ?episode # make sure we return each episode only once – a few have multiple publication dates, for example
ORDER BY IF(BOUND(?seasonNumber), xsd:integer(?seasonNumber), 1000) xsd:integer(?episodeNumber) ?title
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ar
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/be-tarask
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ca
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/cs
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/da
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/de
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en-gb
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/eo
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/eu
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/he
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/id
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/it
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ko
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/lb
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/lt
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ms
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/pl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/pt-br
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ro
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/si
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/th
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/vec
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/zh