Question: Count the number of different positions in the club "Bootup Baltimore".

SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid WHERE t1.clubname  =  "Bootup Baltimore"

Count the number of different positions in the club " Bootup Baltimore " .

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


Question: Which reign is the most common among wrestlers?

SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1

Which reign is the most common among wrestlers ?


Question: What is the average number of customers across banks in the state of Utah?

SELECT avg(no_of_customers) FROM bank WHERE state  =  'Utah'

What is the average number of customers across banks in the state of Utah ?

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


Question: What is the id of every painting created before the oldest painting in gallery 240?

SELECT paintingID FROM paintings WHERE YEAR  <   (SELECT min(YEAR) FROM paintings WHERE LOCATION  =  'Gallery 240')

What is the i d of every painting created before the oldest painting in gallery 240 ?

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


Question: Which is the catching hand for the goaltender who had the most shutouts in 1996?

SELECT T1.shootCatch FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1996 ORDER BY T2.SHO DESC LIMIT 1

Which is the catching hand for the goaltender who had the most shutouts in 1996 ?

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


Question: What is the power play percentage of the team with the least number of penalty kill chances and to which team were they playing against? Indicate whether the team lost or victorious.

SELECT SUM(T1.A), T2.firstName, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NHL' GROUP BY T2.firstName, T2.lastName ORDER BY SUM(T1.A) DESC LIMIT 1

What is the power play percentage of the team with the least number of penalty kill chances and to which team were they playing against ? Indicate whether the team lost or victorious .

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


Question: What are the keywords of the least popular episode?

SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id ORDER BY T1.votes LIMIT 1;

What are the keywords of the least popular episode ?


Question: Name the object element that is described as being scattered on image no. 10.

SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID INNER JOIN IMG_OBJ_ATT AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN ATT_CLASSES AS T4 ON T3.ATT_CLASS_ID = T4.ATT_CLASS_ID WHERE T4.ATT_CLASS = 'scattered' AND T1.IMG_ID = 10 GROUP BY T2.OBJ_CLASS

Name the object element that is described as being scattered on image no . 10 .

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


Question: What is the first and last name of the professor in biology department?

SELECT T3.EMP_FNAME ,  T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM  =  T3.EMP_NUM WHERE DEPT_NAME  =  "Biology"

What is the first and last name of the professor in biology department ?

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


Question: What is the name of the customer that made the order with the largest quantity?

SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t3.order_quantity  =  ( SELECT max(order_quantity) FROM order_items)

What is the name of the customer that made the order with the largest quantity ?

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


Question: What are the names of all movies that received 3 or 4 stars?

SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  4

What are the names of all movies that received 3 or 4 stars ?

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


Question: How many income are received with an amount of 50?

SELECT COUNT(income_id) FROM income WHERE amount = 50

How many income are received with an amount of 50 ?

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


Question: How many games were published by Acclaim Entertainment?

SELECT COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Acclaim Entertainment'

How many games were published by Acclaim Entertainment ?

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


Question: Which player from "AFS" team has the tallest height?

SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'AFS' ORDER BY T1.height DESC LIMIT 1

Which player from " AFS " team has the tallest height ?

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


Question: Find the average city and highway fuel rates for cars with different powertrain types.

SELECT avg(City_fuel_economy_rate) ,  avg(Highway_fuel_economy_rate) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain

Find the average city and highway fuel rates for cars with different powertrain types .

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


Question: What is the average ticket sales gross in dollars of films?

What is the average ticket sales gross in dollars of films ?

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


Question: What is the name of every college in alphabetical order that has more than 18000 students enrolled?

SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName

What is the name of every college in alphabetical order that has more than 18000 students enrolled ?

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


Question: For the year that concluded on December 31, 1998, how many male patients on average were tested in the lab each month?

SELECT CAST(COUNT(T1.ID) AS REAL) / 12 FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T2.Date) = '1998' AND T1.SEX = 'M'

For the year that concluded on December 31 , 1998 , how many male patients on average were tested in the lab each month ?

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


Question: What are the ages of all of Zach's friends who are in the longest relationship?

SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')

What are the ages of all of Zach 's friends who are in the longest relationship ?

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


Question: How many low-income countries under the lending category of the International Development Associations have a note on the series code SM.POP.TOTL?

SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.LendingCategory = 'IDA' AND T2.Seriescode = 'SM.POP.TOTL' AND IncomeGroup = 'Low income'

How many low - income countries under the lending category of the International Development Associations have a note on the series code SM.POP.TOTL ?

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


Question: What is the average of superheroes with no skin colour?

SELECT CAST(COUNT(*) AS REAL) / SUM(CASE WHEN T2.id = 1 THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id

What is the average of superheroes with no skin colour ?

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


Question: How many universities scored 0 in Awards between 2005 to 2015?

SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id WHERE T1.criteria_name = 'Award' AND T2.year BETWEEN 2005 AND 2015 AND T2.score = 0

How many universities scored 0 in Awards between 2005 to 2015 ?

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


Question: What are the first names and majors of students living in Baltimore?

SELECT T2.Fname ,  T2.Major FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code WHERE T1.city_name  =  "Baltimore"

What are the first names and majors of students living in Baltimore ?

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


Question: What is the percentage of athletes from Vanuatu who are taller than 175?

SELECT CAST(COUNT(CASE WHEN T3.height > 175 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Vanuatu'

What is the percentage of athletes from Vanuatu who are taller than 175 ?


Question: Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.

SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  'Italy' AND T3.name  =  'American Airlines'

Return the number of routes with destination airport in Italy operated by the airline with name ' American Airlines ' .

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


Question: What is the name of the division in which Club Brugge and Genk competed on September 13, 2009?

SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2009-09-13' and T1.HomeTeam = 'Club Brugge' AND T1.AwayTeam = 'Genk'

What is the name of the division in which Club Brugge and Genk competed on September 13 , 2009 ?

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


Question: Please list the full name and region of each employee in alphabetical order.

SELECT DISTINCT T1.FirstName, T1.LastName, T4.RegionDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID ORDER BY T1.FirstName

Please list the full name and region of each employee in alphabetical order .

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


Question: Describe the post history counts and last edit date of the post title "What is the best introductory Bayesian statistics textbook?"

SELECT T1.Id, T2.LastEditDate FROM postHistory AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'What is the best introductory Bayesian statistics textbook?'

Describe the post history counts and last edit date of the post title " What is the best introductory Bayesian statistics textbook ? "

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


Question: What is the film title and inventory id of the item in the inventory which was rented most frequently?

SELECT T1.title ,  T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1

What is the film title and inventory i d of the item in the inventory which was rented most frequently ?

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


Question: What are the line 1 and average monthly rentals of all student addresses?

SELECT T1.line_1 ,  avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id

What are the line 1 and average monthly rentals of all student addresses ?

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


Question: Among the countries in the High income: OECD group whose currency unit is Euro, how many of them have a note on the series code SP.DYN.AMRT.FE?

SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.IncomeGroup = 'High income: OECD' AND T1.CurrencyUnit = 'Euro' AND T2.Seriescode = 'SP.DYN.AMRT.FE'

Among the countries in the High income : OECD group whose currency unit is Euro , how many of them have a note on the series code SP.DYN.AMRT.FE ?

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


Question: Which are the rivers that flows to Black Sea?

SELECT Name FROM river WHERE Sea = 'Black Sea'

Which are the rivers that flows to Black Sea ?


Question: How many docks were available at the starting station of trip ID 912900?

SELECT SUM(T2.docks_available) FROM trip AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.start_station_id WHERE T1.zip_code = 912900

How many docks were available at the starting station of trip ID 912900 ?

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


Question: State the name of the platforms for games released in 2000.

SELECT DISTINCT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T1.release_year = 2000

State the name of the platforms for games released in 2000 .

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


Question: Show the protein name and the institution name.

SELECT T2.protein_name ,  T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id

Show the protein name and the institution name .


Question: What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?

SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )

What are the employee ids , full names , and job ids for employees who make more than the highest earning employee with title PU_MAN ?

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


Question: What are all the songs in albums under label "Universal Music Group"?

SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  "Universal Music Group"

What are all the songs in albums under label " Universal Music Group " ?

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


Question: Which street in San Francisco has the most burger restaurants?

SELECT T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.food_type = 'burgers' GROUP BY T2.street_name ORDER BY COUNT(T2.id_restaurant) DESC LIMIT 1

Which street in San Francisco has the most burger restaurants ?

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


Question: What are the titles of games that have platforms in the market districts of Asia or the USA?

SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID  =  T2.Platform_ID WHERE T2.Market_district  =  "Asia" OR T2.Market_district  =  "USA"

What are the titles of games that have platforms in the market districts of Asia or the USA ?

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


Question: How many episodes are there in the 9th season of Law and Order? Calculate the average number of casts per season of the said series.

SELECT SUM(CASE WHEN T2.season = 9 THEN 1 ELSE 0 END) AS num , CAST(SUM(CASE WHEN T2.season = 9 THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.episode_id) FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.category = 'Cast' AND T2.series = 'Law and Order'

How many episodes are there in the 9th season of Law and Order ? Calculate the average number of casts per season of the said series .

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


Question: Find the names of customers who have no policies associated.

SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id

Find the names of customers who have no policies associated .


Question: Find the names and average salaries of all departments whose average salary is greater than 42000.

SELECT dept_name ,  AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary)  >  42000

Find the names and average salaries of all departments whose average salary is greater than 42000 .

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


Question: List out all post that are related to post ID 61217 and what is the popularity of this post?

SELECT T1.ViewCount FROM posts AS T1 INNER JOIN postLinks AS T2 ON T1.Id = T2.PostId WHERE T2.PostId = 61217

List out all post that are related to post ID 61217 and what is the popularity of this post ?

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


Question: Among the students being advised by Advisor 5, how many students are in the 5th year?

SELECT COUNT(*) FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.p_id_dummy = 5 AND T2.student = 1 AND T2.yearsInProgram = 'Year_5'

Among the students being advised by Advisor 5 , how many students are in the 5th year ?

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


Question: Which vocal type has the band mate with last name "Heilo" played the most?

SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE lastname  =  "Heilo" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1

Which vocal type has the band mate with last name " Heilo " played the most ?

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


Question: How many customers are there?


Question: How many accounts who have region in Prague are eligible for loans?

SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T1.district_id = T3.district_id WHERE T3.A3 = 'Prague'

How many accounts who have region in Prague are eligible for loans ?

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


Question: What are the distinct names of wines with prices higher than any wine from John Anthony winery.

SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  "John Anthony")

What are the distinct names of wines with prices higher than any wine from John Anthony winery .

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


Question: How much did customer 103 pay in total?

SELECT SUM(t.amount) FROM payments t WHERE t.customerNumber = '103'

How much did customer 103 pay in total ?


Question: Tweets that were posted from Brazil are in what languague?

SELECT DISTINCT T1.Lang FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.Country = 'Brazil'

Tweets that were posted from Brazil are in what languague ?


Question: What is the anti Cardiolipin antibody concentration of the female patient with the highest uric acid level in the normal range?

SELECT T3.`aCL IgG`, T3.`aCL IgM`, T3.`aCL IgA` FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE T1.SEX = 'F' AND T2.UA > 6.5 ORDER BY T2.UA DESC LIMIT 1

What is the anti Cardiolipin antibody concentration of the female patient with the highest uric acid level in the normal range ?

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


Question: List all the inactive coins and state the last date of its transaction?

SELECT T1.NAME, MAX(T2.DATE) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.ID = T2.coin_id WHERE T1.status = 'inactive' ORDER BY T2.DATE DESC LIMIT 1

List all the inactive coins and state the last date of its transaction ?

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


Question: Find and list the products that sold below the average quantity.

SELECT DISTINCT T2.Name FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Quantity < ( SELECT AVG(Quantity) FROM Sales )

Find and list the products that sold below the average quantity .


Question: List the names of shops that have no devices in stock.

SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)

List the names of shops that have no devices in stock .


Question: Identify the weakest attribute of the Black Panther.

SELECT T3.attribute_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T1.superhero_name = 'Black Panther' ORDER BY T2.attribute_value ASC LIMIT 1

Identify the weakest attribute of the Black Panther .


Question: What are the store names of drama workshop groups?

SELECT Store_Name FROM Drama_Workshop_Groups

What are the store names of drama workshop groups ?

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


Question: Which cities' temperature in March is lower than that in July or higher than that in Oct?

SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct

Which cities ' temperature in March is lower than that in July or higher than that in Oct ?

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


Question: What are the different ids and names of the stations that have had more than 12 bikes available?

SELECT DISTINCT T1.id ,  T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  >  12

What are the different ids and names of the stations that have had more than 12 bikes available ?

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


Question: Find the number of drivers whose points are greater than 150 for each make.

SELECT make ,  count(*) FROM driver WHERE points  >  150 GROUP BY make

Find the number of drivers whose points are greater than 150 for each make .

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


Question: Please list the bad alias of all the residential areas with a median female age of over 32.

SELECT DISTINCT T2.bad_alias FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.female_median_age > 32

Please list the bad alias of all the residential areas with a median female age of over 32 .

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


Question: Provide the release date and language of the most popular movie.

SELECT T1.release_date, T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id ORDER BY T1.popularity DESC LIMIT 1

Provide the release date and language of the most popular movie .

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


Question: Which category does BABY HALL film belong to?

SELECT T3.`name` FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.title = 'BABY HALL'

Which category does BABY HALL film belong to ?

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


Question: Which city has the most customers living in?

SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1

Which city has the most customers living in ?


Question: Show the names of players and names of their coaches in descending order of the votes of players.

SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID ORDER BY T3.Votes DESC

Show the names of players and names of their coaches in descending order of the votes of players .

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


Question: What are the receipt numbers for a customer with the last name Logan who purchased a croissant?

SELECT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber  =  T2.receipt JOIN goods AS T3 ON T2.item  =  T3.id JOIN customers AS T4 ON T4.Id  =  T1.CustomerId WHERE T3.food  =  "Croissant" AND T4.LastName  =  'LOGAN'

What are the receipt numbers for a customer with the last name Logan who purchased a croissant ?

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


Question: Provide any five games and release year under the sports genre.

SELECT T3.game_name, T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Sports' LIMIT 5

Provide any five games and release year under the sports genre .

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


Question: How many distinct countries are the climbers from?

SELECT COUNT(DISTINCT Country) FROM climber

How many distinct countries are the climbers from ?


Question: For each end station id, what is its name, latitude, and minimum duration for trips ended there?

SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id

For each end station i d , what is its name , latitude , and minimum duration for trips ended there ?

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


Question: What are the first and last names of the employee with the earliest date of birth?

SELECT emp_fname ,  emp_lname FROM employee ORDER BY emp_dob LIMIT 1

What are the first and last names of the employee with the earliest date of birth ?


Question: Show all student IDs with more than total 10 hours per week on all sports played.

SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek)  >  10

Show all student IDs with more than total 10 hours per week on all sports played .

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


Question: What is the shop name corresponding to the shop that opened in the most recent year?

SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1

What is the shop name corresponding to the shop that opened in the most recent year ?

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


Question: Count the number of invoices.


Question: What are the statuses and average populations of each city?

SELECT Status ,  avg(Population) FROM city GROUP BY Status

What are the statuses and average populations of each city ?

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


Question: Is the Yelp business No. 14033 good for supper?

SELECT T1.attribute_value FROM Business_Attributes AS T1 INNER JOIN Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_name = 'good_for_dinner' AND T1.business_id = 14033

Is the Yelp business No . 14033 good for supper ?

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


Question: State the name of all territories in Northern region.

SELECT DISTINCT T1.TerritoryDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Northern'

State the name of all territories in Northern region .

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


Question: What are the product names with average product price smaller than 1000000?

SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000

What are the product names with average product price smaller than 1000000 ?

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


Question: Return the name of the marketing region the store Rob Dinning is located in.

SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  "Rob Dinning"

Return the name of the marketing region the store Rob Dinning is located in .

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


Question: What percentage of papers were preprinted after the year 2000?

SELECT CAST(SUM(CASE WHEN Year > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Id) FROM Paper

What percentage of papers were preprinted after the year 2000 ?

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


Question: Show the transmitters of radios and the station names of the channels they are associated with in descending order of the ERP of the radios.

SELECT T3.Transmitter ,  T2.Station_name FROM city_channel_radio AS T1 JOIN city_channel AS T2 ON T1.City_channel_ID  =  T2.ID JOIN radio AS T3 ON T1.Radio_ID  =  T3.Radio_ID ORDER BY T3.ERP_kW DESC

Show the transmitters of radios and the station names of the channels they are associated with in descending order of the ERP of the radios .

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


Question: How many members of the Student_Club have major in 'Physics Teaching'?

SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Physics Teaching'

How many members of the Student_Club have major in ' Physics Teaching ' ?

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


Question: Show publishers with a book published in 1989 and a book in 1990.

SELECT publisher FROM book_club WHERE YEAR  =  1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR  =  1990

Show publishers with a book published in 1989 and a book in 1990 .

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


Question: Mention the height of people who belong to region id 7.

SELECT T2.height FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T1.region_id = 7

Mention the height of people who belong to region i d 7 .

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


Question: Among the female users of the devices, how many of them are under 30?

SELECT COUNT(device_id) FROM gender_age WHERE age < 30 AND gender = 'F'

Among the female users of the devices , how many of them are under 30 ?

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


Question: Provide the date and tail number of flight with air carrier "Ross Aviation Inc.: GWE".

SELECT T1.FL_DATE, T1.TAIL_NUM FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T2.Description = 'Ross Aviation Inc.: GWE'

Provide the date and tail number of flight with air carrier " Ross Aviation Inc. : GWE " .

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


Question: Who is the youngest player and which city did he/she come from?

SELECT T3.City_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id INNER JOIN City AS T3 ON T2.Country_Id = T3.Country_Id ORDER BY T1.DOB LIMIT 1

Who is the youngest player and which city did he / she come from ?

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


Question: Which service id and type has the least number of participants?

SELECT T3.service_id ,  T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID   =  T3.Event_ID JOIN services AS T4 ON T3.service_id  =  T4.service_id GROUP BY T3.service_id ORDER BY count(*) ASC LIMIT 1

Which service i d and type has the least number of participants ?

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


Question: What are the different plane names, ordered alphabetically?

SELECT DISTINCT plane_name FROM pilotskills ORDER BY plane_name

What are the different plane names , ordered alphabetically ?


Question: List down the cities belongs to the country that has surface area greater than 7000000.

SELECT T2.Name, T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.SurfaceArea > 7000000

List down the cities belongs to the country that has surface area greater than 7000000 .

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


Question: what is the name and id of every sailor who has a rating greater than 2 and reserved a boat.

SELECT DISTINCT T1.name ,  T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid WHERE  T1.rating  >  2

what is the name and i d of every sailor who has a rating greater than 2 and reserved a boat .

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


Question: List the advisor IDs for students with eighth year of program and position status in faculty of those professors.

SELECT T1.p_id_dummy, T2.hasPosition FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_8'

List the advisor IDs for students with eighth year of program and position status in faculty of those professors .

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


Question: What is the id of the appointment that started most recently?

SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1

What is the i d of the appointment that started most recently ?


Question: In the film with an inventory ID between 20 to 60, how many of the films have a G rating?

SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.inventory_id BETWEEN 20 AND 60 AND T1.rating = 'G'

In the film with an inventory ID between 20 to 60 , how many of the films have a G rating ?

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


Question: Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages?

SELECT CAST(COUNT(CASE WHEN T3.BreweryName = 'AJ Stephans Beverages' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.BrandID) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T2.TransactionDate LIKE '2014%'

Among all the root beers sold in 2014 , what is the percentage of the root beers produced by the brewery AJ Stephans Beverages ?

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


Question: What percentage of clients who opened their accounts in the district with an average salary of over 10000 are women?

SELECT CAST(SUM(T2.gender = 'F') AS REAL) * 100 / COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.A11 > 10000

What percentage of clients who opened their accounts in the district with an average salary of over 10000 are women ?

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


Question: How much is the total urban population of middle income countries in 1960?

SELECT SUM(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup LIKE '%middle income' AND T2.Year = 1960 AND T2.IndicatorName = 'Urban population'

How much is the total urban population of middle income countries in 1960 ?

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


Question: How many orders have detail "Second time"?

SELECT count(*) FROM customer_orders WHERE order_details  =  "Second time"

How many orders have detail " Second time " ?

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


Question: What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005?

SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "Central Coast" AND T2.year  <  2005

What is the maximum price of wines from the appelation in the Central Coast area , which was produced before 2005 ?

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


Question: Return the name of the mountain with the greatest height.

SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1

Return the name of the mountain with the greatest height .

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


Question: What party does the area with the zip code 91701 belong to?

SELECT T1.party FROM congress AS T1 INNER JOIN state AS T2 ON T1.abbreviation = T2.abbreviation INNER JOIN zip_data AS T3 ON T2.abbreviation = T3.state WHERE T3.zip_code = 91701 GROUP BY T1.party

What party does the area with the zip code 91701 belong to ?

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


Question: In the Bay Area, what is the most common type of food served by restaurants?

SELECT T2.food_type FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'bay area' GROUP BY T2.food_type ORDER BY COUNT(T2.food_type) DESC LIMIT 1

In the Bay Area , what is the most common type of food served by restaurants ?

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


Question: What are the ids, names, and prices of all products that are ordered most frequently?

SELECT T1.product_id ,  T1.product_name ,  T1.product_price FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id GROUP BY T1.product_id ORDER BY count(*) DESC LIMIT 1

What are the ids , names , and prices of all products that are ordered most frequently ?

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


Question: What is the name of the person whose age is below 30?

SELECT name FROM Person WHERE age  <  30

What is the name of the person whose age is below 30 ?

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


Question: Write the object classes of image ID 22 alongside the object's width and height.

SELECT T1.W, T1.H, T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 22

Write the object classes of image ID 22 alongside the object 's width and height .

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


Question: How many kinds of different ratings are listed?

How many kinds of different ratings are listed ?


Question: Show ids for all documents in type CV without expense budgets.

SELECT document_id FROM Documents WHERE document_type_code  =  "CV" EXCEPT SELECT document_id FROM Documents_with_expenses

Show ids for all documents in type CV without expense budgets .

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


Question: What are client ids for clients with at least 2 invoices.

SELECT client_id FROM Invoices GROUP BY client_id HAVING count(*)  >=  2

What are client ids for clients with at least 2 invoices .

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


Question: What is the attacking work rate of the football playerr Franco Zennaro?

SELECT DISTINCT t2.attacking_work_rate FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Franco Zennaro'

What is the attacking work rate of the football playerr Franco Zennaro ?

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


Question: What are the three most costly procedures?

SELECT name FROM procedures ORDER BY cost LIMIT 3

What are the three most costly procedures ?


Question: Which district has the largest land area in Wisconsin? Write the full name of the congress representative and include the postal codes.

SELECT T2.zip_code, T1.first_name, T1.last_name FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.state = 'Wisconsin' ORDER BY T1.land_area DESC LIMIT 1

Which district has the largest land area in Wisconsin ? Write the full name of the congress representative and include the postal codes .

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


Question: List out the name and indicator code of high income: nonOECD countries

SELECT DISTINCT T1.CountryCode, T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'High income: nonOECD'

List out the name and indicator code of high income : nonOECD countries

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


Question: How many employees have salary between 100000 and 200000?

SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000

How many employees have salary between 100000 and 200000 ?

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


Question: Find the total amount of loans provided by bank branches in the state of New York.

SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.state  =  'New York'

Find the total amount of loans provided by bank branches in the state of New York .

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


Question: What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?

SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is

What is the shortest and most poorly rated song for each genre , ordered alphabetically by genre ?

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


Question: List the first names of the employees who take the orders that ship to the city of "Reims".

SELECT DISTINCT T1.FirstName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.ShipCity = 'Reims'

List the first names of the employees who take the orders that ship to the city of " Reims " .

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


Question: What is the percentage for the Yelp businesses in "Pets" category of all businesses?

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

What is the percentage for the Yelp businesses in " Pets " category of all businesses ?

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


Question: Describe the care plans received by the patient with secondary malignant neoplasm of the colon.

SELECT DISTINCT T1.DESCRIPTION FROM careplans AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Secondary malignant neoplasm of colon'

Describe the care plans received by the patient with secondary malignant neoplasm of the colon .

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


Question: Which is the origin country of the $44274.40748 car?

SELECT T3.country FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.price = 44274.40748

Which is the origin country of the $ 44274.40748 car ?

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


Question: What are the top 5 installed free apps?

SELECT App FROM playstore WHERE Price = 0 ORDER BY CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER) DESC LIMIT 5

What are the top 5 installed free apps ?


Question: Find the ids and names of members who are under age 30 or with black membership card.

SELECT name ,  member_id FROM member WHERE Membership_card  =  'Black' OR age  <  30

Find the ids and names of members who are under age 30 or with black membership card .

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


Question: How many adults who obtained the badge Supporter?

SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'Supporter' AND T1.Age BETWEEN 19 AND 65

How many adults who obtained the badge Supporter ?


Question: What are the ids, type codes, and names for all products?

SELECT product_id ,  product_type_code ,  product_name FROM Products

What are the ids , type codes , and names for all products ?

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


Question: List all the titles of the Spanish books published by Alfaguara.

SELECT T2.title FROM book_language AS T1 INNER JOIN book AS T2 ON T2.language_id = T1.language_id INNER JOIN publisher AS T3 ON T3.publisher_id = T2.publisher_id WHERE T1.language_name = 'Spanish' AND T3.publisher_name = 'Alfaguara' GROUP BY T2.title

List all the titles of the Spanish books published by Alfaguara .

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


Question: Show the average amount of transactions for different investors.

SELECT investor_id ,  avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id

Show the average amount of transactions for different investors .

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


Question: What is the average price range of hotels for each each star rating code?

SELECT star_rating_code ,  avg(price_range) FROM HOTELS GROUP BY star_rating_code

What is the average price range of hotels for each each star rating code ?

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


Question: Give the total number of all graduated students from a 2-year public schools in Alabama in 2011.

SELECT SUM(T2.grad_cohort) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T1.state = 'Alabama' AND T2.year = 2011 AND T1.level = '2-year' AND T1.control = 'Public' AND T2.race = 'X'

Give the total number of all graduated students from a 2 - year public schools in Alabama in 2011 .

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


Question: How many teenagers are working as Machine-op-inspct?

SELECT COUNT(ID) teenager_number FROM Customers WHERE OCCUPATION = 'Machine-op-inspct' AND age >= 13 AND age <= 19

How many teenagers are working as Machine - op - inspct ?

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


Question: What are the names of the conferences that have the top 2 most people attending?

SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2

What are the names of the conferences that have the top 2 most people attending ?

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


Question: Which county reported the most number of school closure in the 1980s with school wonership code belonging to Youth Authority Facilities (CEA)?

SELECT County FROM schools WHERE strftime('%Y', ClosedDate) BETWEEN '1980' AND '1989' AND StatusType = 'Closed' AND SOC = 11 GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1

Which county reported the most number of school closure in the 1980s with school wonership code belonging to Youth Authority Facilities ( CEA ) ?

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


Question: List the price for Zetacoin on 13/11/1 and the next 7 consecutive days. What is the average price for these 7 days?

SELECT T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Zetacoin' AND T2.date BETWEEN '2013-11-01' AND '2013-11-07' UNION ALL SELECT AVG(T2.PRICE) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Zetacoin' AND T2.date BETWEEN '2013-11-01' AND '2013-11-07'

List the price for Zetacoin on 13/11/1 and the next 7 consecutive days . What is the average price for these 7 days ?

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


Question: How much money on average does Lucas Wyldbore spend on book orders?

SELECT SUM(T1.price) / COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore'

How much money on average does Lucas Wyldbore spend on book orders ?

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


Question: What are the names of the top 5 recipes that are best for wound healing?

SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.vitamin_c DESC LIMIT 5

What are the names of the top 5 recipes that are best for wound healing ?


Question: In which ward of more than 55,000 inhabitants are there more crimes of intimidation with extortion?

SELECT T3.ward_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Ward AS T3 ON T3.ward_no = T2.ward_no WHERE T1.primary_description = 'INTIMIDATION' AND T1.secondary_description = 'EXTORTION' AND T3.Population > 55000 GROUP BY T3.ward_no ORDER BY COUNT(T3.ward_no) DESC LIMIT 1

In which ward of more than 55,000 inhabitants are there more crimes of intimidation with extortion ?

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


Question: What is the prevalence percentage of condition no. 64859006?

SELECT DISTINCT T1."PREVALENCE PERCENTAGE" FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) WHERE T2.code = '64859006'

What is the prevalence percentage of condition no . 64859006 ?

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


Question: Which county is El Cerrito from?

SELECT county FROM geographic WHERE city = 'el cerrito'


Question: What is the name of the school with the highest number of first-time, full-time, degree-seeking female students in the cohort being tracked, minus any exclusions who were seeking another type of degree or certificate at a 4-year institution?

SELECT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.gender = 'F' AND T2.cohort = '4y other' ORDER BY T2.grad_cohort DESC LIMIT 1

What is the name of the school with the highest number of first - time , full - time , degree - seeking female students in the cohort being tracked , minus any exclusions who were seeking another type of degree or certificate at a 4 - year institution ?

O O O B-COLUMN B-VALUE O O O O O 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 B-VALUE O O O O O O O O O O B-TABLE O


Question: How many matches in the 2008/2009 season were held in Belgium?

SELECT COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Belgium' AND t2.season = '2008/2009'

How many matches in the 2008/2009 season were held in Belgium ?

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


Question: How many pilots are older than the youngest pilot who has Piper Cub?

SELECT count(pilot_name) FROM pilotskills WHERE age  >  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'Piper Cub')

How many pilots are older than the youngest pilot who has Piper Cub ?

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


Question: Among the elite users of 10 consecutive year from 2005 to 2014, list down the user ID and their number of compliment on photos.

SELECT T2.user_id, T2.number_of_compliments FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id INNER JOIN Elite AS T3 ON T2.user_id = T3.user_id WHERE T3.year_id BETWEEN 2005 AND 2014 AND T1.compliment_type = 'photos'

Among the elite users of 10 consecutive year from 2005 to 2014 , list down the user ID and their number of compliment on photos .

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


Question: Count the total number of policies used by the customer named "Dayana Robel".

SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  "Dayana Robel"

Count the total number of policies used by the customer named " Dayana Robel " .

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


Question: Give the average sale price of books authored by George Orwell.

SELECT avg(saleprice) FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T3.name  =  "George Orwell"

Give the average sale price of books authored by George Orwell .

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


Question: For each policy type, return its type code and its count in the record.

SELECT policy_type_code ,  count(*) FROM policies GROUP BY policy_type_code

For each policy type , return its type code and its count in the record .

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


Question: Show the names of pilots and the number of records they have.

SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name

Show the names of pilots and the number of records they have .

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


Question: Find all the stage positions of the musicians with first name "Solveig"

SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  "Solveig"

Find all the stage positions of the musicians with first name " Solveig "

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


Question: How many majors are there in "College of Humanities and Social Sciences"?

SELECT COUNT(major_name) FROM major WHERE college = 'College of Humanities and Social Sciences'

How many majors are there in " College of Humanities and Social Sciences " ?

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


Question: What is the annual average number of sets that were released between 1/1/2012 to 12/31/2015? Indicate the common langugage of the card.

SELECT (CAST(SUM(T1.id) AS REAL) / COUNT(T1.id)) / 4, T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.id = T2.id WHERE T1.releaseDate BETWEEN '2012-01-01' AND '2015-12-31' GROUP BY T1.releaseDate ORDER BY COUNT(T2.language) DESC LIMIT 1

What is the annual average number of sets that were released between 1/1/2012 to 12/31/2015 ? Indicate the common langugage of the card .

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


Question: Find the names and number of works of the three artists who have produced the most songs.

SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3

Find the names and number of works of the three artists who have produced the most songs .

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


Question: Find the name of the customers who use the most frequently used payment method.

SELECT customer_name FROM customers WHERE payment_method  =  (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1)

Find the name of the customers who use the most frequently used payment method .

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


Question: What is the name of the client who received the heaviest package?

SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient  =  T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1

What is the name of the client who received the heaviest package ?

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


Question: What is the name of the department that has the largest number of students enrolled?

SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1

What is the name of the department that has the largest number of students enrolled ?

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


Question: What are the names of all the states with college students playing in the mid position but no goalies?

SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'

What are the names of all the states with college students playing in the mid position but no goalies ?

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


Question: What's Kevin A Wright's email address?

SELECT T2.EmailAddress FROM Person AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Kevin' AND T1.MiddleName = 'A' AND T1.LastName = 'Wright'

What 's Kevin A Wright 's email address ?

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


Question: List the publisher of the publication with the highest price.

SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1

List the publisher of the publication with the highest price .

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


Question: What are the flavors available for Cake but not for Tart?

SELECT DISTINCT flavor FROM goods WHERE food  =  "Cake" EXCEPT SELECT DISTINCT flavor FROM goods WHERE food  =  "Tart"

What are the flavors available for Cake but not for Tart ?

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


Question: List the official full names of all the legislators who have facebook, instagram, twitter and youtube accounts.

SELECT T1.official_full_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.facebook IS NOT NULL AND T2.instagram IS NOT NULL AND T2.twitter IS NOT NULL AND T2.youtube IS NOT NULL

List the official full names of all the legislators who have facebook , instagram , twitter and youtube accounts .

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


Question: List all name of collections that are related to collection named Best.

SELECT DISTINCT T4.Collection_Name FROM Collection_Subset_Members AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Related_Collection_ID = T2.Collection_ID JOIN Collections AS T3 ON T1.Collection_ID = T3.Collection_ID JOIN Collections AS T4 ON T2.Collection_ID = T4.Collection_ID WHERE T3.Collection_Name = "Best";

List all name of collections that are related to collection named Best .

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


Question: Find the names of states that have some college students playing in goalie and mid positions.

SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'

Find the names of states that have some college students playing in goalie and mid positions .

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


Question: What is the maximum and minimum height of all players?

SELECT max(weight) ,  min(weight) FROM Player

What is the maximum and minimum height of all players ?


Question:
Provide the github address with the summary of method "A test for Decompose
".

SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId INNER JOIN Method AS T3 ON T2.Id = T3.SolutionId WHERE T3.Summary = 'A test for Decompose'

Provide the github address with the summary of method " A test for Decompose " .

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


Question: How many students are age 18?

SELECT count(*) FROM Student WHERE age  =  18


Question: How many orders do we have for "Pride and Prejudice"?

SELECT count(*) FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn  =  T2.isbn WHERE T1.title  =  "Pride and Prejudice"

How many orders do we have for " Pride and Prejudice " ?

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


Question: Find the first names of professors who are teaching more than one class.

SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num GROUP BY T1.prof_num HAVING count(*)  >  1

Find the first names of professors who are teaching more than one class .


Question: Show different locations and the number of performances at each location.

SELECT LOCATION ,  COUNT(*) FROM performance GROUP BY LOCATION

Show different locations and the number of performances at each location .


Question: What are the maximum and minimum settlement amount on record?

SELECT max(settlement_amount) ,  min(settlement_amount) FROM settlements

What are the maximum and minimum settlement amount on record ?


Question: What are the different membership levels?

SELECT count(DISTINCT LEVEL) FROM member

What are the different membership levels ?


Question: How many orders in 2022 have Iran as their destinations?

SELECT COUNT(*) FROM country AS T1 INNER JOIN address AS T2 ON T1.country_id = T2.country_id INNER JOIN cust_order AS T3 ON T3.dest_address_id = T2.address_id WHERE T1.country_name = 'Iran' AND STRFTIME('%Y', T3.order_date) = '2022'

How many orders in 2022 have Iran as their destinations ?

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


Question: What is the oldest age of the users in 2014's survey?

SELECT T2.AnswerText FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T1.questiontext = 'What is your age?' AND T2.SurveyID = 2014 ORDER BY T2.AnswerText DESC LIMIT 1

What is the oldest age of the users in 2014 's survey ?

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


Question: Show the apartment numbers of apartments with bookings that have status code both "Provisional" and "Confirmed"

SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Provisional"

Show the apartment numbers of apartments with bookings that have status code both " Provisional " and " Confirmed "

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


Question: List all document ids and receipt dates of documents.

SELECT document_id ,  receipt_date FROM Documents;

List all document ids and receipt dates of documents .

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


Question: Show the details and star ratings of the 3 least expensive hotels.

SELECT other_hotel_details ,  star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3

Show the details and star ratings of the 3 least expensive hotels .

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


Question: For the business with great experience existed in Sun Lakes city, provide the user ID who gave review on it and user followers.

SELECT T3.user_id, T3.user_fans FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T1.city = 'Sun Lakes' AND T1.stars = 5

For the business with great experience existed in Sun Lakes city , provide the user ID who gave review on it and user followers .

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


Question: List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'

SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Lasta Massif'

List the brands of lenses that took both a picture of mountains with range ' Toubkal Atlas ' and a picture of mountains with range ' Lasta Massif '

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


Question: Among the employees working as Sales Representatives, how many of them are located in the UK?

SELECT COUNT(Country) FROM Employees WHERE Title = 'Sales Representative' AND Country = 'UK'

Among the employees working as Sales Representatives , how many of them are located in the UK ?

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


Question: What is the Italian flavor text of the card "Ancestor's Chosen"?

SELECT T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'Italian'

What is the Italian flavor text of the card " Ancestor 's Chosen " ?

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


Question: What is the text of the tweet that got the most `likes`?

SELECT text FROM twitter WHERE Likes = ( SELECT MAX( Likes) FROM twitter )

What is the text of the tweet that got the most ` likes ` ?

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


Question: Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.

SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2

Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top .

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


Question: Provide the authors and titles of the books which have more than 3000 pages.

SELECT T3.author_name, T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.num_pages > 3000

Provide the authors and titles of the books which have more than 3000 pages .

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


Question: How many countries are using the same type of currency? Please list the short names of any 3 countries.

SELECT ShortName FROM country WHERE currencyunit = 'U.S. dollar' LIMIT 3

How many countries are using the same type of currency ? Please list the short names of any 3 countries .

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


Question: How many assets does each maintenance contract contain? List the number and the contract id.

SELECT count(*) ,  T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id  =  T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id

How many assets does each maintenance contract contain ? List the number and the contract i d.

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


Question: Show the number of process status.


Question: How many courses do teachers teach at most? Also find the id of the teacher who teaches the most.

SELECT count(*) ,  teacher_id FROM Classes GROUP BY teacher_id ORDER BY count(*) DESC LIMIT 1

How many courses do teachers teach at most ? Also find the i d of the teacher who teaches the most .

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


Question: Indicates the name of all the languages into which the set whose number of cards is 309 is translated.

SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.baseSetSize = 309

Indicates the name of all the languages into which the set whose number of cards is 309 is translated .

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


Question: List the names of all players from Avangard Omsk who played in the 2000-2001 season of the International league that have no goals in draft year.

SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.LEAGUE = 'International' AND T1.TEAM = 'Czech Republic (all)' AND T1.G = 0

List the names of all players from Avangard Omsk who played in the 2000 - 2001 season of the International league that have no goals in draft year .

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


Question: What are the addresses of customers living in Germany who have had an invoice?

SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  "Germany"

What are the addresses of customers living in Germany who have had an invoice ?

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


Question: Which customer ordered 'Global High-Back Leather Tilter, Burgundy' on 10/13/2013 in the East region?

SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Global High-Back Leather Tilter, Burgundy' AND T1.`Order Date` = '2013-10-13' AND T1.Region = 'East'

Which customer ordered ' Global High - Back Leather Tilter , Burgundy ' on 10/13/2013 in the East region ?

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


Question: When did customer with first name as Carole and last name as Bernhard became a customer?

SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard";

When did customer with first name as Carole and last name as Bernhard became a customer ?

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


Question: What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.

SELECT T1.Allergy ,  T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T3.StuID  =  T2.StuID WHERE T3.Fname  =  "Lisa" ORDER BY T1.Allergy

What are the allergies and their types that the student with first name Lisa has ? And order the result by name of allergies .

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


Question: Which company placed the order with the id 10257?

SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10257

Which company placed the order with the i d 10257 ?

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


Question: What are the countries that have at least two perpetrators?

SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*)  >=  2

What are the countries that have at least two perpetrators ?


Question: Count the number of races.


Question: List the sales ID of the product with a quantity of 590 and named "External Lock Washer 7".

SELECT T1.SalesID FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'External Lock Washer 7' AND T1.Quantity = 590

List the sales ID of the product with a quantity of 590 and named " External Lock Washer 7 " .

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


Question: What is the amount of the funds that the Vice President received?

SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'

What is the amount of the funds that the Vice President received ?

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


Question: What is the contact name and phone number of the customer who has made the most total payment on the order to date?

SELECT T1.ContactName, T1.Phone FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID GROUP BY T2.OrderID, T1.ContactName, T1.Phone ORDER BY SUM(T3.UnitPrice * T3.Quantity * (1 - T3.Discount)) DESC LIMIT 1

What is the contact name and phone number of the customer who has made the most total payment on the order to date ?

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


Question: How many positions have a maximum salary of no more than US$1000,000?

SELECT COUNT(*) FROM position WHERE CAST(REPLACE(SUBSTR(maxsalary, 4), ',', '') AS REAL) < 100000

How many positions have a maximum salary of no more than US$ 1000,000 ?

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


Question: List down the menu page IDs for menu sponsored by Occidental & Oriental?

SELECT T2.id FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.sponsor = 'Occidental & Oriental'

List down the menu page IDs for menu sponsored by Occidental & Oriental ?

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


Question: How many transactions were made in Sac State Union using the American Express credit card in 2014?

SELECT COUNT(T1.TransactionID) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State Union' AND T1.CreditCardType = 'American Express' AND T1.TransactionDate BETWEEN '2014-01-01' AND '2014-12-31'

How many transactions were made in Sac State Union using the American Express credit card in 2014 ?

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


Question: Count the number of different comments for student answers.

SELECT count(DISTINCT Comments) FROM Student_Answers

Count the number of different comments for student answers .


Question: How many students have been absent less than 4 months?

SELECT COUNT(name) FROM longest_absense_from_school WHERE month < 4

How many students have been absent less than 4 months ?


Question: Point out the language of set id "174"?

SELECT language FROM set_translations WHERE id = 174

Point out the language of set i d " 174 " ?

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


Question: Show the name and phone of the customer without any mailshot.

SELECT customer_name ,  customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)

Show the name and phone of the customer without any mailshot .


Question: List the comments commented by the user with a username of Harvey Motulsky.

SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky'

List the comments commented by the user with a username of Harvey Motulsky .

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


Question: What are the different ranges of the 3 mountains with the highest prominence?

SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3

What are the different ranges of the 3 mountains with the highest prominence ?

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


Question: What are the names of the products that have a color description of 'red' and the 'fast' characteristic?

SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  "red" AND t3.characteristic_name  =  "fast"

What are the names of the products that have a color description of ' red ' and the ' fast ' characteristic ?

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


Question: Find the entry name of the catalog with the highest price (in USD).

SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1

Find the entry name of the catalog with the highest price ( in USD ) .

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


Question: Give the id and the number of citations of the most cited paper.

SELECT paper_id ,  count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1

Give the i d and the number of citations of the most cited paper .

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


Question: What is the number of players whose last name is Green that played in the league but not coached?

SELECT COUNT(playerID) FROM Master WHERE lastName = 'Green' AND coachID IS NULL

What is the number of players whose last name is Green that played in the league but not coached ?

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


Question: How many games were published by Activision?

SELECT COUNT(DISTINCT T3.id) 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 WHERE T2.publisher_name = 'Activision'

How many games were published by Activision ?


Question: What is the percentage of male athletes from Estonia?

SELECT CAST(COUNT(CASE WHEN T3.gender = 'M' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Estonia'

What is the percentage of male athletes from Estonia ?


Question: Provide the email, address, city, and country of the customer Lillie Kim.

SELECT T1.email, T2.address, T3.city, T4.country FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id INNER JOIN city AS T3 ON T2.city_id = T3.city_id INNER JOIN country AS T4 ON T3.country_id = T4.country_id WHERE T1.first_name = 'Lillie' AND T1.last_name = 'Kim'

Provide the email , address , city , and country of the customer Lillie Kim .

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


Question: List all distinct conference names.

SELECT DISTINCT conference_name FROM conference


Question: Find the names of nurses who are nursing an undergoing treatment.

SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse  =  T2.EmployeeID

Find the names of nurses who are nursing an undergoing treatment .

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


Question: Among the universities with a score in teaching of over 90 in 2011, how many of them are in the United States of America?

SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90

Among the universities with a score in teaching of over 90 in 2011 , how many of them are in the United States of America ?

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


Question: For each advisor, report the total number of students advised by him or her.

SELECT Advisor ,  count(*) FROM STUDENT GROUP BY Advisor

For each advisor , report the total number of students advised by him or her .

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


Question: Show all meeting outcomes and purposes.

SELECT meeting_outcome ,  purpose_of_meeting FROM meetings

Show all meeting outcomes and purposes .


Question: What are the details of the customers who have "Kutch" in part of their details?

SELECT customer_details FROM customers WHERE customer_details LIKE "%Kutch%"

What are the details of the customers who have " Kutch " in part of their details ?

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


Question: Which category is the most common?

SELECT T.name FROM ( SELECT T2.name, COUNT(T2.name) AS num FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T2.name ) AS T ORDER BY T.num DESC LIMIT 1


Question: Among the establishments that failed in the inspection, what is the percentage of establishments with the highest risk level?

SELECT CAST(COUNT(CASE WHEN T1.risk_level = 3 THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.risk_level) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.results = 'Fail'

Among the establishments that failed in the inspection , what is the percentage of establishments with the highest risk level ?

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


Question: How many authors finished the paper "An Improved Active Suspension Model for Attitude Control of Electric Vehicles" together?

SELECT COUNT(T2.AuthorId) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles'

How many authors finished the paper " An Improved Active Suspension Model for Attitude Control of Electric Vehicles " together ?

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


Question: Show first name for all students with major 600.

SELECT Fname FROM Student WHERE Major  =  600

Show first name for all students with major 600 .

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


Question: Had Bitcoin's price increased or decreased on 2013/5/5 compared with the price 7 days before?

SELECT (CASE WHEN T2.percent_change_7d > 0 THEN 'INCREASED' ELSE 'DECREASED' END) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-05-05' AND T1.name = 'Bitcoin'

Had Bitcoin 's price increased or decreased on 2013/5/5 compared with the price 7 days before ?

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


Question: In 2014, what is the percentage of complaints from consumers in Houston that the delay was over 5 days?

SELECT CAST((SUM(CASE WHEN strftime('%J', T2.`Date sent to company`) - strftime('%J', T2.`Date received`) > 5 THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Houston' AND strftime('%Y', T2.`Date received`) = '2014'

In 2014 , what is the percentage of complaints from consumers in Houston that the delay was over 5 days ?

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


Question: How many donors from New Jersey have made a donation for an honoree?

SELECT COUNT(donationid) FROM donations WHERE for_honoree = 't' AND donor_state = 'NJ'

How many donors from New Jersey have made a donation for an honoree ?

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


Question: What is the name of the most followed list?

SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1

What is the name of the most followed list ?


Question: What is the total value of boxes located in Chicago or New York?

SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location  =  'Chicago' OR T2.location  =  'New York'

What is the total value of boxes located in Chicago or New York ?

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


Question: Show different nationalities along with the number of members of each nationality.

SELECT Nationality ,  COUNT(*) FROM member GROUP BY Nationality

Show different nationalities along with the number of members of each nationality .


Question: What is the company's profit on the product that was rated second-highest by David?

SELECT T2.ListPrice - T2.StandardCost FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ReviewerName = 'David' ORDER BY T1.Rating DESC LIMIT 1

What is the company 's profit on the product that was rated second - highest by David ?

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


Question:
Among the solutions that contain files within the repository followed by over 1000 people, how many of them can be
implemented without needs of compilation?

SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > 1000 AND T2.WasCompiled = 1

Among the solutions that contain files within the repository followed by over 1000 people , how many of them can be implemented without needs of compilation ?

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


Question: Name the first movie released by Disney.

SELECT movie_title FROM characters ORDER BY SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) ASC LIMIT 1

Name the first movie released by Disney .


Question: Among the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled?

SELECT SUM(CASE WHEN T2.ARR_DELAY < 0 THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'New York, NY: John F. Kennedy International'

Among the flights departing from John F. Kennedy International , how many of them arrived earlier than scheduled ?

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


Question: How many events of the Student_Club did Sacha Harrison attend in 2019?

SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Sacha' AND T3.last_name = 'Harrison' AND SUBSTR(T1.event_date, 1, 4) = '2019'

How many events of the Student_Club did Sacha Harrison attend in 2019 ?

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


Question: When was the last serving date of Matt Salmon?

SELECT T1.END FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.official_full_name = 'Matt Salmon'

When was the last serving date of Matt Salmon ?


Question: When is the laboratory examination of patient '48473' where his/her AST glutamic oxaloacetic transaminase (GOT) index is above the normal range.

SELECT Date FROM Laboratory WHERE ID = 48473 AND GOT >= 60

When is the laboratory examination of patient ' 48473 ' where his / her AST glutamic oxaloacetic transaminase ( GOT ) index is above the normal range .

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


Question: How old was Jr. F. James Sensenbrenner when he first started as a legislator?

SELECT CAST(MIN(T2.start) - T1.birthday_bio AS DATE) AS AGE FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'F. James Sensenbrenner, Jr.'

How old was Jr. F. James Sensenbrenner when he first started as a legislator ?

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


Question: Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks".

SELECT Nominee FROM musical WHERE Award  =  "Tony Award" OR Award  =  "Cleavant Derricks"

Show the musical nominee with award " Bob Fosse " or " Cleavant Derricks " .

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


Question: How many percent of domestic violence cases were arrested in West Pullman?

SELECT CAST(COUNT(CASE WHEN T2.arrest = 'TRUE' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'West Pullman' AND T2.domestic = 'TRUE'

How many percent of domestic violence cases were arrested in West Pullman ?

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


Question: What is the average number of number of movies added to the lists of user 8516503? Indicate how many movies did he/she give a rating score of 5.

SELECT AVG(T3.list_movie_number) , SUM(CASE WHEN T1.rating_score = 5 THEN 1 ELSE 0 END) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN lists AS T3 ON T2.user_id = T3.user_id WHERE T1.user_id = 8516503

What is the average number of number of movies added to the lists of user 8516503 ? Indicate how many movies did he / she give a rating score of 5 .

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


Question: Please state the API calls for method number 10 and its intended course of action.

SELECT T2.ApiCalls, T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 10

Please state the API calls for method number 10 and its intended course of action .

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


Question: What are the different years for all competitions that are not of type equal to tournament?

SELECT DISTINCT YEAR FROM competition WHERE Competition_type != "Tournament"

What are the different years for all competitions that are not of type equal to tournament ?

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


Question: Count the number of players that have a rank of year of at most 3.

SELECT count(*) FROM player WHERE Rank_of_the_year  <=  3

Count the number of players that have a rank of year of at most 3 .

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


Question: How many bookings do we have?


Question: Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.

SELECT T1.claim_id ,  T1.date_claim_made ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1

Which claim incurred the most number of settlements ? List the claim i d , the date the claim was made , and the number .

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


Question: Give the name of the country that has the most universities.

SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id GROUP BY T2.country_name ORDER BY COUNT(T1.university_name) DESC LIMIT 1

Give the name of the country that has the most universities .


Question: In 2012, who had the least consumption in LAM?

SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM' AND SUBSTR(T2.Date, 1, 4) = '2012' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1

In 2012 , who had the least consumption in LAM ?

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


Question: What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917?

SELECT T2.name FROM TeamsSC AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = '1917' AND T1.W > T1.L

What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917 ?

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


Question: What is the party of the legislator named Susan M. Collins?

SELECT T2.party FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Susan M. Collins' GROUP BY T2.party

What is the party of the legislator named Susan M. Collins ?

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


Question: List the territory IDs, description and region description under the in-charge of Mrs. Margaret Peacock.

SELECT T3.TerritoryID, T3.TerritoryDescription, T4.RegionDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T1.TitleOfCourtesy = 'Mrs.' AND T1.LastName = 'Peacock' AND T1.FirstName = 'Margaret'

List the territory IDs , description and region description under the in - charge of Mrs. Margaret Peacock .

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


Question: Calculate the percentage of students who have never been absent.

SELECT CAST(SUM(IIF(month = 0, 1, 0)) AS REAL) * 100 / COUNT(name) FROM longest_absense_from_school

Calculate the percentage of students who have never been absent .


Question: How many 2-year public schools are there in "California"?

SELECT COUNT(stateid) FROM state_sector_details WHERE state = 'California' AND level = '2-year' AND control = 'Public'

How many 2 - year public schools are there in " California " ?

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


Question: Mention the total expense used on 8/20/2019.

SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'

Mention the total expense used on 8/20/2019 .


Question: What is the assumed name of the business located at 2903 W Irving Park Rd?

SELECT DISTINCT dba_name FROM establishment WHERE address = '2903 W IRVING PARK RD '

What is the assumed name of the business located at 2903 W Irving Park Rd ?

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


Question: List the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal.

SELECT DISTINCT T2.name , CASE WHEN T1.status = 'Legal' THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN ( SELECT code FROM sets WHERE name = 'Hour of Devastation' )

List the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal .

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


Question: Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.

SELECT T1.employeeNumber FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T1.reportsTo = 1143 AND T2.city = 'NYC'

Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143 ? Indicate their employee numbers .

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


Question: Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.

SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1

Among all the claims , what is the settlement amount of the claim with the largest claim amount ? List both the settlement amount and claim amount .

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


Question: Count the male actors born in USA that starred in Ghost.

SELECT COUNT(*) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Ghost' AND T3.Gender = 'Male' AND T3.`Birth Country` = 'USA'

Count the male actors born in USA that starred in Ghost .

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


Question: Show all the title of pages and number of occurences for each page where the word 'quipu' appears.

SELECT T1.title, T2.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN words AS T3 ON T2.wid = T3.wid WHERE T3.word = 'quipu'

Show all the title of pages and number of occurences for each page where the word ' quipu ' appears .

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


Question: List down two molecule id of triple bond non carcinogenic molecules with element carbon.

SELECT DISTINCT T2.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_type = '#' AND T1.element = 'c' AND T2.label = '-'

List down two molecule i d of triple bond non carcinogenic molecules with element carbon .

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


Question: List all client ids and client details.

SELECT client_id ,  client_details FROM Clients

List all client ids and client details .

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


Question: How many instructors are in the department with the highest budget, and what is their average salary?

SELECT avg(T1.salary) ,  count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1

How many instructors are in the department with the highest budget , and what is their average salary ?

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


Question: What are the first and last names of artists who have painted using both oil and lithographic mediums?

SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" INTERSECT SELECT T3.lname ,  T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID  =  T4.painterID WHERE T4.medium  =  "lithograph"

What are the first and last names of artists who have painted using both oil and lithographic mediums ?

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


Question: Show the transmitters of the radios and the number of city channels they are associated with.

SELECT T2.Transmitter ,  COUNT(*) FROM city_channel_radio AS T1 JOIN radio AS T2 ON T1.Radio_ID  =  T2.Radio_ID GROUP BY T2.Transmitter

Show the transmitters of the radios and the number of city channels they are associated with .

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


Question: What is the average amount of resources from projects that have received donations per honoree?

SELECT AVG(T1.item_quantity) FROM resources AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.for_honoree = 't'

What is the average amount of resources from projects that have received donations per honoree ?

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


Question: Which year experienced the most rain?

SELECT SUBSTR(CAST(date AS TEXT), -4) FROM weather GROUP BY SUBSTR(CAST(date AS TEXT), -4) ORDER BY SUM(CASE WHEN events LIKE '%Rain%' OR events LIKE '%rain%' THEN 1 ELSE 0 END) DESC LIMIT 1


Question: Among the patients who were immunized with meningococcal MCV4P, how many have viral sinusitis disorder after getting the immunization?

SELECT COUNT(DISTINCT T1.patient) FROM immunizations AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.DESCRIPTION = 'meningococcal MCV4P' AND T2.DESCRIPTION = 'Viral sinusitis (disorder)'

Among the patients who were immunized with meningococcal MCV4P , how many have viral sinusitis disorder after getting the immunization ?

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


Question: Describe the encounter of Mr. Hubert Baumbach on 2008/10/25.

SELECT T2.description FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mr.' AND T1.first = 'Hubert' AND T1.last = 'Baumbach' AND T2.date = '2008-10-25'

Describe the encounter of Mr. Hubert Baumbach on 2008/10/25 .

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


Question: What's the reference name of Marina Bay Street Circuit?

SELECT circuitRef FROM circuits WHERE name = 'Marina Bay Street Circuit'

What 's the reference name of Marina Bay Street Circuit ?

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