Question: How many patients with shellfish allergies died when they were under 12 years old? Please give their full names.

SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Shellfish allergy' AND CAST((strftime('%J', T1.deathdate) - strftime('%J', T1.birthdate)) AS REAL) / 365 < 12

How many patients with shellfish allergies died when they were under 12 years old ? Please give their full names .

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


Question: How many conferences are there?


Question: List the ISBN of the books that cost 7.5 dollars.

SELECT T1.isbn13 FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.price = 7.5

List the ISBN of the books that cost 7.5 dollars .

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


Question: Among the customers from Brazil, how many customers are in automobile market segment?

SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_mktsegment = 'AUTOMOBILE' AND T2.n_name = 'BRAZIL'

Among the customers from Brazil , how many customers are in automobile market segment ?

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


Question: Take the average of the school enrollment.

Take the average of the school enrollment .


Question: What is the number of employees that do not have clearance on Mars ?

select count(*) from employee where employeeid not in ( select t2.employeeid from has_clearance as t1 join employee as t2 on t1.employee = t2.employeeid join planet as t3 on t1.planet = t3.planetid where t3.name = "mars" );

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


Question: Show all cities and corresponding number of students.

SELECT city_code ,  count(*) FROM Student GROUP BY city_code

Show all cities and corresponding number of students .


Question: Show the minister who took office after 1961 or before 1959.

SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959

Show the minister who took office after 1961 or before 1959 .

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


Question: How many bicycle trip were made within San Jose city during August 2013?

SELECT COUNT(T2.id) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T1.city = 'San Jose' AND T2.start_date LIKE '8/%/2013%' AND T2.start_station_name LIKE 'San Jose%' AND T2.end_station_name LIKE 'San Jose%'

How many bicycle trip were made within San Jose city during August 2013 ?

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


Question: Find the code of the document type "Paper".

SELECT document_type_code FROM Ref_document_types WHERE document_type_name  =  "Paper"

Find the code of the document type " Paper " .

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


Question: Who among the actors starred in a NC-17 rated film? Provide only the last name of the actors.

SELECT T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.rating = 'NC-17'

Who among the actors starred in a NC-17 rated film ? Provide only the last name of the actors .

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


Question: Which course authors teach two or more courses? Give me their addresses and author IDs.

SELECT T1.address_line_1 ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id HAVING Count(*)  >=  2

Which course authors teach two or more courses ? Give me their addresses and author IDs .

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


Question: What is the average revenue of the movie in which Dariusz Wolski works as the director of photography?

SELECT CAST(SUM(T1.revenue) AS REAL) / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography'

What is the average revenue of the movie in which Dariusz Wolski works as the director of photography ?

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


Question: Among the users who have more than 100 upvotes, how many of them have more then 1 downvotes?

SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1

Among the users who have more than 100 upvotes , how many of them have more then 1 downvotes ?

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


Question: When was the set of cards with "Ancestor's Chosen" released?

SELECT DISTINCT T2.releaseDate FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'

When was the set of cards with " Ancestor 's Chosen " released ?

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


Question: What is the category of film titled "BLADE POLISH"?

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

What is the category of film titled " BLADE POLISH " ?

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


Question: Which actor has acted in at least 2 French films? Please list their IDs.

SELECT T2.actorid FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'France' GROUP BY T2.actorid HAVING COUNT(T1.movieid) > 2

Which actor has acted in at least 2 French films ? Please list their IDs .

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


Question: List all the organisations that where its name contains 'United Nation'. State its full name and its headquarter city.

SELECT Name, City FROM organization WHERE Name LIKE '%United Nation%'

List all the organisations that where its name contains ' United Nation ' . State its full name and its headquarter city .

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


Question: State the title and royalty percentage for title ID BU2075 between 10000 to 50000 range.

SELECT T1.title, T2.royalty FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange > 10000 AND T2.hirange < 50000 AND T1.title_ID = 'BU2075'

State the title and royalty percentage for title ID BU2075 between 10000 to 50000 range .

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


Question: Which actively running Yelp business in "Gilbert" has got the most reviews? Give the business id.

SELECT DISTINCT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.active = 'true' AND T1.city = 'Gilbert' AND T1.review_count = 'Uber'

Which actively running Yelp business in " Gilbert " has got the most reviews ? Give the business i d.

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


Question: How many pounds did Sue Newell transport during her first shipment?

SELECT T1.weight FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Sue' AND T2.last_name = 'Newell' ORDER BY T1.ship_date ASC LIMIT 1

How many pounds did Sue Newell transport during her first shipment ?

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


Question: Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language.

SELECT title FROM pages WHERE lid = 1 ORDER BY words DESC LIMIT 3

Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language .

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


Question: Show names of players from the club with manager "Sam Allardyce".

SELECT T2.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.Manager  =  "Sam Allardyce"

Show names of players from the club with manager " Sam Allardyce " .

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


Question: Provide a list of all organisations with headquarters in London?

SELECT Name FROM organization WHERE City = 'London'

Provide a list of all organisations with headquarters in London ?


Question: What are the names for all aircrafts with at least 2 flights?

SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid HAVING count(*)  >= 2

What are the names for all aircrafts with at least 2 flights ?

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


Question: What is the office phone number of the location at which Sandy Adams works?

SELECT T2.officephone FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T1.lastname = 'Adams' AND T1.firstname = 'Sandy'

What is the office phone number of the location at which Sandy Adams works ?

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


Question: How many devices belong to model "A51"?

SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE device_model = 'A51'

How many devices belong to model " A51 " ?


Question: List all the elements with double bond, consisted in molecule TR024.

SELECT T1.element FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id = 'TR024' AND T2.bond_type = '='

List all the elements with double bond , consisted in molecule TR024 .

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


Question: Please list the display names of all the users who owns a post that is well-finished.

SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.ClosedDate IS NOT NULL

Please list the display names of all the users who owns a post that is well - finished .

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


Question: Find the longest ride on foggy day. What were the mean visibility, mean wind speed, and weather event during that ride? Also, list the coordinates and names of the start and end stations.

SELECT T3.mean_visibility_miles, T3.mean_wind_speed_mph, T3.events, T1.lat, T1.long , T2.start_station_name, T2.end_station_name FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.events = 'Fog' ORDER BY T2.duration DESC LIMIT 1

Find the longest ride on foggy day . What were the mean visibility , mean wind speed , and weather event during that ride ? Also , list the coordinates and names of the start and end stations .

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


Question: What are the distinct ids and prices for goods that cost less than the average good?

SELECT DISTINCT id ,  price FROM goods WHERE price  <  (SELECT avg(price) FROM goods)

What are the distinct ids and prices for goods that cost less than the average good ?

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


Question: Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.

SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  3 AND T2.firstname != "COVIN" AND T2.lastname != "JEROME"

Which students in third grade are not taught by teacher COVIN JEROME ? Give me the last names of the students .

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


Question: How many students, who have a GPA between 3 to 4, failed a course?

SELECT COUNT(T2.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T2.grade IS NULL AND T1.gpa BETWEEN 3 AND 4

How many students , who have a GPA between 3 to 4 , failed a course ?

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


Question: List the game IDs of the games produced by Abylight.

SELECT T1.game_id FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Abylight'

List the game IDs of the games produced by Abylight .

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


Question: For all cities where Seine is located at, which city has the greatest population? Calculate the difference from the city with least population.

SELECT MAX(T1.Population) - MIN(T1.population) FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Seine'

For all cities where Seine is located at , which city has the greatest population ? Calculate the difference from the city with least population .

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


Question: Give me all the phone numbers and email addresses of the workshop groups where services are performed.

SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID

Give me all the phone numbers and email addresses of the workshop groups where services are performed .

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


Question: How many molecules without sulphur element is not having double bond?

SELECT COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element <> 's' AND T2.bond_type <> '='

How many molecules without sulphur element is not having double bond ?

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


Question: What is the average profit of all the low class universal road frames? Indicate how many variety of sizes are there and the available colors.

SELECT AVG(T1.ListPrice - T1.StandardCost), COUNT(DISTINCT T1.Size) , COUNT(DISTINCT T1.Style) FROM Product AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID WHERE T1.Class = 'L' AND T2.Name = 'Road Frames' GROUP BY T1.Class, T1.Color

What is the average profit of all the low class universal road frames ? Indicate how many variety of sizes are there and the available colors .

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


Question: List the title of books published by AK Press.

SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'AK Press'

List the title of books published by AK Press .

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


Question: How many singles were released between 1979 and 1981 labeled as "soul"?

SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'soul' AND T1.groupYear BETWEEN 1979 AND 1981 AND T1.releaseType LIKE 'single'

How many singles were released between 1979 and 1981 labeled as " soul " ?

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


Question: State the podcast title, content review and rating for all reviews with titled 'Love it!'

SELECT DISTINCT T1.title, T2.content, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'Love it!'

State the podcast title , content review and rating for all reviews with titled ' Love it ! '

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


Question: Which papers did the author "Olin Shivers" write? Give me the paper titles.

SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  "Olin" AND t1.lname  =  "Shivers"

Which papers did the author " Olin Shivers " write ? Give me the paper titles .

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


Question: Return the names and citizenships of drivers who have driven the vehicle with the model 'DJ1'.

SELECT T1.name ,  T1.citizenship FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id  =  T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id  =  T3.vehicle_id WHERE T3.model  =  'DJ1'

Return the names and citizenships of drivers who have driven the vehicle with the model ' DJ1 ' .

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


Question: List all reviews created in May 2019. State the title of podcast and review rating.

SELECT DISTINCT T1.title, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at LIKE '2019-05-%'

List all reviews created in May 2019 . State the title of podcast and review rating .

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


Question: How many musicians play in the song "Flash"?

SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id JOIN songs AS T3 ON T3.songid  =  T1.songid WHERE T3.Title  =  "Flash"

How many musicians play in the song " Flash " ?


Question: Which apartments have type code "Flat"? Give me their apartment numbers.

SELECT apt_number FROM Apartments WHERE apt_type_code  =  "Flat"

Which apartments have type code " Flat " ? Give me their apartment numbers .

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


Question: Which country does Sasebo belong to?

SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Sasebo'


Question: How many products have prices of at least 180?

SELECT count(*) FROM products WHERE price >= 180

How many products have prices of at least 180 ?


Question: State the name of all city in Maricopa County along with its latitude and longitude.

SELECT DISTINCT `City Name`, Latitude, Longitude FROM `Store Locations` WHERE County = 'Maricopa County'

State the name of all city in Maricopa County along with its latitude and longitude .

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


Question: Show the school name and driver name for all school buses.

SELECT T2.school ,  T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN driver AS T3 ON T1.driver_id  =  T3.driver_id

Show the school name and driver name for all school buses .

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


Question: How many translations of the name of the set "Tenth Edition"?

SELECT COUNT(DISTINCT T2.translation) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Tenth Edition' AND T2.translation IS NOT NULL

How many translations of the name of the set " Tenth Edition " ?

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


Question: How many products with the id "989" were sold in August 2013?

SELECT SUM(Quantity) FROM TransactionHistory WHERE TransactionDate LIKE '2013-08%' AND TransactionType = 'S' AND ProductID = 989

How many products with the i d " 989 " were sold in August 2013 ?

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


Question: Which of the movies directed by Ron Clements has the highest total gross?

SELECT T2.movie_title FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Ron Clements' ORDER BY CAST(REPLACE(trim(T2.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1

Which of the movies directed by Ron Clements has the highest total gross ?

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


Question: How many orders were shipped to Venezuela in 1996?

SELECT COUNT(OrderID) FROM Orders WHERE ShipCountry = 'Venezuela' AND STRFTIME('%Y', ShippedDate) = '1996'

How many orders were shipped to Venezuela in 1996 ?

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


Question: Find the names of the chip models that are not used by any phone with full accreditation type.

SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type  =  'Full'

Find the names of the chip models that are not used by any phone with full accreditation type .

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


Question: List down the names of the cities belonging to Noble, Oklahoma.

SELECT T3.city FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T1.name = 'Oklahoma' AND T2.county = 'NOBLE'

List down the names of the cities belonging to Noble , Oklahoma .

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


Question: Which order have the highest unit cost?

SELECT OrderNumber FROM `Sales Orders` WHERE REPLACE(`Unit Cost`, ',', '') = ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Cost`, ',', '') DESC LIMIT 1 )

Which order have the highest unit cost ?


Question: How many negative comments were given by user ID 13?

SELECT COUNT(Id) FROM comments WHERE UserId = 13 AND Score < 60

How many negative comments were given by user ID 13 ?

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


Question: How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?

SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed";

How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed ?

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


Question: What sex is the patient who in a medical examination was diagnosed with PSS and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?

SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'PSS' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123

What sex is the patient who in a medical examination was diagnosed with PSS and in a laboratory examination had a blood level of C - reactive protein de 2 + , createnine 1 and LDH 123 ?

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


Question: Find the city that hosted the most events.

SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1

Find the city that hosted the most events .


Question: List the names of all the distinct product names in alphabetical order?

SELECT DISTINCT product_name FROM product ORDER BY product_name

List the names of all the distinct product names in alphabetical order ?


Question: List out 5 most common conditions for underweight patient.

SELECT DISTINCT T2.DESCRIPTION, T2.VALUE, T2.UNITS FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Body Mass Index' GROUP BY T2.VALUE ORDER BY COUNT(T2.VALUE) LIMIT 5

List out 5 most common conditions for underweight patient .


Question: Count the number of financial transactions that correspond to each account id.

SELECT count(*) ,  account_id FROM Financial_transactions

Count the number of financial transactions that correspond to each account i d.

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


Question: What is the shape of the tail car on train no.1?

SELECT shape FROM cars WHERE train_id = 1 AND position = 4

What is the shape of the tail car on train no.1 ?

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


Question: What is the description of the type of the company who concluded its contracts most recently?

SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id  =  T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code  =  T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1

What is the description of the type of the company who concluded its contracts most recently ?

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


Question: How many products were supplied by Pavlova, Ltd.?

SELECT COUNT(T1.ProductName) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Pavlova, Ltd.'

How many products were supplied by Pavlova , Ltd. ?

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


Question: Give me the number of faculty members who participate in an activity

SELECT count(DISTINCT FacID) FROM Faculty_participates_in

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


Question: Mention the series code of countries using Australian dollar as their currency unit. Which country belongs to middle income group among them.

SELECT T1.CountryCode, T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Australian dollar' AND T1.IncomeGroup = 'Lower middle income'

Mention the series code of countries using Australian dollar as their currency unit . Which country belongs to middle income group among them .

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


Question: What are the names of ships that have more than one captain?

SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id GROUP BY t2.ship_id HAVING count(*)  >  1

What are the names of ships that have more than one captain ?

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


Question: How many Vista cards expired before the year 2007?

SELECT COUNT(CreditCardID) FROM CreditCard WHERE CardType = 'Vista' AND ExpYear < 2007

How many Vista cards expired before the year 2007 ?

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


Question: What is the full place of birth of Rene Chenevert Balcer?

SELECT birth_place, birth_region FROM Person WHERE birth_name = 'Rene Chenevert Balcer'

What is the full place of birth of Rene Chenevert Balcer ?

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


Question: List the district name of the city with the smallest population.

SELECT District FROM City ORDER BY Population LIMIT 1

List the district name of the city with the smallest population .

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


Question: Tell the abbreviation for "Delaware" state.

SELECT T FROM ( SELECT DISTINCT CASE WHEN state = 'Delaware' THEN state_abbr ELSE NULL END AS T FROM state_sector_grads ) WHERE T IS NOT NULL

Tell the abbreviation for " Delaware " state .


Question: Provide the criteria name of the ranking criteria ID 13.

SELECT criteria_name FROM ranking_criteria WHERE id = 13

Provide the criteria name of the ranking criteria ID 13 .

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


Question: What are the names of every movie that is not playing at the Odeon theater?

SELECT title FROM movies EXCEPT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T2.name  =  'Odeon'

What are the names of every movie that is not playing at the Odeon theater ?

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


Question: State the name of the city that held game id 3.

SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T1.games_id = 3

State the name of the city that held game i d 3 .

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


Question: How many students from SMC are unemployed?

SELECT T2.name FROM enrolled AS T1 INNER JOIN unemployed AS T2 ON T1.`name` = T2.`name` WHERE T1.school = 'smc'

How many students from SMC are unemployed ?


Question: What is the short name for "Software - Concepts and Tools / Structured Programming"?

SELECT ShortName FROM Journal WHERE FullName = 'Software - Concepts and Tools / Structured Programming'

What is the short name for " Software - Concepts and Tools / Structured Programming " ?

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


Question: What are the last names of the author of the paper titled "Binders Unbound"?

SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  "Binders Unbound"

What are the last names of the author of the paper titled " Binders Unbound " ?

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


Question: What is the percentage difference between the attendence of disabled and non-disable students? Do the disable students show better attendance than non-disable students?

SELECT CAST((SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0))) AS REAL) * 100 / COUNT(T1.name), IIF(SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0)) > 0, 'YES', 'NO') AS isHigh FROM longest_absense_from_school AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name

What is the percentage difference between the attendence of disabled and non - disable students ? Do the disable students show better attendance than non - disable students ?

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


Question: What are first and last names of players participating in all star game in 1998?

SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998

What are first and last names of players participating in all star game in 1998 ?

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


Question: Which catalog contents have length below 3 or above 5? Find the catalog entry names.

SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5

Which catalog contents have length below 3 or above 5 ? Find the catalog entry names .

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


Question: What bike subcategories are there?

SELECT T1.Name FROM ProductSubcategory AS T1 INNER JOIN ProductCategory AS T2 ON T1.ProductCategoryID = T2.ProductCategoryID WHERE T2.name = 'Bikes'


Question: What is the neighborhood name in the community area of Lake View?

SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'Lake View'

What is the neighborhood name in the community area of Lake View ?

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


Question: What are the send dates for all documents that have a grant amount of more than 5000 and are involved in research?

SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id  =  T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id  =  T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type  =  T4.organisation_type WHERE T2.grant_amount  >  5000 AND T4.organisation_type_description  =  'Research'

What are the send dates for all documents that have a grant amount of more than 5000 and are involved in research ?

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


Question: Calculate the total average cost that Elijah Allen spent in the events on September and October.

SELECT AVG(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.last_name = 'Allen' AND T1.first_name = 'Elijah' AND (SUBSTR(T2.expense_date, 6, 2) = '09' OR SUBSTR(T2.expense_date, 6, 2) = '10')

Calculate the total average cost that Elijah Allen spent in the events on September and October .

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


Question: List down the address of patients who have billable period in 2010.

SELECT DISTINCT T1.address FROM patients AS T1 INNER JOIN claims AS T2 ON T1.patient = T2.PATIENT WHERE T2.BILLABLEPERIOD LIKE '2010%'

List down the address of patients who have billable period in 2010 .

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


Question: Write down the release date of the movies produced by Twentieth Century Fox Film Corporation.

SELECT T3.release_date FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Twentieth Century Fox Film Corporation'

Write down the release date of the movies produced by Twentieth Century Fox Film Corporation .

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


Question: What are the full names of the customer who gave River City a 5-star?

SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T3.BrandName = 'River City' AND T2.StarRating = 5

What are the full names of the customer who gave River City a 5 - star ?

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


Question: Find the titles of items that received both a rating higher than 8 and a rating below 5.

SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5

Find the titles of items that received both a rating higher than 8 and a rating below 5 .

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


Question: Which post by slashnick has the most answers count? State the post ID.

SELECT T2.PostId FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T1.DisplayName = 'slashnick' ORDER BY T3.AnswerCount DESC LIMIT 1

Which post by slashnick has the most answers count ? State the post ID .

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


Question: How many shipments were shipped by the driver named Zachary Hicks?

SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.driver_id = 23

How many shipments were shipped by the driver named Zachary Hicks ?


Question: Name the sales person who helped Elizabeth A. White to purchase Road-250 Black, 48.

SELECT DISTINCT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID INNER JOIN Customers AS T4 ON T2.CustomerID = T4.CustomerID WHERE T4.MiddleInitial = 'A' AND T4.LastName = 'White' AND T1.Name = 'Road-250 Black, 48' AND T4.FirstName = 'Elizabeth'

Name the sales person who helped Elizabeth A. White to purchase Road-250 Black , 48 .

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


Question: What is the rating of the movie what has a name including a word like 'Citizen'?

SELECT rating FROM movies WHERE title LIKE '%Citizen%'

What is the rating of the movie what has a name including a word like ' Citizen ' ?

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


Question: Among the employees who work as a Trainee, how many of them have a salary of over &20,000 a year?

SELECT COUNT(*) FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) > 20000 AND T2.positiontitle = 'Trainee'

Among the employees who work as a Trainee , how many of them have a salary of over & 20,000 a year ?

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


Question: What are the names and market districts of all platforms?

SELECT Platform_name ,  Market_district FROM platform

What are the names and market districts of all platforms ?

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


Question: What is the season of the game which causes the player 'Walter Samuel' to get injured?

SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id WHERE T2.player  =  'Walter Samuel'

What is the season of the game which causes the player ' Walter Samuel ' to get injured ?

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


Question: What are the log id and entry description of each problem?

SELECT problem_log_id ,  log_entry_description FROM problem_log

What are the log i d and entry description of each problem ?

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


Question: How many distinct teams are involved in match seasons?

SELECT count(DISTINCT Team) FROM match_season

How many distinct teams are involved in match seasons ?


Question: Does student348 have a due payment?

SELECT bool FROM no_payment_due WHERE name = 'student348'


Question: What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?

SELECT name ,  headquarter ,  revenue FROM manufacturers ORDER BY revenue DESC

What are the names , headquarters and revenues for manufacturers , sorted by revenue descending ?

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


Question: Find the average checking balance.


Question: How many routes does American Airlines operate?

SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'

How many routes does American Airlines operate ?


Question: Which year was the first Singapore Grand Prix?

SELECT year FROM races WHERE name = 'Singapore Grand Prix' ORDER BY year ASC LIMIT 1

Which year was the first Singapore Grand Prix ?

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


Question: What is the average BMI of all the coaches who have gotten in the Hall of Fame?

SELECT SUM(T1.weight / (T1.height * T1.height)) / COUNT(T1.coachID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID

What is the average BMI of all the coaches who have gotten in the Hall of Fame ?

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


Question: Show the first name and last name for all the instructors.

SELECT fname ,  lname FROM Faculty WHERE Rank  =  "Instructor"

Show the first name and last name for all the instructors .

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


Question: What is the area for the appelation which produced the most wines prior to 2010?

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

What is the area for the appelation which produced the most wines prior to 2010 ?

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


Question: How many crimes happened in longitude -8772658001?

SELECT COUNT(*) FROM Crime WHERE longitude = '-87.72658001'

How many crimes happened in longitude -8772658001 ?


Question: Which student are enrolled in at least two courses? Give me the student ID and personal name.

SELECT T1.student_id ,  T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  >=  2

Which student are enrolled in at least two courses ? Give me the student ID and personal name .

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


Question: What is the solution's path of method "HtmlSharp.HtmlParser.Feed"?

SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'HtmlSharp.HtmlParser.Feed'

What is the solution 's path of method " HtmlSharp . HtmlParser . Feed " ?

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


Question: What is the name of the district with the smallest area?

SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1

What is the name of the district with the smallest area ?


Question: List 5 patients' name that need medication due to streptococcal sore throat disorder.

SELECT DISTINCT T2.first, T2.last FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)' LIMIT 5

List 5 patients ' name that need medication due to streptococcal sore throat disorder .

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


Question: Please give the title of the film starring PENELOPE GUINESS and has the highest replacement cost.

SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' ORDER BY T3.replacement_cost DESC LIMIT 1

Please give the title of the film starring PENELOPE GUINESS and has the highest replacement cost .

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


Question: Which gender logged in the most to an event in the first 10 days of May 2016?

SELECT T.gender FROM ( SELECT T1.gender, COUNT(T1.device_id) AS num FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE date(T2.timestamp) BETWEEN '2016-05-01' AND '2016-05-10' GROUP BY T1.gender ) AS T ORDER BY T.num DESC LIMIT 1

Which gender logged in the most to an event in the first 10 days of May 2016 ?

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


Question: Find the payment method code used by more than 3 parties.

SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3

Find the payment method code used by more than 3 parties .

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


Question: What genre does Honkai Impact 3rd belong to?

SELECT DISTINCT Genres FROM playstore WHERE App = 'Honkai Impact 3rd'

What genre does Honkai Impact 3rd belong to ?

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


Question: Please list the titles of all the recipes that are salt/sodium-free.

SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.sodium < 5

Please list the titles of all the recipes that are salt / sodium - free .

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


Question: How many events had participants whose details had the substring 'Dr.'

SELECT count(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'

How many events had participants whose details had the substring ' Dr. '

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


Question: Write down the author's name of the book most recently published.

SELECT T3.author_name 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 ORDER BY T1.publication_date DESC LIMIT 1

Write down the author 's name of the book most recently published .

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


Question: Show member names that are not in the Progress Party.

SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id WHERE T2.Party_name != "Progress Party"

Show member names that are not in the Progress Party .

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


Question: How many orders does Lucas Mancini has?

SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini";

How many orders does Lucas Mancini has ?


Question: Find the name of the user who gives the most reviews.

SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1

Find the name of the user who gives the most reviews .

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


Question: Please list all clients' phone numbers and complaint IDs which are still in progress.

SELECT T1.phone, T2.`Complaint ID` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'In progress'

Please list all clients ' phone numbers and complaint IDs which are still in progress .

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


Question: Please provide the dates on which Elly Koss was immunized with the influenza seasonal injectable preservative-free vaccine.

SELECT T2.DATE FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Influenza  seasonal  injectable  preservative free' AND T1.first = 'Elly' AND T1.last = 'Koss'

Please provide the dates on which Elly Koss was immunized with the influenza seasonal injectable preservative - free vaccine .

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


Question: What are the coupon amount of the coupons owned by both good and bad customers?

SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'bad'

What are the coupon amount of the coupons owned by both good and bad customers ?

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


Question: Show all artist names and the year joined who are not from United States.

SELECT name ,  year_join FROM artist WHERE country != 'United States'

Show all artist names and the year joined who are not from United States .

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


Question: Mention the group of age of users who use phone brand of LG.

SELECT T1.`group` FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'LG'

Mention the group of age of users who use phone brand of LG .

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


Question: How many negative comments did Neil McGuigan get in his posts?

SELECT COUNT(T3.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId INNER JOIN comments AS T3 ON T2.Id = T3.PostId WHERE T1.DisplayName = 'Neil McGuigan' AND T3.Score < 60

How many negative comments did Neil McGuigan get in his posts ?

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


Question: What is the full name of the conference where paper number 5 was published?

SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Id = 5

What is the full name of the conference where paper number 5 was published ?

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


Question: What is the software platform that is most common amongst all devices?

SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1

What is the software platform that is most common amongst all devices ?

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


Question: Which product have the highest user satisfaction?

SELECT ProductName FROM Products WHERE ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products )

Which product have the highest user satisfaction ?


Question: What are the origins of all flights that are headed to Honolulu?

SELECT origin FROM Flight WHERE destination  =  "Honolulu"

What are the origins of all flights that are headed to Honolulu ?

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


Question: Return the names of the gymnasts.

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


Question: How many weapons violation crimes have occurred in the Calumet district?

SELECT SUM(CASE WHEN T3.district_name = 'Calumet' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'WEAPONS VIOLATION'

How many weapons violation crimes have occurred in the Calumet district ?

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


Question: Which lake is the largest in terms of both surface area and depth?

SELECT Name FROM lake ORDER BY Area * Depth DESC LIMIT 1

Which lake is the largest in terms of both surface area and depth ?

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


Question: How many countries are there in the region whose comment description is "asymptotes sublate after the r."

SELECT COUNT(T1.n_nationkey) FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey WHERE T2.r_comment = 'asymptotes sublate after the r'

How many countries are there in the region whose comment description is " asymptotes sublate after the r. "

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


Question: Find the first names of all the authors who have written a paper with title containing the word "Functional".

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

Find the first names of all the authors who have written a paper with title containing the word " Functional " .

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


Question: Among Warner Bros. Pictures' movies, which title made the highest revenue?

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

Among Warner Bros. Pictures ' movies , which title made the highest revenue ?

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


Question: What is the name of the social event that was attended by the vice president of the Student_Club located at 900 E. Washington St.?

SELECT T2.event_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T3.position = 'Vice President' AND T2.location = '900 E. Washington St.' AND T2.type = 'Social'

What is the name of the social event that was attended by the vice president of the Student_Club located at 900 E. Washington St. ?

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


Question: Give me a list of all the channel names sorted by the channel rating in descending order.

SELECT name FROM channel ORDER BY rating_in_percent DESC

Give me a list of all the channel names sorted by the channel rating in descending order .

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


Question: Name the students with above-average capability.

SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN RA AS T2 ON T1.student_id = T2.student_id WHERE T2.capability > ( SELECT AVG(capability) FROM RA )

Name the students with above - average capability .


Question: List the types of competition and the number of competitions of each type.

SELECT Competition_type ,  COUNT(*) FROM competition GROUP BY Competition_type

List the types of competition and the number of competitions of each type .


Question: Show all directors.


Question: List the name of the songs in ascending, lexicographical order.

List the name of the songs in ascending , lexicographical order .


Question: What is the total grant amount of the organisations described as research?

SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  'Research'

What is the total grant amount of the organisations described as research ?

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


Question: What is the average age for each gender?

SELECT avg(age) ,  gender FROM Person GROUP BY gender

What is the average age for each gender ?


Question: How many students, on average, does each college have enrolled?

How many students , on average , does each college have enrolled ?


Question: Which county in northern California has the highest number of cities?

SELECT county FROM geographic WHERE region = 'northern california' GROUP BY county ORDER BY COUNT(city) DESC LIMIT 1

Which county in northern California has the highest number of cities ?

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


Question: List the name of actors whose age is not 20.

List the name of actors whose age is not 20 .

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


Question: How many priority urgent complaints were received in march of 2017? List the complaint ID of these complaints.

SELECT COUNT(`Complaint ID`) FROM callcenterlogs WHERE `Date received` LIKE '2017-01%' AND priority = ( SELECT MAX(priority) FROM callcenterlogs )

How many priority urgent complaints were received in march of 2017 ? List the complaint ID of these complaints .

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


Question: What is the price for the product with name Monitor?

SELECT product_price FROM Products WHERE product_name  =  "Monitor"

What is the price for the product with name Monitor ?

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


Question: Calculate the monthly average salary of the employee with highest salary. Mention his name, position title and location city.

SELECT SUM(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) / 12 AS avg, T1.firstname, T1.lastname , T2.positiontitle, T3.locationcity FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID INNER JOIN location AS T3  ON T1.locationID = T3.locationID WHERE CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID INNER JOIN location AS T3  ON T1.locationID = T3.locationID )

Calculate the monthly average salary of the employee with highest salary . Mention his name , position title and location city .

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


Question: How many papers are published under the journal "Software - Practice and Experience"?

SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T2.FullName = 'Software - Practice and Experience'

How many papers are published under the journal " Software - Practice and Experience " ?

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


Question: What are the total sales of the accumulated orders of Hon Valutask Swivel Chairs in the West region?

SELECT SUM(T1.Sales) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Hon Valutask Swivel Chairs' AND T1.Region = 'West'

What are the total sales of the accumulated orders of Hon Valutask Swivel Chairs in the West region ?

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


Question: What are the ids of the students who registered for some courses but had the least number of courses for all students?

SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1

What are the ids of the students who registered for some courses but had the least number of courses for all students ?

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


Question: List the locations of schools that do not have any player.

SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)

List the locations of schools that do not have any player .

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


Question: What is the total amount paid for rentals made on July 29, 2005?

SELECT SUM(T2.amount) FROM rental AS T1 INNER JOIN payment AS T2 ON T1.rental_id = T2.rental_id WHERE date(T1.rental_date) = '2005-07-29%'

What is the total amount paid for rentals made on July 29 , 2005 ?

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


Question: Provide the registered courses' names by undergraduate students with GPA of 3.7 and above.

SELECT DISTINCT T1.f_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.type = 'UG' AND T1.gpa > 3.7

Provide the registered courses ' names by undergraduate students with GPA of 3.7 and above .

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


Question: Which character is the villain of the most popular movie?

SELECT T2.villian FROM `movies_total_gross` AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title ORDER BY T1.total_gross DESC LIMIT 1

Which character is the villain of the most popular movie ?

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


Question: What is the population density of the nation whose capital city is in the Distrito Federal province, and what portion of its gross domestic product is devoted to its industries?

SELECT T1.Population / T1.Area, T2.Industry FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Province = 'Distrito Federal'

What is the population density of the nation whose capital city is in the Distrito Federal province , and what portion of its gross domestic product is devoted to its industries ?

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


Question: find the name of the program that was launched most recently.

SELECT name FROM program ORDER BY launch DESC LIMIT 1

find the name of the program that was launched most recently .

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


Question: Give the name of the No.1 character in the credit list from the highest rating thriller movie.

SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.creditOrder = '1' AND T1.Genre = 'Thriller' ORDER BY T1.Rating DESC LIMIT 1

Give the name of the No.1 character in the credit list from the highest rating thriller movie .

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


Question: For the team which had three different goalies in the 2011 postseason games, how many games did they win in the regular season?

SELECT SUM(T2.W) FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T2.year = 2011 GROUP BY T1.tmID HAVING COUNT(DISTINCT T1.playerID) = 3

For the team which had three different goalies in the 2011 postseason games , how many games did they win in the regular season ?

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


Question: List the short name of all conferences whose full name begins with International Symposium.

SELECT ShortName FROM Conference WHERE FullName LIKE 'International Symposium%'

List the short name of all conferences whose full name begins with International Symposium .

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


Question: What are the maximum and minimum salary range and position title of Bill Marlin?

SELECT T2.maxsalary, T2.minsalary, T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Bill' AND T1.lastname = 'Marlin'

What are the maximum and minimum salary range and position title of Bill Marlin ?

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


Question: From laboratory examinations in 1991, what is the average hematoclit level that is lower than the normal range.

SELECT AVG(T2.HCT) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.HCT < 29 AND STRFTIME('%Y', T2.Date) = '1991'

From laboratory examinations in 1991 , what is the average hematoclit level that is lower than the normal range .

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


Question: What is the total number of clubs that have less than 10 medals in total?

SELECT count(*) FROM club_rank WHERE Total  <  10

What is the total number of clubs that have less than 10 medals in total ?

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


Question: Show the id, name of each festival and the number of artworks it has nominated.

SELECT T1.Festival_ID ,  T3.Festival_Name ,  COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID

Show the i d , name of each festival and the number of artworks it has nominated .

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


Question: How many editors are there?


Question: List the full name of the Student_Club members that grew up in Illinois state.

SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Illinois'

List the full name of the Student_Club members that grew up in Illinois state .

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


Question: Count the number of different film ratings.

Count the number of different film ratings .


Question: Among the customers with an average income per inhabitant above 3000, what percentage are in their eighties?

SELECT CAST(SUM(CASE WHEN T1.age BETWEEN 80 AND 89 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INCOME_K > 3000

Among the customers with an average income per inhabitant above 3000 , what percentage are in their eighties ?

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


Question: What are the names of all players that got more than the average number of points?

SELECT name FROM player WHERE points  >  (SELECT avg(points) FROM player)

What are the names of all players that got more than the average number of points ?

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


Question: Make a list of all the territories in the Southern region.

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

Make a list of all the territories in the Southern region .

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


Question: Provide the ship date of the first shipment to customers in South Carolina.

SELECT MIN(T1.ship_date) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'SC'

Provide the ship date of the first shipment to customers in South Carolina .

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


Question: What are the names of companies with revenue between 100 and 150?

SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150

What are the names of companies with revenue between 100 and 150 ?

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


Question: Show ids for all transactions whose amounts are greater than the average.

SELECT transaction_id FROM Financial_transactions WHERE transaction_amount  >  (SELECT avg(transaction_amount) FROM Financial_transactions)

Show ids for all transactions whose amounts are greater than the average .

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


Question: What is the oldest published book?

SELECT Title FROM Paper WHERE Year > 0 ORDER BY Year ASC LIMIT 1


Question: Find the names of customers who never ordered product Latte.

SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE t4.product_details  =  'Latte'

Find the names of customers who never ordered product Latte .

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


Question: What is the age of female customers within the number of inhabitants below 30?

SELECT age FROM Customers WHERE GEOID IN ( SELECT GEOID FROM Demog WHERE INHABITANTS_K < 30 ) AND SEX = 'Female'

What is the age of female customers within the number of inhabitants below 30 ?

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


Question: Show all video game types and the number of video games in each type.

SELECT gtype ,  count(*) FROM Video_games GROUP BY gtype

Show all video game types and the number of video games in each type .

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


Question: Of all the schools with a mailing state address in California, how many are active in San Joaquin city?

SELECT COUNT(CDSCode) FROM schools WHERE City = 'San Joaquin' AND MailState = 'CA' AND StatusType = 'Active'

Of all the schools with a mailing state address in California , how many are active in San Joaquin city ?

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


Question: How many games were played in March 2010?

SELECT SUM(CASE WHEN Match_Date LIKE '2010-03%' THEN 1 ELSE 0 END) FROM `Match`

How many games were played in March 2010 ?


Question: List email address and birthday of customer whose first name as Carole.

SELECT email_address ,  date_of_birth FROM Customers WHERE first_name = "Carole"

List email address and birthday of customer whose first name as Carole .

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


Question: Among the repositories with over 200 likes, how many of them have files contained by solutions with a processed time of under 636439500080712000?

SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.ProcessedTime < 636439500080712000 AND T1.Stars > 200

Among the repositories with over 200 likes , how many of them have files contained by solutions with a processed time of under 636439500080712000 ?

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


Question: List the categories of active businesses in Surprise, AZ.

SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T1.state LIKE 'AZ' AND T1.city LIKE 'Surprise' GROUP BY T3.category_name

List the categories of active businesses in Surprise , AZ .

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


Question: Calculate the image area of the page menu for the dish named "Baked Stuffed Mullet & Sauce Pomard". Please include the page number and image ID.

SELECT T1.full_height * T1.full_width, T1.page_number, T1.image_id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Baked Stuffed Mullet & Sauce Pomard'

Calculate the image area of the page menu for the dish named " Baked Stuffed Mullet & Sauce Pomard " . Please include the page number and image ID .

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


Question: What is the total price of the order 10100?

SELECT SUM(t.priceEach * t.quantityOrdered) FROM orderdetails t WHERE t.orderNumber = '10100'

What is the total price of the order 10100 ?


Question: Find the number of different products that are produced by companies at different headquarter cities.

SELECT count(DISTINCT T1.name) ,  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter

Find the number of different products that are produced by companies at different headquarter cities .

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


Question: Calculate the average number of criterias among "Times Higher Education World University Ranking","Shanghai Ranking" and "Center for World University Rankings".

SELECT (SUM(CASE WHEN T1.system_name = 'Center for World University Rankings' THEN 1 ELSE 0 END) + SUM(CASE WHEN T1.system_name = 'Shanghai Ranking' THEN 1 ELSE 0 END) + SUM(CASE WHEN T1.system_name = 'Times Higher Education World University Ranking' THEN 1 ELSE 0 END)) / 3 FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id

Calculate the average number of criterias among " Times Higher Education World University Ranking","Shanghai Ranking " and " Center for World University Rankings " .

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


Question: How many different classes are there?

SELECT count(DISTINCT class_code) FROM CLASS


Question: Among the matches, what percentage have a winning margin above 100?

SELECT CAST(COUNT(CASE WHEN Win_Margin > 100 THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(Match_Id) FROM `Match`

Among the matches , what percentage have a winning margin above 100 ?

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


Question: Provide the name, located country, and life expectancy of the most populated city

SELECT T2.Name, T1.Code, T1.LifeExpectancy FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1

Provide the name , located country , and life expectancy of the most populated city

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


Question: List all university names in ascending order of their reputation points.

SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.reputation_point

List all university names in ascending order of their reputation points .

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


Question: List name of all tracks in Balls to the Wall.

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

List name of all tracks in Balls to the Wall .

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


Question: Find the names and opening hours of the tourist attractions that we get to by bus or walk.

SELECT Name ,  Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "bus" OR How_to_Get_There  =  "walk"

Find the names and opening hours of the tourist attractions that we get to by bus or walk .

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


Question: What percentage of orders were placed by customers in Madrid city in 1996?

SELECT CAST(COUNT(CASE WHEN T1.City = 'Madrid' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.City) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE STRFTIME('%Y', T2.OrderDate) = 1996

What percentage of orders were placed by customers in Madrid city in 1996 ?

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


Question: List the stars of episodes aired in November 2008.

SELECT T2.stars FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 7) = '2008-11';

List the stars of episodes aired in November 2008 .

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


Question: Did Ms. Lyric Emely Taylor provide the consent for result of the complaint call on 2016/5/20?

SELECT CASE WHEN T2.`Consumer consent provided?` IN (NULL, 'N/A', '') THEN 'No' ELSE 'Yes' END FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Lyric' AND T1.middle = 'Emely' AND T1.last = 'Taylor' AND T1.sex = 'Female' AND T2.`Date received` = '2016-05-20'

Did Ms. Lyric Emely Taylor provide the consent for result of the complaint call on 2016/5/20 ?

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


Question: How many female clients are there older than 30?

SELECT COUNT(sex) FROM client WHERE sex = 'Female' AND age > 30

How many female clients are there older than 30 ?

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


Question: List the ball IDs, scores, and innings numbers in the over ID 20 of match ID "335988".

SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20

List the ball IDs , scores , and innings numbers in the over ID 20 of match ID " 335988 " .

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


Question: For the Yelp business in "Tempe" city which got "3.5" stars and review count as "Uber", how many "long" reviews did it get?

SELECT COUNT(T2.review_length) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Tempe' AND T1.stars = '3.5' AND T1.review_count = 'Uber' AND T2.review_length = 'Long'

For the Yelp business in " Tempe " city which got " 3.5 " stars and review count as " Uber " , how many " long " reviews did it get ?

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


Question: Show the builder of railways associated with the trains named "Andaman Exp".

SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID WHERE T2.Name  =  "Andaman Exp"

Show the builder of railways associated with the trains named " Andaman Exp " .

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


Question: Give me the immunization codes and dates on which Ms. Jacquelyn Shanahan was immunized with influenza seasonal injectable preservative-free vaccine.

SELECT DISTINCT T2.CODE, T2.DATE FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Jacquelyn' AND T1.last = 'Shanahan' AND T2.DESCRIPTION = 'Influenza  seasonal  injectable  preservative free'

Give me the immunization codes and dates on which Ms. Jacquelyn Shanahan was immunized with influenza seasonal injectable preservative - free vaccine .

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


Question: What are all distinct country for artists?

What are all distinct country for artists ?


Question: Find the number of times ROY SWEAZY has reserved a room.

SELECT count(*) FROM Reservations WHERE FirstName = "ROY" AND LastName  =  "SWEAZY";

Find the number of times ROY SWEAZY has reserved a room .

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


Question: In the Catalan language, which biwords pair appeared the most in this language/page?

SELECT w1st, w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )

In the Catalan language , which biwords pair appeared the most in this language / page ?


Question: How many times more was the number of students of University of Ottawa than Joseph Fourier University in 2013?

SELECT CAST(SUM(CASE WHEN T2.university_name = 'University of Ottawa' THEN T1.num_students ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.university_name = 'Joseph Fourier University' THEN T1.num_students ELSE 0 END) FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2013

How many times more was the number of students of University of Ottawa than Joseph Fourier University in 2013 ?

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


Question: What is the oldest age among the students?

What is the oldest age among the students ?


Question: List the names of customers that do not have any order.

SELECT name FROM customer WHERE Customer_ID NOT IN (SELECT Customer_ID FROM customer_order)

List the names of customers that do not have any order .


Question: List the studios which average gross is above 4500000.

SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000

List the studios which average gross is above 4500000 .


Question: Among the professors with a teachability of 3 and below, what is the percentage of their student advisees with a low salary?

SELECT CAST(SUM(CASE WHEN T1.salary = 'low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.salary) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.teachingability < 3

Among the professors with a teachability of 3 and below , what is the percentage of their student advisees with a low salary ?

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


Question: Which team had the most same starting players througout the season? Give the full name of the team.

SELECT DISTINCT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.GP = T2.GS

Which team had the most same starting players througout the season ? Give the full name of the team .

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


Question: How many molecules are carcinogenic and have the bromine element?

SELECT COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND T1.element = 'br'

How many molecules are carcinogenic and have the bromine element ?


Question: Which publisher published the most games?

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

Which publisher published the most games ?


Question: List the names of the top 5 oldest people.

SELECT Name FROM People ORDER BY Age DESC LIMIT 5

List the names of the top 5 oldest people .


Question: State all the order numbers for sales team of Samuel Fowler.

SELECT T FROM ( SELECT DISTINCT CASE  WHEN T2.`Sales Team` = 'Samuel Fowler' THEN T1.OrderNumber ELSE NULL END AS T FROM `Sales Orders` T1 INNER JOIN `Sales Team` T2 ON T2.SalesTeamID = T1._SalesTeamID ) WHERE T IS NOT NULL

State all the order numbers for sales team of Samuel Fowler .

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


Question: Find id of candidates whose assessment code is "Pass"?

SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = "Pass"

Find i d of candidates whose assessment code is " Pass " ?

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


Question: How many gymnasts are there?


Question: What is the campus fee in the year 2000 for San Jose State University?

SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  "San Jose State University" AND t1.year  =  2000

What is the campus fee in the year 2000 for San Jose State University ?

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


Question: Which year recorded the most gas use paid in EUR?

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

Which year recorded the most gas use paid in EUR ?


Question: What are the maximum and minimum rank of the year of players.

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

What are the maximum and minimum rank of the year of players .

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


Question: Show the names of roller coasters and names of country they are in.

SELECT T2.Name ,  T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID

Show the names of roller coasters and names of country they are in .

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


Question: Find all the instruments ever used by the musician with last name "Heilo"?

SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  "Heilo"

Find all the instruments ever used by the musician with last name " Heilo " ?

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


Question: How many papers do we have?


Question: How many times did Anna Himes use her Mastercard when paying between 12/25/2014 and 5/20/2016 ?

SELECT COUNT(T2.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Anna' AND T1.Last = 'Himes' AND T2.CreditCardType = 'MasterCard' AND T2.TransactionDate BETWEEN '2014-12-25' AND '2016-05-20'

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


Question: What are the different names of all songs without back vocals?

SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "back"

What are the different names of all songs without back vocals ?

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


Question: How many boxes of 'Pavlova' did Northwind sell?

SELECT COUNT(T2.Quantity) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName = 'Pavlova'

How many boxes of ' Pavlova ' did Northwind sell ?


Question: Retrieve the country that has published the most papers.

SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1

Retrieve the country that has published the most papers .


Question: For team who has more home won than home lost more than 80%, list the team name and the offense points.

SELECT name, o_pts FROM teams WHERE CAST((homeWon - homeLost) AS REAL) * 100 / games > 80

For team who has more home won than home lost more than 80 % , list the team name and the offense points .

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


Question: What are the names and descriptions of the all courses under the "Computer Science" subject?

SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  "Computer Science"

What are the names and descriptions of the all courses under the " Computer Science " subject ?

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


Question: Count the number of distinct neighborhoods stores are located.

SELECT count(DISTINCT neighborhood) FROM store

Count the number of distinct neighborhoods stores are located .


Question: Count the number of Professors who have office in building NEB.

SELECT count(*) FROM Faculty WHERE Rank  =  "Professor" AND building  =  "NEB"

Count the number of Professors who have office in building NEB .

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


Question: What is the description of the discount for the product with the id "762"?

SELECT T2.Description FROM SpecialOfferProduct AS T1 INNER JOIN SpecialOffer AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID WHERE T1.ProductID = 762

What is the description of the discount for the product with the i d " 762 " ?

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


Question: How many cases of billing dispute issues occurred in the Mountain division?

SELECT COUNT(T1.Issue) FROM events AS T1 INNER JOIN client AS T2 ON T1.Client_ID = T2.client_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T1.Issue = 'Billing disputes' AND T3.division = 'Mountain'

How many cases of billing dispute issues occurred in the Mountain division ?

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


Question: Find the name of stores which have no headphone in stock.

SELECT name FROM store WHERE store_id NOT IN (SELECT store_id FROM stock)

Find the name of stores which have no headphone in stock .

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


Question: List the store ID of the films with a rental rate greater than the 60% of average rental rate of all listed films.

SELECT T2.store_id FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T1.rental_rate > ( SELECT AVG(T1.rental_rate) * 0.6 FROM film AS T1 )

List the store ID of the films with a rental rate greater than the 60 % of average rental rate of all listed films .

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


Question: What percentage of customers from France is in the automobile segment?

SELECT CAST(SUM(IIF(T1.c_mktsegment = 'AUTOMOBILE', 1, 0)) AS REAL) * 100 / COUNT(T1.c_name) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'FRANCE'

What percentage of customers from France is in the automobile segment ?

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


Question: What is the number of useful votes that the user 52592 received when reviewed for business number 2?

SELECT review_votes_useful FROM Reviews WHERE user_id = 52592 AND business_id = 2

What is the number of useful votes that the user 52592 received when reviewed for business number 2 ?

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


Question: What are the first names of all the students aged above 22?

SELECT Fname FROM STUDENT WHERE Age  >  22

What are the first names of all the students aged above 22 ?

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


Question: What is the average rating for the "crime-junkie" podcast?

SELECT AVG(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Crime Junkie'

What is the average rating for the " crime - junkie " podcast ?

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


Question: Which advisor has most number of students?

SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1

Which advisor has most number of students ?


Question: What is the percentage of matches that are won by runs?

SELECT CAST(SUM(CASE WHEN T1.win_type = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Win_Type) FROM Match AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id

What is the percentage of matches that are won by runs ?

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


Question: What is the preferred foot when attacking of the player with the lowest potential?

SELECT preferred_foot FROM Player_Attributes WHERE potential IS NOT NULL ORDER BY potential ASC LIMIT 1

What is the preferred foot when attacking of the player with the lowest potential ?

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


Question: What are the types of vocals that the band member with the first name "Solveig" played the most?

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

What are the types of vocals that the band member with the first name " Solveig " played the most ?

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


Question: What are the birthdays of people in ascending order of height?

SELECT Birth_Date FROM People ORDER BY Height ASC

What are the birthdays of people in ascending order of height ?

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


Question: Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 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

Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005 .

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


Question: Show me the season page of year when the race No. 901 took place.

SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901

Show me the season page of year when the race No . 901 took place .

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


Question: How many patients sought medical attention due to a second-degree burn? Describe the care plan recommended to them.

SELECT COUNT(DISTINCT T2.PATIENT), T2.DESCRIPTION FROM encounters AS T1 INNER JOIN careplans AS T2 ON T1.PATIENT = T2.PATIENT WHERE T2.REASONDESCRIPTION = 'Second degree burn'

How many patients sought medical attention due to a second - degree burn ? Describe the care plan recommended to them .

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


Question: What are the names of all movies directed by Steven Spielberg?

SELECT title FROM Movie WHERE director = 'Steven Spielberg'

What are the names of all movies directed by Steven Spielberg ?

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


Question: What is the url of the journal in which the paper "Area Effects in Cepaea" was published?

SELECT T1.HomePage FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Title = 'Area Effects in Cepaea'

What is the url of the journal in which the paper " Area Effects in Cepaea " was published ?

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


Question: What are the client details for each client and the corresponding details of their agencies?

SELECT T1.client_details ,  T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id  =  T2.agency_id

What are the client details for each client and the corresponding details of their agencies ?

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


Question: What are the codes of all the courses that are located in room KLR209?

SELECT class_code FROM CLASS WHERE class_room  =  'KLR209'

What are the codes of all the courses that are located in room KLR209 ?


Question: Among the businesses within the postal code 94117, what is total number of businesses with a high risk category?

SELECT COUNT(DISTINCT T2.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.postal_code = 94117 AND T1.risk_category = 'High Risk'

Among the businesses within the postal code 94117 , what is total number of businesses with a high risk category ?

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


Question: What is the smallest border's length, and what form of government do the two nations bordering it have?

SELECT T1.Government, T3.Government FROM politics AS T1 INNER JOIN borders AS T2 ON T1.Country = T2.Country1 INNER JOIN politics AS T3 ON T3.Country = T2.Country2 ORDER BY T2.Length ASC LIMIT 1

What is the smallest border 's length , and what form of government do the two nations bordering it have ?

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


Question: What are the shipping methods for the orders on 12/31/1994?

SELECT DISTINCT T2.l_shipmode FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_orderdate = '1994-12-31'

What are the shipping methods for the orders on 12/31/1994 ?


Question: Which role has the most common contact among businesses?

SELECT T1.Name FROM ContactType AS T1 INNER JOIN BusinessEntityContact AS T2 ON T1.ContactTypeID = T2.ContactTypeID GROUP BY T1.Name ORDER BY COUNT(T1.Name) DESC LIMIT 1

Which role has the most common contact among businesses ?


Question: Find name of the services that has never been used.

SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id

Find name of the services that has never been used .


Question: What are the wines that have prices higher than 50 and made of Red color grapes?

SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red" AND T2.price  >  50

What are the wines that have prices higher than 50 and made of Red color grapes ?

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


Question: Within the user who joined Yelp in 2004, explore the user ID with average star of 5 and it's review length on the business.

SELECT T2.user_id, T2.review_length FROM Users AS T1 INNER JOIN Reviews AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = 2004 AND T1.user_average_stars = 5

Within the user who joined Yelp in 2004 , explore the user ID with average star of 5 and it 's review length on the business .

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


Question: Which complaint is more urgent, complaint ID CR2400594 or ID CR2405641?

SELECT CASE WHEN SUM(CASE WHEN `Complaint ID` = 'CR2400594' THEN priority END) > SUM(CASE WHEN `Complaint ID` = 'CR2405641' THEN priority END) THEN 'CR2400594' ELSE 'CR2405641' END FROM callcenterlogs

Which complaint is more urgent , complaint ID CR2400594 or ID CR2405641 ?

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


Question: Return the names of drivers with citizenship from the United States.

SELECT name FROM driver WHERE citizenship  =  'United States'

Return the names of drivers with citizenship from the United States .

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


Question: Find the number of different states which banks are located at.

Find the number of different states which banks are located at .


Question: How many cars with horsepower greater than 200 were produced in 1975?

SELECT COUNT(T2.model_year) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.horsepower > 200 AND T2.model_year = 1975

How many cars with horsepower greater than 200 were produced in 1975 ?

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


Question: What is the invoice number and invoice date for the invoice with most number of transactions?

SELECT T2.invoice_number ,  T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number  =  T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1

What is the invoice number and invoice date for the invoice with most number of transactions ?

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


Question: List all customer names with orders that are disputed.

SELECT t3.firstName, t3.lastName FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber INNER JOIN employees AS t3 ON t2.salesRepEmployeeNumber = t3.employeeNumber WHERE t1.status = 'Disputed'

List all customer names with orders that are disputed .

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


Question: What time does the company's night shift begin? Indicate the answer in regular form.

SELECT StartTime FROM Shift WHERE Name = 'Night'

What time does the company 's night shift begin ? Indicate the answer in regular form .

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


Question: Find the name of the department that has the biggest number of students minored in?

SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1

Find the name of the department that has the biggest number of students minored in ?

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


Question: Who was the customer of shipment no.1275? Give the customer's name.

SELECT T1.cust_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.ship_id = '1275'

Who was the customer of shipment no.1275 ? Give the customer 's name .

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


Question: For the customer who paid 124.05 in 2012/8/24, how much did he/she spend during the January of 2012? And what is the date and expenses exactly?

SELECT T1.CustomerID, T2.Date, T2.Consumption FROM transactions_1k AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-24' AND T1.Price = 124.05 AND T2.Date = '201201'

For the customer who paid 124.05 in 2012/8/24 , how much did he / she spend during the January of 2012 ? And what is the date and expenses exactly ?

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


Question: How many customers are there?


Question: Which colleges do the tryout players whose name starts with letter D go to?

SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'

Which colleges do the tryout players whose name starts with letter D go to ?

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


Question: What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?

SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )

What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T ?

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


Question: What are the names of scientists who are assigned to any project?

SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist  =  T2.ssn

What are the names of scientists who are assigned to any project ?

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


Question: Find the total number of students living in the male dorm (with gender M).

SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.gender  =  'M'

Find the total number of students living in the male dorm ( with gender M ) .

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


Question: List the group name has the most downloaded that have released jazz genres from 1982 or later.

SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'jazz' AND T1.groupYear >= 1982 ORDER BY T1.totalSnatched DESC LIMIT 1

List the group name has the most downloaded that have released jazz genres from 1982 or later .

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


Question: How many businesses have more than 1 attribute?

SELECT COUNT(business_id) FROM Business_Attributes WHERE attribute_value > 1

How many businesses have more than 1 attribute ?


Question: Provide the number of predicted classes.

SELECT COUNT(PRED_CLASS_ID) FROM PRED_CLASSES

Provide the number of predicted classes .


Question: Please list bikes id were used in trips which start station were installed in 2013.

SELECT DISTINCT T1.bike_id FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.installation_date LIKE '%2013'

Please list bikes i d were used in trips which start station were installed in 2013 .

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


Question: What is the booking status code of the apartment with apartment number "Suite 634"?

SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  "Suite 634"

What is the booking status code of the apartment with apartment number " Suite 634 " ?

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


Question: Show the manager name with most number of gas stations opened after 2000.

SELECT manager_name FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1

Show the manager name with most number of gas stations opened after 2000 .

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