TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Photon – a live demo of a natural language interface to databases

48 点作者 atrudeau超过 4 年前

13 条评论

gagege超过 4 年前
&quot;What is the price of Ginger Beer?&quot;<p>It couldn&#x27;t translate that into SQL.<p>&quot;What is the price in dollars of Ginger Beer?&quot;<p>&gt; SELECT Catalog_Contents.price_in_dollars FROM Catalog_Contents WHERE Catalog_Contents.price_in_dollars = &quot;Ginger Beer&quot;<p>Nope.<p>&quot;What is the price in dollars of catalog entry name Ginger Beer?&quot;<p>&gt; SELECT Catalog_Contents.price_in_dollars FROM Catalog_Contents WHERE Catalog_Contents.catalog_entry_name = &quot;Ginger Beer&quot;<p>Cool! You have to be more specific than I was hoping, but this is still pretty neat.
评论 #24295654 未加载
thom超过 4 年前
There’s a lot missing here. During the brief and unhappy period of my life where I worked in this area, we had quite a lot of luck just generating semantics based on Wordnet in the domain in question. So here you can’t successfully ask for “French wines” even though we know what a country is and that French is a correct adjectival form. Same with things like “oldest wine”, that’s an easy to derive superlative based on info you already have. We got some mileage out of this old fashioned tree based system at the core, with fuzzier machine learning stuff at the edges.
deadfa11超过 4 年前
&gt; What singer sang in the most stadiums?<p><pre><code> SELECT singer.Name FROM singer JOIN singer_in_concert ON singer.Singer_ID = singer_in_concert.Singer_ID GROUP BY singer.Singer_ID ORDER BY COUNT(*) DESC LIMIT 1 </code></pre> It is close... sort of? It figured out it needed to join, group, and order, but it only drew the relation to the concert, not the venue. Correctness seems a huge challenge here. Even knowing SQL, I feel I&#x27;m double checking my results at times. But I can see how this might be incredibly useful someday for Salesforce if there&#x27;s confidence in the results.
samatman超过 4 年前
&gt; how many teachers older than thirty?<p>&gt; SELECT COUNT(*) FROM teacher WHERE teacher.Age &gt; &quot;thirty&quot;<p>Not a bad idea. A good idea, maybe. Implementation needs some work.
评论 #24290886 未加载
评论 #24295128 未加载
pmontra超过 4 年前
The Covid database contains cumulative figures, so if you ask &quot;How many deaths in ...?&quot; you get the naive query with the sum of the Deaths column for that country, which is wrong. Actually I wonder how to explain it. I cheated and asked &quot;how many deaths in ... on July 14?&quot; but got the wrong query, with July 14 as Province_or_State no matter how I rephrased the date.
macro-b超过 4 年前
“Select all elements from catalog” did not work...
rco8786超过 4 年前
&gt; All confirmed covid deaths<p>&gt; SELECT covid_19_july_data.Deaths FROM covid_19_july_data WHERE covid_19_july_data.Confirmed = &quot;covid&quot;
visarga超过 4 年前
I&#x27;ve seen a talk about this task, it&#x27;s supposed to be hard to get enough training data for regular DL approaches.
评论 #24290704 未加载
aaron695超过 4 年前
In my opinion this doesn&#x27;t make sense.<p>SQL is a tight, unambiguous language, that&#x27;s why it exists.<p>This is like a legal document written in spoken English. It&#x27;s only all fine when it works.<p>Part of writing SQL is also understanding the underling data. This won&#x27;t address this issue.<p>This is also not replicable. Language changes in context and time.
评论 #24292766 未加载
homarp超过 4 年前
see also <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24283687" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24283687</a>
jbverschoor超过 4 年前
Doesn&#x27;t do anything related to language
neilalexander超过 4 年前
list all company<p>&gt; Please check the results in the table. Did I get it right?<p>yes<p>&gt; Great!<p>list all designation<p>&gt; Sorry, &#x27;designation&#x27; is confusing to me
subhajeet2107超过 4 年前
meh &quot;is there any area column in addresses table&quot; did not work seems straight forward to me ?