answer
stringlengths 18
557
| question
stringlengths 12
280
| context
stringlengths 27
489
|
---|---|---|
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5 | Daftar 5 negara teratas berdasarkan jumlah faktur.Daftar nama negara dan jumlah faktur. | CREATE TABLE invoices (billing_country VARCHAR) |
SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8 | Daftar 8 negara teratas berdasarkan ukuran faktur kotor/total.Daftar nama negara dan ukuran faktur kotor. | CREATE TABLE invoices (billing_country VARCHAR, total INTEGER) |
SELECT billing_country, AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10 | Daftar 10 negara teratas berdasarkan ukuran faktur rata -rata.Daftar nama negara dan ukuran faktur rata -rata. | CREATE TABLE invoices (billing_country VARCHAR, total INTEGER) |
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5 | Cari tahu 5 pelanggan yang baru -baru ini membeli sesuatu.Daftar nama depan dan belakang pelanggan. | CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR, invoice_date VARCHAR) |
SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10 | Cari tahu 10 pelanggan teratas dengan jumlah total pesanan.Buat daftar nama depan dan belakang pelanggan dan jumlah total pesanan. | CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR) |
SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10 | Sebutkan 10 pelanggan teratas dengan total penjualan kotor.Buat daftar nama depan dan belakang pelanggan dan total penjualan kotor. | CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR) |
SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5 | Sebutkan 5 genre teratas berdasarkan jumlah trek.Daftar nama genre dan total trek. | CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR) |
SELECT title FROM albums | Sebutkan judul setiap album. | CREATE TABLE albums (title VARCHAR) |
SELECT title FROM albums ORDER BY title | Sebutkan setiap album yang dipesan dengan judul album dalam urutan naik. | CREATE TABLE albums (title VARCHAR) |
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title | Sebutkan setiap album yang judulnya dimulai dengan urutan abjad. | CREATE TABLE albums (title VARCHAR) |
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10 | Sebutkan nama depan dan terakhir pelanggan dari 10 faktur paling murah. | CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR) |
SELECT SUM(total) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL" | Daftar Total Jumlah Faktur dari Chicago, IL. | CREATE TABLE invoices (total INTEGER, billing_city VARCHAR, billing_state VARCHAR) |
SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL" | Sebutkan jumlah faktur dari Chicago, IL. | CREATE TABLE invoices (billing_city VARCHAR, billing_state VARCHAR) |
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state | Sebutkan jumlah faktur dari AS, dikelompokkan berdasarkan negara. | CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR) |
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1 | Sebutkan negara bagian di AS dengan faktur terbanyak. | CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR) |
SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "CA" | Sebutkan jumlah faktur dan total faktur dari California. | CREATE TABLE invoices (billing_state VARCHAR, total INTEGER) |
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith" | Daftar album Aerosmith. | CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR) |
SELECT COUNT(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Billy Cobham" | Berapa banyak album yang dimiliki Billy Cobham? | CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (artist_id VARCHAR) |
SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins" | Eduardo Martins adalah pelanggan di perusahaan mana? | CREATE TABLE customers (company VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT email, phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber" | Apa email dan nomor telepon Astrid Gruber? | CREATE TABLE customers (email VARCHAR, phone VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT COUNT(*) FROM customers WHERE city = "Prague" | Berapa banyak pelanggan yang tinggal di Praha City? | CREATE TABLE customers (city VARCHAR) |
SELECT COUNT(*) FROM customers WHERE state = "CA" | Berapa banyak pelanggan di negara bagian CA? | CREATE TABLE customers (state VARCHAR) |
SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida" | Negara manakah Roberto Almeida hidup? | CREATE TABLE customers (country VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' | Daftar nama album yang dirilis oleh aritist yang namanya 'LED' | CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR) |
SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson" | Berapa banyak pelanggan yang didukung Steve Johnson? | CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR) |
SELECT title, phone, hire_date FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards" | Apa judul, telepon, dan tanggal sewa Nancy Edwards? | CREATE TABLE employees (title VARCHAR, phone VARCHAR, hire_date VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards" | Temukan nama lengkap karyawan yang melapor ke Nancy Edwards? | CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR) |
SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards" | Apa alamat karyawan Nancy Edwards? | CREATE TABLE employees (address VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1 | Temukan nama lengkap karyawan yang mendukung sebagian besar pelanggan. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR) |
SELECT COUNT(*) FROM employees WHERE country = "Canada" | Berapa banyak karyawan yang tinggal di Kanada? | CREATE TABLE employees (country VARCHAR) |
SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards" | Berapa nomor telepon karyawan Nancy Edwards? | CREATE TABLE employees (phone VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1 | Siapa karyawan termuda di perusahaan?Daftar nama depan dan belakang karyawan. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR) |
SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 10 | Buat daftar 10 karyawan teratas terpanjang di perusahaan.Daftar nama depan dan belakang karyawan. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR) |
SELECT COUNT(*), city FROM employees WHERE title = 'IT Staff' GROUP BY city | Temukan jumlah karyawan yang gelarnya adalah staf IT dari masing -masing kota? | CREATE TABLE employees (city VARCHAR, title VARCHAR) |
SELECT T2.first_name, T2.last_name, COUNT(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC LIMIT 1 | Karyawan mana yang mengelola sebagian besar orang?Daftar nama depan dan belakang karyawan, dan jumlah orang melapor kepada karyawan itu. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE employees (reports_to VARCHAR) |
SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini" | Berapa banyak pesanan yang dimiliki Lucas Mancini? | CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini" | Berapa jumlah total uang yang dihabiskan oleh Lucas Mancini? | CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT name FROM media_types | Buat daftar semua jenis media. | CREATE TABLE media_types (name VARCHAR) |
SELECT DISTINCT name FROM genres | Sebutkan semua jenis genre yang berbeda. | CREATE TABLE genres (name VARCHAR) |
SELECT name FROM playlists | Sebutkan nama semua daftar putar. | CREATE TABLE playlists (name VARCHAR) |
SELECT composer FROM tracks WHERE name = "Fast As a Shark" | Siapakah komposer track Fast sebagai hiu? | CREATE TABLE tracks (composer VARCHAR, name VARCHAR) |
SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark" | Berapa lama lacak cepat sebagai hiu? | CREATE TABLE tracks (milliseconds VARCHAR, name VARCHAR) |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" | Apa nama trek yang genre siapa rock? | CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR) |
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "Balls to the Wall" | Apa judul album mana bola track ke dinding milik? | CREATE TABLE tracks (genre_id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR) |
SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = "Balls to the Wall" | Daftar nama semua trek dalam bola ke dinding. | CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR); CREATE TABLE albums (id VARCHAR, title VARCHAR) |
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10 | Daftar judul album memiliki jumlah lagu yang lebih besar dari 10. | CREATE TABLE tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR) |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" AND T3.name = "MPEG audio file" | Sebutkan nama trek milik Genre Rock dan yang tipe medianya adalah file audio MPEG. | CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR) |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file" | Sebutkan nama trek milik genre rock atau jenis media adalah file audio MPEG. | CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR) |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz" | Sebutkan nama trek milik genre rock atau genre jazz. | CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR) |
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies" | Sebutkan nama semua trek di daftar putar film. | CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR) |
SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING COUNT(T1.track_id) > 100 | Sebutkan nama playlist yang memiliki jumlah trek lebih dari 100. | CREATE TABLE playlist_tracks (playlist_id VARCHAR, track_id VARCHAR); CREATE TABLE playlists (name VARCHAR, id VARCHAR) |
SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters" | Sebutkan semua trek yang dibeli oleh pelanggan Daan Peeters. | CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT unit_price FROM tracks WHERE name = "Fast As a Shark" | Berapa trek secepat hiu? | CREATE TABLE tracks (unit_price VARCHAR, name VARCHAR) |
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' | Temukan nama trek yang ada di daftar putar film tetapi tidak dalam daftar putar musik. | CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR) |
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' | Temukan nama trek yang ada di daftar putar film dan musik. | CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR) |
SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name | Temukan jumlah trek di setiap genre? | CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR) |
SELECT COUNT(*) FROM editor | Ada berapa editor? | CREATE TABLE editor (Id VARCHAR) |
SELECT Name FROM editor ORDER BY Age | Sebutkan nama editor dalam urutan usia naik. | CREATE TABLE editor (Name VARCHAR, Age VARCHAR) |
SELECT Name, Age FROM editor | Apa nama dan usia editor? | CREATE TABLE editor (Name VARCHAR, Age VARCHAR) |
SELECT Name FROM editor WHERE Age > 25 | Sebutkan nama editor yang lebih tua dari 25. | CREATE TABLE editor (Name VARCHAR, Age INTEGER) |
SELECT Name FROM editor WHERE Age = 24 OR Age = 25 | Tunjukkan nama editor usia 24 atau 25. | CREATE TABLE editor (Name VARCHAR, Age VARCHAR) |
SELECT Name FROM editor ORDER BY Age LIMIT 1 | Apa nama editor termuda? | CREATE TABLE editor (Name VARCHAR, Age VARCHAR) |
SELECT Age, COUNT(*) FROM editor GROUP BY Age | Berapa usia editor yang berbeda?Tunjukkan setiap usia bersama dengan jumlah editor usia itu. | CREATE TABLE editor (Age VARCHAR) |
SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1 | Tolong tunjukkan usia editor yang paling umum. | CREATE TABLE editor (Age VARCHAR) |
SELECT DISTINCT Theme FROM journal | Tunjukkan tema jurnal yang berbeda. | CREATE TABLE journal (Theme VARCHAR) |
SELECT T2.Name, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID | Tunjukkan nama editor dan tema jurnal yang mereka layani di komite. | CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR) |
SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme | Tunjukkan nama dan usia editor dan tema jurnal yang mereka layani di komite, dalam urutan tema abjad naik. | CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR) |
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000 | Tunjukkan nama -nama editor yang ada di komite jurnal dengan penjualan lebih besar dari 3000. | CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER) |
SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id | Tunjukkan ID, nama masing -masing editor dan jumlah komite jurnal tempat mereka berada. | CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR) |
SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2 | Tunjukkan nama -nama editor yang ada di setidaknya dua komite jurnal. | CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR) |
SELECT Name FROM editor WHERE NOT editor_id IN (SELECT editor_id FROM journal_committee) | Sebutkan nama editor yang tidak ada di komite jurnal. | CREATE TABLE editor (Name VARCHAR, editor_id VARCHAR); CREATE TABLE journal_committee (Name VARCHAR, editor_id VARCHAR) |
SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID | Sebutkan tanggal, tema, dan penjualan jurnal yang tidak memiliki editor terdaftar yang bertugas di komite. | CREATE TABLE journal_committee (journal_ID VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR, journal_ID VARCHAR) |
SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo' | Berapa rata -rata penjualan jurnal yang memiliki editor yang jenis pekerjaannya 'foto'? | CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR) |
SELECT COUNT(*) FROM Accounts | Berapa banyak akun yang kita miliki? | CREATE TABLE Accounts (Id VARCHAR) |
SELECT account_id, customer_id, account_name FROM Accounts | Tampilkan ID, ID pelanggan, nama untuk semua akun. | CREATE TABLE Accounts (account_id VARCHAR, customer_id VARCHAR, account_name VARCHAR) |
SELECT other_account_details FROM Accounts WHERE account_name = "338" | Tampilkan detail akun lain untuk akun dengan nama 338. | CREATE TABLE Accounts (other_account_details VARCHAR, account_name VARCHAR) |
SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "162" | Siapa nama depan, nama belakang, dan telepon pelanggan dengan nama akun 162? | CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR) |
SELECT COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte" | Berapa banyak akun yang dimiliki pelanggan dengan nama depan seni dan nama belakang Turcotte? | CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) |
SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id | Tunjukkan semua ID pelanggan dan jumlah akun untuk setiap pelanggan. | CREATE TABLE Accounts (customer_id VARCHAR) |
SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1 | Tunjukkan ID pelanggan dan jumlah akun dengan sebagian besar akun. | CREATE TABLE Accounts (customer_id VARCHAR) |
SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1 | Apa pelanggan pertama, nama belakang dan ID dengan sedikit akun. | CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) |
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Accounts) | Tunjukkan jumlah semua pelanggan tanpa akun. | CREATE TABLE Customers (customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR) |
SELECT customer_first_name, customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id | Tunjukkan nama depan dan nama belakang pelanggan tanpa akun apa pun. | CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR) |
SELECT DISTINCT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id | Tunjukkan nama depan dan terakhir yang berbeda untuk semua pelanggan dengan akun. | CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) |
SELECT COUNT(DISTINCT customer_id) FROM Accounts | Berapa banyak pelanggan yang memiliki akun? | CREATE TABLE Accounts (customer_id VARCHAR) |
SELECT COUNT(*) FROM Customers | Berapa banyak pelanggan yang kita miliki? | CREATE TABLE Customers (Id VARCHAR) |
SELECT customer_id, customer_first_name, customer_last_name, customer_phone FROM Customers | Tampilkan ID, nama depan, nama belakang, dan telepon untuk semua pelanggan. | CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR) |
SELECT customer_phone, customer_email FROM Customers WHERE customer_first_name = "Aniyah" AND customer_last_name = "Feest" | Apa telepon dan email untuk pelanggan dengan nama depan aniyah dan nama belakang feest? | CREATE TABLE Customers (customer_phone VARCHAR, customer_email VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) |
SELECT COUNT(*) FROM Customers_cards | Tunjukkan jumlah kartu pelanggan. | CREATE TABLE Customers_cards (Id VARCHAR) |
SELECT card_id, customer_id, card_type_code, card_number FROM Customers_cards | Tampilkan ID, ID Pelanggan, Kode Jenis Kartu, Nomor Kartu untuk Semua Kartu. | CREATE TABLE Customers_cards (card_id VARCHAR, customer_id VARCHAR, card_type_code VARCHAR, card_number VARCHAR) |
SELECT date_valid_from, date_valid_to FROM Customers_cards WHERE card_number = "4560596484842" | Tunjukkan tanggal yang berlaku dari dan tanggal yang berlaku untuk kartu dengan nomor kartu '4560596484842'. | CREATE TABLE Customers_cards (date_valid_from VARCHAR, date_valid_to VARCHAR, card_number VARCHAR) |
SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842" | Siapa nama depan, nama belakang, dan telepon pelanggan dengan kartu 4560596484842. | CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR) |
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte" | Berapa banyak kartu yang dimiliki pelanggan Art Turcotte? | CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) |
SELECT COUNT(*) FROM Customers_cards WHERE card_type_code = "Debit" | Berapa banyak kartu debit yang kita miliki? | CREATE TABLE Customers_cards (card_type_code VARCHAR) |
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Blanche" AND T2.customer_last_name = "Huels" AND T1.card_type_code = "Credit" | Berapa banyak kartu kredit yang dimiliki pelanggan Huels pelanggan? | CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) |
SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id | Tunjukkan semua ID pelanggan dan jumlah kartu yang dimiliki oleh masing -masing pelanggan. | CREATE TABLE Customers_cards (customer_id VARCHAR) |
SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1 | Apa ID Pelanggan dengan sebagian besar kartu, dan berapa banyak yang dimilikinya? | CREATE TABLE Customers_cards (customer_id VARCHAR) |
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 | Tunjukkan ID, nama depan dan terakhir untuk semua pelanggan dengan setidaknya dua kartu. | CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) |
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1 | Apa ID Pelanggan, nama depan dan belakang dengan sedikit akun. | CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) |
SELECT card_type_code, COUNT(*) FROM Customers_cards GROUP BY card_type_code | Tunjukkan semua kode jenis kartu dan jumlah kartu di setiap jenis. | CREATE TABLE Customers_cards (card_type_code VARCHAR) |