query-7dcb0d2b094237c57c0e122b7f784f07
Fixed values and ranges is not nearly as efficient as the following: FILTER(YEAR(?dateOfBirth) = 1978), is the cheapest option in the query service, but searching for ranges of values is also usually pretty efficient, and often preferable to other options. For example, to look for people born in 1978, wdt:P31 wd:Q5Searching for fixed values, e. g. Valeurs fixes et intervalles n'est même pas aussi efficace que : FILTER(YEAR(?dateOfBirth) = 1978), est l'option la moins chère du service de requêtes, mais rechercher des intervalles de valeurs est habituellement tout aussi efficace, et souvent préférable aux autres options. Par exemple, pour rechercher les personnes nées en 1978, wdt:P31 wd:Q5La recherche de valeurs fixes, telles que Fixed values and ranges is not nearly as efficient as the following: FILTER(YEAR(?dateOfBirth) = 1978), is the cheapest option in the query service, but searching for ranges of values is also usually pretty efficient, and often preferable to other options. For example, to look for people born in 1978, wdt:P31 wd:Q5Searching for fixed values, e. g. Vaste waarden en bereiken niet zo efficiënt als het volgende: FILTER(YEAR(?dateOfBirth) = 1978), is de goedkoopste optie in de query service, maar het zoeken naar een waardenbereik is ook meestal vrij efficiënt en heeft vaak een voorkeur boven andere opties. Bijvoorbeeld, bij het zoeken naar mensen die in 1978 zijn geboren, is wdt:P31 wd:Q5Het zoeken naar vaste waarden, bijvoorbeeld TODO Fixed values and ranges is not nearly as efficient as the following: FILTER(YEAR(?dateOfBirth) = 1978), is the cheapest option in the query service, but searching for ranges of values is also usually pretty efficient, and often preferable to other options. For example, to look for people born in 1978, wdt:P31 wd:Q5Searching for fixed values, e. g. Фіксовані значення та діапазони is not nearly as efficient as the following: FILTER(YEAR(?dateOfBirth) = 1978), is the cheapest option in the query service, but searching for ranges of values is also usually pretty efficient, and often preferable to other options. For example, to look for people born in 1978, wdt:P31 wd:Q5Searching for fixed values, e. g. 固定值与范围 is not nearly as efficient as the following: FILTER(YEAR(?dateOfBirth) = 1978), is the cheapest option in the query service, but searching for ranges of values is also usually pretty efficient, and often preferable to other options. For example, to look for people born in 1978, wdt:P31 wd:Q5Searching for fixed values, e. g.
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/>
SELECT ?item ?dateOfBirth WHERE {
?item wdt:P31 wd:Q5;
wdt:P569 ?dateOfBirth.
FILTER("1978-00-00"^^xsd:date <= ?dateOfBirth &&
?dateOfBirth < "1979-00-00"^^xsd:dat)
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/pt
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/ru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/zh