cnatale/presto-athena-txt-2-sql huggingface dataset:
What is the first name and last name of the student who have most number of sports?
Additional table information: table: game_1
SQL: SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1
What is the first and last name of the student who played the most sports?
Additional table information: table: game_1
SQL: SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1
Which sport has most number of students on scholarship?
Additional table information: table: game_1
SQL: SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY COUNT(*) DESC LIMIT 1
What is the sport with the most scholarship students?
Additional table information: table: game_1
SQL: SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY COUNT(*) DESC LIMIT 1
Show student ids who don't have any sports.
Additional table information: table: game_1
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo
What are the ids of all students who don't play sports?
Additional table information: table: game_1
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo
Show student ids who are on scholarship and have major 600.
Additional table information: table: game_1
SQL: SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'
What are the student ids for those on scholarship in major number 600?
Additional table information: table: game_1
SQL: SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'
Show student ids who are female and play football.
Additional table information: table: game_1
SQL: SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = 'Football'
What are the ids of all female students who play football?
Additional table information: table: game_1
SQL: SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = 'Football'
Show all male student ids who don't play football.
Additional table information: table: game_1
SQL: SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = 'Football'
What are the ids of all male students who do not play football?
Additional table information: table: game_1
SQL: SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = 'Football'
Show total hours per week and number of games played for student David Shieber.
Additional table information: table: game_1
SQL: SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = 'David' AND T2.Lname = 'Shieber'
What is the total number of hours per work and number of games played by David Shieber?
Additional table information: table: game_1
SQL: SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = 'David' AND T2.Lname = 'Shieber'
Show total hours per week and number of games played for students under 20.
Additional table information: table: game_1
SQL: SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20
What is the total number of hours per week and number of games played by students under 20?
Additional table information: table: game_1
SQL: SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20
How many students play video games?
Additional table information: table: game_1
SQL: SELECT COUNT(DISTINCT StuID) FROM Plays_games
How many different students play games?
Additional table information: table: game_1
SQL: SELECT COUNT(DISTINCT StuID) FROM Plays_games
Show ids of students who don't play video game.
Additional table information: table: game_1
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games
What are the ids of all students who are not video game players?
Additional table information: table: game_1
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games
Show ids of students who play video game and play sports.
Additional table information: table: game_1
SQL: SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games
What are the ids of all students who played video games and sports?
Additional table information: table: game_1
SQL: SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games
Show all game ids and the number of hours played.
Additional table information: table: game_1
SQL: SELECT gameid, SUM(hours_played) FROM Plays_games GROUP BY gameid
What are ids and total number of hours played for each game?
Additional table information: table: game_1
SQL: SELECT gameid, SUM(hours_played) FROM Plays_games GROUP BY gameid
Show all student ids and the number of hours played.
Additional table information: table: game_1
SQL: SELECT Stuid, SUM(hours_played) FROM Plays_games GROUP BY Stuid
What are the ids of all students and number of hours played?
Additional table information: table: game_1
SQL: SELECT Stuid, SUM(hours_played) FROM Plays_games GROUP BY Stuid
Show the game name that has most number of hours played.
Additional table information: table: game_1
SQL: SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1
What is the name of the game that has been played the most?
Additional table information: table: game_1
SQL: SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1
Show all game names played by at least 1000 hours.
Additional table information: table: game_1
SQL: SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING SUM(hours_played) >= 1000
What are the names of all the games that have been played for at least 1000 hours?
Additional table information: table: game_1
SQL: SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING SUM(hours_played) >= 1000
Show all game names played by Linda Smith
Additional table information: table: game_1
SQL: SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = 'Smith' AND T3.Fname = 'Linda'
What are the names of all games played by Linda Smith?
Additional table information: table: game_1
SQL: SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = 'Smith' AND T3.Fname = 'Linda'
Find the last and first name of students who are playing Football or Lacrosse.
Additional table information: table: game_1
SQL: SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = 'Football' OR T1.SportName = 'Lacrosse'
What is the first and last name of all students who play Football or Lacrosse?
Additional table information: table: game_1
SQL: SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = 'Football' OR T1.SportName = 'Lacrosse'
Find the first name and age of the students who are playing both Football and Lacrosse.
Additional table information: table: game_1
SQL: SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = 'Football' INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = 'Lacrosse')
What are the first names and ages of all students who are playing both Football and Lacrosse?
Additional table information: table: game_1
SQL: SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = 'Football' INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = 'Lacrosse')
Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.
Additional table information: table: game_1
SQL: SELECT lname, sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = 'Call of Destiny' INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = 'Works of Widenius')
what is the last name and gender of all students who played both Call of Destiny and Works of Widenius?
Additional table information: table: game_1
SQL: SELECT lname, sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = 'Call of Destiny' INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = 'Works of Widenius')
Find the name of all customers.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers
What are the names of all the customers?
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers
How many customers are there?
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(*) FROM customers
Return the total number of distinct customers.
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(*) FROM customers
What is the average amount of items ordered in each order?
Additional table information: table: customers_and_addresses
SQL: SELECT AVG(order_quantity) FROM order_items
Find the average order quantity per order.
Additional table information: table: customers_and_addresses
SQL: SELECT AVG(order_quantity) FROM order_items
What are the names of customers who use payment method 'Cash'?
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE payment_method = 'Cash'
Which customers use 'Cash' for payment method? Return the customer names.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE payment_method = 'Cash'
Find the 'date became customers' of the customers whose ID is between 10 and 20.
Additional table information: table: customers_and_addresses
SQL: SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20
What are the dates when customers with ids between 10 and 20 became customers?
Additional table information: table: customers_and_addresses
SQL: SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20
Which payment method is used by most customers?
Additional table information: table: customers_and_addresses
SQL: SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1
Find the payment method that is used most frequently.
Additional table information: table: customers_and_addresses
SQL: SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1
What are the names of customers using the most popular payment method?
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1)
Find the name of the customers who use the most frequently used payment method.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1)
What are all the payment methods?
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT payment_method FROM customers
Return all the distinct payment methods used by customers.
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT payment_method FROM customers
What are the details of all products?
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT product_details FROM products
Return the the details of all products.
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT product_details FROM products
Find the name of all customers whose name contains 'Alex'.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE customer_name LIKE '%Alex%'
Which customer's name contains 'Alex'? Find the full name.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE customer_name LIKE '%Alex%'
Find the detail of products whose detail contains the word 'Latte' or the word 'Americano'
Additional table information: table: customers_and_addresses
SQL: SELECT product_details FROM products WHERE product_details LIKE '%Latte%' OR product_details LIKE '%Americano%'
Which product's detail contains the word 'Latte' or 'Americano'? Return the full detail.
Additional table information: table: customers_and_addresses
SQL: SELECT product_details FROM products WHERE product_details LIKE '%Latte%' OR product_details LIKE '%Americano%'
What is the address content of the customer named 'Maudie Kertzmann'?
Additional table information: table: customers_and_addresses
SQL: SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = 'Maudie Kertzmann'
Return the address content for the customer whose name is 'Maudie Kertzmann'.
Additional table information: table: customers_and_addresses
SQL: SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = 'Maudie Kertzmann'
How many customers are living in city 'Lake Geovannyton'?
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = 'Lake Geovannyton'
Find the number of customers who live in the city called Lake Geovannyton.
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = 'Lake Geovannyton'
Find the name of customers who are living in Colorado?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'Colorado'
What are the names of customers who live in Colorado state?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'Colorado'
Find the list of cities that no customer is living in.
Additional table information: table: customers_and_addresses
SQL: SELECT city FROM addresses WHERE NOT city IN (SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id)
What are the cities no customers live in?
Additional table information: table: customers_and_addresses
SQL: SELECT city FROM addresses WHERE NOT city IN (SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id)
Which city has the most customers living in?
Additional table information: table: customers_and_addresses
SQL: SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) DESC LIMIT 1
Find the city where the most customers live.
Additional table information: table: customers_and_addresses
SQL: SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) DESC LIMIT 1
Retrieve the list of all cities.
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT city FROM addresses
List all the distinct cities
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT city FROM addresses
Find the city with post code 255.
Additional table information: table: customers_and_addresses
SQL: SELECT city FROM addresses WHERE zip_postcode = 255
Which city is post code 255 located in?
Additional table information: table: customers_and_addresses
SQL: SELECT city FROM addresses WHERE zip_postcode = 255
Find the state and country of all cities with post code starting with 4.
Additional table information: table: customers_and_addresses
SQL: SELECT state_province_county, country FROM addresses WHERE zip_postcode LIKE '4%'
What are the state and country of all the cities that have post codes starting with 4.\
Additional table information: table: customers_and_addresses
SQL: SELECT state_province_county, country FROM addresses WHERE zip_postcode LIKE '4%'
List the countries having more than 4 addresses listed.
Additional table information: table: customers_and_addresses
SQL: SELECT country FROM addresses GROUP BY country HAVING COUNT(address_id) > 4
For which countries are there more than four distinct addresses listed?
Additional table information: table: customers_and_addresses
SQL: SELECT country FROM addresses GROUP BY country HAVING COUNT(address_id) > 4
List all the contact channel codes that were used less than 5 times.
Additional table information: table: customers_and_addresses
SQL: SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING COUNT(customer_id) < 5
Which contact channel codes were used less than 5 times?
Additional table information: table: customers_and_addresses
SQL: SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING COUNT(customer_id) < 5
Which contact channel has been used by the customer with name 'Tillman Ernser'?
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = 'Tillman Ernser'
Find the contact channel code that was used by the customer named 'Tillman Ernser'.
Additional table information: table: customers_and_addresses
SQL: SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = 'Tillman Ernser'
What is the 'active to date' of the latest contact channel used by 'Tillman Ernser'?
Additional table information: table: customers_and_addresses
SQL: SELECT MAX(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = 'Tillman Ernser'
Return the the 'active to date' of the latest contact channel used by the customer named 'Tillman Ernser'.
Additional table information: table: customers_and_addresses
SQL: SELECT MAX(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = 'Tillman Ernser'
What is the average time span of contact channels in the database?
Additional table information: table: customers_and_addresses
SQL: SELECT AVG(active_to_date - active_from_date) FROM customer_contact_channels
Compute the average active time span of contact channels.
Additional table information: table: customers_and_addresses
SQL: SELECT AVG(active_to_date - active_from_date) FROM customer_contact_channels
What is the channel code and contact number of the customer contact channel that was active for the longest time?
Additional table information: table: customers_and_addresses
SQL: SELECT channel_code, contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)
Return the channel code and contact number of the customer contact channel whose active duration was the longest.
Additional table information: table: customers_and_addresses
SQL: SELECT channel_code, contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)
Find the name and active date of the customer that use email as the contact channel.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'
What are the name and active date of the customers whose contact channel code is email?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'
What is the name of the customer that made the order with the largest quantity?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = (SELECT MAX(order_quantity) FROM order_items)
Find the name of the customer who made the order of the largest amount of goods.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = (SELECT MAX(order_quantity) FROM order_items)
What is the name of the customer that has purchased the most items?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) DESC LIMIT 1
Give me the name of the customer who ordered the most items in total.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) DESC LIMIT 1
What is the payment method of the customer that has purchased the least quantity of items?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) NULLS FIRST LIMIT 1
Tell me the payment method used by the customer who ordered the least amount of goods in total.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) NULLS FIRST LIMIT 1
How many types of products have Rodrick Heaney bought in total?
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = 'Rodrick Heaney'
Find the number of distinct products Rodrick Heaney has bought so far.
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = 'Rodrick Heaney'
What is the total quantity of products purchased by 'Rodrick Heaney'?
Additional table information: table: customers_and_addresses
SQL: SELECT SUM(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = 'Rodrick Heaney'
Tell me the total quantity of products bought by the customer called 'Rodrick Heaney'.
Additional table information: table: customers_and_addresses
SQL: SELECT SUM(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = 'Rodrick Heaney'
How many customers have at least one order with status 'Cancelled'?
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(DISTINCT customer_id) FROM customer_orders WHERE order_status = 'Cancelled'
Return the number of customers who have at least one order with 'Cancelled' status.
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(DISTINCT customer_id) FROM customer_orders WHERE order_status = 'Cancelled'
How many orders have detail 'Second time'?
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(*) FROM customer_orders WHERE order_details = 'Second time'
Tell me the number of orders with 'Second time' as order detail.
Additional table information: table: customers_and_addresses
SQL: SELECT COUNT(*) FROM customer_orders WHERE order_details = 'Second time'
Find the customer name and date of the orders that have the status 'Delivered'.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = 'Delivered'
What are the customer name and date of the orders whose status is 'Delivered'.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = 'Delivered'
What is the total number of products that are in orders with status 'Cancelled'?
Additional table information: table: customers_and_addresses
SQL: SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = 'Cancelled'
Find the total quantity of products associated with the orders in the 'Cancelled' status.
Additional table information: table: customers_and_addresses
SQL: SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = 'Cancelled'
Find the total amount of products ordered before 2018-03-17 07:13:53.
Additional table information: table: customers_and_addresses
SQL: SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < '2018-03-17 07:13:53'
What is the total amount of products purchased before 2018-03-17 07:13:53?
Additional table information: table: customers_and_addresses
SQL: SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < '2018-03-17 07:13:53'
Who made the latest order?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1
Find the name of the customer who made an order most recently.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1
Which product has been ordered most number of times?
Additional table information: table: customers_and_addresses
SQL: SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1
What is the most frequently ordered product? Tell me the detail of the product
Additional table information: table: customers_and_addresses
SQL: SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name and ID of the product whose total order quantity is the largest.
Additional table information: table: customers_and_addresses
SQL: SELECT t2.product_details, t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY SUM(t1.order_quantity) NULLS FIRST LIMIT 1
What are the name and ID of the product bought the most.
Additional table information: table: customers_and_addresses
SQL: SELECT t2.product_details, t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY SUM(t1.order_quantity) NULLS FIRST LIMIT 1
Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.
Additional table information: table: customers_and_addresses
SQL: SELECT address_content FROM addresses WHERE city = 'East Julianaside' AND state_province_county = 'Texas' UNION SELECT address_content FROM addresses WHERE city = 'Gleasonmouth' AND state_province_county = 'Arizona'
What are all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.
Additional table information: table: customers_and_addresses
SQL: SELECT address_content FROM addresses WHERE city = 'East Julianaside' AND state_province_county = 'Texas' UNION SELECT address_content FROM addresses WHERE city = 'Gleasonmouth' AND state_province_county = 'Arizona'
Find the name of customers who did not pay with Cash.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE payment_method <> 'Cash'
What is the name of customers who do not use Cash as payment method.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers WHERE payment_method <> 'Cash'
Find the names of customers who never ordered product Latte.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte'
What are names of customers who never ordered product Latte.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte'
Find the names of customers who never placed an order.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id
What are the names of customers who never made an order.
Additional table information: table: customers_and_addresses
SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id
Find the names of customers who ordered both products Latte and Americano.
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano'
What are the names of customers who have purchased both products Latte and Americano?
Additional table information: table: customers_and_addresses
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano'
How many artists are there?
Additional table information: table: music_4
SQL: SELECT COUNT(*) FROM artist
Count the number of artists.
Additional table information: table: music_4
SQL: SELECT COUNT(*) FROM artist
List the age of all music artists.
Additional table information: table: music_4
SQL: SELECT Age FROM artist
What are the ages of all music artists?
Additional table information: table: music_4
SQL: SELECT Age FROM artist
What is the average age of all artists?
Additional table information: table: music_4
SQL: SELECT AVG(Age) FROM artist
Return the average age across all artists.
Additional table information: table: music_4
SQL: SELECT AVG(Age) FROM artist
What are the famous titles of the artist 'Triumfall'?
Additional table information: table: music_4
SQL: SELECT Famous_Title FROM artist WHERE Artist = 'Triumfall'
Return the famous titles of the artist called 'Triumfall'.
Additional table information: table: music_4
SQL: SELECT Famous_Title FROM artist WHERE Artist = 'Triumfall'
What are the distinct Famous release dates?
Additional table information: table: music_4
SQL: SELECT DISTINCT (Famous_Release_date) FROM artist
Give the distinct famous release dates for all artists.
Additional table information: table: music_4
SQL: SELECT DISTINCT (Famous_Release_date) FROM artist
Return the dates of ceremony and the results of all music festivals
Additional table information: table: music_4
SQL: SELECT Date_of_ceremony, RESULT FROM music_festival
What are the dates of ceremony and results for each music festival?
Additional table information: table: music_4
SQL: SELECT Date_of_ceremony, RESULT FROM music_festival
What are the category of music festivals with result 'Awarded'?
Additional table information: table: music_4
SQL: SELECT Category FROM music_festival WHERE RESULT = 'Awarded'
Return the categories of music festivals that have the result 'Awarded'.
Additional table information: table: music_4
SQL: SELECT Category FROM music_festival WHERE RESULT = 'Awarded'
What are the maximum and minimum week on top of all volumes?
Additional table information: table: music_4
SQL: SELECT MAX(Weeks_on_Top), MIN(Weeks_on_Top) FROM volume
Give the maximum and minimum weeks on top across all volumes.
Additional table information: table: music_4
SQL: SELECT MAX(Weeks_on_Top), MIN(Weeks_on_Top) FROM volume
What are the songs in volumes with more than 1 week on top?
Additional table information: table: music_4
SQL: SELECT Song FROM volume WHERE Weeks_on_Top > 1
Give the songs included in volumes that have more than 1 week on top.
Additional table information: table: music_4
SQL: SELECT Song FROM volume WHERE Weeks_on_Top > 1
Please list all songs in volumes in ascending alphabetical order.
Additional table information: table: music_4
SQL: SELECT Song FROM volume ORDER BY Song NULLS FIRST
What are the the songs in volumes, listed in ascending order?
Additional table information: table: music_4
SQL: SELECT Song FROM volume ORDER BY Song NULLS FIRST
How many distinct artists do the volumes associate to?
Additional table information: table: music_4
SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
Count the number of distinct artists who have volumes.
Additional table information: table: music_4
SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
Please show the date of ceremony of the volumes that last more than 2 weeks on top.
Additional table information: table: music_4
SQL: SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2
What are the dates of ceremony at music festivals corresponding to volumes that lasted more than 2 weeks on top?
Additional table information: table: music_4
SQL: SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2
Please show the songs that have result 'nominated' at music festivals.
Additional table information: table: music_4
SQL: SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = 'Nominated'
What are the songs in volumes that have resulted in a nomination at music festivals?
Additional table information: table: music_4
SQL: SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = 'Nominated'
What are the issue dates of volumes associated with the artist 'Gorgoroth'?
Additional table information: table: music_4
SQL: SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = 'Gorgoroth'
Return the issue dates of volumes that are by the artist named Gorgoroth.
Additional table information: table: music_4
SQL: SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = 'Gorgoroth'
What are the songs in volumes associated with the artist aged 32 or older?
Additional table information: table: music_4
SQL: SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32
Return names of songs in volumes that are by artists that are at least 32 years old.
Additional table information: table: music_4
SQL: SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32
What is the average weeks on top of volumes associated with the artist aged 25 or younger?
Additional table information: table: music_4
SQL: SELECT AVG(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25
Return the average number of weeks on top for volumes by artists that are at most 25 years old.
Additional table information: table: music_4
SQL: SELECT AVG(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25
What are the famous title of the artists associated with volumes with more than 2 weeks on top?
Additional table information: table: music_4
SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2
Return the famous titles for artists that have volumes that lasted more than 2 weeks on top.
Additional table information: table: music_4
SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2
Please list the age and famous title of artists in descending order of age.
Additional table information: table: music_4
SQL: SELECT Famous_Title, Age FROM artist ORDER BY Age DESC
What are the famous titles and ages of each artist, listed in descending order by age?
Additional table information: table: music_4
SQL: SELECT Famous_Title, Age FROM artist ORDER BY Age DESC
What is the famous release date of the artist with the oldest age?
Additional table information: table: music_4
SQL: SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
Return the famous release date for the oldest artist.
Additional table information: table: music_4
SQL: SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
Please show the categories of the music festivals and the count.
Additional table information: table: music_4
SQL: SELECT Category, COUNT(*) FROM music_festival GROUP BY Category
Return the number of music festivals of each category.
Additional table information: table: music_4
SQL: SELECT Category, COUNT(*) FROM music_festival GROUP BY Category
What is the most common result of the music festival?
Additional table information: table: music_4
SQL: SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
Return the result that is most frequent at music festivals.
Additional table information: table: music_4
SQL: SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
Please show the categories of the music festivals with count more than 1.
Additional table information: table: music_4
SQL: SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1
What are the categories of music festivals for which there have been more than 1 music festival?
Additional table information: table: music_4
SQL: SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1
What is the song in the volume with the maximum weeks on top?
Additional table information: table: music_4
SQL: SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
Return the song in the volume that has spent the most weeks on top?
Additional table information: table: music_4
SQL: SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
Find the famous titles of artists that do not have any volume.
Additional table information: table: music_4
SQL: SELECT Famous_Title FROM artist WHERE NOT Artist_ID IN (SELECT Artist_ID FROM volume)
What are the famous titles of artists who do not have any volumes?
Additional table information: table: music_4
SQL: SELECT Famous_Title FROM artist WHERE NOT Artist_ID IN (SELECT Artist_ID FROM volume)
Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.
Additional table information: table: music_4
SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2
What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top?
Additional table information: table: music_4
SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2
What are the date of ceremony of music festivals with category 'Best Song' and result 'Awarded'?
Additional table information: table: music_4
SQL: SELECT Date_of_ceremony FROM music_festival WHERE Category = 'Best Song' AND RESULT = 'Awarded'
Return the dates of ceremony corresponding to music festivals that had the category 'Best Song' and result 'Awarded'.
Additional table information: table: music_4
SQL: SELECT Date_of_ceremony FROM music_festival WHERE Category = 'Best Song' AND RESULT = 'Awarded'
What is the issue date of the volume with the minimum weeks on top?
Additional table information: table: music_4
SQL: SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC NULLS FIRST LIMIT 1
Return the issue date of the volume that has spent the fewest weeks on top.
Additional table information: table: music_4
SQL: SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC NULLS FIRST LIMIT 1
How many distinct artists have volumes?
Additional table information: table: music_4
SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
Count the number of artists who have had volumes.
Additional table information: table: music_4
SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.
Additional table information: table: music_4
SQL: SELECT RESULT, COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
How many music festivals have had each kind of result, ordered descending by count?
Additional table information: table: music_4
SQL: SELECT RESULT, COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
What are the issue dates of volumes associated with the artist aged 23 or younger?
Additional table information: table: music_4
SQL: SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23
Return the issue dates of volumes by artists who are at most 23 years old?
Additional table information: table: music_4
SQL: SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23
How many roller coasters are there?
Additional table information: table: roller_coaster
SQL: SELECT COUNT(*) FROM roller_coaster
List the names of roller coasters by ascending order of length.
Additional table information: table: roller_coaster
SQL: SELECT Name FROM roller_coaster ORDER BY LENGTH ASC NULLS FIRST
What are the lengths and heights of roller coasters?
Additional table information: table: roller_coaster
SQL: SELECT LENGTH, Height FROM roller_coaster
List the names of countries whose language is not 'German'.
Additional table information: table: roller_coaster
SQL: SELECT Name FROM country WHERE Languages <> 'German'
Show the statuses of roller coasters longer than 3300 or higher than 100.
Additional table information: table: roller_coaster
SQL: SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100
What are the speeds of the longest roller coaster?
Additional table information: table: roller_coaster
SQL: SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1
What is the average speed of roller coasters?
Additional table information: table: roller_coaster
SQL: SELECT AVG(Speed) FROM roller_coaster
Show the different statuses and the numbers of roller coasters for each status.
Additional table information: table: roller_coaster
SQL: SELECT Status, COUNT(*) FROM roller_coaster GROUP BY Status
Please show the most common status of roller coasters.
Additional table information: table: roller_coaster
SQL: SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
List the status shared by more than two roller coaster.
Additional table information: table: roller_coaster
SQL: SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2
Show the park of the roller coaster with the highest speed.
Additional table information: table: roller_coaster
SQL: SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1
Show the names of roller coasters and names of country they are in.
Additional table information: table: roller_coaster
SQL: SELECT T2.Name, T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID
Show the names of countries that have more than one roller coaster.
Additional table information: table: roller_coaster
SQL: SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1
Show the name and population of the country that has the highest roller coaster.
Additional table information: table: roller_coaster
SQL: SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1
Show the names of countries and the average speed of roller coasters from each country.
Additional table information: table: roller_coaster
SQL: SELECT T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name
How many countries do not have an roller coaster longer than 3000?
Additional table information: table: roller_coaster
SQL: SELECT COUNT(*) FROM country WHERE NOT country_id IN (SELECT country_id FROM roller_coaster WHERE LENGTH > 3000)
What are the country names, area and population which has both roller coasters with speed higher
Additional table information: table: roller_coaster
SQL: SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55