db_id
stringclasses
146 values
question
stringlengths
3
224
sql
stringlengths
18
577
database_schema
stringclasses
146 values
academic
return me the conferences, which have more than 10 papers by " H. V. Jagadish " .
SELECT 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" GROUP BY t2.name HAVING COUNT ( DISTINCT t4.title ) > 10;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the conference, which have the most number of papers by " H. V. Jagadish " .
SELECT 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" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t4.title ) DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the journals, which have more than 10 papers by " H. V. Jagadish " .
SELECT 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" GROUP BY t2.name HAVING COUNT ( DISTINCT t4.title ) > 10;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the journal, which have the most number of papers by " H. V. Jagadish " .
SELECT 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" GROUP BY t2.name ORDER BY COUNT ( DISTINCT t4.title ) DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper with the most citations .
SELECT title FROM publication ORDER BY citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper in Databases area with the most citations .
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" ORDER BY t3.citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper in PVLDB with the most citations .
SELECT t2.title FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" ORDER BY t2.citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper in VLDB conference with the most citations .
SELECT t2.title FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" ORDER BY t2.citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper by " H. V. Jagadish " with the most citations .
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" ORDER BY t3.citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper after 2000 with the most citations .
SELECT title FROM publication WHERE YEAR > 2000 ORDER BY citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper after 2000 in Databases area with the most citations .
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.year > 2000 ORDER BY t3.citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper after 2000 in PVLDB with the most citations .
SELECT t2.title FROM publication AS t2 JOIN journal AS t1 ON t2.jid = t1.jid WHERE t1.name = "PVLDB" AND t2.year > 2000 ORDER BY t2.citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the paper after 2000 in VLDB conference with the most citations .
SELECT t2.title FROM publication AS t2 JOIN conference AS t1 ON t2.cid = t1.cid WHERE t1.name = "VLDB" AND t2.year > 2000 ORDER BY t2.citation_num DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the authors who have more than 10 papers in PVLDB .
SELECT 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" GROUP BY t1.name HAVING COUNT ( DISTINCT t4.title ) > 10;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the authors who have the most number of papers in PVLDB .
SELECT 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" GROUP BY t1.name ORDER BY COUNT ( DISTINCT t4.title ) DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the authors who have more than 10 papers containing keyword " Relational Database " .
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 HAVING COUNT ( DISTINCT t3.title ) > 10;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the conferences, which have more than 60 papers containing keyword " Relational Database " .
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 HAVING COUNT ( DISTINCT t3.title ) > 60;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the journals, which have more than 60 papers containing keyword " Relational Database " .
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 HAVING COUNT ( DISTINCT t2.title ) > 60;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the keywords, which have been contained by more than 100 papers in VLDB conference .
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 HAVING COUNT ( DISTINCT t3.title ) > 100;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the keywords, which have been contained by more than 100 papers in PVLDB .
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 HAVING COUNT ( DISTINCT t2.title ) > 100;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the keywords, which have been contained by more than 10 papers of " H. V. Jagadish " .
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 HAVING COUNT ( DISTINCT t3.title ) > 10;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the authors who have more than 10 papers in the VLDB conference .
SELECT 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" GROUP BY t1.name HAVING COUNT ( DISTINCT t4.title ) > 10;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the author who has the most number of papers in the VLDB conference .
SELECT 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" GROUP BY t1.name ORDER BY COUNT ( DISTINCT t4.title ) DESC LIMIT 1;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the author in the " University of Michigan " whose papers have more than 5000 total citations .
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 HAVING SUM ( t4.citation_num ) > 5000;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
academic
return me the author in the " University of Michigan " in Databases area whose papers have more than 5000 total citations .
SELECT t1.name FROM domain_author AS t6 JOIN author AS t1 ON t6.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t6.did JOIN organization AS t5 ON t5.oid = t1.oid JOIN writes AS t2 ON t2.aid = t1.aid JOIN publication AS t4 ON t2.pid = t4.pid WHERE t3.name = "Databases" AND t5.name = "University of Michigan" GROUP BY t1.name HAVING SUM ( t4.citation_num ) > 5000;
CREATE TABLE "author" ( "aid" int, "homepage" text, "name" text, "oid" int, primary key("aid") ) 3 rows from author table: Empty DataFrame Columns: [aid, homepage, name, oid] Index: [] CREATE TABLE "conference" ( "cid" int, "homepage" text, "name" text, primary key ("cid") ) 3 rows from conference table: Empty DataFrame Columns: [cid, homepage, name] Index: [] CREATE TABLE "domain" ( "did" int, "name" text, primary key ("did") ) 3 rows from domain table: Empty DataFrame Columns: [did, name] Index: [] CREATE TABLE "domain_author" ( "aid" int, "did" int, primary key ("did", "aid"), foreign key("aid") references `author`("aid"), foreign key("did") references `domain`("did") ) 3 rows from domain_author table: Empty DataFrame Columns: [aid, did] Index: [] CREATE TABLE "domain_conference" ( "cid" int, "did" int, primary key ("did", "cid"), foreign key("cid") references `conference`("cid"), foreign key("did") references `domain`("did") ) 3 rows from domain_conference table: Empty DataFrame Columns: [cid, did] Index: [] CREATE TABLE "journal" ( "homepage" text, "jid" int, "name" text, primary key("jid") ) 3 rows from journal table: Empty DataFrame Columns: [homepage, jid, name] Index: [] CREATE TABLE "domain_journal" ( "did" int, "jid" int, primary key ("did", "jid"), foreign key("jid") references "journal"("jid"), foreign key("did") references "domain"("did") ) 3 rows from domain_journal table: Empty DataFrame Columns: [did, jid] Index: [] CREATE TABLE "keyword" ( "keyword" text, "kid" int, primary key("kid") ) 3 rows from keyword table: Empty DataFrame Columns: [keyword, kid] Index: [] CREATE TABLE "domain_keyword" ( "did" int, "kid" int, primary key ("did", "kid"), foreign key("kid") references "keyword"("kid"), foreign key("did") references "domain"("did") ) 3 rows from domain_keyword table: Empty DataFrame Columns: [did, kid] Index: [] CREATE TABLE "publication" ( "abstract" text, "cid" text, "citation_num" int, "jid" int, "pid" int, "reference_num" int, "title" text, "year" int, primary key("pid"), foreign key("jid") references "journal"("jid"), foreign key("cid") references "conference"("cid") ) 3 rows from publication table: Empty DataFrame Columns: [abstract, cid, citation_num, jid, pid, reference_num, title, year] Index: [] CREATE TABLE "domain_publication" ( "did" int, "pid" int, primary key ("did", "pid"), foreign key("pid") references "publication"("pid"), foreign key("did") references "domain"("did") ) 3 rows from domain_publication table: Empty DataFrame Columns: [did, pid] Index: [] CREATE TABLE "organization" ( "continent" text, "homepage" text, "name" text, "oid" int, primary key("oid") ) 3 rows from organization table: Empty DataFrame Columns: [continent, homepage, name, oid] Index: [] CREATE TABLE "publication_keyword" ( "pid" int, "kid" int, primary key ("kid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("kid") references "keyword"("kid") ) 3 rows from publication_keyword table: Empty DataFrame Columns: [pid, kid] Index: [] CREATE TABLE "writes" ( "aid" int, "pid" int, primary key ("aid", "pid"), foreign key("pid") references "publication"("pid"), foreign key("aid") references "author"("aid") ) 3 rows from writes table: Empty DataFrame Columns: [aid, pid] Index: [] CREATE TABLE "cite" ( "cited" int, "citing" int, foreign key("cited") references "publication"("pid"), foreign key("citing") references "publication"("pid") ) 3 rows from cite table: Empty DataFrame Columns: [cited, citing] Index: []
imdb
What year is the movie " The Imitation Game " from ?
SELECT release_year FROM movie WHERE title = "The Imitation Game";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What year was the movie " The Imitation Game " produced
SELECT release_year FROM movie WHERE title = "The Imitation Game";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What year was " Benedict Cumberbatch " born ?
SELECT birth_year FROM actor WHERE name = "Benedict Cumberbatch";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
In what year was " Benedict Cumberbatch " born
SELECT birth_year FROM actor WHERE name = "Benedict Cumberbatch";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What is the nationality of the actress " Christoph Waltz " ?
SELECT nationality FROM actor WHERE name = "Christoph Waltz";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What is the nationality of the actor " Christoph Waltz " ?
SELECT nationality FROM actor WHERE name = "Christoph Waltz";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies produced in 2015
SELECT title FROM movie WHERE release_year = 2015;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors born in " Tehran "
SELECT name FROM actor WHERE birth_city = "Tehran";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors born in Tehran
SELECT name FROM actor WHERE birth_city = "Tehran";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Which actors were born in Tehran
SELECT name FROM actor WHERE birth_city = "Tehran";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors who are from Afghanistan
SELECT name FROM actor WHERE nationality = "Afghanistan";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors from Afghanistan
SELECT name FROM actor WHERE nationality = "Afghanistan";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Give me the name of all the actors from Afghanistan
SELECT name FROM actor WHERE nationality = "Afghanistan";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors who were born in 1984
SELECT name FROM actor WHERE birth_year = 1984;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
When was " Kevin Spacey " born ?
SELECT birth_year FROM actor WHERE name = "actor_name0";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
In what year was " Kevin Spacey " born ?
SELECT birth_year FROM actor WHERE name = "actor_name0";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Where is the birth place of " Kevin Spacey "
SELECT birth_city FROM director WHERE name = "director_name0";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
In what city was " Kevin Spacey " born ?
SELECT birth_city FROM director WHERE name = "director_name0";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What is the nationality of " Kevin Spacey " ?
SELECT nationality FROM director WHERE name = "director_name0";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
How much was the budget of " Finding Nemo "
SELECT budget FROM movie WHERE title = "Finding Nemo";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies directed by " Steven Spielberg " after 2006
SELECT t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Steven Spielberg" AND t3.release_year > 2006;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who is the director of the movie " James Bond " ?
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "James Bond";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who directed the movie " James Bond " ?
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "James Bond";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
List " James Bond " directors
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "James Bond";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find the actor who played " Alan Turing " in the movie " The Imitation Game "
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who acted " Alan Turing " in the movie " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who was the actor that played " Alan Turing " in the movie " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who acts as " Alan Turing " in the movie " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who is the actor playing " Alan Turing " in " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What is the genre of the movie " Jurassic Park " ?
SELECT t2.genre FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "Jurassic Park";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who was the director of the movie Joy from 2015 ?
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.release_year = 2015 AND t3.title = "Joy";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies written by " Matt Damon "
SELECT t1.title FROM written_by AS t3 JOIN movie AS t1 ON t3.msid = t1.mid JOIN writer AS t2 ON t3.wid = t2.wid WHERE t2.name = "Matt Damon";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies written and produced by " Woody Allen "
SELECT t2.title FROM movie AS t2 JOIN made_by AS t3 ON t2.mid = t3.msid JOIN producer AS t1 ON t1.pid = t3.pid JOIN written_by AS t5 ON t5.msid = t2.mid JOIN writer AS t4 ON t5.wid = t4.wid WHERE t1.name = "Woody Allen" AND t4.name = "Woody Allen";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies featuring " Robin Wright "
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Robin Wright";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What are all the movies featuring " Robin Wright " ?
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Robin Wright";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies in which " Robin Wright " appears
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Robin Wright";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What was the budget of the movie Juno from 2007 ?
SELECT budget FROM movie WHERE release_year = 2007 AND title = "Juno";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all Sci-Fi produced in year 2010
SELECT t3.title FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.genre = "Sci-Fi" AND t3.release_year = 2010;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
List all the Sci-Fi movies which released in 2010
SELECT t3.title FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.genre = "Sci-Fi" AND t3.release_year = 2010;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors born in " Austin " after 1980
SELECT name FROM actor WHERE birth_city = "Austin" AND birth_year > 1980;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who are the actors born in " Austin " after 1980 ?
SELECT name FROM actor WHERE birth_city = "Austin" AND birth_year > 1980;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors from Austin born after 1980
SELECT name FROM actor WHERE birth_city = "Austin" AND birth_year > 1980;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies by directors born in " Los Angeles "
SELECT t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.birth_city = "Los Angeles";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors who were born in " New York City " in 1984
SELECT name FROM actor WHERE birth_city = "New York City" AND birth_year = 1984;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies about nuclear weapons
SELECT t3.title FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "nuclear weapons";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What are the movies related to nuclear weapons
SELECT t3.title FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "nuclear weapons";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Which movies did " Alfred Hitchcock " direct ?
SELECT t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Alfred Hitchcock";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all movies directed by " Asghar Farhadi " and featuring " Taraneh Alidoosti "
SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN directed_by AS t2 ON t4.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Taraneh Alidoosti" AND t3.name = "Asghar Farhadi";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What are all the movies directed by " Asghar Farhadi " featuring " Taraneh Alidoosti " ?
SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN directed_by AS t2 ON t4.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Taraneh Alidoosti" AND t3.name = "Asghar Farhadi";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
How many movies are there that are directed by " Asghar Farhadi " and featuring " Taraneh Alidoosti " ?
SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN directed_by AS t2 ON t4.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Taraneh Alidoosti" AND t3.name = "Asghar Farhadi";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
List all the movies directed by " Asghar Farhadi " in which " Taraneh Alidoosti " played
SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN directed_by AS t2 ON t4.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Taraneh Alidoosti" AND t3.name = "Asghar Farhadi";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What are all the tv series created by " Shonda Rhimes " ?
SELECT t2.title FROM producer AS t1 JOIN made_by AS t3 ON t1.pid = t3.pid JOIN tv_series AS t2 ON t2.sid = t3.msid WHERE t1.name = "Shonda Rhimes";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who acts " Olivia Pope " in the series Scandal ?
SELECT t1.name FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN tv_series AS t2 ON t2.sid = t3.msid WHERE t3.role = "Olivia Pope" AND t2.title = "Scandal";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who is the writer of the movie " The Truman Show "
SELECT t2.name FROM written_by AS t3 JOIN movie AS t1 ON t3.msid = t1.mid JOIN writer AS t2 ON t3.wid = t2.wid WHERE t1.title = "The Truman Show";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who is the writer of " The Truman Show "
SELECT t2.name FROM written_by AS t3 JOIN movie AS t1 ON t3.msid = t1.mid JOIN writer AS t2 ON t3.wid = t2.wid WHERE t1.title = "The Truman Show";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What are the series featuring " Scott Foley " ?
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN tv_series AS t2 ON t2.sid = t3.msid WHERE t1.name = "Scott Foley";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What are the series in which " Scott Foley " is an actor ?
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN tv_series AS t2 ON t2.sid = t3.msid WHERE t1.name = "Scott Foley";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find the directors of all movies featuring " Kate Winslet "
SELECT t3.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid = t1.aid JOIN movie AS t5 ON t5.mid = t4.msid JOIN directed_by AS t2 ON t5.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Kate Winslet";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find the producers of all movies in which " Kate Winslet " is an actor
SELECT t1.name FROM CAST AS t3 JOIN actor AS t2 ON t3.aid = t2.aid JOIN movie AS t5 ON t5.mid = t3.msid JOIN made_by AS t4 ON t5.mid = t4.msid JOIN producer AS t1 ON t1.pid = t4.pid WHERE t2.name = "Kate Winslet";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Who is the director of the tv series " House of Cards " from 2013 ?
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN tv_series AS t3 ON t3.sid = t1.msid WHERE t3.release_year = 2013 AND t3.title = "House of Cards";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all the female actors from Austin
SELECT name FROM actor WHERE birth_city = "Austin" AND gender = "female";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors from Italy born after 1980
SELECT name FROM actor WHERE birth_year > 1980 AND nationality = "Italy";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all the female actors born in " New York City " after 1980
SELECT name FROM actor WHERE birth_city = "New York City" AND birth_year > 1980 AND gender = "female";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all the female actors in the movie " Saving Private Ryan "
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t1.gender = "female" AND t3.title = "Saving Private Ryan";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all the directors who are from Afghanistan
SELECT name FROM director WHERE nationality = "Afghanistan";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find the actors who played in the movie " Camp X-Ray "
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t3.title = "Camp X-Ray";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Find all actors from Canada who acted in " James Bond " movies
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t1.nationality = "Canada" AND t3.title = "James Bond";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
find all films in which " Rowan Atkinson " acted as " Mr. Bean "
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Rowan Atkinson" AND t3.role = "Mr. Bean";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
where is the director of " The Past " from
SELECT t2.birth_city FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "The Past";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
who acted the role of " Mr. Bean "
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid WHERE t2.role = "Mr. Bean";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
what are the genres of movies directed by " Asghar Farhadi "
SELECT t3.genre FROM director AS t5 JOIN directed_by AS t2 ON t5.did = t2.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN classification AS t1 ON t4.mid = t1.msid JOIN genre AS t3 ON t3.gid = t1.gid WHERE t5.name = "Asghar Farhadi";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
Which movie had the character " Daffy Duck "
SELECT t1.title FROM movie AS t1 JOIN CAST AS t2 ON t1.mid = t2.msid WHERE t2.role = "Daffy Duck";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What are the major roles in the movie " Daddy Long Legs "
SELECT t2.role FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t3.title = "Daddy Long Legs";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
List all the directors of movies about nuclear weapons
SELECT t3.name FROM director AS t3 JOIN directed_by AS t2 ON t3.did = t2.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN tags AS t5 ON t5.msid = t4.mid JOIN keyword AS t1 ON t5.kid = t1.id WHERE t1.keyword = "nuclear weapons";
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []
imdb
What is the number of movies in which " Jennifer Aniston " acted after 2010 ?
SELECT COUNT ( DISTINCT t2.title ) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Jennifer Aniston" AND t2.release_year > 2010;
CREATE TABLE "actor" ( "aid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("aid") ) 3 rows from actor table: Empty DataFrame Columns: [aid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "copyright" ( "id" int, "msid" int, "cid" int, primary key("id") ) 3 rows from copyright table: Empty DataFrame Columns: [id, msid, cid] Index: [] CREATE TABLE "cast" ( "id" int, "msid" int, "aid" int, "role" int, primary key("id"), foreign key("aid") references `actor`("aid"), foreign key("msid") references `copyright`("msid") ) 3 rows from cast table: Empty DataFrame Columns: [id, msid, aid, role] Index: [] CREATE TABLE "genre" ( "gid" int, "genre" text, primary key("gid") ) 3 rows from genre table: Empty DataFrame Columns: [gid, genre] Index: [] CREATE TABLE "classification" ( "id" int, "msid" int, "gid" int, primary key("id"), foreign key("gid") references `genre`("gid"), foreign key("msid") references `copyright`("msid") ) 3 rows from classification table: Empty DataFrame Columns: [id, msid, gid] Index: [] CREATE TABLE "company" ( "id" int, "name" text, "country_code" text, primary key("id") ) 3 rows from company table: Empty DataFrame Columns: [id, name, country_code] Index: [] CREATE TABLE "director" ( "did" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("did") ) 3 rows from director table: Empty DataFrame Columns: [did, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "producer" ( "pid" int, "gender" text, "name" text, "nationality" text, "birth_city" text, "birth_year" int, primary key("pid") ) 3 rows from producer table: Empty DataFrame Columns: [pid, gender, name, nationality, birth_city, birth_year] Index: [] CREATE TABLE "directed_by" ( "id" int, "msid" int, "did" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("did") references `director`("did") ) 3 rows from directed_by table: Empty DataFrame Columns: [id, msid, did] Index: [] CREATE TABLE "keyword" ( "id" int, "keyword" text, primary key("id") ) 3 rows from keyword table: Empty DataFrame Columns: [id, keyword] Index: [] CREATE TABLE "made_by" ( "id" int, "msid" int, "pid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("pid") references `producer`("pid") ) 3 rows from made_by table: Empty DataFrame Columns: [id, msid, pid] Index: [] CREATE TABLE "movie" ( "mid" int, "title" text, "release_year" int, "title_aka" text, "budget" text, primary key("mid") ) 3 rows from movie table: Empty DataFrame Columns: [mid, title, release_year, title_aka, budget] Index: [] CREATE TABLE "tags" ( "id" int, "msid" int, "kid" int, primary key("id"), foreign key("msid") references `copyright`("msid"), foreign key("kid") references `keyword`("kid") ) 3 rows from tags table: Empty DataFrame Columns: [id, msid, kid] Index: [] CREATE TABLE "tv_series" ( "sid" int, "title" text, "release_year" int, "num_of_seasons" int, "num_of_episodes" int, "title_aka" text, "budget" text, primary key("sid") ) 3 rows from tv_series table: Empty DataFrame Columns: [sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget] Index: [] CREATE TABLE "writer" ( "wid" int, "gender" text, "name" int, "nationality" int, "num_of_episodes" int, "birth_city" text, "birth_year" int, primary key("wid") ) 3 rows from writer table: Empty DataFrame Columns: [wid, gender, name, nationality, num_of_episodes, birth_city, birth_year] Index: [] CREATE TABLE "written_by" ( "id" int, "msid" int, "wid" int, foreign key("msid") references `copyright`("msid"), foreign key("wid") references `writer`("wid") ) 3 rows from written_by table: Empty DataFrame Columns: [id, msid, wid] Index: []