question string | answer string | context string | dialect string | spider_hardness string | extended_hardness string | classification_status string | syntax_status string | ddl_syntax_status string | schema_status string | syntax_errors list | ddl_syntax_errors list | schema_errors list | classification_errors list | status_history list | correction_status string | component1 int64 | component2 int64 | others int64 | validation_source dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
What is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000? | SELECT `st_prize` AS `__` FROM table_name_54 WHERE score = '207 (-9)' AND `purse__$__` > 800 | CREATE TABLE table_name_54 (score VARCHAR(255), `purse__$__` VARCHAR(255), `st_prize` INTEGER) | mysql | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 1 | {
"split": "train",
"row_index": 65554
} |
What is the lowest first half when the score is larger than 621 and the rank 35? | SELECT MIN(st_half) FROM table_name_21 WHERE score > 621 AND rank = 35 | CREATE TABLE table_name_21 (score VARCHAR(255), rank VARCHAR(255), st_half INTEGER) | mysql | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 1 | {
"split": "train",
"row_index": 72921
} |
In the Class T, what is the total of the 1958 UTA? | SELECT SUM(`1958_uta`) FROM `t` AS able_name_49 WHERE `class` = 't' | CREATE TABLE `t` (Id VARCHAR(255), `1958_uta` INTEGER, `class` VARCHAR(255)) | mysql | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 0 | {
"split": "train",
"row_index": 76203
} |
Name the F. Goals for games of 22 22 and points of 012 12 | SELECT `F_goals` FROM table_name_31 WHERE games = '22 22' AND points = '012 12' | CREATE TABLE table_name_31 (games VARCHAR(255), points VARCHAR(255), `F_goals` INTEGER) | mysql | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 1 | {
"split": "train",
"row_index": 76363
} |
Name the F. Goals with tries of 0 0 and games of 05 5 | SELECT `F.goals` FROM table_name_18 WHERE tries = '0 0' AND games = '05 5' | CREATE TABLE table_name_18 (tries VARCHAR(255), games VARCHAR(255), `F.goals` INTEGER) | mysql | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 1 | {
"split": "train",
"row_index": 76366
} |
What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn? | SELECT word_form FROM table_name_39 WHERE khmer > '១០០០០០' AND ungegn = '(muŏy) dáb leăn' | CREATE TABLE table_name_39 (word_form VARCHAR(255), khmer INTEGER, ungegn VARCHAR(255)) | mysql | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 1 | {
"split": "train",
"row_index": 76728
} |
How many times was the motorcycle ducati 916 2nd place when wins is less than 7? | SELECT SUM(`2nd_pl`) FROM table_name_14 WHERE motorcycle = 'ducati 916' AND wins < 7 | CREATE TABLE table_name_14 (motorcycle VARCHAR(255), wins INTEGER, `2nd_pl` INTEGER) | mysql | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 1 | {
"split": "train",
"row_index": 77284
} |
What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell? | SELECT COUNT(`1st_prize___`) FROM table_name_15 WHERE country = 'united states' AND score < 271 AND year > 1964 AND winner = 'bobby mitchell' | CREATE TABLE table_name_15 (winner VARCHAR(255), year INTEGER, country VARCHAR(255), score INTEGER, `1st_prize___` INTEGER) | mysql | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validation_failed",
"correction_failed",
"correction_corrected",
"extension_unchanged",
"classified"
] | corrected | 1 | 0 | 1 | {
"split": "train",
"row_index": 77681
} |
What are all info of students who registered courses but not attended courses? | SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance) | CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 60
} |
For each station, return its longitude and the average duration of trips that started from the station. | SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id | CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 103
} |
For each station, find its latitude and the minimum duration of trips that ended at the station. | SELECT T1.name, T1.lat, MIN(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id | CREATE TABLE trip (duration INTEGER, end_station_id VARCHAR); CREATE TABLE station (name VARCHAR, lat VARCHAR, id VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 104
} |
What are the id and name of the stations that have ever had more than 12 bikes available? | SELECT DISTINCT T1.id, T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12 | CREATE TABLE station (id VARCHAR, name VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 110
} |
Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place. | SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100 | CREATE TABLE weather (zip_code VARCHAR, mean_humidity INTEGER); CREATE TABLE trip (zip_code VARCHAR, mean_humidity INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 111
} |
What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times? | SELECT name FROM station WHERE city = 'Palo Alto' EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING COUNT(*) > 100 | CREATE TABLE trip (name VARCHAR, end_station_name VARCHAR, city VARCHAR); CREATE TABLE station (name VARCHAR, end_station_name VARCHAR, city VARCHAR) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 112
} |
What is the average latitude and longitude of the starting points of all trips? | SELECT AVG(T1.lat), AVG(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id | CREATE TABLE trip (start_station_id VARCHAR); CREATE TABLE station (lat INTEGER, long INTEGER, id VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 2 | {
"split": "train",
"row_index": 114
} |
Find all the customer information in state NY. | SELECT * FROM CUSTOMER WHERE State = 'NY' | CREATE TABLE CUSTOMER (State VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 454
} |
List all information regarding the basketball match. | SELECT * FROM basketball_match | CREATE TABLE basketball_match (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 558
} |
Find the details for all chip models. | SELECT * FROM chip_model | CREATE TABLE chip_model (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 581
} |
Show all information about each body builder. | SELECT * FROM body_builder | CREATE TABLE body_builder (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 653
} |
List the information of all instructors ordered by their salary in ascending order. | SELECT * FROM instructor ORDER BY salary | CREATE TABLE instructor (salary VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 797
} |
List all information in the item table. | SELECT * FROM item | CREATE TABLE item (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 964
} |
Find the number of schools that have more than one donator whose donation amount is less than 8.5. | SELECT COUNT(*) FROM (SELECT * FROM endowment WHERE amount > 8.5 GROUP BY school_id HAVING COUNT(*) > 1) | CREATE TABLE endowment (school_id VARCHAR, amount INTEGER) | generic | easy | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1113
} |
List all info about all people. | SELECT * FROM people | CREATE TABLE people (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1453
} |
List all information about customer master index, and sort them by details in descending order. | SELECT * FROM customer_master_index ORDER BY cmi_details DESC | CREATE TABLE customer_master_index (cmi_details VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1567
} |
Show all the information about election. | SELECT * FROM election | CREATE TABLE election (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1620
} |
Find the last names of all the authors that have written a paper with title containing the word "Monadic". | 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 LIKE '%Monadic%' | CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 4 | 0 | 0 | {
"split": "train",
"row_index": 1725
} |
List all information about the assessment notes sorted by date in ascending order. | SELECT * FROM Assessment_Notes ORDER BY date_of_notes | CREATE TABLE Assessment_Notes (date_of_notes VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1827
} |
Find all information about student addresses, and sort by monthly rental in descending order. | SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC | CREATE TABLE Student_Addresses (monthly_rental VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1830
} |
Return all the information for all employees without any department number. | SELECT * FROM employees WHERE department_id = 'null' | CREATE TABLE employees (department_id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2027
} |
Display all the information about the department Marketing. | SELECT * FROM departments WHERE department_name = 'Marketing' | CREATE TABLE departments (department_name VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2028
} |
display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40. | SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct <> 'null' OR department_id <> 40 | CREATE TABLE employees (department_id VARCHAR, salary VARCHAR, commission_pct VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 2033
} |
display all the details from Employees table for those employees who was hired before 2002-06-21. | SELECT * FROM employees WHERE hire_date < '2002-06-21' | CREATE TABLE employees (hire_date INTEGER) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2039
} |
display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary. | SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC | CREATE TABLE employees (salary VARCHAR, first_name VARCHAR) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 5 | 0 | 1 | {
"split": "train",
"row_index": 2040
} |
display those employees who joined after 7th September, 1987. | SELECT * FROM employees WHERE hire_date > '1987-09-07' | CREATE TABLE employees (hire_date INTEGER) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2041
} |
Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000? | SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000 | CREATE TABLE job_history (employee_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2054
} |
get the details of employees who manage a department. | SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id | CREATE TABLE departments (department_id VARCHAR, manager_id VARCHAR); CREATE TABLE employees (department_id VARCHAR, employee_id VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2062
} |
display all the information of the employees whose salary if within the range of smallest salary and 2500. | SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500 | CREATE TABLE employees (salary INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 2066
} |
display all the information of those employees who did not have any job in the past. | SELECT * FROM employees WHERE NOT employee_id IN (SELECT employee_id FROM job_history) | CREATE TABLE job_history (employee_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 2075
} |
What is the total number of postseason games that team Boston Red Stockings participated in? | SELECT COUNT(*) FROM (SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings') | CREATE TABLE postseason (team_id_winner VARCHAR, team_id_loser VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) | generic | easy | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2155
} |
List all the information about course authors and tutors in alphabetical order of the personal name. | SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name | CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2225
} |
List all information about courses sorted by credits in the ascending order. | SELECT * FROM COURSE ORDER BY Credits | CREATE TABLE COURSE (Credits VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2696
} |
Show all information on the airport that has the largest number of international passengers. | SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 | CREATE TABLE airport (International_Passengers VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2784
} |
List all information about college sorted by enrollment number in the ascending order. | SELECT * FROM College ORDER BY enr | CREATE TABLE College (enr VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2861
} |
Find all the albums in 2012. | SELECT * FROM Albums WHERE YEAR = 2012 | CREATE TABLE Albums (YEAR VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2960
} |
What are the albums produced in year 2010? | SELECT * FROM Albums WHERE YEAR = 2010 | CREATE TABLE Albums (YEAR VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2990
} |
Find all information of all the products with a price between $60 and $120. | SELECT * FROM products WHERE price BETWEEN 60 AND 120 | CREATE TABLE products (price INTEGER) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 3034
} |
Select all the data from the products and each product's manufacturer. | SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code | CREATE TABLE products (manufacturer VARCHAR); CREATE TABLE Manufacturers (code VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 3039
} |
Find all details for each swimmer. | SELECT * FROM swimmer | CREATE TABLE swimmer (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 3198
} |
What are the names of tourist attraction that Alison visited but Rosalind did not visit? | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = 'Alison' EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attrac... | CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_Details VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 3 | 1 | 0 | {
"split": "train",
"row_index": 3403
} |
How many tourists did not make any visit? | SELECT COUNT(*) FROM Visitors WHERE NOT Tourist_ID IN (SELECT Tourist_ID FROM Visits) | CREATE TABLE Visitors (Tourist_ID VARCHAR); CREATE TABLE Visits (Tourist_ID VARCHAR) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 1 | 1 | {
"split": "train",
"row_index": 3404
} |
What is the payment method of the customer that has purchased the least quantity of items? | SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) LIMIT 1 | CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 5 | 0 | 0 | {
"split": "train",
"row_index": 3474
} |
Show the names of all the activities Mark Giuliano participates in. | SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = 'Mark' AND T1.lname = 'Giuliano' | CREATE TABLE Activity (activity_name VARCHAR, actid VARCHAR); CREATE TABLE Faculty (facID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 3840
} |
Give me all the information about hiring. | SELECT * FROM hiring | CREATE TABLE hiring (Id VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 4115
} |
what is the minimum district with incumbent being tom reynolds | SELECT MIN(district) FROM table_13833770_3 WHERE incumbent = 'Tom Reynolds' | CREATE TABLE table_13833770_3 (district INTEGER, incumbent VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 5363
} |
What is the ISIN that has a coupon of 1.02 and a value issued of 447,000,000? | SELECT isin FROM table_21692771_1 WHERE coupon = '1.02' AND amount_issued_[€] = '447,000,000' | CREATE TABLE table_21692771_1 (isin VARCHAR, coupon VARCHAR, amount_issued_ VARCHAR, € VARCHAR) | generic | null | medium | extended | valid | valid | valid | [] | [] | [] | [
"Unsupported column expression: amount_issued_[€]"
] | [
"validated",
"extension_failed",
"extended"
] | null | null | null | null | {
"split": "train",
"row_index": 6841
} |
What is the ISIN that has an amount issued of 223,000,000? | SELECT isin FROM table_21692771_1 WHERE amount_issued_[€] = '223,000,000' | CREATE TABLE table_21692771_1 (isin VARCHAR, amount_issued_ VARCHAR, € VARCHAR) | generic | null | easy | extended | valid | valid | valid | [] | [] | [] | [
"Unsupported column expression: amount_issued_[€]"
] | [
"validated",
"extension_failed",
"extended"
] | null | null | null | null | {
"split": "train",
"row_index": 6842
} |
Name the fat for protein being 4 and calories 80 | SELECT fat__g_ FROM table_2493389_1 WHERE protein__g_ = '4' AND calories__1_tbsp__ = 80 | CREATE TABLE table_2493389_1 (fat__g_ VARCHAR, protein__g_ VARCHAR, calories__1_tbsp__ VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 7475
} |
What was the number of "The Word" segments for episode number 727? | SELECT COUNT(the_wørd) FROM table_25691838_6 WHERE episode__number = 727 | CREATE TABLE table_25691838_6 (the_wørd VARCHAR, episode__number VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 7672
} |
Tell me the 13 january 2009 host | SELECT host FROM table_name_19 WHERE premiere = '13 january 2009' | CREATE TABLE table_name_19 (host VARCHAR, premiere VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 8553
} |
Who was in Lane 5? | SELECT name FROM table_name_84 WHERE lane = 5 | CREATE TABLE table_name_84 (name VARCHAR, lane VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9023
} |
What is the average Area (km²) that shows Excised from shire of cook and a Population smaller than 463 for the community of wujal wujal (bloomfield river)? | SELECT AVG(area__km²_) FROM table_name_30 WHERE excised_from = 'shire of cook' AND population < 463 AND name_of_community = 'wujal wujal (bloomfield river)' | CREATE TABLE table_name_30 (area__km²_ INTEGER, name_of_community VARCHAR, excised_from VARCHAR, population VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9457
} |
What was the deed number with a population of more than 869 in the woorabinda community? | SELECT deed_number FROM table_name_24 WHERE population > 869 AND name_of_community = 'woorabinda' | CREATE TABLE table_name_24 (deed_number VARCHAR, population VARCHAR, name_of_community VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9458
} |
What is the smallest population with an Area (km²) of 1115.4? | SELECT MIN(population) FROM table_name_72 WHERE area__km²_ = 1115.4 | CREATE TABLE table_name_72 (population INTEGER, area__km²_ VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9459
} |
What is the largest Area (km²) for Deed number of 21352022 with a Population of more than 184? | SELECT MAX(area__km²_) FROM table_name_29 WHERE deed_number = '21352022' AND population > 184 | CREATE TABLE table_name_29 (area__km²_ INTEGER, deed_number VARCHAR, population VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9460
} |
What is the result of the match on 16 October 2012 with less than 4 goals? | SELECT result FROM table_name_84 WHERE goal < 4 AND date = '16 october 2012' | CREATE TABLE table_name_84 (result VARCHAR, goal VARCHAR, date VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9461
} |
Which Opposition has a Year smaller than 1977, and a City of manchester? | SELECT opposition FROM table_name_53 WHERE year < 1977 AND city = 'manchester' | CREATE TABLE table_name_53 (opposition VARCHAR, year VARCHAR, city VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9462
} |
Which Score is the lowest one that has a Year of 1868? | SELECT MIN(score) FROM table_name_75 WHERE year = 1868 | CREATE TABLE table_name_75 (score INTEGER, year VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9463
} |
Which Venue has a Year larger than 1868, and an Opposition of derbyshire? | SELECT venue FROM table_name_97 WHERE year > 1868 AND opposition = 'derbyshire' | CREATE TABLE table_name_97 (venue VARCHAR, year VARCHAR, opposition VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9464
} |
Which City has a Score smaller than 30, and a Venue of aigburth? | SELECT city FROM table_name_85 WHERE score < 30 AND venue = 'aigburth' | CREATE TABLE table_name_85 (city VARCHAR, score VARCHAR, venue VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9465
} |
What is the Position of the player with a Height off 188cm? | SELECT position FROM table_name_7 WHERE height = '188cm' | CREATE TABLE table_name_7 (position VARCHAR, height VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9466
} |
What is Alexander Wronski's Position? | SELECT position FROM table_name_31 WHERE name = 'alexander wronski' | CREATE TABLE table_name_31 (position VARCHAR, name VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9467
} |
What is Senyi N'Diaye's Position? | SELECT position FROM table_name_35 WHERE name = 'senyi n''diaye' | CREATE TABLE table_name_35 (position VARCHAR, name VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9468
} |
What was the date of the friendly competition with a score of 4-0? | SELECT date FROM table_name_31 WHERE competition = 'friendly' AND score = '4-0' | CREATE TABLE table_name_31 (date VARCHAR, competition VARCHAR, score VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9469
} |
Where did the competition take place at on August 3, 2005 with a score of 5-0? | SELECT venue FROM table_name_21 WHERE score = '5-0' AND date = 'august 3, 2005' | CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, date VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9470
} |
What was the result of the 2007 gulf cup of nations? | SELECT result FROM table_name_39 WHERE competition = '2007 gulf cup of nations' | CREATE TABLE table_name_39 (result VARCHAR, competition VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9471
} |
What was the result of the competition that had a score of 4-0? | SELECT result FROM table_name_95 WHERE score = '4-0' | CREATE TABLE table_name_95 (result VARCHAR, score VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9472
} |
What is the highest value for co-champions when the PCT is less than 0.786 and MRC championships is 6 with records of 88-45-6? | SELECT MAX(co_champions) FROM table_name_51 WHERE pct < 0.786 AND mrc_championships = 6 AND records = '88-45-6' | CREATE TABLE table_name_51 (co_champions INTEGER, records VARCHAR, pct VARCHAR, mrc_championships VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9787
} |
What was the startup year for the project with a nioc operator? | SELECT year_startup FROM table_name_89 WHERE operator = 'nioc' | CREATE TABLE table_name_89 (year_startup VARCHAR, operator VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9969
} |
What was the name of the project that peaked at 40 and was in the USA? | SELECT project_name FROM table_name_38 WHERE peak = '40' AND country = 'usa' | CREATE TABLE table_name_38 (project_name VARCHAR, peak VARCHAR, country VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9970
} |
What country did the project, Bonga SW; Aparo with a shell operator take place? | SELECT country FROM table_name_53 WHERE operator = 'shell' AND project_name = 'bonga sw; aparo' | CREATE TABLE table_name_53 (country VARCHAR, operator VARCHAR, project_name VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9971
} |
What is the amount of the 1st prize when the Winner was ken green (4)? | SELECT 1 AS st_prize___$__ FROM table_name_56 WHERE winner = 'ken green (4)' | CREATE TABLE table_name_56 (winner VARCHAR) | generic | null | easy | extended | valid | valid | valid | [] | [] | [] | [
"Unsupported column expression: 1"
] | [
"validated",
"extension_failed",
"extended"
] | null | null | null | null | {
"split": "train",
"row_index": 9972
} |
What is the date of the Los Angeles open? | SELECT date FROM table_name_27 WHERE tournament = 'los angeles open' | CREATE TABLE table_name_27 (date VARCHAR, tournament VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9973
} |
What is the name of the Tournament on oct 23? | SELECT tournament FROM table_name_36 WHERE date = 'oct 23' | CREATE TABLE table_name_36 (tournament VARCHAR, date VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9974
} |
Who created One Night in Lisbon in 1941? | SELECT theatre, _studio, _or_network FROM table_name_78 WHERE date = '1941' AND title = 'one night in lisbon' | CREATE TABLE table_name_78 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, date VARCHAR, title VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 2 | {
"split": "train",
"row_index": 9975
} |
what date did reuschel (12-3) lose? | SELECT date FROM table_name_36 WHERE loss = 'reuschel (12-3)' | CREATE TABLE table_name_36 (date VARCHAR, loss VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9976
} |
How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger than 4? | SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = 'elizabeth anastasiou' AND jury > 4 | CREATE TABLE table_name_44 (draw VARCHAR, jury VARCHAR, televote VARCHAR, artist VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9977
} |
Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60? | SELECT MAX(place) FROM table_name_65 WHERE artist = 'nikolas metaxas' AND televote > 60 | CREATE TABLE table_name_65 (place INTEGER, artist VARCHAR, televote VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9978
} |
Which average Total has a Place smaller than 2, and a Draw smaller than 5? | SELECT AVG(total) FROM table_name_99 WHERE place < 2 AND draw < 5 | CREATE TABLE table_name_99 (total INTEGER, place VARCHAR, draw VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9979
} |
Which Date has a Record of 0-2? | SELECT date FROM table_name_14 WHERE record = '0-2' | CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9980
} |
Which Record has a Match Report of recap, and a Result of l 30–20? | SELECT record FROM table_name_92 WHERE match_report = 'recap' AND result = 'l 30–20' | CREATE TABLE table_name_92 (record VARCHAR, match_report VARCHAR, result VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9981
} |
Which Match Report has a Date of october 26, 2008? | SELECT match_report FROM table_name_83 WHERE date = 'october 26, 2008' | CREATE TABLE table_name_83 (match_report VARCHAR, date VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9982
} |
Which Opponent has a Record of 0-3? | SELECT opponent FROM table_name_83 WHERE record = '0-3' | CREATE TABLE table_name_83 (opponent VARCHAR, record VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 9983
} |
Which Record has a Kickoff of 12:00pm cst, and a Game site of arrowhead stadium, and a Week of 15? | SELECT record FROM table_name_41 WHERE kickoff = '12:00pm cst' AND game_site = 'arrowhead stadium' AND week = '15' | CREATE TABLE table_name_41 (record VARCHAR, week VARCHAR, kickoff VARCHAR, game_site VARCHAR) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 9984
} |
Which duchess was born on 9 october 1574? | SELECT ceased_to_be_duchess FROM table_name_34 WHERE birth = '9 october 1574' | CREATE TABLE table_name_34 (ceased_to_be_duchess VARCHAR, birth VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 10113
} |
Which image is of the woman married to william iv? | SELECT image FROM table_name_86 WHERE husband = 'william iv' | CREATE TABLE table_name_86 (image VARCHAR, husband VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 10114
} |
Who is the husband of the image of renata of lorraine? | SELECT husband FROM table_name_87 WHERE image = 'renata of lorraine' | CREATE TABLE table_name_87 (husband VARCHAR, image VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 10115
} |
Who was the husband of marie of baden-sponheim? | SELECT husband FROM table_name_74 WHERE image = 'marie of baden-sponheim' | CREATE TABLE table_name_74 (husband VARCHAR, image VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 10116
} |
Who was the visiting team at the Chicago home game? | SELECT visitor FROM table_name_30 WHERE home = 'chicago' | CREATE TABLE table_name_30 (visitor VARCHAR, home VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 10117
} |
What was the date of the home game for Colorado? | SELECT date FROM table_name_67 WHERE home = 'colorado' | CREATE TABLE table_name_67 (date VARCHAR, home VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 10118
} |
What was the date of the game when St. Louis was the home team? | SELECT date FROM table_name_55 WHERE home = 'st. louis' | CREATE TABLE table_name_55 (date VARCHAR, home VARCHAR) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extension_failed",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 10119
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.