Search is not available for this dataset
db_id stringlengths 3 31 | query stringlengths 20 523 | question stringlengths 3 224 | schema stringlengths 589 322M | query_res stringlengths 0 363k |
|---|---|---|---|---|
workshop_paper | SELECT avg(Scores) FROM submission | Compute the average score of submissions. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | (82.9,)
|
workshop_paper | SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 | What is the author of the submission with the highest score? |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Steve Myer',)
|
workshop_paper | SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 | Find the author who achieved the highest score in a submission. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Steve Myer',)
|
workshop_paper | SELECT College , COUNT(*) FROM submission GROUP BY College | Show different colleges along with the number of authors of submission from each college. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Fisk', 1)
('Florida', 1)
('Georgia', 1)
('Georgia Tech', 1)
('Miami (OH)', 1)
('New Mexico', 1)
('Notre Dame', 1)
('Temple', 1)
('Tulsa', 1)
('West Texas State', 1)
|
workshop_paper | SELECT College , COUNT(*) FROM submission GROUP BY College | For each college, return the college name and the count of authors with submissions from that college. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Fisk', 1)
('Florida', 1)
('Georgia', 1)
('Georgia Tech', 1)
('Miami (OH)', 1)
('New Mexico', 1)
('Notre Dame', 1)
('Temple', 1)
('Tulsa', 1)
('West Texas State', 1)
|
workshop_paper | SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common college of authors of submissions. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('West Texas State',)
|
workshop_paper | SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1 | Which college has the most authors with submissions? |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('West Texas State',)
|
workshop_paper | SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 | Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | |
workshop_paper | SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 | Which colleges have both authors with submission score above 90 and authors with submission score below 80? |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | |
workshop_paper | SELECT T2.Author , T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID | Show the authors of submissions and the acceptance results of their submissions. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Sammy Green', 'Accepted')
('Sammy Green', 'Rejected')
('Sherman Smith', 'Rejected')
('Steve Raible', 'Rejected')
('Jeff Lloyd', 'Rejected')
('Steve Niehaus', 'Accepted')
|
workshop_paper | SELECT T2.Author , T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID | For each submission, find its author and acceptance result. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Sammy Green', 'Accepted')
('Sammy Green', 'Rejected')
('Sherman Smith', 'Rejected')
('Steve Raible', 'Rejected')
('Jeff Lloyd', 'Rejected')
('Steve Niehaus', 'Accepted')
|
workshop_paper | SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1 | Show the result of the submission with the highest score. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Rejected',)
|
workshop_paper | SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1 | Which submission received the highest score in acceptance result. Show me the result. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Rejected',)
|
workshop_paper | SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author | Show each author and the number of workshops they submitted to. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Jeff Lloyd', 1)
('Sammy Green', 2)
('Sherman Smith', 1)
('Steve Niehaus', 1)
('Steve Raible', 1)
|
workshop_paper | SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author | How many workshops did each author submit to? Return the author name and the number of workshops. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Jeff Lloyd', 1)
('Sammy Green', 2)
('Sherman Smith', 1)
('Steve Niehaus', 1)
('Steve Raible', 1)
|
workshop_paper | SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 | Show the authors who have submissions to more than one workshop. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Sammy Green',)
|
workshop_paper | SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 | Which authors have submitted to more than one workshop? |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Sammy Green',)
|
workshop_paper | SELECT Date , Venue FROM workshop ORDER BY Venue | Show the date and venue of each workshop in ascending alphabetical order of the venue. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('July 5, 2011', 'Istanbul Turkey')
('August 18, 2007', 'London UK')
('August 21, 2007', 'London UK')
('August 25, 2007', 'New Jersey USA')
('October 8, 2007', 'New York USA')
('January 14, 2008', 'New York USA')
|
workshop_paper | SELECT Date , Venue FROM workshop ORDER BY Venue | Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('July 5, 2011', 'Istanbul Turkey')
('August 18, 2007', 'London UK')
('August 21, 2007', 'London UK')
('August 25, 2007', 'New Jersey USA')
('October 8, 2007', 'New York USA')
('January 14, 2008', 'New York USA')
|
workshop_paper | SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance) | List the authors who do not have submission to any workshop. |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Rick Engles',)
('Don Bitterlich',)
('Steve Myer',)
('Randy Johnson',)
('Andy Bolton',)
|
workshop_paper | SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance) | Which authors did not submit to any workshop? |
PRAGMA foreign_keys = ON;
CREATE TABLE "workshop" (
"Workshop_ID" int,
"Date" text,
"Venue" text,
"Name" text,
PRIMARY KEY ("Workshop_ID")
);
CREATE TABLE "submission" (
"Submission_ID" int,
"Scores" real,
"Author" text,
"College" text,
PRIMARY KEY ("Submission_ID")
);
INSERT INTO "workshop" VALUES (1,"August 18, ... | ('Rick Engles',)
('Don Bitterlich',)
('Steve Myer',)
('Randy Johnson',)
('Andy Bolton',)
|
tracking_share_transactions | SELECT count(*) FROM INVESTORS | Find the number of investors in total. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (20,)
|
tracking_share_transactions | SELECT Investor_details FROM INVESTORS | Show all investor details. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('z',)
('z',)
('d',)
('d',)
('b',)
('k',)
('l',)
('t',)
('y',)
('r',)
('q',)
('c',)
('o',)
('w',)
('i',)
('y',)
('k',)
('w',)
('l',)
('j',)
|
tracking_share_transactions | SELECT DISTINCT lot_details FROM LOTS | Show all distinct lot details. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('r',)
('z',)
('s',)
('q',)
('d',)
('m',)
('h',)
('x',)
|
tracking_share_transactions | SELECT max(amount_of_transaction) FROM TRANSACTIONS | Show the maximum amount of transaction. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (207484122.2796,)
|
tracking_share_transactions | SELECT date_of_transaction , share_count FROM TRANSACTIONS | Show all date and share count of transactions. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('1988-09-16 19:02:51', '8718572')
('1982-06-06 17:19:00', '9')
('1979-04-27 06:03:59', '8580')
('2001-11-28 15:06:25', '8040')
('1977-08-17 13:13:30', '930')
('1985-10-08 13:13:39', '2751')
('1990-12-02 09:03:38', '1522')
('2004-01-18 20:37:50', '96178')
('1977-08-13 02:18:47', '')
('1981-01-28 08:07:03', '1654756')
(... |
tracking_share_transactions | SELECT sum(share_count) FROM TRANSACTIONS | What is the total share of transactions? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (685745029.0,)
|
tracking_share_transactions | SELECT transaction_id FROM TRANSACTIONS WHERE transaction_type_code = 'PUR' | Show all transaction ids with transaction code 'PUR'. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2,)
(4,)
(5,)
(6,)
(7,)
(9,)
(14,)
(15,)
|
tracking_share_transactions | SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = "SALE" | Show all dates of transactions whose type code is "SALE". | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('1988-09-16 19:02:51',)
('1979-04-27 06:03:59',)
('2004-01-18 20:37:50',)
('1981-01-28 08:07:03',)
('2000-04-03 20:55:43',)
('1983-11-01 17:57:27',)
('2002-04-07 20:28:37',)
|
tracking_share_transactions | SELECT avg(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" | Show the average amount of transactions with type code "SALE". | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (11198167.237771427,)
|
tracking_share_transactions | SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = "PUR" | Show the description of transaction type with code "PUR". | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('Purchase',)
|
tracking_share_transactions | SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = "PUR" AND share_count > 50 | Show the minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (0,)
|
tracking_share_transactions | SELECT max(share_count) FROM TRANSACTIONS WHERE amount_of_transaction < 10000 | Show the maximum share count of transactions where the amount is smaller than 10000 | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('93191',)
|
tracking_share_transactions | SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 OR amount_of_transaction > 1000 | Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('1988-09-16 19:02:51',)
('1982-06-06 17:19:00',)
('1979-04-27 06:03:59',)
('2001-11-28 15:06:25',)
('1977-08-17 13:13:30',)
('1985-10-08 13:13:39',)
('1990-12-02 09:03:38',)
('2004-01-18 20:37:50',)
('1977-08-13 02:18:47',)
('1981-01-28 08:07:03',)
('2000-04-03 20:55:43',)
('1983-11-01 17:57:27',)
('2002-09-13 03:04:5... |
tracking_share_transactions | SELECT T1.transaction_type_description , T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 | Show the transaction type descriptions and dates if the share count is smaller than 10. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('Purchase', '1977-08-13 02:18:47')
('Sale', '2002-04-07 20:28:37')
|
tracking_share_transactions | SELECT T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100 | Show details of all investors if they make any transaction with share count greater than 100. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('k',)
('w',)
('z',)
('w',)
('t',)
('l',)
('l',)
('k',)
('z',)
('d',)
('w',)
('d',)
('l',)
|
tracking_share_transactions | SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS | How many distinct transaction types are used in the transactions? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2,)
|
tracking_share_transactions | SELECT lot_details , investor_id FROM LOTS | Return the lot details and investor ids. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('r', 13)
('z', 16)
('s', 10)
('s', 19)
('q', 6)
('d', 20)
('m', 7)
('h', 7)
('z', 20)
('x', 9)
('d', 1)
('m', 19)
('z', 7)
('d', 6)
('h', 1)
|
tracking_share_transactions | SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = "l" | Return the lot details of lots that belong to investors with details "l"? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('s',)
('m',)
('h',)
('m',)
('z',)
|
tracking_share_transactions | SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 | What are the purchase details of transactions with amount bigger than 10000? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('c',)
('i',)
('a',)
('a',)
('r',)
|
tracking_share_transactions | SELECT T1.sales_details , T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000 | What are the sale details and dates of transactions with amount smaller than 3000? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('o', '1982-06-06 17:19:00')
('f', '2001-11-28 15:06:25')
('y', '1977-08-17 13:13:30')
('p', '1990-12-02 09:03:38')
('s', '1981-01-28 08:07:03')
('s', '2000-04-03 20:55:43')
('t', '1983-11-01 17:57:27')
('p', '2002-04-07 20:28:37')
('n', '2002-09-13 03:04:56')
('e', '1997-12-30 05:05:40')
|
tracking_share_transactions | SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50 | What are the lot details of lots associated with transactions with share count smaller than 50? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('x',)
('m',)
('d',)
|
tracking_share_transactions | SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = "PUR" | What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is "PUR"? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('z',)
('h',)
('d',)
('m',)
('d',)
('z',)
|
tracking_share_transactions | SELECT transaction_type_code , avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code | Show the average transaction amount for different transaction types. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('PUR', 25945880.3716125)
('SALE', 11198167.237771427)
|
tracking_share_transactions | SELECT transaction_type_code , max(share_count) , min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code | Show the maximum and minimum share count of different transaction types. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('PUR', '93191', '')
('SALE', '96178', '')
|
tracking_share_transactions | SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id | Show the average share count of transactions for different investors. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2, 831668.0)
(3, 225053304.33333334)
(6, 8718572.0)
(7, 1522.0)
(8, 930.0)
(14, 8040.0)
(17, 96178.0)
(18, 298.0)
(19, 47971.0)
(20, 0.0)
|
tracking_share_transactions | SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count) | Show the average share count of transactions each each investor, ordered by average share count. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (20, 0.0)
(18, 298.0)
(8, 930.0)
(7, 1522.0)
(14, 8040.0)
(19, 47971.0)
(17, 96178.0)
(2, 831668.0)
(6, 8718572.0)
(3, 225053304.33333334)
|
tracking_share_transactions | SELECT investor_id , avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id | Show the average amount of transactions for different investors. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2, 24403.6612)
(3, 61.06666666666666)
(6, 302507.6996)
(7, 822.803)
(8, 0.0)
(14, 4.5263)
(17, 78035671.4424)
(18, 14.1285)
(19, 103742065.5898)
(20, 82057.207)
|
tracking_share_transactions | SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id | Show the average amount of transactions for different lots. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (1, 101119.25319999999)
(3, 207484122.2796)
(4, 48777.969)
(8, 48777.969)
(9, 0.0)
(10, 13.084466666666666)
(11, 24402.612999999998)
(14, 175642.8343)
(15, 1.0)
|
tracking_share_transactions | SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction) | Show the average amount of transactions for different lots, ordered by average amount of transactions. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (9, 0.0)
(15, 1.0)
(10, 13.084466666666666)
(11, 24402.612999999998)
(4, 48777.969)
(8, 48777.969)
(1, 101119.25319999999)
(14, 175642.8343)
(3, 207484122.2796)
|
tracking_share_transactions | SELECT investor_id , COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" GROUP BY investor_id | Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2, 2)
(3, 2)
(6, 1)
(17, 1)
(18, 1)
|
tracking_share_transactions | SELECT investor_id , COUNT(*) FROM TRANSACTIONS GROUP BY investor_id | Show the number of transactions for different investors. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2, 2)
(3, 3)
(6, 1)
(7, 1)
(8, 1)
(14, 1)
(17, 1)
(18, 2)
(19, 2)
(20, 1)
|
tracking_share_transactions | SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1 | Show the transaction type code that occurs the fewest times. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('SALE',)
|
tracking_share_transactions | SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 | Show the transaction type code that occurs the most frequently. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('PUR',)
|
tracking_share_transactions | SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 | Show the description of the transaction type that occurs most frequently. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('Purchase',)
|
tracking_share_transactions | SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1 | Show the id and details of the investor that has the largest number of transactions. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (3, 'd')
|
tracking_share_transactions | SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3 | Show the id and details for the investors who have the top 3 number of transactions. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (3, 'd')
(19, 'l')
(18, 'w')
|
tracking_share_transactions | SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*) >= 2 | Show the ids of the investors who have at least two transactions. | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2,)
(3,)
(18,)
(19,)
|
tracking_share_transactions | SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = "SALE" GROUP BY T2.investor_id HAVING COUNT(*) >= 2 | Show the ids and details of the investors who have at least two transactions with type code "SALE". | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | (2, 'z')
(3, 'd')
|
tracking_share_transactions | SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count >= 100 OR amount_of_transaction >= 100 | What are the dates of transactions with at least 100 share count or amount bigger than 100? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('1988-09-16 19:02:51',)
('1982-06-06 17:19:00',)
('1979-04-27 06:03:59',)
('2001-11-28 15:06:25',)
('1977-08-17 13:13:30',)
('1985-10-08 13:13:39',)
('1990-12-02 09:03:38',)
('2004-01-18 20:37:50',)
('1977-08-13 02:18:47',)
('1981-01-28 08:07:03',)
('2000-04-03 20:55:43',)
('1983-11-01 17:57:27',)
('2002-04-07 20:28:3... |
tracking_share_transactions | SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases | What are the details of all sales and purchases? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('a',)
('c',)
('e',)
('f',)
('h',)
('i',)
('l',)
('n',)
('o',)
('p',)
('r',)
('s',)
('t',)
('x',)
('y',)
('z',)
|
tracking_share_transactions | SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id | What are the details of the lots which are not used in any transactions? | PRAGMA foreign_keys = ON;
CREATE TABLE `Investors` (
`investor_id` INTEGER PRIMARY KEY,
`Investor_details` VARCHAR(255)
);
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (1, 'z');
INSERT INTO Investors (`investor_id`, `Investor_details`) VALUES (2, 'z');
INSERT INTO Investors (`investor_id`, `Investor... | ('m',)
('q',)
|
cre_Theme_park | SELECT count(*) FROM HOTELS | How many available hotels are there in total? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (20,)
|
cre_Theme_park | SELECT count(*) FROM HOTELS | Find the total number of available hotels. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (20,)
|
cre_Theme_park | SELECT price_range FROM HOTELS | What are the price ranges of hotels? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (2914989.571,)
('',)
(17012.682586009,)
('',)
('',)
(48525.4530675,)
(766712918.96763,)
('',)
('',)
(250548014.90329,)
('',)
(38014975.47848,)
(9393.86291219,)
(5526556.6412,)
(245.067720121,)
(43.729525,)
(289775.7331715,)
(2374.7971074,)
(1381255.81865,)
(5390.432113,)
|
cre_Theme_park | SELECT price_range FROM HOTELS | Tell me the price ranges for all the hotels. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (2914989.571,)
('',)
(17012.682586009,)
('',)
('',)
(48525.4530675,)
(766712918.96763,)
('',)
('',)
(250548014.90329,)
('',)
(38014975.47848,)
(9393.86291219,)
(5526556.6412,)
(245.067720121,)
(43.729525,)
(289775.7331715,)
(2374.7971074,)
(1381255.81865,)
(5390.432113,)
|
cre_Theme_park | SELECT DISTINCT Location_Name FROM LOCATIONS | Show all distinct location names. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Astro Orbiter',)
('African Animals',)
('American Adventure',)
('The Barnstormer',)
('African Adventure',)
('UK Gallery',)
('The Boneyard',)
('Shark World',)
('Space Spin',)
('Butterflies',)
('Soak Station',)
('Castle',)
('Coral Reefs',)
('Film Festival',)
('Fossil Fun Games',)
|
cre_Theme_park | SELECT DISTINCT Location_Name FROM LOCATIONS | What are the distinct location names? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Astro Orbiter',)
('African Animals',)
('American Adventure',)
('The Barnstormer',)
('African Adventure',)
('UK Gallery',)
('The Boneyard',)
('Shark World',)
('Space Spin',)
('Butterflies',)
('Soak Station',)
('Castle',)
('Coral Reefs',)
('Film Festival',)
('Fossil Fun Games',)
|
cre_Theme_park | SELECT Name , Other_Details FROM Staff | Show the names and details of all the staff members. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Whitney', None)
('Kaela', None)
('Eunice', None)
('Kiarra', None)
('Phoebe', None)
('Vickie', None)
('Jannie', None)
('Lenore', None)
('Asia', None)
('Janet', None)
('Elouise', None)
('Gina', None)
('Beth', None)
('Ruthie', None)
('Aurore', None)
('Cortney', None)
('Astrid', None)
('Shemar', None)
('Trinity', None)
(... |
cre_Theme_park | SELECT Name , Other_Details FROM Staff | What is the name and detail of each staff member? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Whitney', None)
('Kaela', None)
('Eunice', None)
('Kiarra', None)
('Phoebe', None)
('Vickie', None)
('Jannie', None)
('Lenore', None)
('Asia', None)
('Janet', None)
('Elouise', None)
('Gina', None)
('Beth', None)
('Ruthie', None)
('Aurore', None)
('Cortney', None)
('Astrid', None)
('Shemar', None)
('Trinity', None)
(... |
cre_Theme_park | SELECT Tourist_Details FROM VISITORS | Show details of all visitors. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Toney',)
('Graciela',)
('Vincent',)
('Vivian',)
('Nettie',)
('Laurence',)
('Newell',)
('Marisol',)
('Jarrell',)
('Edna',)
('Maud',)
('Alison',)
('Rosalind',)
('Tevin',)
('Aleen',)
('Marcelle',)
('Lizzie',)
('Wayne',)
('Teresa',)
('Elnora',)
|
cre_Theme_park | SELECT Tourist_Details FROM VISITORS | What is the detail of each visitor? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Toney',)
('Graciela',)
('Vincent',)
('Vivian',)
('Nettie',)
('Laurence',)
('Newell',)
('Marisol',)
('Jarrell',)
('Edna',)
('Maud',)
('Alison',)
('Rosalind',)
('Tevin',)
('Aleen',)
('Marcelle',)
('Lizzie',)
('Wayne',)
('Teresa',)
('Elnora',)
|
cre_Theme_park | SELECT price_range FROM HOTELS WHERE star_rating_code = "5" | Show the price ranges of hotels with 5 star ratings. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (2914989.571,)
(17012.682586009,)
('',)
(766712918.96763,)
(250548014.90329,)
(9393.86291219,)
(245.067720121,)
(1381255.81865,)
(5390.432113,)
|
cre_Theme_park | SELECT price_range FROM HOTELS WHERE star_rating_code = "5" | What are the price ranges of five star hotels? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (2914989.571,)
(17012.682586009,)
('',)
(766712918.96763,)
(250548014.90329,)
(9393.86291219,)
(245.067720121,)
(1381255.81865,)
(5390.432113,)
|
cre_Theme_park | SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = "5" AND pets_allowed_yn = 1 | Show the average price range of hotels that have 5 star ratings and allow pets. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (170031784.62282422,)
|
cre_Theme_park | SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = "5" AND pets_allowed_yn = 1 | What is the average price range of five star hotels that allow pets? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (170031784.62282422,)
|
cre_Theme_park | SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery" | What is the address of the location "UK Gallery"? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('4411 Sabrina Radial Suite 582',)
|
cre_Theme_park | SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery" | Find the address of the location named "UK Gallery". | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('4411 Sabrina Radial Suite 582',)
|
cre_Theme_park | SELECT Other_Details FROM LOCATIONS WHERE Location_Name = "UK Gallery" | What is the detail of the location UK Gallery? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (None,)
|
cre_Theme_park | SELECT Other_Details FROM LOCATIONS WHERE Location_Name = "UK Gallery" | Return the detail of the location named "UK Gallery". | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (None,)
|
cre_Theme_park | SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%" | Which location names contain the word "film"? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Film Festival',)
|
cre_Theme_park | SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%" | Find all the locations whose names contain the word "film". | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Film Festival',)
|
cre_Theme_park | SELECT count(DISTINCT Name) FROM PHOTOS | How many distinct names are associated with all the photos? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (15,)
|
cre_Theme_park | SELECT count(DISTINCT Name) FROM PHOTOS | Count the number of distinct names associated with the photos. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (15,)
|
cre_Theme_park | SELECT DISTINCT Visit_Date FROM VISITS | What are the distinct visit dates? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('2004-08-21 03:06:14',)
('2013-08-06 05:35:51',)
('2013-10-27 09:56:08',)
('1990-08-15 14:24:10',)
('1980-11-26 02:08:00',)
('2017-03-19 08:48:19',)
('2008-11-09 01:28:01',)
('1989-08-24 20:26:37',)
('1993-02-01 15:27:20',)
('2007-09-17 10:12:45',)
('1998-05-12 00:50:20',)
('2010-10-04 01:34:12',)
('2018-01-09 20:39:5... |
cre_Theme_park | SELECT DISTINCT Visit_Date FROM VISITS | Find all the distinct visit dates. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('2004-08-21 03:06:14',)
('2013-08-06 05:35:51',)
('2013-10-27 09:56:08',)
('1990-08-15 14:24:10',)
('1980-11-26 02:08:00',)
('2017-03-19 08:48:19',)
('2008-11-09 01:28:01',)
('1989-08-24 20:26:37',)
('1993-02-01 15:27:20',)
('2007-09-17 10:12:45',)
('1998-05-12 00:50:20',)
('2010-10-04 01:34:12',)
('2018-01-09 20:39:5... |
cre_Theme_park | SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" | What are the names of the tourist attractions that can be accessed by bus? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('art museum',)
('film festival',)
('haunted mansion',)
('impressions de France',)
('jungle cruise',)
('cafe',)
|
cre_Theme_park | SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" | Which tourist attractions can we get to by bus? Tell me the names of the attractions. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('art museum',)
('film festival',)
('haunted mansion',)
('impressions de France',)
('jungle cruise',)
('cafe',)
|
cre_Theme_park | SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk" | What are the names and opening hours of the tourist attractions that can be accessed by bus or walk? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('art museum', None)
('UK gallery', None)
('film festival', None)
('fun games', None)
('history gallery', None)
('exploration trial', None)
('haunted mansion', None)
('presidents hall', None)
('impressions de France', None)
('jungle cruise', None)
('cafe', None)
|
cre_Theme_park | SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk" | Find the names and opening hours of the tourist attractions that we get to by bus or walk. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('art museum', None)
('UK gallery', None)
('film festival', None)
('fun games', None)
('history gallery', None)
('exploration trial', None)
('haunted mansion', None)
('presidents hall', None)
('impressions de France', None)
('jungle cruise', None)
('cafe', None)
|
cre_Theme_park | SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 | What are the star rating descriptions of the hotels with price above 10000? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
|
cre_Theme_park | SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 | Give me the star rating descriptions of the hotels that cost more than 10000. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
('star',)
|
cre_Theme_park | SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID | What are the details and opening hours of the museums? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Yale Center for British Art', None)
('The Metropolitan Museum of Art', None)
('MoMA', None)
|
cre_Theme_park | SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID | Give me the detail and opening hour for each museum. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('Yale Center for British Art', None)
('The Metropolitan Museum of Art', None)
('MoMA', None)
|
cre_Theme_park | SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1" | What is the name of the tourist attraction that is associated with the photo "game1"? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('impressions de France',)
|
cre_Theme_park | SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1" | Which tourist attraction is associated with the photo "game1"? Return its name. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('impressions de France',)
|
cre_Theme_park | SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival" | What are the names and descriptions of the photos taken at the tourist attraction "film festival"? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('park1', None)
|
cre_Theme_park | SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival" | Find the names and descriptions of the photos taken at the tourist attraction called "film festival". | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | ('park1', None)
|
cre_Theme_park | SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID | What are the details and ways to get to tourist attractions related to royal family? | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (None, 'bus')
(None, 'shuttle')
|
cre_Theme_park | SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID | Which tourist attractions are related to royal family? Tell me their details and how we can get there. | PRAGMA foreign_keys = ON;
CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15) NOT NULL,
star_rating_description VARCHAR(80),
PRIMARY KEY (star_rating_code),
UNIQUE (star_rating_code)
);
CREATE TABLE Locations (
Location_ID INTEGER NOT NULL,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details V... | (None, 'bus')
(None, 'shuttle')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.