instruction
stringlengths 646
49.5k
| input
stringclasses 1
value | output
stringlengths 23
804
|
---|---|---|
Solve the following sql problem:
Please list any two films that Penelope Guiness acted in.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Penelope' AND T1.last_name = 'Guiness' LIMIT 2 |
|
Solve the following sql problem:
What is the percentage of documentary films?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT CAST(SUM(IIF(T2.name = 'Documentary', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id |
|
Solve the following sql problem:
How many films in English are for adults only?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.name = 'English' AND T1.rating = 'NC-17' |
|
Solve the following sql problem:
Which film has the longest duration?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film ) |
|
Solve the following sql problem:
How many of the actors are named "Dan"?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(actor_id) FROM actor WHERE first_name = 'Dan' |
|
Solve the following sql problem:
What is the most common first name among the customers?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT first_name FROM customer GROUP BY first_name ORDER BY COUNT(first_name) DESC LIMIT 1 |
|
Solve the following sql problem:
What are the ratings of the film featuring behind the scenes?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT rating FROM film WHERE special_features LIKE '%Behind the Scenes%' |
|
Solve the following sql problem:
What is the largest number of films rented per customer?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(rental_id) FROM rental GROUP BY customer_id ORDER BY COUNT(rental_id) DESC LIMIT 1 |
|
Solve the following sql problem:
List all the films with the word "Lacklusture" in their description.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film_text WHERE description LIKE '%Lacklusture%' |
|
Solve the following sql problem:
How many films did a customer named Francis Sikes rent?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'FRANCIS' AND T1.last_name = 'SIKES' |
|
Solve the following sql problem:
Who is the manager of the store with the largest collection of films?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.first_name, T.last_name FROM ( SELECT T3.first_name, T3.last_name, COUNT(T1.film_id) AS num FROM inventory AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id INNER JOIN staff AS T3 ON T2.manager_staff_id = T3.staff_id GROUP BY T3.first_name, T3.last_name ) AS T ORDER BY T.num DESC LIMIT 1 |
|
Solve the following sql problem:
What are the addresses of the inactive customers?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.address FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.active = 0 |
|
Solve the following sql problem:
Which category is the most common?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.name FROM ( SELECT T2.name, COUNT(T2.name) AS num FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T2.name ) AS T ORDER BY T.num DESC LIMIT 1 |
|
Solve the following sql problem:
Provide the cast for the film "Jason trap".
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'JASON TRAP' |
|
Solve the following sql problem:
Who is the customer with the largest payment for rental films?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, SUM(T2.amount) AS num FROM customer AS T1 INNER JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1 |
|
Solve the following sql problem:
List the top 5 most-rented films.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.title FROM ( SELECT T3.title, COUNT(T2.inventory_id) AS num FROM rental AS T1 INNER JOIN inventory AS T2 ON T1.inventory_id = T2.inventory_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id GROUP BY T3.title ) AS T ORDER BY T.num DESC LIMIT 5 |
|
Solve the following sql problem:
Which country does Sasebo belong to?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Sasebo' |
|
Solve the following sql problem:
What are the addresses for the stores?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.address FROM store AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id |
|
Solve the following sql problem:
List all the animation titles.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.title AS per FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.name = 'Animation' |
|
Solve the following sql problem:
What is the city with the most customers?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.city FROM ( SELECT T1.city, COUNT(T3.customer_id) AS num FROM city AS T1 INNER JOIN address AS T2 ON T2.city_id = T1.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id GROUP BY T1.city ) AS T ORDER BY T.num DESC LIMIT 1 |
|
Solve the following sql problem:
Which actor acted in the most films?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.first_name, T.last_name FROM ( SELECT T2.first_name, T2.last_name, SUM(T1.film_id) AS num FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.first_name, T2.last_name ) AS T ORDER BY T.num DESC LIMIT 1 |
|
Solve the following sql problem:
What percentage of films are horror films?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT CAST(SUM(IIF(T2.name = 'Horror', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id |
|
Solve the following sql problem:
Please indicate the full name of actor id 5.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT first_name, last_name FROM actor WHERE actor_id = 5 |
|
Solve the following sql problem:
How many id movies have category id 11?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(film_id) FROM film_category WHERE category_id = 11 |
|
Solve the following sql problem:
Which category does BABY HALL film belong to?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.`name` FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.title = 'BABY HALL' |
|
Solve the following sql problem:
Give the full name of the actor with the highest rental rate.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T3.film_id = T2.film_id ORDER BY T3.rental_rate DESC LIMIT 1 |
|
Solve the following sql problem:
Please give the description of the movie starring JENNIFER DAVIS.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.description FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T3.film_id = T2.film_id WHERE T1.first_name = 'JOHNNY' AND T1.last_name = 'DAVIS' |
|
Solve the following sql problem:
List the full names of customers who have paid more than 10$.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.first_name, T2.last_name FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.amount > 10 |
|
Solve the following sql problem:
Please provide the address of the customer whose first name is SUSAN with the postal code 77948.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.address FROM address AS T1 INNER JOIN customer AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = 'SUSAN' AND T1.postal_code = 77948 |
|
Solve the following sql problem:
How many customers have an address in Abu Dhabi city? List those customer names.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.city_id) FROM city AS T1 INNER JOIN address AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id WHERE T1.city = 'Abu Dhabi' |
|
Solve the following sql problem:
Please provide the full name of the customer at 692 Joliet Street.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.first_name, T2.last_name FROM address AS T1 INNER JOIN customer AS T2 ON T1.address_id = T2.address_id WHERE T1.address = '692 Joliet Street' |
|
Solve the following sql problem:
List movie titles with duration over 120 minutes that are in the action category.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.`name` = 'action' AND T1.length > 120 |
|
Solve the following sql problem:
Which actor acted in ANONYMOUS HUMAN?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T3.film_id = T2.film_id WHERE T3.title = 'ANONYMOUS HUMAN' |
|
Solve the following sql problem:
Which movie title has the lowest movie rental in the horror category?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Horror' ORDER BY T1.rental_rate LIMIT 1 |
|
Solve the following sql problem:
List the descriptions of movies under the category Travel.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Travel' |
|
Solve the following sql problem:
Calculate the total payment amount of customers in Nagasaki district.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT SUM(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id WHERE T3.district = 'Nagasaki' |
|
Solve the following sql problem:
Calculate the percentage of total payment of MARGARET MOORE customers.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT CAST(SUM(IIF(T2.first_name = 'MARGARET' AND T2.last_name = 'MOORE', T1.amount, 0)) AS REAL) * 100 / SUM(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id |
|
Solve the following sql problem:
Calculate the percentage of movie titles with a screen length of more than 120 minutes that have a category of horror movies.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT CAST(SUM(IIF(T3.`name` = 'Horror', 1, 0)) * 100 / COUNT(T1.film_id) AS REAL) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.length > 120 |
|
Solve the following sql problem:
How many film titles were released in 2006?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(film_id) FROM film WHERE release_year = 2006 |
|
Solve the following sql problem:
List down film titles from id 1 to 10.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE film_id BETWEEN 1 AND 10 |
|
Solve the following sql problem:
List down all of the film IDs with highest rental duration.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT film_id FROM film WHERE rental_duration = ( SELECT MAX(rental_duration) FROM film ) |
|
Solve the following sql problem:
Which film titles have the most expensive rental rate?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE rental_rate = ( SELECT MAX(rental_rate) FROM film ) |
|
Solve the following sql problem:
List down all of the film titles that are rated for general audiences.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE rating = 'G' |
|
Solve the following sql problem:
What is the language for film titled "CHILL LUCK"?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.`name` FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'CHILL LUCK' |
|
Solve the following sql problem:
What are the last updated date for English film titles that were released in 2006?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT DISTINCT T1.last_update FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'English' AND T1.release_year = 2006 |
|
Solve the following sql problem:
How many Italian film titles were special featured with deleted scenes?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'Italian' AND T1.special_features = 'deleted scenes' |
|
Solve the following sql problem:
How many animation film titles are rated for adults only?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.title) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'animation' AND T1.rating = 'NC-17' |
|
Solve the following sql problem:
List down all ratings of action film titles.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'action' |
|
Solve the following sql problem:
List down all film IDs of comedy film titles.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.film_id FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'comedy' |
|
Solve the following sql problem:
State the documentary film titles with longest length.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'documentary' ORDER BY T1.length DESC LIMIT 1 |
|
Solve the following sql problem:
What is the category of film titled "BLADE POLISH"?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.name FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.title = 'BLADE POLISH' |
|
Solve the following sql problem:
What is Mary Smith's rental ID?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.rental_id FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'MARY' AND T1.last_name = 'SMITH' |
|
Solve the following sql problem:
List down all of the customers' first name who were attended by staff with ID 1.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT DISTINCT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T2.staff_id = 1 |
|
Solve the following sql problem:
List down email address of customers who were attended by staff with ID 2.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT DISTINCT T1.email FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T2.staff_id = 2 |
|
Solve the following sql problem:
List down the actor IDs of film titled "BOUND CHEAPER".
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.actor_id FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id WHERE T1.title = 'BOUND CHEAPER' |
|
Solve the following sql problem:
What is the inventory ID of Karen Jackson?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.inventory_id FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'KAREN' AND T1.last_name = 'JACKSON' |
|
Solve the following sql problem:
List down all film titles starred by Jane Jackman.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.title FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T2.actor_id = T3.actor_id WHERE T3.first_name = 'JANE' AND T3.last_name = 'JACKMAN' |
|
Solve the following sql problem:
Who are the actors of film titled "BIRD INDEPENDENCE"?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.first_name, T3.last_name FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T2.actor_id = T3.actor_id WHERE T1.title = 'BIRD INDEPENDENCE' |
|
Solve the following sql problem:
Calculate the total rental rate for animation film titles.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT SUM(T1.rental_rate) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Animation' |
|
Solve the following sql problem:
What is the average rental rate of sci-fi film titles?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT AVG(T1.rental_rate) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.`name` = 'Sci-Fi' |
|
Solve the following sql problem:
What is the percentage of horror film titles in English film titles?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT CAST(SUM(IIF(T3.name = 'Horror', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id INNER JOIN language AS T4 ON T2.language_id = T4.language_id WHERE T4.name = 'English' |
|
Solve the following sql problem:
Among the adult films, how many of them have a rental duration of fewer than 4 days?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(film_id) FROM film WHERE rating = 'NC-17' AND rental_duration < 4 |
|
Solve the following sql problem:
What is the title of the restricted film, whose length is 71 minutes and whose replacement cost is $29.99?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE replacement_cost = 29.99 AND rating = 'R' AND length = 71 |
|
Solve the following sql problem:
Write down the email addresses of active customers who rented between 5/25/2005 at 7:37:47 PM and 5/26/2005 at 10:06:49 AM.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.email FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.rental_date BETWEEN '2005-5-25 07:37:47' AND '2005-5-26 10:06:49' AND T2.active = 1 |
|
Solve the following sql problem:
Compute the total payment made by Sarah Lewis for film rentals so far.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT SUM(T3.amount) FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN payment AS T3 ON T1.rental_id = T3.rental_id WHERE T2.first_name = 'SARAH' AND T2.last_name = 'LEWIS' |
|
Solve the following sql problem:
From 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM, how many times did Susan Wilson pay for film rentals?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.customer_id) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_date BETWEEN '2005-05-30 03:43:54' AND '2005-07-31 10:08:29' |
|
Solve the following sql problem:
Tally the full names of actors in the film "Alabama Devil."
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.first_name, T2.last_name FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.title = 'ALABAMA DEVIL' |
|
Solve the following sql problem:
Tell me the title of the film in which Sandra Kilmer is one of the actors.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.title FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.first_name = 'SANDRA' AND T2.last_name = 'KILMER' |
|
Solve the following sql problem:
How many documentary films are rated PG-13?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Documentary' AND T1.rating = 'PG-13' |
|
Solve the following sql problem:
Give me the title and category name of films whose price per day is more than $30. Please include their special features.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.title, T3.name, T1.special_features FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T1.rental_duration * T1.rental_rate > 30 |
|
Solve the following sql problem:
Name the cast members of the movie 'African Egg'.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.first_name, T2.last_name FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.title = 'AFRICAN EGG' |
|
Solve the following sql problem:
Identify the number of movies rented by Maria Miller.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T2.rental_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'Maria' AND T1.last_name = 'Miller' |
|
Solve the following sql problem:
Name the most recent movie rented by Dorothy Taylor.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'DOROTHY' AND T1.last_name = 'TAYLOR' ORDER BY T2.rental_date DESC LIMIT 1 |
|
Solve the following sql problem:
Determine the number of action movies available for rent.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T2.film_id) FROM category AS T1 INNER JOIN film_category AS T2 ON T1.category_id = T2.category_id WHERE T1.name = 'Action' |
|
Solve the following sql problem:
Where can you rent the movie 'Wyoming Storm'? Identify the address of the rental store and the rental rate.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.store_id, T1.address, T4.rental_rate FROM address AS T1 INNER JOIN store AS T2 ON T1.address_id = T2.address_id INNER JOIN inventory AS T3 ON T2.store_id = T3.store_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T4.title = 'WYOMING STORM' |
|
Solve the following sql problem:
How long did Austin Cintron take to return the movie 'Destiny Saturday'?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.rental_date - T2.return_date FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'AUSTIN' AND T4.title = 'DESTINY SATURDAY' |
|
Solve the following sql problem:
Identify the number of movies that starred Nick Stallone.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T1.film_id) FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id AND T2.first_name = 'NICK' AND T2.last_name = 'STALLONE' |
|
Solve the following sql problem:
Name the movie with the highest rental revenue among the shortest films.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE length = ( SELECT MIN(length) FROM film ) ORDER BY rental_duration * rental_rate DESC LIMIT 1 |
|
Solve the following sql problem:
Calculate the total amount paid by Stephanie Mitchell for film rentals in June 2005.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT SUM(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'STEPHANIE' AND T2.last_name = 'MITCHELL' AND SUBSTR(T1.payment_date, 1, 7) = '2005-06' |
|
Solve the following sql problem:
What is the average replacement cost for the movies with a rental rate of 4.99?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT AVG(replacement_cost) FROM film WHERE rental_rate = 4.99 |
|
Solve the following sql problem:
What is the average rental rate for PG-13 rated movies?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT AVG(rental_rate) FROM film WHERE rating = 'PG-13' |
|
Solve the following sql problem:
Indicate the percentage of inactive customers at store no.1.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT CAST(SUM(CASE WHEN active = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(customer_id) FROM customer WHERE store_id = 1 |
|
Solve the following sql problem:
For how long can you rent the movie 'Dirty Ace'?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT rental_duration FROM film WHERE title = 'DIRTY ACE' |
|
Solve the following sql problem:
Identify the full name of the customer, who has the following email address: [email protected].
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT first_name, last_name FROM customer WHERE email = '[email protected]' |
|
Solve the following sql problem:
Provide the list of the longest movies. Arrange these titles in alphabetical order.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film ) |
|
Solve the following sql problem:
How many film categories are there?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(DISTINCT category_id) FROM category |
|
Solve the following sql problem:
How many titles did Mary Smith rent in 2005? Determine the percentage of titles rented in June 2005.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(T2.rental_id) , CAST(SUM(IIF(STRFTIME('%m',T2.rental_date) = '7', 1, 0)) AS REAL) * 100 / COUNT(T2.rental_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'Maria' AND T1.last_name = 'Miller' AND STRFTIME('%Y',T2.rental_date) = '2005' |
|
Solve the following sql problem:
How many customers are still active?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT COUNT(customer_id) FROM customer WHERE active = 1 |
|
Solve the following sql problem:
List all the films that are rated as PG-13.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT title FROM film WHERE rating = 'PG-13' |
|
Solve the following sql problem:
List at least 10 films that the customers can rent for more than 5 days.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.title FROM ( SELECT T1.title, COUNT(T3.customer_id) AS num FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id WHERE T1.rental_duration > 5 GROUP BY T1.title ) AS T WHERE T.num > 10 |
|
Solve the following sql problem:
List all the cities that belong to United Arab Emirates.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.city FROM city AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE country = 'United Arab Emirates' |
|
Solve the following sql problem:
List at least 5 customers who paid greater than $10. Provide the full name of the customers.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.first_name, T2.last_name FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.amount > 10 |
|
Solve the following sql problem:
What films did Burt Dukakis got star in?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.title FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.first_name = 'BURT' AND T2.last_name = 'DUKAKIS' |
|
Solve the following sql problem:
Provide the full name of all the actors of the film "Ending Crowds".
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T2.first_name, T2.last_name FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.title = 'ENDING CROWDS' |
|
Solve the following sql problem:
Who are the actors starred in the film "Bound Cheaper"?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'BOUND CHEAPER' |
|
Solve the following sql problem:
List all the films that Karl Berr starred in and rated as PG.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'KARL' AND T1.last_name = 'BERRY' AND T3.rating = 'PG' |
|
Solve the following sql problem:
List at least 3 cities under the country of Philippines.
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.city FROM city AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE country = 'Philippines' |
|
Solve the following sql problem:
What are the films that are least rented by the customers?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T.title FROM ( SELECT T3.title, COUNT(T1.customer_id) AS num FROM rental AS T1 INNER JOIN inventory AS T2 ON T1.inventory_id = T2.inventory_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id GROUP BY T3.title ) AS T ORDER BY T.num DESC LIMIT 1 |
|
Solve the following sql problem:
List all the description of the films starring Lucille Tracy?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T1.film_id FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id WHERE T2.first_name = 'LUCILLE' AND T2.last_name = 'TRACY' |
|
Solve the following sql problem:
Which category is the film "Beach Heartbreakers" falls into?
Schema:
SCHEMA:
- Table: film_text
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Table: actor
- Column: actor_id
- Samples: [1, 2, 3, 4, 5]
- Column: first_name
- Samples: [PENELOPE, NICK, ED, JENNIFER, JOHNNY]
- Column: last_name
- Samples: [GUINESS, WAHLBERG, CHASE, DAVIS, LOLLOBRIGIDA]
- Column: last_update
- Samples: [2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0, 2006-02-15 04:34:33.0]
- Table: address
- Column: address_id
- Samples: [1, 2, 3, 4, 5]
- Column: address
- Samples: [47 MySakila Drive, 28 MySQL Boulevard, 23 Workhaven Lane, 1411 Lillydale Drive, 1913 Hanoi Way]
- Column: address2
- Samples: [None, None, None, None, ]
- Column: district
- Samples: [Alberta, QLD, Alberta, QLD, Nagasaki]
- Column: city_id
- Samples: [300, 576, 300, 576, 463]
- Column: postal_code
- Samples: [, , , , 35200]
- Column: phone
- Samples: [, , 14033335568, 6172235589, 28303384290]
- Column: last_update
- Samples: [2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0, 2006-02-15 04:45:30.0]
- Table: category
- Column: category_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [Action, Animation, Children, Classics, Comedy]
- Column: last_update
- Samples: [2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0, 2006-02-15 04:46:27.0]
- Table: city
- Column: city_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [A Corua (La Corua), Abha, Abu Dhabi, Acua, Adana]
- Column: country_id
- Samples: [87, 82, 101, 60, 97]
- Column: last_update
- Samples: [2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0, 2006-02-15 04:45:25.0]
- Table: country
- Column: country_id
- Samples: [1, 2, 3, 4, 5]
- Column: country
- Samples: [Afghanistan, Algeria, American Samoa, Angola, Anguilla]
- Column: last_update
- Samples: [2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0, 2006-02-15 04:44:00.0]
- Table: customer
- Column: customer_id
- Samples: [1, 2, 3, 4, 5]
- Column: store_id
- Samples: [1, 1, 1, 2, 1]
- Column: first_name
- Samples: [MARY, PATRICIA, LINDA, BARBARA, ELIZABETH]
- Column: last_name
- Samples: [SMITH, JOHNSON, WILLIAMS, JONES, BROWN]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_id
- Samples: [5, 6, 7, 8, 9]
- Column: active
- Samples: [1, 1, 1, 1, 1]
- Column: create_date
- Samples: [2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0, 2006-02-14 22:04:36.0]
- Column: last_update
- Samples: [2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0, 2006-02-15 04:57:20.0]
- Table: film
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: title
- Samples: [ACADEMY DINOSAUR, ACE GOLDFINGER, ADAPTATION HOLES, AFFAIR PREJUDICE, AFRICAN EGG]
- Column: description
- Samples: [A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teach..., A Astounding Epistle of a Database Administrator And a Explorer who mu..., A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumb..., A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a ..., A Fast-Paced Documentary of a Pastry Chef And a Dentist who must Pursu... (truncated)]
- Column: release_year
- Samples: [2006, 2006, 2006, 2006, 2006]
- Column: language_id
- Samples: [1, 1, 1, 1, 1]
- Column: original_language_id
- Samples: [None, None, None, None, None]
- Column: rental_duration
- Samples: [6, 3, 7, 5, 6]
- Column: rental_rate
- Samples: [0.99, 4.99, 2.99, 2.99, 2.99]
- Column: length
- Samples: [86, 48, 50, 117, 130]
- Column: replacement_cost
- Samples: [20.99, 12.99, 18.99, 26.99, 22.99]
- Column: rating
- Samples: [PG, G, NC-17, G, G]
- Column: special_features
- Samples: [Deleted Scenes,Behind the Scenes, Trailers,Deleted Scenes, Trailers,Deleted Scenes, Commentaries,Behind the Scenes, Deleted Scenes]
- Column: last_update
- Samples: [2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0, 2006-02-15 05:03:42.0]
- Table: film_actor
- Column: actor_id
- Samples: [1, 1, 1, 1, 1]
- Column: film_id
- Samples: [1, 23, 25, 106, 140]
- Column: last_update
- Samples: [2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0, 2006-02-15 05:05:03.0]
- Table: film_category
- Column: film_id
- Samples: [1, 2, 3, 4, 5]
- Column: category_id
- Samples: [6, 11, 6, 11, 8]
- Column: last_update
- Samples: [2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0, 2006-02-15 05:07:09.0]
- Table: inventory
- Column: inventory_id
- Samples: [1, 2, 3, 4, 5]
- Column: film_id
- Samples: [1, 1, 1, 1, 1]
- Column: store_id
- Samples: [1, 1, 1, 1, 2]
- Column: last_update
- Samples: [2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0, 2006-02-15 05:09:17.0]
- Table: language
- Column: language_id
- Samples: [1, 2, 3, 4, 5]
- Column: name
- Samples: [English, Italian, Japanese, Mandarin, French]
- Column: last_update
- Samples: [2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0, 2006-02-15 05:02:19.0]
- Table: payment
- Column: payment_id
- Samples: [1, 2, 3, 4, 5]
- Column: customer_id
- Samples: [1, 1, 1, 1, 1]
- Column: staff_id
- Samples: [1, 1, 1, 2, 2]
- Column: rental_id
- Samples: [76, 573, 1185, 1422, 1476]
- Column: amount
- Samples: [2.99, 0.99, 5.99, 0.99, 9.99]
- Column: payment_date
- Samples: [2005-05-25 11:30:37.0, 2005-05-28 10:35:23.0, 2005-06-15 00:54:12.0, 2005-06-15 18:02:53.0, 2005-06-15 21:08:46.0]
- Column: last_update
- Samples: [2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0, 2006-02-15 22:12:30.0]
- Table: rental
- Column: rental_id
- Samples: [1, 2, 3, 4, 5]
- Column: rental_date
- Samples: [2005-05-24 22:53:30.0, 2005-05-24 22:54:33.0, 2005-05-24 23:03:39.0, 2005-05-24 23:04:41.0, 2005-05-24 23:05:21.0]
- Column: inventory_id
- Samples: [367, 1525, 1711, 2452, 2079]
- Column: customer_id
- Samples: [130, 459, 408, 333, 222]
- Column: return_date
- Samples: [2005-05-26 22:04:30.0, 2005-05-28 19:40:33.0, 2005-06-01 22:12:39.0, 2005-06-03 01:43:41.0, 2005-06-02 04:33:21.0]
- Column: staff_id
- Samples: [1, 1, 1, 2, 1]
- Column: last_update
- Samples: [2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0, 2006-02-15 21:30:53.0]
- Table: staff
- Column: staff_id
- Samples: [1, 2]
- Column: first_name
- Samples: [Mike, Jon]
- Column: last_name
- Samples: [Hillyer, Stephens]
- Column: address_id
- Samples: [3, 4]
- Column: picture
- Samples: [0x3F504E470D0A1A0A0000000D4948445200000079000000750802000000E55AD96500..., None (truncated)]
- Column: email
- Samples: [[email protected], [email protected]]
- Column: store_id
- Samples: [1, 2]
- Column: active
- Samples: [1, 1]
- Column: username
- Samples: [Mike, Jon]
- Column: password
- Samples: [8cb2237d0679ca88db6464eac60da96345513964, 8cb2237d0679ca88db6464eac60da96345513964]
- Column: last_update
- Samples: [2006-02-15 04:57:16.0, 2006-02-15 04:57:16.0]
- Table: store
- Column: store_id
- Samples: [1, 2]
- Column: manager_staff_id
- Samples: [1, 2]
- Column: address_id
- Samples: [1, 2]
- Column: last_update
- Samples: [2006-02-15 04:57:12.0, 2006-02-15 04:57:12.0]
| SELECT T3.name FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T1.title = 'BEACH HEARTBREAKERS' |