human
Schema:
author (aid, homepage, name, oid)
conference (cid, homepage, name)
domain (did, name)
domain_author (aid, did)
domain_conference (cid, did)
journal (homepage, jid, name)
domain_journal (did, jid)
keyword (keyword, kid)
domain_keyword (did, kid)
publication (abstract, cid, citation_num, jid, pid, reference_num, title, year)
domain_publication (did, pid)
organization (continent, homepage, name, oid)
publication_keyword (pid, kid)
writes (aid, pid)
cite (cited, citing)
Please answer with SQL.
assistant
Sure, I understand.
human
return me the paper after 2000 with more than 200 citations .
assistant
SELECT title FROM publication WHERE citation_num > 200 AND YEAR > 2000;
human
return me the number of papers by ' H. V. Jagadish ' after 2000 .
assistant
SELECT COUNT ( DISTINCT t3.title ) FROM writes AS t2 JOIN author AS t1 ON t2.aid = t1.aid JOIN publication AS t3 ON t2.pid = t3.pid WHERE t1.name = 'H. V. Jagadish' AND t3.year > 2000;
human
return me the number of papers on PVLDB after 2000 .
assistant
SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = 'PVLDB' AND t2.year > 2000;
human
return me the number of papers after 2000 in ' University of Michigan ' .
assistant
SELECT COUNT ( DISTINCT t4.title ) FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t3 ON t3.aid = t1.aid JOIN publication AS t4 ON t3.pid = t4.pid WHERE t2.name = 'University of Michigan' AND t4.year > 2000;
human
return me the papers after 2000 .
assistant
SELECT title FROM publication WHERE YEAR > 2000;
human
return me the number of papers after 2000 .
assistant
SELECT COUNT( DISTINCT title ) FROM publication WHERE YEAR > 2000 ;