input
stringlengths
667
7.62k
output
stringlengths
41
600
db_id
stringlengths
3
31
query
stringlengths
18
577
question
stringlengths
3
224
schema
stringlengths
177
6.14k
primary_keys
stringlengths
16
545
foreign_keys
stringlengths
16
1.48k
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me all the papers in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT 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";</SQL_QUERY>
academic
SELECT 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";
return me all the papers in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me all the papers after 2000 in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT 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;</SQL_QUERY>
academic
SELECT 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;
return me all the papers after 2000 in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me all the papers in VLDB conference in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM organization AS t3 JOIN author AS t1 ON t3.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN conference AS t2 ON t5.cid = t2.cid WHERE t2.name = "VLDB" AND t3.name = "University of Michigan";</SQL_QUERY>
academic
SELECT t5.title FROM organization AS t3 JOIN author AS t1 ON t3.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN conference AS t2 ON t5.cid = t2.cid WHERE t2.name = "VLDB" AND t3.name = "University of Michigan";
return me all the papers in VLDB conference in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me all the papers in PVLDB in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan";</SQL_QUERY>
academic
SELECT t5.title FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan";
return me all the papers in PVLDB in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me all the papers in PVLDB after 2000 in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan" AND t5.year > 2000;</SQL_QUERY>
academic
SELECT t5.title FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan" AND t5.year > 2000;
return me all the papers in PVLDB after 2000 in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper in Databases area with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t3.title FROM DOMAIN AS t2 JOIN domain_publication AS t1 ON t2.did = t1.did JOIN publication AS t3 ON t3.pid = t1.pid WHERE t2.name = "Databases" AND t3.citation_num > 200;</SQL_QUERY>
academic
SELECT t3.title FROM DOMAIN AS t2 JOIN domain_publication AS t1 ON t2.did = t1.did JOIN publication AS t3 ON t3.pid = t1.pid WHERE t2.name = "Databases" AND t3.citation_num > 200;
return me the paper in Databases area with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper in PVLDB with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t2.title FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.citation_num > 200;</SQL_QUERY>
academic
SELECT t2.title FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.citation_num > 200;
return me the paper in PVLDB with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper in VLDB conference with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t2.title FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.citation_num > 200;</SQL_QUERY>
academic
SELECT t2.title FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.citation_num > 200;
return me the paper in VLDB conference with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper by " H. V. Jagadish " with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT 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.citation_num > 200;</SQL_QUERY>
academic
SELECT 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.citation_num > 200;
return me the paper by " H. V. Jagadish " with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers by " H. V. Jagadish " on PVLDB with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t4.title FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "PVLDB" AND t4.citation_num > 200;</SQL_QUERY>
academic
SELECT t4.title FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "PVLDB" AND t4.citation_num > 200;
return me the papers by " H. V. Jagadish " on PVLDB with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers by " H. V. Jagadish " on VLDB conference with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t4.title FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "VLDB" AND t4.citation_num > 200;</SQL_QUERY>
academic
SELECT t4.title FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "VLDB" AND t4.citation_num > 200;
return me the papers by " H. V. Jagadish " on VLDB conference with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper after 2000 with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT title FROM publication WHERE citation_num > 200 AND YEAR > 2000;</SQL_QUERY>
academic
SELECT title FROM publication WHERE citation_num > 200 AND YEAR > 2000;
return me the paper after 2000 with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper after 2000 in Databases area with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t3.title FROM DOMAIN AS t2 JOIN domain_publication AS t1 ON t2.did = t1.did JOIN publication AS t3 ON t3.pid = t1.pid WHERE t2.name = "Databases" AND t3.citation_num > 200 AND t3.year > 2000;</SQL_QUERY>
academic
SELECT t3.title FROM DOMAIN AS t2 JOIN domain_publication AS t1 ON t2.did = t1.did JOIN publication AS t3 ON t3.pid = t1.pid WHERE t2.name = "Databases" AND t3.citation_num > 200 AND t3.year > 2000;
return me the paper after 2000 in Databases area with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper after 2000 in PVLDB with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t2.title FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.citation_num > 200 AND t2.year > 2000;</SQL_QUERY>
academic
SELECT t2.title FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.citation_num > 200 AND t2.year > 2000;
return me the paper after 2000 in PVLDB with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the paper after 2000 in VLDB conference with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t2.title FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.citation_num > 200 AND t2.year > 2000;</SQL_QUERY>
academic
SELECT t2.title FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.citation_num > 200 AND t2.year > 2000;
return me the paper after 2000 in VLDB conference with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of conferences which have papers by " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.name ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.name ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish";
return me the number of conferences which have papers by " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of journals which have papers by " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.name ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.name ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish";
return me the number of journals which have papers by " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers written by " H. V. Jagadish " in each year .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t3.title ) , t3.year 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" GROUP BY t3.year;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t3.title ) , t3.year 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" GROUP BY t3.year;
return me the number of papers written by " H. V. Jagadish " in each year .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of authors of " Making database systems usable " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.name ) FROM writes AS t2 JOIN author AS t1 ON t2.aid = t1.aid JOIN publication AS t3 ON t2.pid = t3.pid WHERE t3.title = "Making database systems usable";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.name ) FROM writes AS t2 JOIN author AS t1 ON t2.aid = t1.aid JOIN publication AS t3 ON t2.pid = t3.pid WHERE t3.title = "Making database systems usable";
return me the number of authors of " Making database systems usable " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of citations of " Making database systems usable " in each year .</question> [SQL]:
<SQL_QUERY>SELECT YEAR , SUM ( citation_num ) FROM publication WHERE title = "Making database systems usable" GROUP BY YEAR;</SQL_QUERY>
academic
SELECT YEAR , SUM ( citation_num ) FROM publication WHERE title = "Making database systems usable" GROUP BY YEAR;
return me the number of citations of " Making database systems usable " in each year .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of citations of " Making database systems usable " before 2010 .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t3 JOIN cite AS t1 ON t3.pid = t1.cited JOIN publication AS t2 ON t2.pid = t1.citing WHERE t3.title = "Making database systems usable" AND t2.year < 2010;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t3 JOIN cite AS t1 ON t3.pid = t1.cited JOIN publication AS t2 ON t2.pid = t1.citing WHERE t3.title = "Making database systems usable" AND t2.year < 2010;
return me the number of citations of " Making database systems usable " before 2010 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers by " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>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";</SQL_QUERY>
academic
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";
return me the number of papers by " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers on VLDB conference .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB";
return me the number of papers on VLDB conference .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers on PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB";
return me the number of papers on PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers after 2000 .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT title ) FROM publication WHERE YEAR > 2000;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT title ) FROM publication WHERE YEAR > 2000;
return me the number of papers after 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers on PVLDB after 2000 .</question> [SQL]:
<SQL_QUERY>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;</SQL_QUERY>
academic
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;
return me the number of papers on PVLDB after 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers on VLDB conference after 2000 .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year > 2000;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year > 2000;
return me the number of papers on VLDB conference after 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers by " H. V. Jagadish " on PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "PVLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "PVLDB";
return me the number of papers by " H. V. Jagadish " on PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers by " H. V. Jagadish " on VLDB conference .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "VLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "VLDB";
return me the number of papers by " H. V. Jagadish " on VLDB conference .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers by " H. V. Jagadish " after 2000 .</question> [SQL]:
<SQL_QUERY>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;</SQL_QUERY>
academic
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;
return me the number of papers by " H. V. Jagadish " after 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers by " H. V. Jagadish " on PVLDB after 2000 .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "PVLDB" AND t4.year > 2000;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "PVLDB" AND t4.year > 2000;
return me the number of papers by " H. V. Jagadish " on PVLDB after 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers by " H. V. Jagadish " on VLDB conference after 2000 .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "VLDB" AND t4.year > 2000;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t4.title ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t2.name = "VLDB" AND t4.year > 2000;
return me the number of papers by " H. V. Jagadish " on VLDB conference after 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of keywords .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT keyword ) FROM keyword;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT keyword ) FROM keyword;
return me the number of keywords .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of keywords in Databases area .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.keyword ) FROM DOMAIN AS t3 JOIN domain_keyword AS t2 ON t3.did = t2.did JOIN keyword AS t1 ON t1.kid = t2.kid WHERE t3.name = "Databases";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.keyword ) FROM DOMAIN AS t3 JOIN domain_keyword AS t2 ON t3.did = t2.did JOIN keyword AS t1 ON t1.kid = t2.kid WHERE t3.name = "Databases";
return me the number of keywords in Databases area .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers which contain the keyword " Natural Language " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t3.title ) FROM publication_keyword AS t2 JOIN keyword AS t1 ON t2.kid = t1.kid JOIN publication AS t3 ON t3.pid = t2.pid WHERE t1.keyword = "Natural Language";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t3.title ) FROM publication_keyword AS t2 JOIN keyword AS t1 ON t2.kid = t1.kid JOIN publication AS t3 ON t3.pid = t2.pid WHERE t1.keyword = "Natural Language";
return me the number of papers which contain the keyword " Natural Language " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of the keywords of " Making database systems usable " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t3 JOIN keyword AS t1 ON t3.kid = t1.kid JOIN publication AS t2 ON t2.pid = t3.pid WHERE t2.title = "Making database systems usable";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t3 JOIN keyword AS t1 ON t3.kid = t1.kid JOIN publication AS t2 ON t2.pid = t3.pid WHERE t2.title = "Making database systems usable";
return me the number of the keywords of " Making database systems usable " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of the keywords related to " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t2.name = "H. V. Jagadish";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t2.name = "H. V. Jagadish";
return me the number of the keywords related to " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of keywords in VLDB conference .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t2.name = "VLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t2.name = "VLDB";
return me the number of keywords in VLDB conference .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of keywords in PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t3.name = "PVLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.keyword ) FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t3.name = "PVLDB";
return me the number of keywords in PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of keywords in the papers of " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.keyword ) FROM organization AS t6 JOIN author AS t2 ON t6.oid = t2.oid JOIN writes AS t4 ON t4.aid = t2.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN publication_keyword AS t3 ON t5.pid = t3.pid JOIN keyword AS t1 ON t3.kid = t1.kid WHERE t6.name = "University of Michigan";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.keyword ) FROM organization AS t6 JOIN author AS t2 ON t6.oid = t2.oid JOIN writes AS t4 ON t4.aid = t2.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN publication_keyword AS t3 ON t5.pid = t3.pid JOIN keyword AS t1 ON t3.kid = t1.kid WHERE t6.name = "University of Michigan";
return me the number of keywords in the papers of " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of the papers of " H. V. Jagadish " containing keyword " User Study " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t5.title ) FROM publication_keyword AS t3 JOIN keyword AS t1 ON t3.kid = t1.kid JOIN publication AS t5 ON t5.pid = t3.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t2.name = "H. V. Jagadish" AND t1.keyword = "User Study";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t5.title ) FROM publication_keyword AS t3 JOIN keyword AS t1 ON t3.kid = t1.kid JOIN publication AS t5 ON t5.pid = t3.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t2.name = "H. V. Jagadish" AND t1.keyword = "User Study";
return me the number of the papers of " H. V. Jagadish " containing keyword " User Study " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers in PVLDB containing keyword " Keyword search " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t4.title ) FROM publication_keyword AS t2 JOIN keyword AS t1 ON t2.kid = t1.kid JOIN publication AS t4 ON t4.pid = t2.pid JOIN journal AS t3 ON t4.jid = t3.jid WHERE t3.name = "PVLDB" AND t1.keyword = "Keyword search";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t4.title ) FROM publication_keyword AS t2 JOIN keyword AS t1 ON t2.kid = t1.kid JOIN publication AS t4 ON t4.pid = t2.pid JOIN journal AS t3 ON t4.jid = t3.jid WHERE t3.name = "PVLDB" AND t1.keyword = "Keyword search";
return me the number of papers in PVLDB containing keyword " Keyword search " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers in VLDB conference containing keyword " Information Retrieval " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t4.title ) FROM publication_keyword AS t3 JOIN keyword AS t1 ON t3.kid = t1.kid JOIN publication AS t4 ON t4.pid = t3.pid JOIN conference AS t2 ON t4.cid = t2.cid WHERE t2.name = "VLDB" AND t1.keyword = "Information Retrieval";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t4.title ) FROM publication_keyword AS t3 JOIN keyword AS t1 ON t3.kid = t1.kid JOIN publication AS t4 ON t4.pid = t3.pid JOIN conference AS t2 ON t4.cid = t2.cid WHERE t2.name = "VLDB" AND t1.keyword = "Information Retrieval";
return me the number of papers in VLDB conference containing keyword " Information Retrieval " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of authors who have papers containing keyword " Relational Database " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.name ) FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t1.keyword = "Relational Database";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.name ) FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t1.keyword = "Relational Database";
return me the number of authors who have papers containing keyword " Relational Database " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of the papers containing keyword " Natural Language "</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t3.citation_num ) FROM publication_keyword AS t2 JOIN keyword AS t1 ON t2.kid = t1.kid JOIN publication AS t3 ON t3.pid = t2.pid WHERE t1.keyword = "Natural Language";</SQL_QUERY>
academic
SELECT SUM ( t3.citation_num ) FROM publication_keyword AS t2 JOIN keyword AS t1 ON t2.kid = t1.kid JOIN publication AS t3 ON t3.pid = t2.pid WHERE t1.keyword = "Natural Language";
return me the total citations of the papers containing keyword " Natural Language "
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of the organizations .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT name ) FROM organization;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT name ) FROM organization;
return me the number of the organizations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of the organizations in " North America " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT name ) FROM organization WHERE continent = "North America";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT name ) FROM organization WHERE continent = "North America";
return me the number of the organizations in " North America " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of organizations in Databases area .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.name ) FROM domain_author AS t4 JOIN author AS t1 ON t4.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t4.did JOIN organization AS t2 ON t2.oid = t1.oid WHERE t3.name = "Databases";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.name ) FROM domain_author AS t4 JOIN author AS t1 ON t4.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t4.did JOIN organization AS t2 ON t2.oid = t1.oid WHERE t3.name = "Databases";
return me the number of organizations in Databases area .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of organizations in Databases area located in " North America " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.name ) FROM domain_author AS t4 JOIN author AS t1 ON t4.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t4.did JOIN organization AS t2 ON t2.oid = t1.oid WHERE t3.name = "Databases" AND t2.continent = "North America";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.name ) FROM domain_author AS t4 JOIN author AS t1 ON t4.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t4.did JOIN organization AS t2 ON t2.oid = t1.oid WHERE t3.name = "Databases" AND t2.continent = "North America";
return me the number of organizations in Databases area located in " North America " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>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";</SQL_QUERY>
academic
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";
return me the number of papers in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers in " University of Michigan " in Databases area .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t4.title ) FROM domain_author AS t6 JOIN author AS t1 ON t6.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t6.did JOIN domain_publication AS t2 ON t3.did = t2.did JOIN organization AS t5 ON t5.oid = t1.oid JOIN publication AS t4 ON t4.pid = t2.pid WHERE t3.name = "Databases" AND t5.name = "University of Michigan";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t4.title ) FROM domain_author AS t6 JOIN author AS t1 ON t6.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t6.did JOIN domain_publication AS t2 ON t3.did = t2.did JOIN organization AS t5 ON t5.oid = t1.oid JOIN publication AS t4 ON t4.pid = t2.pid WHERE t3.name = "Databases" AND t5.name = "University of Michigan";
return me the number of papers in " University of Michigan " in Databases area .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers after 2000 in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>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;</SQL_QUERY>
academic
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;
return me the number of papers after 2000 in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers in VLDB conference in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t5.title ) FROM organization AS t3 JOIN author AS t1 ON t3.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN conference AS t2 ON t5.cid = t2.cid WHERE t2.name = "VLDB" AND t3.name = "University of Michigan";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t5.title ) FROM organization AS t3 JOIN author AS t1 ON t3.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN conference AS t2 ON t5.cid = t2.cid WHERE t2.name = "VLDB" AND t3.name = "University of Michigan";
return me the number of papers in VLDB conference in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers in PVLDB in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t5.title ) FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t5.title ) FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan";
return me the number of papers in PVLDB in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers in PVLDB after 2000 in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t5.title ) FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan" AND t5.year > 2000;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t5.title ) FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid JOIN writes AS t4 ON t4.aid = t1.aid JOIN publication AS t5 ON t4.pid = t5.pid JOIN journal AS t3 ON t5.jid = t3.jid WHERE t3.name = "PVLDB" AND t2.name = "University of Michigan" AND t5.year > 2000;
return me the number of papers in PVLDB after 2000 in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of the papers in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t4.citation_num ) 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";</SQL_QUERY>
academic
SELECT SUM ( t4.citation_num ) 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";
return me the total citations of the papers in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of researchers in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.name ) FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid WHERE t2.name = "University of Michigan";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.name ) FROM organization AS t2 JOIN author AS t1 ON t2.oid = t1.oid WHERE t2.name = "University of Michigan";
return me the number of researchers in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of researchers in Databases area in " University of Michigan " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.name ) FROM domain_author AS t4 JOIN author AS t1 ON t4.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t4.did JOIN organization AS t2 ON t2.oid = t1.oid WHERE t3.name = "Databases" AND t2.name = "University of Michigan";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.name ) FROM domain_author AS t4 JOIN author AS t1 ON t4.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t4.did JOIN organization AS t2 ON t2.oid = t1.oid WHERE t3.name = "Databases" AND t2.name = "University of Michigan";
return me the number of researchers in Databases area in " University of Michigan " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of authors who have papers in PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.name ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t2.name = "PVLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.name ) FROM publication AS t4 JOIN journal AS t2 ON t4.jid = t2.jid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t2.name = "PVLDB";
return me the number of authors who have papers in PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of authors who have papers in the VLDB conference .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t1.name ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t2.name = "VLDB";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t1.name ) FROM publication AS t4 JOIN conference AS t2 ON t4.cid = t2.cid JOIN writes AS t3 ON t3.pid = t4.pid JOIN author AS t1 ON t3.aid = t1.aid WHERE t2.name = "VLDB";
return me the number of authors who have papers in the VLDB conference .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers published on PVLDB before 2000 .</question> [SQL]:
<SQL_QUERY>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;</SQL_QUERY>
academic
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;
return me the number of papers published on PVLDB before 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers published in the VLDB conference before 2000 .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year < 2000;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.title ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year < 2000;
return me the number of papers published in the VLDB conference before 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of all the papers in PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB";</SQL_QUERY>
academic
SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB";
return me the total citations of all the papers in PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the citations of each paper in PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT t2.citation_num FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB";</SQL_QUERY>
academic
SELECT t2.citation_num FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB";
return me the citations of each paper in PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of papers in PVLDB in 2005 .</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.year = 2005;</SQL_QUERY>
academic
SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.year = 2005;
return me the total citations of papers in PVLDB in 2005 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of papers in PVLDB before 2005 .</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.year < 2005;</SQL_QUERY>
academic
SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.year < 2005;
return me the total citations of papers in PVLDB before 2005 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of papers in PVLDB in each year .</question> [SQL]:
<SQL_QUERY>SELECT t2.year , SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" GROUP BY t2.year;</SQL_QUERY>
academic
SELECT t2.year , SUM ( t2.citation_num ) FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" GROUP BY t2.year;
return me the total citations of papers in PVLDB in each year .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers published in PVLDB in each year .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.title ) , t2.year FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" GROUP BY t2.year;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.title ) , t2.year FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" GROUP BY t2.year;
return me the number of papers published in PVLDB in each year .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of all the papers in the VLDB conference .</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB";</SQL_QUERY>
academic
SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB";
return me the total citations of all the papers in the VLDB conference .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the citations of each paper in the VLDB conference .</question> [SQL]:
<SQL_QUERY>SELECT t2.citation_num FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB";</SQL_QUERY>
academic
SELECT t2.citation_num FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB";
return me the citations of each paper in the VLDB conference .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of papers in the VLDB conference in 2005 .</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year = 2005;</SQL_QUERY>
academic
SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year = 2005;
return me the total citations of papers in the VLDB conference in 2005 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of papers in the VLDB conference before 2005 .</question> [SQL]:
<SQL_QUERY>SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year < 2005;</SQL_QUERY>
academic
SELECT SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year < 2005;
return me the total citations of papers in the VLDB conference before 2005 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the total citations of papers in the VLDB conference in each year .</question> [SQL]:
<SQL_QUERY>SELECT t2.year , SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" GROUP BY t2.year;</SQL_QUERY>
academic
SELECT t2.year , SUM ( t2.citation_num ) FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" GROUP BY t2.year;
return me the total citations of papers in the VLDB conference in each year .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers published in the VLDB conference in each year .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.title ) , t2.year FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" GROUP BY t2.year;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.title ) , t2.year FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" GROUP BY t2.year;
return me the number of papers published in the VLDB conference in each year .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the authors who have cooperated both with " H. V. Jagadish " and " Divesh Srivastava " .</question> [SQL]:
<SQL_QUERY>SELECT t2.name FROM writes AS t4 JOIN author AS t2 ON t4.aid = t2.aid JOIN publication AS t7 ON t4.pid = t7.pid JOIN writes AS t5 ON t5.pid = t7.pid JOIN writes AS t6 ON t6.pid = t7.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t3 ON t6.aid = t3.aid WHERE t1.name = "H. V. Jagadish" AND t3.name = "Divesh Srivastava";</SQL_QUERY>
academic
SELECT t2.name FROM writes AS t4 JOIN author AS t2 ON t4.aid = t2.aid JOIN publication AS t7 ON t4.pid = t7.pid JOIN writes AS t5 ON t5.pid = t7.pid JOIN writes AS t6 ON t6.pid = t7.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t3 ON t6.aid = t3.aid WHERE t1.name = "H. V. Jagadish" AND t3.name = "Divesh Srivastava";
return me the authors who have cooperated both with " H. V. Jagadish " and " Divesh Srivastava " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the authors who have cooperated with " H. V. Jagadish " after 2000 .</question> [SQL]:
<SQL_QUERY>SELECT t2.name FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t5.year > 2000;</SQL_QUERY>
academic
SELECT t2.name FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish" AND t5.year > 2000;
return me the authors who have cooperated with " H. V. Jagadish " after 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava";</SQL_QUERY>
academic
SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava";
return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers written by " H. V. Jagadish " and " Yunyao Li " after 2005 .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Yunyao Li" AND t5.year > 2005;</SQL_QUERY>
academic
SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Yunyao Li" AND t5.year > 2005;
return me the papers written by " H. V. Jagadish " and " Yunyao Li " after 2005 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers written by " H. V. Jagadish " and " Yunyao Li " on PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT t6.title FROM publication AS t6 JOIN journal AS t4 ON t6.jid = t4.jid JOIN writes AS t3 ON t3.pid = t6.pid JOIN writes AS t5 ON t5.pid = t6.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t2 ON t3.aid = t2.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Yunyao Li" AND t4.name = "PVLDB";</SQL_QUERY>
academic
SELECT t6.title FROM publication AS t6 JOIN journal AS t4 ON t6.jid = t4.jid JOIN writes AS t3 ON t3.pid = t6.pid JOIN writes AS t5 ON t5.pid = t6.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t2 ON t3.aid = t2.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Yunyao Li" AND t4.name = "PVLDB";
return me the papers written by " H. V. Jagadish " and " Yunyao Li " on PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers written by " H. V. Jagadish " and " Yunyao Li " on PVLDB after 2005 .</question> [SQL]:
<SQL_QUERY>SELECT t6.title FROM publication AS t6 JOIN journal AS t4 ON t6.jid = t4.jid JOIN writes AS t3 ON t3.pid = t6.pid JOIN writes AS t5 ON t5.pid = t6.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t2 ON t3.aid = t2.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Yunyao Li" AND t4.name = "PVLDB" AND t6.year > 2005;</SQL_QUERY>
academic
SELECT t6.title FROM publication AS t6 JOIN journal AS t4 ON t6.jid = t4.jid JOIN writes AS t3 ON t3.pid = t6.pid JOIN writes AS t5 ON t5.pid = t6.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t2 ON t3.aid = t2.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Yunyao Li" AND t4.name = "PVLDB" AND t6.year > 2005;
return me the papers written by " H. V. Jagadish " and " Yunyao Li " on PVLDB after 2005 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the authors who have cooperated with " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT t2.name FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";</SQL_QUERY>
academic
SELECT t2.name FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";
return me the authors who have cooperated with " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " before 2000 .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava" AND t5.year < 2000;</SQL_QUERY>
academic
SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava" AND t5.year < 2000;
return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " before 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the authors who have cited the papers by " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT t2.name FROM publication AS t7 JOIN cite AS t5 ON t7.pid = t5.citing JOIN publication AS t6 ON t6.pid = t5.cited JOIN writes AS t3 ON t3.pid = t7.pid JOIN writes AS t4 ON t4.pid = t6.pid JOIN author AS t2 ON t3.aid = t2.aid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";</SQL_QUERY>
academic
SELECT t2.name FROM publication AS t7 JOIN cite AS t5 ON t7.pid = t5.citing JOIN publication AS t6 ON t6.pid = t5.cited JOIN writes AS t3 ON t3.pid = t7.pid JOIN writes AS t4 ON t4.pid = t6.pid JOIN author AS t2 ON t3.aid = t2.aid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";
return me the authors who have cited the papers by " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers written by " H. V. Jagadish " and " Divesh Srivastava " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t5.title ) FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t5.title ) FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava";
return me the number of papers written by " H. V. Jagadish " and " Divesh Srivastava " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers written by " H. V. Jagadish " and " Divesh Srivastava " before 2000 .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t5.title ) FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava" AND t5.year < 2000;</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t5.title ) FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava" AND t5.year < 2000;
return me the number of papers written by " H. V. Jagadish " and " Divesh Srivastava " before 2000 .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of papers written by " H. V. Jagadish " , " Yunyao Li " , and " Cong Yu " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t7.title ) FROM writes AS t4 JOIN author AS t2 ON t4.aid = t2.aid JOIN publication AS t7 ON t4.pid = t7.pid JOIN writes AS t5 ON t5.pid = t7.pid JOIN writes AS t6 ON t6.pid = t7.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t3 ON t6.aid = t3.aid WHERE t2.name = "Cong Yu" AND t1.name = "H. V. Jagadish" AND t3.name = "Yunyao Li";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t7.title ) FROM writes AS t4 JOIN author AS t2 ON t4.aid = t2.aid JOIN publication AS t7 ON t4.pid = t7.pid JOIN writes AS t5 ON t5.pid = t7.pid JOIN writes AS t6 ON t6.pid = t7.pid JOIN author AS t1 ON t5.aid = t1.aid JOIN author AS t3 ON t6.aid = t3.aid WHERE t2.name = "Cong Yu" AND t1.name = "H. V. Jagadish" AND t3.name = "Yunyao Li";
return me the number of papers written by " H. V. Jagadish " , " Yunyao Li " , and " Cong Yu " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of authors who have cooperated with " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.name ) FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.name ) FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";
return me the number of authors who have cooperated with " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the number of authors who have cited the papers by " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT COUNT ( DISTINCT t2.name ) FROM publication AS t7 JOIN cite AS t5 ON t7.pid = t5.citing JOIN publication AS t6 ON t6.pid = t5.cited JOIN writes AS t3 ON t3.pid = t7.pid JOIN writes AS t4 ON t4.pid = t6.pid JOIN author AS t2 ON t3.aid = t2.aid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";</SQL_QUERY>
academic
SELECT COUNT ( DISTINCT t2.name ) FROM publication AS t7 JOIN cite AS t5 ON t7.pid = t5.citing JOIN publication AS t6 ON t6.pid = t5.cited JOIN writes AS t3 ON t3.pid = t7.pid JOIN writes AS t4 ON t4.pid = t6.pid JOIN author AS t2 ON t3.aid = t2.aid JOIN author AS t1 ON t4.aid = t1.aid WHERE t1.name = "H. V. Jagadish";
return me the number of authors who have cited the papers by " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " with more than 200 citations .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava" AND t5.citation_num > 200;</SQL_QUERY>
academic
SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "H. V. Jagadish" AND t1.name = "Divesh Srivastava" AND t5.citation_num > 200;
return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " with more than 200 citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the author who has the most number of papers containing keyword " Relational Database " .</question> [SQL]:
<SQL_QUERY>SELECT t2.name FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t1.keyword = "Relational Database" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t2.name FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t1.keyword = "Relational Database" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;
return me the author who has the most number of papers containing keyword " Relational Database " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the conference that has the most number of papers containing keyword " Relational Database " .</question> [SQL]:
<SQL_QUERY>SELECT t2.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t1.keyword = "Relational Database" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t2.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t1.keyword = "Relational Database" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;
return me the conference that has the most number of papers containing keyword " Relational Database " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the conference, which has the most number of papers containing keyword " Relational Database " .</question> [SQL]:
<SQL_QUERY>SELECT t2.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t1.keyword = "Relational Database" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t2.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t1.keyword = "Relational Database" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;
return me the conference, which has the most number of papers containing keyword " Relational Database " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the journal that has the most number of papers containing keyword " Relational Database " .</question> [SQL]:
<SQL_QUERY>SELECT t3.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t1.keyword = "Relational Database" GROUP BY t3.name ORDER BY COUNT ( DISTINCT t2.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t3.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t1.keyword = "Relational Database" GROUP BY t3.name ORDER BY COUNT ( DISTINCT t2.title ) DESC LIMIT 1;
return me the journal that has the most number of papers containing keyword " Relational Database " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the journal, which has the most number of papers containing keyword " Relational Database " .</question> [SQL]:
<SQL_QUERY>SELECT t3.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t1.keyword = "Relational Database" GROUP BY t3.name ORDER BY COUNT ( DISTINCT t2.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t3.name FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t1.keyword = "Relational Database" GROUP BY t3.name ORDER BY COUNT ( DISTINCT t2.title ) DESC LIMIT 1;
return me the journal, which has the most number of papers containing keyword " Relational Database " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the keyword, which have been contained by the most number of papers in VLDB conference .</question> [SQL]:
<SQL_QUERY>SELECT t1.keyword FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t2.name = "VLDB" GROUP BY t1.keyword ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t1.keyword FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t3 ON t3.pid = t4.pid JOIN conference AS t2 ON t3.cid = t2.cid WHERE t2.name = "VLDB" GROUP BY t1.keyword ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;
return me the keyword, which have been contained by the most number of papers in VLDB conference .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the keyword, which have been contained by the most number of papers in PVLDB .</question> [SQL]:
<SQL_QUERY>SELECT t1.keyword FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t3.name = "PVLDB" GROUP BY t1.keyword ORDER BY COUNT ( DISTINCT t2.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t1.keyword FROM publication_keyword AS t4 JOIN keyword AS t1 ON t4.kid = t1.kid JOIN publication AS t2 ON t2.pid = t4.pid JOIN journal AS t3 ON t2.jid = t3.jid WHERE t3.name = "PVLDB" GROUP BY t1.keyword ORDER BY COUNT ( DISTINCT t2.title ) DESC LIMIT 1;
return me the keyword, which have been contained by the most number of papers in PVLDB .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the keyword, which have been contained by the most number of papers by " H. V. Jagadish " .</question> [SQL]:
<SQL_QUERY>SELECT t1.keyword FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t2.name = "H. V. Jagadish" GROUP BY t1.keyword ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t1.keyword FROM publication_keyword AS t5 JOIN keyword AS t1 ON t5.kid = t1.kid JOIN publication AS t3 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t3.pid JOIN author AS t2 ON t4.aid = t2.aid WHERE t2.name = "H. V. Jagadish" GROUP BY t1.keyword ORDER BY COUNT ( DISTINCT t3.title ) DESC LIMIT 1;
return me the keyword, which have been contained by the most number of papers by " H. V. Jagadish " .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the author in the " University of Michigan " whose papers have the most total citations .</question> [SQL]:
<SQL_QUERY>SELECT t1.name 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" GROUP BY t1.name ORDER BY SUM ( t4.citation_num ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t1.name 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" GROUP BY t1.name ORDER BY SUM ( t4.citation_num ) DESC LIMIT 1;
return me the author in the " University of Michigan " whose papers have the most total citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the author in the " University of Michigan " whose papers in Databases area have the most total citations .</question> [SQL]:
<SQL_QUERY>SELECT t1.name FROM DOMAIN AS t4 JOIN domain_publication AS t2 ON t4.did = t2.did JOIN publication AS t5 ON t5.pid = t2.pid JOIN writes AS t3 ON t3.pid = t5.pid JOIN author AS t1 ON t3.aid = t1.aid JOIN organization AS t6 ON t6.oid = t1.oid WHERE t4.name = "Databases" AND t6.name = "University of Michigan" GROUP BY t1.name ORDER BY SUM ( t5.citation_num ) DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t1.name FROM DOMAIN AS t4 JOIN domain_publication AS t2 ON t4.did = t2.did JOIN publication AS t5 ON t5.pid = t2.pid JOIN writes AS t3 ON t3.pid = t5.pid JOIN author AS t1 ON t3.aid = t1.aid JOIN organization AS t6 ON t6.oid = t1.oid WHERE t4.name = "Databases" AND t6.name = "University of Michigan" GROUP BY t1.name ORDER BY SUM ( t5.citation_num ) DESC LIMIT 1;
return me the author in the " University of Michigan " whose papers in Databases area have the most total citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite. <schema>[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);</schema>" <primary_keys>[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid</primary_keys>" <foreign_keys>[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid</foreign_keys>" Answer the following question with a SQL Statement:<question>return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " with the most number of citations .</question> [SQL]:
<SQL_QUERY>SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "Divesh Srivastava" AND t1.name = "H. V. Jagadish" ORDER BY t5.citation_num DESC LIMIT 1;</SQL_QUERY>
academic
SELECT t5.title FROM writes AS t3 JOIN author AS t2 ON t3.aid = t2.aid JOIN publication AS t5 ON t3.pid = t5.pid JOIN writes AS t4 ON t4.pid = t5.pid JOIN author AS t1 ON t4.aid = t1.aid WHERE t2.name = "Divesh Srivastava" AND t1.name = "H. V. Jagadish" ORDER BY t5.citation_num DESC LIMIT 1;
return me the papers written by " H. V. Jagadish " and " Divesh Srivastava " with the most number of citations .
[Schema (values) (types)]: | academic | author : aid (text) , homepage (number) , name (text) , oid (text) | conference : cid (text) , homepage (number) , name (text) | domain : did (text) , name (number) | domain_author : aid (text) , did (number) | domain_conference : cid (text) , did (number) | journal : homepage (text) , jid (number) , name (text) | domain_journal : did (text) , jid (number) | keyword : keyword (text) , kid (number) | domain_keyword : did (text) , kid (number) | publication : abstract (text) , cid (number) , citation_num (text) , jid (text) , pid (number) , reference_num (number) , title (text) , year (text) | domain_publication : did (text) , pid (number) | organization : continent (text) , homepage (number) , name (text) , oid (text) | publication_keyword : pid (text) , kid (number) | writes : aid (text) , pid (number) | cite : cited (text) , citing (number);
[Primary Keys]: author : aid, conference : cid, domain : did, domain_author : did, domain_conference : did, journal : jid, domain_journal : did, keyword : kid, domain_keyword : did, publication : pid, domain_publication : did, organization : oid, publication_keyword : kid, writes : aid
[Foreign Keys]: domain_author : did = domain : did | domain_author : aid = author : aid | domain_conference : did = domain : did | domain_conference : cid = conference : cid | domain_journal : did = domain : did | domain_journal : jid = journal : jid | domain_keyword : did = domain : did | domain_keyword : kid = keyword : kid | publication : cid = conference : cid | publication : jid = journal : jid | domain_publication : did = domain : did | domain_publication : pid = publication : pid | publication_keyword : kid = keyword : kid | publication_keyword : pid = publication : pid | writes : aid = author : aid | writes : pid = publication : pid | cite : citing = publication : pid | cite : cited = publication : pid