Question: List the id, color scheme, and name for all the photos.

List the i d , color scheme , and name for all the photos .

O O B-COLUMN I-COLUMN O B-COLUMN O O O B-COLUMN O O O B-TABLE O


Question: Find the cities which were once a host city after 2010?

SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010

Find the cities which were once a host city after 2010 ?

O O O O O O O B-COLUMN B-TABLE O B-VALUE O


Question: What is Aaron Doran's potential score?

SELECT t2.potential FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Doran'

What is Aaron Doran 's potential score ?


Question: What is the process outcome description and process status description for the document with id 0?

SELECT T2.process_outcome_description ,  T3.process_status_description FROM Documents_processes AS T1 JOIN Process_outcomes AS T2 ON T1.process_outcome_code  =  T2.process_outcome_code JOIN Process_Status AS T3 ON T1.process_status_code  =  T3.process_status_code WHERE T1.document_id  =  0

What is the process outcome description and process status description for the document with i d 0 ?

O O O B-TABLE I-TABLE B-COLUMN O B-TABLE I-TABLE B-COLUMN O O B-COLUMN O O O B-VALUE O


Question: Give the maximum and minimum rank of the year across all players.

SELECT max(Rank_of_the_year) ,  min(Rank_of_the_year) FROM player

Give the maximum and minimum rank of the year across all players .

O O O O O B-COLUMN I-COLUMN I-COLUMN I-COLUMN O O B-TABLE O


Question: How many mountains are there in the United States?

SELECT COUNT(T1.Name) FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Province = T3.Name WHERE T4.Name = 'United States'

How many mountains are there in the United States ?


Question: Who are the lieutenant governor and comptroller from the democratic party?

SELECT Lieutenant_Governor ,  Comptroller FROM party WHERE Party  =  "Democratic"

Who are the lieutenant governor and comptroller from the democratic party ?

O O O B-COLUMN I-COLUMN O B-COLUMN O O B-COLUMN B-COLUMN O


Question: List the name of the colleges whose enrollment is greater 18000 sorted by the college's name.

SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName

List the name of the colleges whose enrollment is greater 18000 sorted by the college 's name .

O O O O O O O O O O B-VALUE O O O B-TABLE O B-COLUMN O


Question: What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type?

SELECT sum(Enrollment) ,  affiliation FROM university WHERE founded  >  1850 GROUP BY affiliation

What are the different affiliations , and what is the total enrollment of schools founded after 1850 for each enrollment type ?

O O O O B-COLUMN O O O O O O B-COLUMN O O B-COLUMN O B-VALUE O O O O O


Question: List all information about customer master index, and sort them by details in descending order.

SELECT * FROM customer_master_index ORDER BY cmi_details DESC

List all information about customer master index , and sort them by details in descending order .

O O O O B-TABLE I-TABLE I-TABLE O O O O O B-COLUMN O O O O


Question: What was current legislator Sherrod Brown's Washington, D.C. office phone number during his term starting on 2013/1/3?

SELECT T1.phone FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.official_full_name = 'Sherrod Brown' AND T1.start = '2013-01-03'

What was current legislator Sherrod Brown 's Washington , D.C. office phone number during his term starting on 2013/1/3 ?

O O B-TABLE O B-VALUE I-VALUE O O O O O B-COLUMN O O O O B-COLUMN O B-VALUE O


Question: Which position has the highest number of female employees with a 2 year degree?

SELECT T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T2.educationrequired = '2 year degree' AND T1.gender = 'F' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) DESC LIMIT 1

Which position has the highest number of female employees with a 2 year degree ?

O B-TABLE O O O O B-VALUE O B-TABLE O O B-VALUE I-VALUE I-VALUE O


Question: How many trains with fully loaded head cars are running east?

SELECT COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T1.load_num = 3

How many trains with fully loaded head cars are running east ?


Question: Among the postal points in California, calculate the percentage of them in post office types.

SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'California'

Among the postal points in California , calculate the percentage of them in post office types .

O O O O O B-VALUE O O O O O O O B-VALUE I-VALUE B-COLUMN O


Question: Count the number of customers.


Question: What is the maximal elevation of the summit of the shortest mountain that can be found in the island of Madagaskar? Indicate what type of mountain it is.

SELECT T3.Height, T3.Type FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T1.Name = 'Madagaskar' ORDER BY T3.Height DESC LIMIT 1

What is the maximal elevation of the summit of the shortest mountain that can be found in the island of Madagaskar ? Indicate what type of mountain it is .

O O O O O O O O O O O B-TABLE O O O O O O B-COLUMN O B-VALUE O O O B-COLUMN O B-COLUMN O O O


Question: What is the name and year of each painting created by the artist whose first name is Mary?

SELECT T2.title ,   T2.year FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.fname  =  "Mary"

What is the name and year of each painting created by the artist whose first name is Mary ?

O O O O O B-COLUMN O O B-COLUMN O O O B-TABLE O O B-COLUMN O B-COLUMN O


Question: Among the matches played by Royal Challengers Bangalore, what is the match ID of the match with the highest winning margin?

SELECT T2.match_id FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner WHERE T1.team_name = 'Royal Challengers Bangalore' AND T2.match_date LIKE '2012%' ORDER BY T2.win_margin DESC LIMIT 1

Among the matches played by Royal Challengers Bangalore , what is the match ID of the match with the highest winning margin ?

O O B-COLUMN O O B-VALUE I-VALUE I-VALUE O O O O B-TABLE B-COLUMN O O B-COLUMN I-COLUMN O O O B-COLUMN O


Question: Calculate the average overall rating of Pietro Marino.

SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino'

Calculate the average overall rating of Pietro Marino .

O O O B-COLUMN I-COLUMN O B-VALUE I-VALUE O


Question: What is the marketing region code that has the most drama workshop groups?

SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1

What is the marketing region code that has the most drama workshop groups ?

O O O B-COLUMN I-COLUMN I-COLUMN O O O O B-TABLE I-TABLE I-TABLE O


Question: Show all city with a branch opened in 2001 and a branch with more than 100 membership.

SELECT city FROM branch WHERE open_year  =  2001 AND membership_amount  >  100

Show all city with a branch opened in 2001 and a branch with more than 100 membership .

O O B-COLUMN O O O B-COLUMN O B-VALUE O O B-TABLE O O O B-VALUE B-COLUMN O


Question: In which year did the least people enter hall of fame?

SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;

In which year did the least people enter hall of fame ?

O O B-COLUMN I-COLUMN O O O O B-TABLE I-TABLE I-TABLE O


Question: What are the monthly rentals of student addresses in Texas state?

SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  "Texas"

What are the monthly rentals of student addresses in Texas state ?

O O O B-COLUMN I-COLUMN O B-TABLE B-TABLE O B-COLUMN O O


Question: Please list the full names of all the sanitarians who have inspected the facility Burbank.

SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T3.dba_name = 'Burbank' AND T1.title = 'Sanitarian'

Please list the full names of all the sanitarians who have inspected the facility Burbank .

O O O O B-COLUMN O O O B-VALUE O O B-TABLE O O B-VALUE O


Question: Indicate the publisher who has published the most games of all time.

SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t

Indicate the publisher who has published the most games of all time .

O O B-TABLE O O B-COLUMN O O B-COLUMN O O O O


Question: List the council tax ids and their related cmi cross references of all the parking fines.

SELECT council_tax_id ,  cmi_cross_ref_id FROM parking_fines

List the council tax ids and their related cmi cross references of all the parking fines .

O O B-COLUMN I-COLUMN I-COLUMN O O O B-COLUMN I-COLUMN O O O O B-TABLE I-TABLE O


Question: Count the number of references the paper with id D12-1027 has.

SELECT count(*) FROM Citation WHERE paper_id  =  "D12-1027"

Count the number of references the paper with i d D12 - 1027 has .

O O O O O O B-COLUMN O O O B-COLUMN I-COLUMN I-COLUMN O O


Question: What is the truck's model year used to ship the ship ID 1245?

SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1245'

What is the truck 's model year used to ship the ship ID 1245 ?

O O O B-TABLE O B-COLUMN I-COLUMN O O B-TABLE O B-COLUMN I-COLUMN B-VALUE O


Question: Which district does Maria Miller live in?

SELECT T2.district FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Maria' AND T1.last_name = 'Miller'

Which district does Maria Miller live in ?


Question: What are the names and ids of the tourist attractions that are visited at most once?

SELECT T1.Name ,  T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  <=  1

What are the names and ids of the tourist attractions that are visited at most once ?

O O O B-COLUMN O O O O B-TABLE I-TABLE O O B-TABLE O O O O


Question: What is the nickname of the NBA player whose team competed in the Western Conference in the season 2006 and who had a total of two blocks?

SELECT T2.nameNick FROM player_allstar AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.blocks = 2 AND T1.conference = 'West' AND T1.season_id = 2006

What is the nickname of the NBA player whose team competed in the Western Conference in the season 2006 and who had a total of two blocks ?

O O O O O O O B-TABLE O O O O O B-VALUE B-COLUMN O O B-COLUMN B-VALUE O O O O O O O B-COLUMN O


Question: By what percentage is the average salary of Trainees higher than the minimum salary of this postion?

SELECT 100 * (AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) - CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL) AS per FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'

By what percentage is the average salary of Trainees higher than the minimum salary of this postion ?

O O O O O O B-COLUMN O B-VALUE O O O O B-COLUMN O O B-TABLE O


Question: What is the average points of players from club with name "AIB".

SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.name  =  "AIB"

What is the average points of players from club with name " AIB " .

O O O O B-COLUMN O B-TABLE O B-TABLE O B-COLUMN O B-COLUMN O O


Question: What are the names of gymnasts whose hometown is not "Santo Domingo"?

SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "Santo Domingo"

What are the names of gymnasts whose hometown is not " Santo Domingo " ?

O O O B-COLUMN O B-TABLE O B-COLUMN O O O B-COLUMN I-COLUMN O O


Question: Return the address content for the customer whose name is "Maudie Kertzmann".

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 " .

O O B-TABLE B-COLUMN O O B-TABLE B-TABLE O O O B-COLUMN I-COLUMN O O


Question: Show the host names for parties with number of hosts greater than 20.

SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20

Show the host names for parties with number of hosts greater than 20 .

O O B-TABLE B-COLUMN O B-TABLE O B-COLUMN I-COLUMN I-COLUMN O O B-VALUE O


Question: What is the github address of the "nofear_Mara\Mara.sln" solution path?

SELECT Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE Path = 'nofear_MaraMara.sln'

What is the github address of the " nofear_Mara\Mara.sln " solution path ?

O O O O O O O O B-VALUE O B-TABLE B-COLUMN O


Question: What are the most recent three independent nations?

SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country ORDER BY T2.Independence DESC LIMIT 3

What are the most recent three independent nations ?


Question: Which countries have produced more than one player?

SELECT Country FROM player GROUP BY Country HAVING COUNT(*)  >  1

Which countries have produced more than one player ?


Question: What is the area of the appelation that produces the highest number of wines before the year of 2010?

SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING T2.year  <  2010 ORDER BY count(*) DESC LIMIT 1

What is the area of the appelation that produces the highest number of wines before the year of 2010 ?

O O O B-COLUMN O O B-COLUMN O O O O O O B-TABLE O O B-COLUMN O B-VALUE O


Question: Among the films starred by Angelina Astaire, what is the title of the film with a replacement cost of 27.99?

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 = 'Angelina' AND T1.last_name = 'Astaire' AND T3.replacement_cost = 27.99

Among the films starred by Angelina Astaire , what is the title of the film with a replacement cost of 27.99 ?

O O O O O B-VALUE B-VALUE O O O O B-COLUMN O O B-TABLE O O B-COLUMN I-COLUMN O B-VALUE O


Question: What are the names of the products tht have been shipped, and on what days were they shipped?

SELECT T1.product_name ,  T4.shipment_date FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id  =  T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id  =  T4.shipment_id

What are the names of the products tht have been shipped , and on what days were they shipped ?

O O O O O O B-TABLE O O O B-TABLE O O O O O O O B-COLUMN O


Question: What products are available at store named "Miramichi"?

SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id  =  t2.product_id JOIN store AS t3 ON t2.store_id  =  t3.store_id WHERE t3.store_name  =  "Miramichi"

What products are available at store named " Miramichi " ?

O B-TABLE O O O B-TABLE B-COLUMN O B-COLUMN O O


Question: What was the name of the paper that was published on "IEEE Transactions on Pattern Analysis and Machine Intelligence" in 2011?

SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'IEEE Transactions on Pattern Analysis and Machine Intelligence' AND T2.Year = 2011 AND T2.Title <> ''

What was the name of the paper that was published on " IEEE Transactions on Pattern Analysis and Machine Intelligence " in 2011 ?

O O O B-COLUMN O O B-TABLE O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O B-VALUE O


Question: Return the names of players in order of count of wins, ascending.

SELECT Name FROM player ORDER BY Wins_count ASC

Return the names of players in order of count of wins , ascending .

O O B-COLUMN O B-TABLE O O O B-COLUMN O O O O O


Question: Please show the names of drivers, and countries they are from.

SELECT T2.Driver ,  T1.Country FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID  =  T2.Country

Please show the names of drivers , and countries they are from .


Question: Find the number of movies whose rating is not null.

SELECT count(*) ,  rating FROM movies WHERE rating != 'null' GROUP BY rating

Find the number of movies whose rating is not null .

O O O O B-TABLE O B-COLUMN O O B-VALUE O


Question: What is the first name of the aldermen of wards with more than 50,000 inhabitants?

SELECT alderman_first_name FROM Ward WHERE Population > 50000

What is the first name of the aldermen of wards with more than 50,000 inhabitants ?

O O O B-COLUMN I-COLUMN O O O O B-TABLE O O O B-VALUE O O


Question: How many times is the number of territories in "Eastern Region" than "Southern Region"?

SELECT CAST(( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern' ) AS REAL) / ( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Southern' ) AS Calu

How many times is the number of territories in " Eastern Region " than " Southern Region " ?

O O O O O O O B-COLUMN O O B-VALUE O O O O B-VALUE B-TABLE O O


Question: What's the heading accuracy of Ariel Borysiuk?

SELECT t2.heading_accuracy FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Ariel Borysiuk'

What 's the heading accuracy of Ariel Borysiuk ?

O O O B-COLUMN I-COLUMN O B-VALUE I-VALUE O


Question: How many works are there in each medium?

SELECT count(*) ,  medium FROM paintings GROUP BY medium

How many works are there in each medium ?


Question: Among the tweets posted from Santa Fe state in Argentina, how many of them were posted on 31st?

SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.Day = 31 AND T2.State = 'Santa' AND T2.Country = 'Argentina'

Among the tweets posted from Santa Fe state in Argentina , how many of them were posted on 31st ?

O O B-COLUMN O O B-VALUE O B-COLUMN O B-VALUE O O O O O O O O B-VALUE O


Question: Among the users who gave a rating of 5, how many of them are male?

SELECT COUNT(T1.userid) FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.rating = 5 AND T2.u_gender = 'M'

Among the users who gave a rating of 5 , how many of them are male ?

O O B-TABLE O O O B-COLUMN O B-VALUE O O O O O O O O


Question: How many shipments did Holger Nohr transport to North Las Vegas overall?

SELECT COUNT(*) FROM driver AS T1 INNER JOIN shipment AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T1.first_name = 'Holger' AND T1.last_name = 'Nohr' AND T3.city_name = 'North Las Vegas'

How many shipments did Holger Nohr transport to North Las Vegas overall ?

O O B-TABLE O B-VALUE B-VALUE O O B-VALUE I-VALUE I-VALUE O O


Question: List down the number of inhabitants of customers with a widowed marital status and false response .

SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.MARITAL_STATUS = 'Widowed' AND T2.RESPONSE = 'true'

O O O O O O O B-TABLE O O B-VALUE B-COLUMN I-COLUMN O O B-COLUMN O


Question: What is the name of the most popular plane?

SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) DESC LIMIT 1

What is the name of the most popular plane ?


Question: Which sport has most number of students on scholarship?

SELECT sportname FROM Sportsinfo WHERE onscholarship  =  'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1

Which sport has most number of students on scholarship ?

O B-COLUMN O O O O O B-COLUMN I-COLUMN O


Question: Provide the university name and ID of the university found in Turkey.

SELECT T1.university_name, T1.id FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey'

Provide the university name and ID of the university found in Turkey .

O O B-TABLE B-COLUMN O B-COLUMN O O O O O B-VALUE O


Question: What is the average number of reviews written for active businesses that operate not more than 30 hours a week?

SELECT AVG(T3.user_id) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Reviews AS T3 ON T1.business_id = T3.business_id WHERE T1.active = 'true' GROUP BY T2.closing_time - T2.opening_time HAVING SUM(T2.closing_time - T2.opening_time) < 30

What is the average number of reviews written for active businesses that operate not more than 30 hours a week ?

O O O O O O B-TABLE O O B-COLUMN B-TABLE O O O O O B-VALUE O O O O


Question: Show all information about each body builder.

Show all information about each body builder .


Question: Which client ID consumed the most in September 2013?

SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Date = '201309' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) DESC LIMIT 1

Which client ID consumed the most in September 2013 ?


Question: What are the names of the counties of public safety, ordered by population descending?

SELECT Name FROM county_public_safety ORDER BY Population DESC

What are the names of the counties of public safety , ordered by population descending ?

O O O B-COLUMN O O B-TABLE I-TABLE I-TABLE I-TABLE O O O B-COLUMN O O


Question: What are the names of all the authors?


Question: Provide the list of user ID along with review star of which has the review length of medium with business ID of 35.

SELECT user_id, review_stars FROM Reviews WHERE business_id = 15 AND review_length = 'Medium'

Provide the list of user ID along with review star of which has the review length of medium with business ID of 35 .

O O O O B-COLUMN I-COLUMN O O B-TABLE B-COLUMN O O O O B-COLUMN I-COLUMN O B-VALUE O B-COLUMN I-COLUMN O O O


Question: Name the organization which hold the award id 328.

SELECT organization FROM Award WHERE award_id = 328;

Name the organization which hold the award i d 328 .

O O B-COLUMN O O O B-TABLE B-COLUMN I-COLUMN B-VALUE O


Question: How many documentary films are rated PG-13?

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'

How many documentary films are rated PG-13 ?


Question: What is the name of the album that has the track Ball to the Wall?

SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "Balls to the Wall";

What is the name of the album that has the track Ball to the Wall ?

O O O B-COLUMN O O B-TABLE O O O B-TABLE B-COLUMN I-COLUMN I-COLUMN I-COLUMN O


Question: Provide the production companies of the movie that has over 35% average running time per movie in 2016.

SELECT T.company_name FROM ( SELECT DISTINCT T3.company_name, T1.runtime FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' ) T WHERE T.runtime * 100 > (0.35 * ( SELECT AVG(T1.runtime) FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' ) + ( SELECT AVG(T1.runtime) FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' )) * 100

Provide the production companies of the movie that has over 35 % average running time per movie in 2016 .

O O B-TABLE B-COLUMN O O B-TABLE O O O B-VALUE O O B-COLUMN I-COLUMN O B-COLUMN O B-VALUE O


Question: List the last names of the students whose gender is "F" or "M".

SELECT Last_Name FROM Students WHERE Gender_MFU  =  "F" OR Gender_MFU  =  "M"

List the last names of the students whose gender is " F " or " M " .

O O B-COLUMN I-COLUMN O O B-TABLE O B-COLUMN O O B-COLUMN O O O B-COLUMN O O


Question: Please list the names of the male students that belong to the navy department.

SELECT T1.name FROM enlist AS T1 INNER JOIN male AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy'

Please list the names of the male students that belong to the navy department .

O B-TABLE O B-COLUMN O O B-TABLE O O O O O B-VALUE O O


Question: In what platform does the game ID 178 available?

SELECT T3.platform_name FROM game_publisher AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.game_publisher_id INNER JOIN platform AS T3 ON T2.platform_id = T3.id WHERE T1.game_id = 178

In what platform does the game ID 178 available ?

O O B-TABLE O O B-COLUMN B-COLUMN B-VALUE O O


Question: display those departments where more than ten employees work who got a commission percentage.

SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10

display those departments where more than ten employees work who got a commission percentage .

O O B-COLUMN O O O O B-TABLE O O O O B-COLUMN O O


Question: What are the names of all the video games and their types in alphabetical order?

SELECT gname ,  gtype FROM Video_games ORDER BY gname

What are the names of all the video games and their types in alphabetical order ?

O O O B-COLUMN O O O B-TABLE I-TABLE O O B-COLUMN O O O O


Question: How many Asian female patients take oxaliplatin 5 MG/ML [Eloxatin]?

SELECT COUNT(DISTINCT T2.patient) FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'oxaliplatin 5 MG/ML [Eloxatin]' AND T2.race = 'asian' AND T2.gender = 'F'

How many Asian female patients take oxaliplatin 5 MG / ML [ Eloxatin ] ?

O O B-VALUE O B-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: Return the codes of the document types that do not have a total access count of over 10000.

SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count)  >  10000

Return the codes of the document types that do not have a total access count of over 10000 .

O O O O O B-TABLE B-COLUMN O O O O O O B-COLUMN I-COLUMN O O B-VALUE O


Question: Return the number of clients.


Question: Give the date of birth of the 2014 Orange Cap winner.

SELECT T2.DOB FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id WHERE T1.Season_Year = 2014 AND T1.Orange_Cap IS NOT NULL

Give the date of birth of the 2014 Orange Cap winner .

O O O O O O O B-VALUE B-COLUMN I-COLUMN O O


Question: How many roles are there?


Question: Which city is the headquarter of the store named "Blackville" in?

SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.store_name  =  "Blackville"

Which city is the headquarter of the store named " Blackville " in ?

O O O O B-COLUMN O O B-TABLE B-COLUMN O B-COLUMN O O O


Question: Which locations have paintings in the mediums of on panel and on canvas?

SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "panel" INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "canvas"

Which locations have paintings in the mediums of on panel and on canvas ?

O B-COLUMN O B-TABLE O O B-COLUMN O O B-COLUMN O O B-COLUMN O


Question: Please list the IDs of all the trains with at least one car in a non-regular shape.

SELECT train_id FROM cars WHERE shape IN ('elipse', 'bucket') GROUP BY train_id

Please list the IDs of all the trains with at least one car in a non - regular shape .

O B-VALUE O O O O O B-COLUMN O O O O B-TABLE O O O O O B-COLUMN O


Question: For the patients whose total cholesterol is higher than normal, how many of them have a negative measure of degree of coagulation?

SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T1.ID = T3.ID WHERE T2.`T-CHO` >= 250 AND T3.KCT = '-'

For the patients whose total cholesterol is higher than normal , how many of them have a negative measure of degree of coagulation ?

O O B-TABLE O O O O O O O O O O O O O O O O O O O O O


Question: State the number of athletes in the 1984 Summer Olympic Games who were more than 50 years old.

SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1984 Summer' AND T2.age > 50

State the number of athletes in the 1984 Summer Olympic Games who were more than 50 years old .

O O O O O O O B-VALUE I-VALUE O B-TABLE O O O O B-VALUE O O O


Question: In which regions has the game 'Pengo' been sold?

SELECT T5.region_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN region_sales AS T4 ON T3.id = T4.game_platform_id INNER JOIN region AS T5 ON T4.region_id = T5.id WHERE T1.game_name = 'Pengo'

In which regions has the game ' Pengo ' been sold ?

O O B-TABLE B-TABLE O B-TABLE O B-VALUE O O O O


Question: What are the special features for the film "Smoochy Control"?

SELECT special_features FROM film WHERE title = 'SMOOCHY CONTROL'

What are the special features for the film " Smoochy Control " ?

O O O B-COLUMN I-COLUMN O O B-TABLE O B-VALUE I-VALUE O O


Question: A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.

SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;

A list of the top 8 countries by gross / total invoice size . List country name and gross invoice size .

O O O O O O O O O O B-COLUMN B-TABLE O O B-COLUMN I-COLUMN O O O O O O


Question: Name the title of the episode where Pamela Hayden voiced the character 'Ruthie.'

SELECT T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Pamela Hayden' AND T2.role = 'Ruthie';

Name the title of the episode where Pamela Hayden voiced the character ' Ruthie . '

O O B-COLUMN O O B-TABLE O B-VALUE I-VALUE O O O O B-VALUE O O


Question: List the nominee, keywords and episode ID of the title "The Good, the Sad and the Drugly".

SELECT T3.person, T1.keyword, T1.episode_id FROM Keyword AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Award AS T3 ON T2.episode_id = T3.episode_id WHERE T2.title = 'The Good, the Sad and the Drugly' AND T3.result = 'Nominee';

List the nominee , keywords and episode ID of the title " The Good , the Sad and the Drugly " .

O O B-VALUE O B-TABLE O B-TABLE B-COLUMN O O B-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: For the country in which Olsztyn is located, where is the capital?

SELECT T1.Capital FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Olsztyn'

For the country in which Olsztyn is located , where is the capital ?

O O B-COLUMN O O B-VALUE O O O O O O B-COLUMN O


Question: Give the name of the league had the most matches end as draw in the 2016 season?

SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' AND t1.home_team_goal = t1.away_team_goal GROUP BY t2.name ORDER BY COUNT(t1.id) DESC LIMIT 1

Give the name of the league had the most matches end as draw in the 2016 season ?

O O B-COLUMN O O B-TABLE O O O B-TABLE O O O O O B-VALUE B-COLUMN O


Question: Find the name and active date of the customer that use email as the contact channel.

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'

Find the name and active date of the customer that use email as the contact channel .

O O O O B-COLUMN I-COLUMN O O B-TABLE O O B-VALUE O B-TABLE I-TABLE B-COLUMN O


Question: Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.

SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000

Find the i d of suppliers whose average amount purchased for each product is above 50000 or below 30000 .

O O O O B-TABLE B-COLUMN O O B-COLUMN I-COLUMN O O O O O B-VALUE O O B-VALUE O


Question: What are the ids of goods that cost less than 3 dollars?

What are the ids of goods that cost less than 3 dollars ?

O O O B-COLUMN O B-TABLE O O O O B-VALUE O O


Question: What was the detailed issue did Mr Gunner Omer Fuller complain about?

SELECT T2.`Sub-issue` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Gunner' AND T1.middle = 'Omer' AND T1.last = 'Fuller' AND T1.sex = 'Male'

What was the detailed issue did Mr Gunner Omer Fuller complain about ?

O O O O B-COLUMN O O B-VALUE B-VALUE B-VALUE O O O


Question: Give the total max price corresponding to any properties owned by single mothers or students.

SELECT sum(T1.price_max) FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id  =  T2.user_id WHERE T2.user_category_code  =  'Single Mother' OR T2.user_category_code  =  'Student';

Give the total max price corresponding to any properties owned by single mothers or students .

O O O O B-COLUMN O O O B-TABLE O O B-VALUE I-VALUE O B-VALUE O


Question: List the number of invoices and the invoice total from California.

SELECT billing_state ,  COUNT(*) ,  SUM(total) FROM invoices WHERE billing_state  =  "CA";

List the number of invoices and the invoice total from California .


Question: List the dishes included on page number 30 with the least in full height.

SELECT T3.name FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T1.page_number = 30 ORDER BY T1.full_height DESC, T1.full_height ASC LIMIT 1

List the dishes included on page number 30 with the least in full height .

O O B-TABLE O O B-TABLE B-COLUMN B-VALUE O O O O B-COLUMN I-COLUMN O


Question: What are the different types of vocals?

What are the different types of vocals ?


Question: Among all the users who received the high number of compliments, what percent received the 'cute' type of compliment.

SELECT CAST(SUM(CASE WHEN T1.compliment_type = 'cute' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.user_id) FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T2.number_of_compliments = 'High'

Among all the users who received the high number of compliments , what percent received the ' cute ' type of compliment .

O O O B-COLUMN O O O B-VALUE B-COLUMN I-COLUMN B-TABLE O O O O O O B-VALUE O O O B-COLUMN O


Question: What are the keywords for the paper which was published on "Modeling Identification and Control" in 1994?

SELECT T2.Keyword FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Modeling Identification and Control' AND T2.Year = 1994

What are the keywords for the paper which was published on " Modeling Identification and Control " in 1994 ?

O O O B-COLUMN O O B-TABLE O O O O O B-VALUE I-VALUE I-VALUE I-VALUE O O B-VALUE O


Question: What is Walt Disney Pictures' most popular movie?

SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Walt Disney Pictures' ORDER BY T3.popularity DESC LIMIT 1

What is Walt Disney Pictures ' most popular movie ?

O O B-VALUE I-VALUE I-VALUE O O B-COLUMN B-TABLE O


Question: What is the total number of suppliers from Germany?

SELECT COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T2.n_name = 'GERMANY'

What is the total number of suppliers from Germany ?


Question: How many males are there in New Haven County's residential areas?

SELECT SUM(T1.male_population) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'NEW HAVEN'

How many males are there in New Haven County 's residential areas ?

O O O O O O B-VALUE I-VALUE B-COLUMN O O O O


Question: Under the conference name of MICRO, calculate how many more paper is needed to published in 1971 to 1980 in average by yearly to get equivalent to the number of paper from 1991 to 2000. Write down the title and author name of the paper that were actually published during 1971 to 1980 with the conference name with MICRO.

SELECT T2.title, T3.name, T1.FullName FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.id = T2.ConferenceId INNER JOIN PaperAuthor AS T3 ON T1.id = T3.PaperId WHERE T1.ShortName = 'MICRO' AND T2.Year BETWEEN '1971' AND '1980'

Under the conference name of MICRO , calculate how many more paper is needed to published in 1971 to 1980 in average by yearly to get equivalent to the number of paper from 1991 to 2000 . Write down the title and author name of the paper that were actually published during 1971 to 1980 with the conference name with MICRO .

O O B-COLUMN O O B-VALUE O O O O O O O O O O O O O O O O O B-COLUMN O O O O O O O O O O O O O O O O B-COLUMN O B-COLUMN B-COLUMN O O B-TABLE O O O O O B-VALUE O B-VALUE O O B-TABLE B-COLUMN O O O


Question: Which driver has the fastest lap time? Please give their forenames and surnames.

SELECT T2.forename, T2.surname, T1.fastestLapTime FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T1.fastestLapTime IS NOT NULL ORDER BY T1.fastestLapTime ASC LIMIT 1

Which driver has the fastest lap time ? Please give their forenames and surnames .

O B-TABLE O O B-COLUMN I-COLUMN I-COLUMN O O O O B-COLUMN O B-COLUMN O


Question: What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?

SELECT SalesYTD - SalesQuota FROM SalesPerson WHERE BusinessEntityID = 288

What are the differences between the 288th salesperson 's predicted annual sales and his or her actual sales thus far ?

O O O O O O B-VALUE B-TABLE O O O B-COLUMN O O O O O O O O O


Question: Report the distinct president vote and the vice president vote.

SELECT DISTINCT President_Vote ,  VICE_President_Vote FROM VOTING_RECORD

Report the distinct president vote and the vice president vote .

O O O B-COLUMN I-COLUMN O O B-COLUMN I-COLUMN I-COLUMN O


Question: List the first names of people in alphabetical order?

SELECT first_name FROM people ORDER BY first_name

List the first names of people in alphabetical order ?


Question: Count the number of different characteristic names the product 'cumin' has.

SELECT count(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "sesame"

Count the number of different characteristic names the product ' cumin ' has .

O O O O O B-TABLE B-COLUMN O B-TABLE O O O O O


Question: Show the delegates and the names of county they belong to.

SELECT T2.Delegate ,  T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District

Show the delegates and the names of county they belong to .


Question: What are the titles and authors or editors that correspond to books made after 1989?

SELECT book_title ,  author_or_editor FROM book_club WHERE YEAR  >  1989

What are the titles and authors or editors that correspond to books made after 1989 ?

O O O B-COLUMN O B-COLUMN I-COLUMN I-COLUMN O O O O O O B-VALUE O


Question: How many category names start with the word "game"?

SELECT COUNT(label_id) FROM label_categories WHERE category LIKE 'game%'

How many category names start with the word " game " ?

O O B-COLUMN B-TABLE O O O O O B-VALUE O O


Question: Calculate the percentage of words used in Agents class label.

SELECT CAST(COUNT(DISTINCT CASE WHEN T1.class_label = 'Agents' THEN T2.word_cited_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id

Calculate the percentage of words used in Agents class label .

O O O O O O O B-VALUE B-COLUMN I-COLUMN O


Question: What country has the largest surface area?

SELECT Name FROM Country ORDER BY SurfaceArea DESC LIMIT 1

What country has the largest surface area ?


Question: How many mountains are there in Indonesia?

SELECT COUNT(DISTINCT T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Indonesia'

How many mountains are there in Indonesia ?


Question: Calculate the total amount of donations made in 2011 for an honoree with payment via campaign page.

SELECT SUM(donation_total) FROM donations WHERE donation_timestamp LIKE '2011%' AND via_giving_page = 't' AND for_honoree = 't'

Calculate the total amount of donations made in 2011 for an honoree with payment via campaign page .

O O O O O B-TABLE O O B-VALUE B-COLUMN I-COLUMN I-COLUMN O O O O O O


Question: Give the grade score for Rik Unsworth in "Computer Network".

SELECT CASE grade WHEN 'A' THEN 4 WHEN 'B' THEN 3 WHEN 'C' THEN 2 ELSE 1 END AS result FROM registration WHERE student_id IN ( SELECT student_id FROM student WHERE f_name = 'Rik' AND l_name = 'Unsworth' AND course_id IN ( SELECT course_id FROM course WHERE name = 'Computer Network' ) )

Give the grade score for Rik Unsworth in " Computer Network " .

O O B-COLUMN B-TABLE O B-VALUE B-VALUE O O B-VALUE I-VALUE O O


Question: What is the total number of orders made by customers in United States?

SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey INNER JOIN nation AS T3 ON T2.c_nationkey = T3.n_nationkey WHERE T3.n_name = 'UNITED STATES'

What is the total number of orders made by customers in United States ?

O O O O O B-COLUMN B-TABLE O O B-TABLE O B-VALUE I-VALUE O


Question: Give the duration of the film starred by Nick Wahlberg with the highest rental rate.

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 = 'Nick' AND T1.last_name = 'Wahlberg' ORDER BY T3.rental_rate DESC LIMIT 1

Give the duration of the film starred by Nick Wahlberg with the highest rental rate .

O O O O O B-TABLE O O B-VALUE B-VALUE O O O B-COLUMN I-COLUMN O


Question: What are the attributes of the widest object in image 400?

SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID WHERE T2.IMG_ID = 400 ORDER BY T3.W DESC LIMIT 1

What are the attributes of the widest object in image 400 ?


Question: Find the warehouses which store contents Rocks or Scissors.

SELECT DISTINCT warehouse FROM boxes WHERE CONTENTS  =  'Rocks' OR CONTENTS  =  'Scissors'

Find the warehouses which store contents Rocks or Scissors .

O O B-COLUMN O O B-COLUMN B-VALUE O B-VALUE O


Question: How long did Berry Keebler take the Acetaminophen 160 MG when he was admitted due to acute bronchitis?

SELECT strftime('%J', T2.STOP) - strftime('%J', T2.START) AS takenDays FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Berry' AND T1.last = 'Keebler' AND T2.REASONDESCRIPTION = 'Acute bronchitis (disorder)' AND T2.DESCRIPTION = 'Acetaminophen 160 MG'

How long did Berry Keebler take the Acetaminophen 160 MG when he was admitted due to acute bronchitis ?

O O O B-VALUE B-VALUE O O B-VALUE I-VALUE I-VALUE O O O O O B-COLUMN B-VALUE I-VALUE O


Question: On the day with the highest max temperature in 2012, how many items in store no.3 had no sales?

SELECT COUNT(DISTINCT T1.item_nbr) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr AND T1.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.units = 0 GROUP BY T3.tmax ORDER BY T3.tmax DESC LIMIT 1

On the day with the highest max temperature in 2012 , how many items in store no.3 had no sales ?

O O O O B-TABLE O B-COLUMN O O B-VALUE O O O B-COLUMN B-COLUMN B-COLUMN O O O O O


Question: What is id of the city that hosted events in the most recent year?

SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1

What is i d of the city that hosted events in the most recent year ?

O O O O O O B-COLUMN O O O O O O O B-COLUMN O


Question: Provide the supplier company name in Sydney and its homepage address if available.

SELECT CompanyName, HomePage FROM Suppliers WHERE City = 'Sydney'

Provide the supplier company name in Sydney and its homepage address if available .

O O B-TABLE B-COLUMN I-COLUMN O B-VALUE O O B-COLUMN O O O O


Question: List the names of representatives that have not participated in elections listed here.

SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election)

List the names of representatives that have not participated in elections listed here .

O O B-COLUMN O B-TABLE O O O O O B-TABLE O O O


Question: How many movies released in 1995 did Quentin Tarantino appear in?

SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Quentin Tarantino' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 1995

How many movies released in 1995 did Quentin Tarantino appear in ?

O O B-TABLE B-COLUMN O B-VALUE O B-VALUE I-VALUE O O O


Question: What are the names and other details for accounts corresponding to the customer named Meaghan Keeling?

SELECT T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Meaghan" AND T2.customer_last_name  =  "Keeling"

What are the names and other details for accounts corresponding to the customer named Meaghan Keeling ?

O O O O O B-COLUMN I-COLUMN O B-TABLE O O O B-TABLE B-COLUMN B-COLUMN B-COLUMN O


Question: What is the name of the oldest member?

SELECT Name FROM member ORDER BY Age DESC LIMIT 1


Question: Among the businesses with a category of Food, what is the percentage of the business with greater than 3 stars?

SELECT CAST(SUM(CASE WHEN T1.stars > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food'

Among the businesses with a category of Food , what is the percentage of the business with greater than 3 stars ?

O O B-TABLE O O B-TABLE O B-VALUE O O O O O O O B-TABLE O O O B-VALUE B-COLUMN O


Question: What is the description of chapter 18706 in "All's Well That Ends Well"?

SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.id = 18706 AND T1.Title = 'All''s Well That Ends Well'

What is the description of chapter 18706 in " All 's Well That Ends Well " ?

O O O B-COLUMN O B-TABLE B-VALUE O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: List the words that are cited in both AI and IR class label.

SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI' OR T1.class_label = 'IR'

List the words that are cited in both AI and IR class label .

O O O O O O O O B-VALUE O B-VALUE B-COLUMN I-COLUMN O


Question: Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.

SELECT T1.first_name ,  T1.last_name ,  T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1

Which customer , who has made at least one payment , has spent the least money ? List his or her first name , last name , and the i d.

O B-TABLE O O O O O O O B-COLUMN O O O O O O O O O O O B-COLUMN I-COLUMN O B-COLUMN I-COLUMN O O O O O


Question: What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?

SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected)  >=  10

What are the names of storms that both affected two or more regions and affected a total of 10 or more cities ?

O O O B-COLUMN O B-TABLE O B-COLUMN B-TABLE O O O O O O O O O B-VALUE O O O O


Question: How many students are there in each major?

SELECT count(*) ,  major FROM student GROUP BY major

How many students are there in each major ?


Question: How many solution paths are there inside the 2nd most popular repository?

SELECT COUNT(DISTINCT T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = ( SELECT Watchers FROM Repo ORDER BY Watchers DESC LIMIT 1, 1 )

How many solution paths are there inside the 2nd most popular repository ?

O O B-TABLE B-COLUMN O O O O O O O B-COLUMN O


Question: Identify the number of employees in Northern sales region.

SELECT COUNT(T2.EmployeeID) FROM Territories AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.TerritoryID = T2.TerritoryID INNER JOIN Region AS T3 ON T1.RegionID = T3.RegionID WHERE T3.RegionDescription = 'Northern'

Identify the number of employees in Northern sales region .


Question: Show the distinct position of players from college UCLA or Duke.

SELECT DISTINCT POSITION FROM match_season WHERE College  =  "UCLA" OR College  =  "Duke"

Show the distinct position of players from college UCLA or Duke .

O O O B-COLUMN O O O B-COLUMN B-COLUMN O B-COLUMN O


Question: Where are the locations where the product "810" is stored?

SELECT T2.Name FROM ProductInventory AS T1 INNER JOIN Location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.ProductID = 810

Where are the locations where the product " 810 " is stored ?

O O O B-TABLE O O B-COLUMN O B-VALUE O O O O


Question: Find the emails of parties with the most popular party form.

SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)

Find the emails of parties with the most popular party form .

O O O O B-TABLE O O O O B-COLUMN B-COLUMN O


Question: What are the name and id of the team offering the lowest average salary?

SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;

What are the name and i d of the team offering the lowest average salary ?

O O O B-COLUMN O O O O O B-TABLE O O O O B-COLUMN O


Question: Among the professors who have more than 3 research assistants, how many of them are male?

SELECT COUNT(*) FROM ( SELECT T2.prof_id FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.gender = 'Male' GROUP BY T1.prof_id HAVING COUNT(T1.student_id) > 3 )

Among the professors who have more than 3 research assistants , how many of them are male ?

O O O O O O O B-VALUE O O O O O B-TABLE O O B-VALUE O


Question: What are the ids of Cookie and Cake that cost between 3 and 7 dollars.

SELECT id FROM goods WHERE food  =  "Cookie" OR food  =  "Cake" AND price BETWEEN 3 AND 7

What are the ids of Cookie and Cake that cost between 3 and 7 dollars .

O O O B-COLUMN O B-COLUMN O B-COLUMN O O O B-VALUE O B-VALUE O O


Question: In the papers classified as ML, how many cited butz01algorithmic?

SELECT COUNT(T1.paper_id) FROM paper AS T1 INNER JOIN cites AS T2 ON T1.paper_id = T2.citing_paper_id WHERE T1.class_label = 'ML' AND T2.cited_paper_id = 'butz01algorithmic'

In the papers classified as ML , how many cited butz01algorithmic ?

B-COLUMN I-COLUMN B-TABLE O O B-VALUE O O O B-TABLE B-VALUE O


Question: Find the match ids of the cities that hosted competition "1994 FIFA World Cup qualification"?

SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification"

Find the match ids of the cities that hosted competition " 1994 FIFA World Cup qualification " ?

O O B-TABLE B-COLUMN O O O O O B-COLUMN O B-COLUMN I-COLUMN I-COLUMN I-COLUMN I-COLUMN O O


Question: List the products involved in the complaints received on March 2017 via TOVA server.

SELECT DISTINCT T2.Product FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.server = 'TOVA' AND T2.`Date received` LIKE '2017-03%'

List the products involved in the complaints received on March 2017 via TOVA server .

O O B-COLUMN O O O B-COLUMN B-COLUMN O O B-VALUE O B-VALUE B-COLUMN O


Question: Mention the name of disabled students who have never been absent from school.

SELECT T1.name FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T2.month = 0

Mention the name of disabled students who have never been absent from school .

B-COLUMN I-COLUMN B-COLUMN O B-TABLE O O O O O B-TABLE I-TABLE I-TABLE O


Question: Please list the year during which the race is held on circuits in Shanghai.

SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Shanghai'

Please list the year during which the race is held on circuits in Shanghai .

O O O B-COLUMN O O O B-TABLE O O O B-TABLE O B-VALUE O


Question: What is the character and work ID of the text "Fear not thou, man, thou shalt lose nothing here."?

SELECT T2.character_id, T1.work_id FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id WHERE T2.PlainText = 'Fear not thou, man, thou shalt lose nothing here.'

What is the character and work ID of the text " Fear not thou , man , thou shalt lose nothing here . " ?

O O O B-TABLE O B-COLUMN B-COLUMN O O B-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: Which power do superheroes have the most of?

SELECT T2.power_name FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id GROUP BY T2.power_name ORDER BY COUNT(T1.hero_id) DESC LIMIT 1

Which power do superheroes have the most of ?


Question: How many employees with a pay rate of over 35 have more than 10 sick leave hours?

SELECT COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.SickLeaveHours > 10 AND T1.Rate > 35

How many employees with a pay rate of over 35 have more than 10 sick leave hours ?

O O B-TABLE O O O B-COLUMN O O B-VALUE O O O B-VALUE B-COLUMN I-COLUMN I-COLUMN O


Question: Who is the director of the most popular movie of all time and when was it released? Indicate the average rating score of the users who were on a trialist when they rated the movie.

SELECT T1.director_name, T1.movie_release_year , SUM(T2.rating_score) / COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 ORDER BY T1.movie_popularity DESC LIMIT 1

Who is the director of the most popular movie of all time and when was it released ? Indicate the average rating score of the users who were on a trialist when they rated the movie .

O O O B-COLUMN O O B-COLUMN I-COLUMN B-TABLE O O O O O O O O O O O O B-TABLE B-COLUMN O O B-COLUMN O O O O B-COLUMN O O O O O O


Question: Find the id and color description of the products with at least 2 characteristics.

SELECT t1.product_id ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code JOIN product_characteristics AS t3 ON t1.product_id  =  t3.product_id GROUP BY t1.product_id HAVING count(*)  >=  2

Find the i d and color description of the products with at least 2 characteristics .

O O O O O B-COLUMN B-COLUMN O O B-TABLE O O O B-VALUE B-TABLE O


Question: From 2000 to 2005, what percentage of drivers who were born before 1985 and the lap numbers were over 50?

SELECT CAST(SUM(IIF(STRFTIME('%Y', T3.dob) < '1985' AND T1.laps > 50, 1, 0)) AS REAL) * 100 / COUNT(*) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T2.year BETWEEN 2000 AND 2005

From 2000 to 2005 , what percentage of drivers who were born before 1985 and the lap numbers were over 50 ?

O B-VALUE O B-VALUE O O O O B-TABLE O O O O B-VALUE O O B-COLUMN O O O B-VALUE O


Question: Which customers have an insurance policy with the type code "Deputy"? Give me the customer details.

SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.policy_type_code  =  "Deputy"

Which customers have an insurance policy with the type code " Deputy " ? Give me the customer details .

O B-TABLE O O O B-TABLE B-COLUMN I-COLUMN I-COLUMN I-COLUMN O B-COLUMN O O O O O B-COLUMN B-COLUMN O


Question: Show all flight number from Los Angeles.

SELECT flno FROM Flight WHERE origin  =  "Los Angeles"

Show all flight number from Los Angeles .


Question: Return all the apartment numbers sorted by the room count in ascending order.

SELECT apt_number FROM Apartments ORDER BY room_count ASC

Return all the apartment numbers sorted by the room count in ascending order .

O O O B-TABLE B-COLUMN O O O B-COLUMN I-COLUMN O O O O


Question: In which year was Panzer Tactics released on DS?

SELECT T4.release_year FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id INNER JOIN game_platform AS T4 ON T1.id = T4.game_publisher_id INNER JOIN platform AS T5 ON T4.platform_id = T5.id WHERE T3.game_name = 'Panzer Tactics' AND T5.platform_name = 'DS'

In which year was Panzer Tactics released on DS ?

O O O O B-VALUE I-VALUE B-COLUMN O B-VALUE O


Question: What are the names of body builders?

SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID


Question: How many unofficial languages are used in Italy?

SELECT SUM(CASE WHEN T2.IsOfficial = 'F' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Italy'

How many unofficial languages are used in Italy ?


Question: List players' first name and last name who have weight greater than 220 or height shorter than 75.

SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75

List players ' first name and last name who have weight greater than 220 or height shorter than 75 .

O B-TABLE O B-COLUMN B-COLUMN I-COLUMN I-COLUMN O O O B-COLUMN O O B-VALUE O B-COLUMN O O B-VALUE O


Question: What is the most common birth place of people?

SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1

What is the most common birth place of people ?


Question: List the phone numbers of suppliers from Japan.

SELECT T1.s_phone FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T2.n_name = 'JAPAN'

List the phone numbers of suppliers from Japan .


Question: What is the total number of won matches of the team named "Pune Warriors"?

SELECT SUM(CASE WHEN T2.Team_Name = 'Pune Warriors' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner

What is the total number of won matches of the team named " Pune Warriors " ?

O O O O O O O B-TABLE O O B-TABLE B-COLUMN O B-VALUE I-VALUE O O


Question: For each make, return the make and the count of drivers with that make.

SELECT Make ,  COUNT(*) FROM driver GROUP BY Make

For each make , return the make and the count of drivers with that make .

O O B-COLUMN O O O O O O O O B-TABLE O O O O


Question: List out all award titles nominated for episode 20.

SELECT T2.award FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 20 AND T2.result IN ('Winner', 'Nominee')

List out all award titles nominated for episode 20 .

O O O B-TABLE O B-VALUE O B-COLUMN B-VALUE O


Question: How many low risk violations were found in the inspection on 2014/1/14 for Tiramisu Kitchen?

SELECT COUNT(T1.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.`date` = '2014-01-14' AND T2.name = 'Tiramisu Kitchen' AND T1.risk_category = 'Low Risk'

How many low risk violations were found in the inspection on 2014/1/14 for Tiramisu Kitchen ?

O O B-VALUE I-VALUE B-TABLE O O O O O O B-VALUE O B-VALUE I-VALUE O


Question: Please show the age of the driver who participated in the most number of races.

SELECT T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID  =  T2.Driver_ID GROUP BY T1.Driver_ID ORDER BY COUNT(*) DESC LIMIT 1

Please show the age of the driver who participated in the most number of races .

O O O B-COLUMN O O B-TABLE O O O O O O O B-TABLE O


Question: Which city has the least number of customers whose type code is "Good Credit Rating"?

SELECT town_city FROM customers WHERE customer_type_code  =  "Good Credit Rating" GROUP BY town_city ORDER BY count(*) LIMIT 1

Which city has the least number of customers whose type code is " Good Credit Rating " ?

O B-COLUMN O O O O O B-TABLE B-COLUMN I-COLUMN I-COLUMN O O B-COLUMN I-COLUMN I-COLUMN O O


Question: Please list the zip codes of the offices where all the male employees with a good job performance work at.

SELECT T2.zipcode FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T1.gender = 'M' AND T1.performance = 'Good'

Please list the zip codes of the offices where all the male employees with a good job performance work at .

O O O B-COLUMN I-COLUMN O O O O O O O B-TABLE O O B-VALUE O B-COLUMN O O O


Question: List the text of all tweets in the order of date.

SELECT text FROM tweets ORDER BY createdate

List the text of all tweets in the order of date .


Question: Give the average, minimum, and maximum distances between two cities.

SELECT avg(distance) ,  min(distance) ,  max(distance) FROM Direct_distance

Give the average , minimum , and maximum distances between two cities .


Question: What is the percentage of Swedish players in playoffs games in the 1997 - 2000 season?

SELECT DISTINCT CAST(COUNT(CASE WHEN T1.nation = 'Sweden' THEN T1.ELITEID ELSE NULL END) OVER (PARTITION BY T2.SEASON) AS REAL) * 100 / COUNT(T1.ELITEID) OVER (PARTITION BY T2.SEASON) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.SEASON IN ('1997-1998', '1998-1999', '1999-2000')

What is the percentage of Swedish players in playoffs games in the 1997 - 2000 season ?

O O O O O B-VALUE B-TABLE I-TABLE O O O O B-VALUE I-VALUE I-VALUE B-COLUMN O


Question: List down the game platform ID and region name where the games achieved 20000 sales and below.

SELECT T2.game_platform_id, T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 <= 20000

List down the game platform ID and region name where the games achieved 20000 sales and below .

O O O B-COLUMN I-COLUMN B-COLUMN O B-TABLE B-COLUMN O O O O B-VALUE B-COLUMN O O O


Question: How many users, between the age 27 to 35, were surveyed in 2018?

SELECT T1.UserID FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.SurveyID = 2018 AND T2.questionid = 1 AND T1.AnswerText BETWEEN '27' AND '35'

How many users , between the age 27 to 35 , were surveyed in 2018 ?

O B-TABLE I-TABLE O O O O B-VALUE O B-VALUE O O B-COLUMN O B-VALUE O


Question: Find the name of amenity that is most common in all dorms.

SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid  =  T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1

Find the name of amenity that is most common in all dorms .


Question: What position did player id "hartgi01" play in his Stanley Cup finals performance?

SELECT DISTINCT pos FROM ScoringSC WHERE playerID = 'hartgi01'

What position did player i d " hartgi01 " play in his Stanley Cup finals performance ?

O O O B-COLUMN I-COLUMN I-COLUMN O B-VALUE O O O O O O O O O


Question: Among the employees whose pay frequencies are the highest, how many of them are married?

SELECT COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.MaritalStatus = 'M' AND T1.PayFrequency = ( SELECT PayFrequency FROM EmployeePayHistory ORDER BY PayFrequency DESC LIMIT 1 )

Among the employees whose pay frequencies are the highest , how many of them are married ?

O O B-TABLE O B-COLUMN I-COLUMN O O O O O O O O O O O


Question: Among the shipments done by Sue Newell, how many of them are for S K L Enterprises Inc?

SELECT COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T1.cust_name = 'S K L Enterprises Inc' AND T3.first_name = 'Sue' AND T3.last_name = 'Newell'

Among the shipments done by Sue Newell , how many of them are for S K L Enterprises Inc ?

O O B-TABLE O O B-VALUE B-VALUE O O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: Show the authors who have submissions to more than one workshop.

SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1

Show the authors who have submissions to more than one workshop .

O O B-COLUMN O O B-TABLE O O O O B-COLUMN O


Question: Name all the project titles whereby project materials are intended mainly for literary.

SELECT T1.title FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_subject = 'Literacy'

Name all the project titles whereby project materials are intended mainly for literary .

O O O B-COLUMN B-COLUMN O B-TABLE O O O O O B-VALUE O


Question: What is the contact URL of Claire McCaskill?

SELECT T2.contact_form FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Claire McCaskill' GROUP BY T2.contact_form

What is the contact URL of Claire McCaskill ?


Question: List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.

SELECT T2.Hardware_Model_name ,  T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB  >  32;

List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32 .

O O B-COLUMN B-COLUMN B-COLUMN O B-COLUMN I-COLUMN O O O B-TABLE O O B-COLUMN O O B-VALUE O O B-COLUMN O O O B-VALUE O


Question: Among the users whose fan is medium, how many users received high compliments from other users.

SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id WHERE T2.number_of_compliments = 'High' AND T1.user_fans = 'Medium'

Among the users whose fan is medium , how many users received high compliments from other users .

O O B-COLUMN O O O B-VALUE O O O B-COLUMN O B-VALUE B-TABLE O O B-TABLE O


Question: Which cities have 2 to 4 parks?

SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;

O B-COLUMN O B-VALUE O B-VALUE B-TABLE O


Question: Indicate the title of all the films that are in the Classics category.

SELECT T2.title 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 WHERE T3.name = 'Classics'

Indicate the title of all the films that are in the Classics category .

O O B-COLUMN O O O B-TABLE O O O O B-VALUE B-TABLE O


Question: How many orders placed were with more than 5 product quantities?

SELECT SUM(IIF(`Order Quantity` > 5, 1, 0)) FROM `Sales Orders`

How many orders placed were with more than 5 product quantities ?

O B-TABLE I-TABLE O O O O O B-VALUE B-COLUMN I-COLUMN O


Question: Show the result of the submission with the highest score.

SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1

Show the result of the submission with the highest score .

O O B-COLUMN O O B-TABLE O O O B-COLUMN O


Question: Count the number of accounts.


Question: How many actors have starred in the film ACADEMY DINOSAUR?

SELECT COUNT(T1.actor_id) FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id WHERE T2.title = 'ACADEMY DINOSAUR'

How many actors have starred in the film ACADEMY DINOSAUR ?

O O B-COLUMN O O O O B-TABLE B-VALUE I-VALUE O


Question: What are the names of the top 8 countries by total invoice size and what are those sizes?

SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;

What are the names of the top 8 countries by total invoice size and what are those sizes ?

O O O O O O O O O O B-COLUMN B-TABLE O O O O O O O


Question: Sort all the distinct products in alphabetical order.

SELECT DISTINCT product_name FROM products ORDER BY product_name

Sort all the distinct products in alphabetical order .


Question: How many orders with a quantity greater than 5 have been shipped by the fastest delivery method?

SELECT COUNT(DISTINCT `Order ID`) FROM central_superstore WHERE Quantity > 5 AND `Ship Mode` = 'First Class'

How many orders with a quantity greater than 5 have been shipped by the fastest delivery method ?

O O B-COLUMN I-COLUMN O B-COLUMN O O B-VALUE O O B-COLUMN O O O O O O


Question: Was the tag in the complaint filed by Matthew Pierce on 2016/10/28 approved by himself?

SELECT CASE WHEN T2.`Consumer consent provided?` IN (NULL, 'N/A', 'Empty') THEN 'No' ELSE 'Yes' END FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Matthew' AND T1.last = 'Pierce' AND T2.`Date received` = '2016-10-28'

Was the tag in the complaint filed by Matthew Pierce on 2016/10/28 approved by himself ?

O O O O O B-TABLE B-COLUMN O B-VALUE B-VALUE O B-VALUE O O O O


Question: How many businesses in AZ state have the beer_and_wine attribute?

SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T2.attribute_value LIKE 'beer_and_wine' AND T1.state LIKE 'AZ'

How many businesses in AZ state have the beer_and_wine attribute ?

O O B-TABLE O B-VALUE B-COLUMN O O B-VALUE B-COLUMN O


Question: Who has written a paper that has the word "Functional" in its title? Return the first names of the authors.

SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE "%Functional%"

Who has written a paper that has the word " Functional " in its title ? Return the first names of the authors .

O O O O B-TABLE O O O O O B-COLUMN O O O B-COLUMN O O O O B-COLUMN O O B-COLUMN O


Question: List the names of the products being shipped and the corresponding shipment date.

SELECT T1.product_name ,  T4.shipment_date FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id  =  T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id  =  T4.shipment_id

List the names of the products being shipped and the corresponding shipment date .

O O O O O B-TABLE O O O O O B-TABLE B-COLUMN O


Question: List the names of the stations within Mountain View that were installed on 12/31/2013.

SELECT name FROM station WHERE installation_date = '12/31/2013' AND city = 'Mountain View'

List the names of the stations within Mountain View that were installed on 12/31/2013 .

O O B-COLUMN O O B-TABLE O B-VALUE I-VALUE O O B-COLUMN O B-VALUE O


Question: What are the ID of actors that had worked together with director 22397? What was the genre of that movie?

SELECT T2.actorid, T4.genre FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T2.actorid = T3.actorid INNER JOIN movies2directors AS T4 ON T1.movieid = T4.movieid WHERE T4.directorid = 22397

What are the ID of actors that had worked together with director 22397 ? What was the genre of that movie ?

O O O O B-TABLE B-TABLE O O O O O B-COLUMN B-VALUE O O O O B-COLUMN O O B-TABLE O


Question: What is the lap record set by Lewis Hamilton in a Formula_1 race?

SELECT T1.time FROM lapTimes AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton'

What is the lap record set by Lewis Hamilton in a Formula_1 race ?


Question: Please list the texts of all the tweets that are not in English.

SELECT text FROM twitter WHERE Lang != 'en'

Please list the texts of all the tweets that are not in English .


Question: What is the population of the district with the least population?

SELECT SUM(population) FROM Community_Area GROUP BY side ORDER BY SUM(population) LIMIT 1

What is the population of the district with the least population ?


Question: Describe the number of app IDs and location of the event ID "79641".

SELECT COUNT(T1.app_id), T2.longitude, T2.latitude FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE T1.event_id = 79641 GROUP BY T2.longitude, T2.latitude

Describe the number of app IDs and location of the event ID " 79641 " .

O O O O B-COLUMN I-COLUMN O O O O B-TABLE B-COLUMN O B-VALUE O O


Question: Which nations have both customers with card credit above 50 and customers with card credit below 75.

SELECT Nationality FROM customer WHERE Card_Credit  <  50 INTERSECT SELECT Nationality FROM customer WHERE Card_Credit  >  75

Which nations have both customers with card credit above 50 and customers with card credit below 75 .

O B-COLUMN O O O O B-COLUMN I-COLUMN O B-VALUE O B-TABLE O O O O B-VALUE O


Question: Who is the one representing the company "Heli Swaren GmbH & Co. KG"?

SELECT ContactName FROM Suppliers WHERE CompanyName = 'Heli Swaren GmbH & Co. KG'

Who is the one representing the company " Heli Swaren GmbH & Co. KG " ?

O O O O O O B-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: Find the name of customers whose credit score is below the average credit scores of all customers.

SELECT cust_name FROM customer WHERE credit_score  <  (SELECT avg(credit_score) FROM customer)

Find the name of customers whose credit score is below the average credit scores of all customers .

O O O O O O B-COLUMN I-COLUMN O O O O O O O O B-TABLE O


Question: Show all school names in alphabetical order.

SELECT school_name FROM school ORDER BY school_name

Show all school names in alphabetical order .


Question: How many stores are headquarted in each city?

SELECT t3.headquartered_city ,  count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city

How many stores are headquarted in each city ?


Question: Find the brand Id of the root beer which has the most number of customers who gave 1-star ratings.

SELECT BrandID FROM rootbeerreview WHERE StarRating = 1 GROUP BY BrandID ORDER BY COUNT(BrandID) DESC LIMIT 1

Find the brand I d of the root beer which has the most number of customers who gave 1 - star ratings .

O O B-COLUMN I-COLUMN I-COLUMN O O B-TABLE I-TABLE O O O O O O O O O B-VALUE O B-COLUMN I-COLUMN O


Question: What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5?

SELECT product FROM product WHERE max_page_size  =  "A4" AND pages_per_minute_color  <  5

What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5 ?

O O O B-COLUMN O O O B-COLUMN I-COLUMN B-COLUMN O O O O B-COLUMN I-COLUMN I-COLUMN I-COLUMN O O B-VALUE O


Question: What is the percentage of the international students in University of Oslo in 2015?

SELECT T2.pct_international_students FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'University of Oslo' AND T2.year = 2015

What is the percentage of the international students in University of Oslo in 2015 ?

O O O O O O B-COLUMN I-COLUMN O B-TABLE B-VALUE I-VALUE O B-VALUE O


Question: What is the name of the game in which the oldest Olympian has ever participated?

SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id ORDER BY T2.age LIMIT 1

What is the name of the game in which the oldest Olympian has ever participated ?

O O O O O O B-TABLE B-COLUMN O O O O O O O O


Question: Among all the clients from the New York city, how many of them have filed a complaint on the issue of Deposits and withdrawals?

SELECT COUNT(T2.Issue) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Issue = 'Deposits and withdrawals' AND T1.city = 'New York City'

Among all the clients from the New York city , how many of them have filed a complaint on the issue of Deposits and withdrawals ?

O O O B-TABLE O O B-VALUE I-VALUE B-COLUMN O O O O O O O O O O O B-COLUMN O B-VALUE I-VALUE I-VALUE O


Question: What are the names and years of all races that had a driver with the last name Lewis?

SELECT T2.name ,  T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = "Lewis"

What are the names and years of all races that had a driver with the last name Lewis ?

O O O O O B-COLUMN O O B-TABLE O O O B-TABLE O O O B-COLUMN B-COLUMN O


Question: Show the distinct developer of games played by players that go to college "Auburn".

SELECT DISTINCT T1.Developers FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.College  =  "Auburn"

Show the distinct developer of games played by players that go to college " Auburn " .

O O O B-COLUMN O B-TABLE B-COLUMN O B-TABLE O O O B-COLUMN O B-COLUMN O O


Question: Find the vendor with the least average lead time for Product ID 348.

SELECT T2.Name FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.ProductID = 348 ORDER BY T1.AverageLeadTime ASC LIMIT 1

Find the vendor with the least average lead time for Product ID 348 .

O O B-TABLE O O O B-COLUMN I-COLUMN I-COLUMN O B-COLUMN I-COLUMN B-VALUE O


Question: Which team had the most final-time home-team goals in the 2021 season's matches of the Bundesliga division?

SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.season = 2021 ORDER BY T1.FTHG DESC LIMIT 1

Which team had the most final - time home - team goals in the 2021 season 's matches of the Bundesliga division ?

O O O O O O O O B-COLUMN I-COLUMN I-COLUMN O O O B-VALUE B-COLUMN O B-TABLE B-COLUMN I-COLUMN B-VALUE B-COLUMN O


Question: Find the state of the college which player Charles is attending.

SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'

Find the state of the college which player Charles is attending .

O O B-COLUMN O O B-TABLE O B-TABLE B-VALUE O O O


Question: Please show the police forces and the number of counties with each police force.

SELECT Police_force ,  COUNT(*) FROM county_public_safety GROUP BY Police_force

Please show the police forces and the number of counties with each police force .

O O O O O O O O O O O O B-COLUMN I-COLUMN O


Question: In the history of all the Quebec Bulldogs, which goalie had the most play minutes for the team? Give the full name.

SELECT T2.firstName, T2.lastName FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T1.tmID = T3.tmID AND T1.year = T3.year WHERE T3.name = 'Quebec Bulldogs' AND T2.pos = 'D' GROUP BY T1.playerID, T2.firstName, T2.lastName ORDER BY SUM(T1.Min) DESC LIMIT 1

In the history of all the Quebec Bulldogs , which goalie had the most play minutes for the team ? Give the full name .

O O O O O O B-VALUE I-VALUE O O B-TABLE O O B-TABLE B-COLUMN B-COLUMN O O B-TABLE O O O O B-COLUMN O


Question: List all collections' subset. List the subsets' names.

SELECT Collection_Subset_Name FROM Collection_Subsets;

List all collections ' subset . List the subsets ' names .

O O B-TABLE I-TABLE I-TABLE O O O O O O O


Question: What are the years that "WiiU" got a new game?

SELECT T2.release_year FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id WHERE T1.platform_name = 'WiiU' ORDER BY T2.release_year DESC LIMIT 1

What are the years that " WiiU " got a new game ?


Question: How many authors do we have?


Question: Find the names of catalog entries with level number 8.

SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  "8"

Find the names of catalog entries with level number 8 .

O O O O B-COLUMN I-COLUMN O B-COLUMN I-COLUMN B-COLUMN O


Question: How many arrests were made in 2018 in an animal hospital under FBI code 08B?

SELECT SUM(CASE WHEN arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Crime WHERE date LIKE '%2018%' AND location_description = 'ANIMAL HOSPITAL' AND fbi_code_no = '08B'

How many arrests were made in 2018 in an animal hospital under FBI code 08B ?

O O B-COLUMN O O O B-VALUE O O B-VALUE I-VALUE O B-COLUMN I-COLUMN B-VALUE O


Question: How many employees working in the Engineering Department in 2007 would have their credit cards expired in the same year?

SELECT COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN PersonCreditCard AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID INNER JOIN CreditCard AS T4 ON T3.CreditCardID = T4.CreditCardID WHERE T4.ExpYear = 2007 AND T2.Name = 'Engineering'

How many employees working in the Engineering Department in 2007 would have their credit cards expired in the same year ?

O O O O O O B-VALUE B-TABLE B-TABLE B-VALUE O O B-TABLE B-TABLE I-TABLE O O O B-COLUMN B-COLUMN O


Question: Who is the employee with the highest salary? Specify his/her full name.

SELECT firstname, lastname FROM employee WHERE CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL)) FROM employee )

Who is the employee with the highest salary ? Specify his / her full name .

O O O B-TABLE O O O B-COLUMN O O O O O O B-COLUMN O


Question: What is the second team's name in the match with the lowest winning margin?

SELECT T1.team_name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.team_2 ORDER BY T2.win_margin LIMIT 1

What is the second team 's name in the match with the lowest winning margin ?

O O O O B-TABLE B-COLUMN I-COLUMN O O B-TABLE O O O B-COLUMN I-COLUMN O


Question: How many times was Ian Maxtone-Graham nominated for an award in Writers Guild of America, USA?

SELECT COUNT(award_id) FROM Award WHERE person = 'Ian Maxtone-Graham' AND organization = 'Writers Guild of America, USA' AND result = 'Nominee';

How many times was Ian Maxtone - Graham nominated for an award in Writers Guild of America , USA ?

O O O O B-VALUE I-VALUE I-VALUE I-VALUE B-VALUE O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: What is the name of the shop that has the greatest quantity of devices in stock?

SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1

What is the name of the shop that has the greatest quantity of devices in stock ?

O O O O O O B-TABLE O O O O B-COLUMN O O O B-TABLE O


Question: Show the price ranges of hotels with 5 star ratings.

SELECT price_range FROM HOTELS WHERE star_rating_code  =  "5"

Show the price ranges of hotels with 5 star ratings .

O O B-COLUMN I-COLUMN O B-TABLE O B-COLUMN B-COLUMN I-COLUMN O


Question: What is the name and salary of all employees in order of salary?

SELECT name ,  salary FROM Employee ORDER BY salary

What is the name and salary of all employees in order of salary ?

O O O B-COLUMN O O O O B-TABLE O O O B-COLUMN O


Question: Among all shipments delivered by Sue Newel, identify the percentage of shipments that were placed by Autoware Inc.

SELECT CAST(SUM(CASE WHEN T3.cust_name = 'Autoware Inc' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS per FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id INNER JOIN customer AS T3 ON T3.cust_id = T1.cust_id WHERE T2.first_name = 'Sue' AND T2.last_name = 'Newell'

Among all shipments delivered by Sue Newel , identify the percentage of shipments that were placed by Autoware Inc.

O O B-TABLE B-TABLE O B-VALUE B-VALUE O O O O O O O O O O B-VALUE I-VALUE


Question: What is the ratio between business in shopping category and business in pets category?

SELECT CAST(SUM(CASE WHEN T2.category_name = 'Shopping' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.category_name = 'Pets' THEN 1 ELSE 0 END) AS radio FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id

What is the ratio between business in shopping category and business in pets category ?

O O O O O O O B-VALUE B-TABLE O B-TABLE I-TABLE B-VALUE B-COLUMN O


Question: What are the first and last name for those employees who works either in department 70 or 90?

SELECT first_name ,  last_name FROM employees WHERE department_id  =  70 OR department_id  =  90

What are the first and last name for those employees who works either in department 70 or 90 ?

O O O B-COLUMN O B-COLUMN I-COLUMN O O B-TABLE O O O O B-COLUMN B-VALUE O B-VALUE O


Question: Find the number of pilots for the plane types with average pilot age below 35.

SELECT count(*) ,  plane_name FROM pilotskills GROUP BY plane_name HAVING avg(age)  <  35

Find the number of pilots for the plane types with average pilot age below 35 .

O O O O B-TABLE O O B-COLUMN O O O O B-COLUMN O B-VALUE O


Question: What is the average price across all products?

What is the average price across all products ?


Question: Which program is broadcast most frequently? Give me the program name.

SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1

Which program is broadcast most frequently ? Give me the program name .

O B-TABLE O B-TABLE O O O O O O B-COLUMN B-COLUMN O


Question: Based on the credits, state how many roles were played in the 5th episode of simpson 20.

SELECT COUNT(DISTINCT T2.role) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 5;

Based on the credits , state how many roles were played in the 5th episode of simpson 20 .

O O O B-TABLE O O O O B-COLUMN O O O O O B-COLUMN O O O O


Question: What elements are in a double type bond?

SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN connected AS T3 ON T1.atom_id = T3.atom_id WHERE T2.bond_type = '='

What elements are in a double type bond ?


Question: What is the full name of the conference in which the paper "2004 YD5" was published?

SELECT T1.FullName FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T2.Title = '2004 YD5'

What is the full name of the conference in which the paper " 2004 YD5 " was published ?

O O O B-COLUMN I-COLUMN O O B-TABLE O O O B-TABLE O B-VALUE I-VALUE O O O O


Question: What are the character names and descriptions of characters in "Venus and Adonis"?

SELECT DISTINCT T4.CharName, T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.Title = 'Venus and Adonis'

What are the character names and descriptions of characters in " Venus and Adonis " ?

O O O B-COLUMN O O B-COLUMN O B-TABLE O O B-VALUE I-VALUE I-VALUE O O


Question: With 100$, how many Cable Lock can you buy?

SELECT 100 / T2.ListPrice FROM Product AS T1 INNER JOIN ProductListPriceHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Cable Lock'

With 100 $ , how many Cable Lock can you buy ?

O B-VALUE O O O O B-VALUE I-VALUE O O O O


Question: Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.

SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;

Which employee has showed up in most circulation history documents . List the employee 's name and the number of drafts and copies .

O O O O O O O B-TABLE I-TABLE B-COLUMN O O O B-TABLE I-TABLE B-COLUMN O O B-COLUMN O O O O O


Question: Among highest quality user of under ID 100, mention compliment type which got highest compliment number and user's followers.

SELECT T1.compliment_type, T3.user_fans FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T2.number_of_compliments = 'Uber' AND T2.user_id < 100

Among highest quality user of under ID 100 , mention compliment type which got highest compliment number and user 's followers .

O O O O O O O B-VALUE O B-COLUMN B-TABLE B-COLUMN O O O O B-VALUE O B-TABLE I-TABLE O O


Question: Please list the countries and years of film market estimations.

SELECT T2.Country ,  T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID

Please list the countries and years of film market estimations .

O O O B-COLUMN O B-COLUMN O B-TABLE B-TABLE B-TABLE O


Question: What is the name and email of the staff in store ID 2?

SELECT first_name, last_name, email FROM staff WHERE store_id = 2

What is the name and email of the staff in store ID 2 ?

O B-COLUMN I-COLUMN B-COLUMN O B-COLUMN O O B-TABLE O B-COLUMN I-COLUMN B-VALUE O


Question: What is the employee id of the head whose department has the least number of employees?

SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;

What is the employee i d of the head whose department has the least number of employees ?

O O O O O O O O B-COLUMN O B-TABLE O O O O O O O


Question: For the Honkai Impact 3rd App, what is the highest sentiment polarity score and what genre does it belong to?

SELECT MAX(T2.Sentiment_Polarity), T1.Genres FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Honkai Impact 3rd' AND T2.Sentiment_Polarity > 0.5 GROUP BY T1.Genres

For the Honkai Impact 3rd App , what is the highest sentiment polarity score and what genre does it belong to ?

O O B-VALUE I-VALUE I-VALUE B-COLUMN O O O O O B-COLUMN B-TABLE I-TABLE O O B-COLUMN O O O O O


Question: Student21 is enlisted in which organization and has the student been absent?

SELECT T2.month, T1.organ FROM enlist AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.`name` = T2.`name` WHERE T1.name = 'student21'

Student21 is enlisted in which organization and has the student been absent ?

B-VALUE O B-TABLE O O B-COLUMN O O O O O O O


Question: What are the keywords of the episode "Take My Life, Please"?

SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Take My Life, Please';

What are the keywords of the episode " Take My Life , Please " ?

O O O B-TABLE O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: Who is the author of the publication named 'Real-Time Automata'?

SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Real-Time Automata'

Who is the author of the publication named ' Real - Time Automata ' ?

O O O B-TABLE O O O B-COLUMN O B-VALUE I-VALUE B-COLUMN B-VALUE O O


Question: Name of the capitals of the countries that have less than 99.95% less population than the country that has the most population.

SELECT Capital FROM country WHERE Population <= ( SELECT MAX(Population) - MAX(Population) * 0.9995 FROM country )

Name of the capitals of the countries that have less than 99.95 % less population than the country that has the most population .

O O O B-COLUMN O O O O O O O B-VALUE O O B-COLUMN O O B-TABLE O O O O O O


Question: How many agencies do we have?


Question: What is the percentage of orders with 0.2 discount in the Central superstore were purchased by customers who live in Texas?

SELECT CAST(SUM(CASE  WHEN T2.Discount = 0.2 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.State = 'Texas'

What is the percentage of orders with 0.2 discount in the Central superstore were purchased by customers who live in Texas ?

O O O O O O O B-VALUE B-COLUMN O O B-TABLE I-TABLE O O O B-COLUMN O O O B-VALUE O


Question: How many of the items are instructed to be delivered in person?

SELECT COUNT(l_linenumber) FROM lineitem WHERE l_shipinstruct = 'DELIVER IN PERSON'

How many of the items are instructed to be delivered in person ?

O O O O B-TABLE O B-COLUMN O O B-VALUE I-VALUE I-VALUE O


Question: Count the number of distinct artists who have volumes.

SELECT COUNT(DISTINCT Artist_ID) FROM volume

Count the number of distinct artists who have volumes .


Question: What is the category of the product that has the highest number of discontinued products?

SELECT T2.CategoryName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.Discontinued = 1 GROUP BY T2.CategoryName ORDER BY COUNT(T1.ProductID) DESC LIMIT 1

What is the category of the product that has the highest number of discontinued products ?

O O O B-COLUMN O O B-COLUMN O O O O O O B-COLUMN B-TABLE O


Question: Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.

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 all the addresses in East Julianaside , Texas or in Gleasonmouth , Arizona .

O O O B-TABLE B-COLUMN B-COLUMN I-COLUMN O B-COLUMN O O B-COLUMN O B-COLUMN O


Question: How many lessons taught by staff whose first name has letter 'a' in it?

SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"

How many lessons taught by staff whose first name has letter ' a ' in it ?

O O B-TABLE O O B-TABLE O B-COLUMN I-COLUMN O O O O O O O O


Question: Give the full address of the office of the highest paid manager.

SELECT T2.address FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Manager' ORDER BY T1.salary DESC LIMIT 1

Give the full address of the office of the highest paid manager .


Question: What is the total amount of all the donations made by the donor who made the highest donation in a single amount? Indicate the essay title to where he/she made his/her biggest donation.

SELECT T2.donation_total, T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_total = ( SELECT MAX(donation_total) FROM donations )

What is the total amount of all the donations made by the donor who made the highest donation in a single amount ? Indicate the essay title to where he / she made his / her biggest donation .

O O O O O O O O B-TABLE O O O O O O O O B-COLUMN O O O O O O O B-TABLE B-COLUMN O O O O O O O O O O O O


Question: Find all the cities that have 2 to 4 parks.

SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;

Find all the cities that have 2 to 4 parks .

O O O B-COLUMN O O B-VALUE O B-VALUE B-TABLE O


Question: Find the title of the course that is offered by more than one department.

SELECT title FROM course GROUP BY title HAVING count(*)  >  1

Find the title of the course that is offered by more than one department .

O O B-COLUMN O O B-TABLE O O O O O O O O O


Question: Who is the main actor in the "Pirates of the Caribbean: At World's End" movie?

SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' ORDER BY T2.cast_order LIMIT 1

Who is the main actor in the " Pirates of the Caribbean : At World 's End " movie ?

O O O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O B-TABLE O


Question: How many apps are labeled 7?

SELECT COUNT(app_id) FROM app_labels WHERE label_id = 7


Question: What are the names of rooms whose reservation frequency exceeds 60 times?

SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60

What are the names of rooms whose reservation frequency exceeds 60 times ?

O O O B-COLUMN O B-COLUMN O B-TABLE O O B-VALUE O O


Question: Give the name of the community area which had the most pocket-picking thefts.

SELECT T3.community_area_name FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.primary_description = 'THEFT' AND T1.secondary_description = 'POCKET-PICKING' GROUP BY T2.community_area_no ORDER BY T2.case_number DESC LIMIT 1

Give the name of the community area which had the most pocket - picking thefts .

O O O O O B-TABLE I-TABLE O O O O B-VALUE I-VALUE I-VALUE B-VALUE O