datacommonsorg / website

Code for the Data Commons website
https://datacommons.org
Apache License 2.0
21 stars 74 forks source link

NL: Support date constraints in queries #2447

Open pradh opened 1 year ago

pradh commented 1 year ago

Example: [how many earthquakes since 2000?]

This is probably a subset of https://github.com/datacommonsorg/website/issues/2366 which involves identifying constants in the query.

pradh commented 1 year ago

Another example [how much more rain did california get this year vs last year]

juliawu commented 1 year ago

Adding additional examples:

How many burglaries occurred in the US last year? How many electricity consumers were there in the US last month? Largest cities in 2020

jehangiramjad commented 1 year ago

Example query: what is the percentage of people in California that do not work in the past 2 years Expected answer: restrict the range of time to just the last two years

jehangiramjad commented 1 year ago

Supporting time based queries as follow-up queries using context.

Example: https://autopush.datacommons.org/nl/#q=How%20does%20the%20birthrate%20of%20korea%20compare%20with%20japan;what%20about%20over%20time Q1: how does the birthrate of korea compare with japan. => shows the most recent data point comparison. Q2: what about over time => ideally, should plot timeline plots for the two countries