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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Wat is the tax source system code and master customer id of the taxes related to each parking fine id? | SELECT T1.source_system_code, T1.master_customer_id, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id | CREATE TABLE CMI_Cross_References (source_system_code VARCHAR(255), master_customer_id VARCHAR(255), cmi_cross_ref_id VARCHAR(255)); CREATE TABLE Parking_Fines (council_tax_id VARCHAR(255), cmi_cross_ref_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1563
} |
What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'? | SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz' | CREATE TABLE Rent_Arrears (council_tax_id VARCHAR(255), cmi_cross_ref_id VARCHAR(255)); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR(255), cmi_details VARCHAR(255)); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR(255), master_customer_id VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1564
} |
What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'? | SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax' | CREATE TABLE Electoral_Register (electoral_register_id VARCHAR(255), cmi_cross_ref_id VARCHAR(255)); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR(255), source_system_code VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 1565
} |
How many different source system code for the cmi cross references are there? | SELECT COUNT(DISTINCT source_system_code) FROM CMI_cross_references | CREATE TABLE CMI_cross_references (source_system_code VARCHAR(255), id INTEGER PRIMARY KEY) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1566
} |
List the council tax ids and their related cmi cross references of all the parking fines. | SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines | CREATE TABLE parking_fines (council_tax_id VARCHAR(255), cmi_cross_ref_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 1 | {
"split": "train",
"row_index": 1568
} |
How many council taxes are collected for renting arrears ? | SELECT COUNT(*) FROM rent_arrears | CREATE TABLE rent_arrears (Id VARCHAR(255), amount INTEGER) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1569
} |
What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'? | SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman' | CREATE TABLE customer_master_index (master_customer_id VARCHAR(255), cmi_details VARCHAR(255)); CREATE TABLE cmi_cross_references (source_system_code VARCHAR(255), master_customer_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1570
} |
Which cmi cross reference id is not related to any parking taxes? | SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines | CREATE TABLE parking_fines (cmi_cross_ref_id VARCHAR(255), fine_amount INTEGER); CREATE TABLE cmi_cross_references (cmi_cross_ref_id VARCHAR(255), description VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 1 | 0 | {
"split": "train",
"row_index": 1571
} |
Which distinct source system code includes the substring 'en'? | SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%' | CREATE TABLE cmi_cross_references (source_system_code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1572
} |
How many parties are there? | SELECT COUNT(*) FROM party | CREATE TABLE party (Id VARCHAR(255), name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1573
} |
List the themes of parties in ascending order of number of hosts. | SELECT Party_Theme FROM party ORDER BY Number_of_hosts | CREATE TABLE party (Party_Theme VARCHAR(255), Number_of_hosts VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1574
} |
What are the themes and locations of parties? | SELECT Party_Theme, LOCATION FROM party | CREATE TABLE party (Party_Theme VARCHAR(255), LOCATION VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 1 | {
"split": "train",
"row_index": 1575
} |
Show the first year and last year of parties with theme "Spring" or "Teqnology". | SELECT First_year, Last_year FROM party WHERE Party_Theme = 'Spring' OR Party_Theme = 'Teqnology' | CREATE TABLE party (First_year VARCHAR(255), Last_year VARCHAR(255), Party_Theme VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 2 | {
"split": "train",
"row_index": 1576
} |
What is the average number of hosts for parties? | SELECT AVG(Number_of_hosts) FROM party | CREATE TABLE party (Number_of_hosts INTEGER, id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1577
} |
What is the location of the party with the most hosts? | SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1 | CREATE TABLE party (LOCATION VARCHAR(255), Number_of_hosts VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1578
} |
Show different nationalities along with the number of hosts of each nationality. | SELECT Nationality, COUNT(*) FROM HOST GROUP BY Nationality | CREATE TABLE HOST (Nationality VARCHAR(255), host_id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1579
} |
Show the most common nationality of hosts. | SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE HOST (Nationality VARCHAR(255), host_id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1580
} |
Show the nations that have both hosts older than 45 and hosts younger than 35. | SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 | CREATE TABLE HOST (Nationality VARCHAR(255), Age INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 1581
} |
Show the themes of parties and the names of the party hosts. | SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID | CREATE TABLE HOST (Name VARCHAR(255), Host_ID VARCHAR(255)); CREATE TABLE party_host (Host_ID VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE party (Party_Theme VARCHAR(255), Party_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1582
} |
Show the locations of parties and the names of the party hosts in ascending order of the age of the host. | SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age | CREATE TABLE party (Location VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE HOST (Name VARCHAR(255), Host_ID VARCHAR(255), Age VARCHAR(255)); CREATE TABLE party_host (Host_ID VARCHAR(255), Party_ID VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 1583
} |
Show the locations of parties with hosts older than 50. | SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 | CREATE TABLE party (Location VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE party_host (Host_ID VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE HOST (Host_ID VARCHAR(255), Age INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1584
} |
Show the host names for parties with number of hosts greater than 20. | SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 | CREATE TABLE HOST (Name VARCHAR(255), Host_ID VARCHAR(255)); CREATE TABLE party_host (Host_ID VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE party (Party_ID VARCHAR(255), Number_of_hosts INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1585
} |
Show the name and the nationality of the oldest host. | SELECT Name, Nationality FROM HOST ORDER BY Age DESC LIMIT 1 | CREATE TABLE HOST (Name VARCHAR(255), Nationality VARCHAR(255), Age VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1586
} |
List the names of hosts who did not serve as a host of any party in our record. | SELECT Name FROM HOST WHERE NOT Host_ID IN (SELECT Host_ID FROM party_host) | CREATE TABLE HOST (Name VARCHAR(255), Host_ID VARCHAR(255)); CREATE TABLE party_host (Name VARCHAR(255), Host_ID VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 1587
} |
Show all region code and region name sorted by the codes. | SELECT region_code, region_name FROM region ORDER BY region_code | CREATE TABLE region (region_code VARCHAR(255), region_name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1588
} |
List all region names in alphabetical order. | SELECT region_name FROM region ORDER BY region_name | CREATE TABLE region (region_name VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1589
} |
Show names for all regions except for Denmark. | SELECT region_name FROM region WHERE region_name <> 'Denmark' | CREATE TABLE region (region_name VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1590
} |
How many storms had death records? | SELECT COUNT(*) FROM storm WHERE Number_Deaths > 0 | CREATE TABLE storm (Number_Deaths INTEGER, id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1591
} |
List name, dates active, and number of deaths for all storms with at least 1 death. | SELECT name, dates_active, number_deaths FROM storm WHERE number_deaths >= 1 | CREATE TABLE storm (name VARCHAR(255), dates_active VARCHAR(255), number_deaths VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1592
} |
List name and damage for all storms in a descending order of max speed. | SELECT name, damage_millions_USD FROM storm ORDER BY max_speed DESC | CREATE TABLE storm (name VARCHAR(255), damage_millions_USD VARCHAR(255), max_speed VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1595
} |
How many regions are affected? | SELECT COUNT(DISTINCT region_id) FROM affected_region | CREATE TABLE affected_region (region_id VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1596
} |
Show the name for regions not affected. | SELECT region_name FROM region WHERE NOT region_id IN (SELECT region_id FROM affected_region) | CREATE TABLE region (region_name VARCHAR(255), region_id VARCHAR(255)); CREATE TABLE affected_region (region_name VARCHAR(255), region_id VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 1597
} |
Show the name for regions and the number of storms for each region. | SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id | CREATE TABLE region (region_name VARCHAR(255), region_id VARCHAR(255)); CREATE TABLE affected_region (region_id VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1598
} |
List the name for storms and the number of affected regions for each storm. | SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | CREATE TABLE affected_region (storm_id VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE storm (name VARCHAR(255), storm_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1599
} |
What is the storm name and max speed which affected the greatest number of regions? | SELECT T1.name, T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE storm (name VARCHAR(255), max_speed VARCHAR(255), storm_id VARCHAR(255)); CREATE TABLE affected_region (storm_id VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 4 | 0 | 1 | {
"split": "train",
"row_index": 1600
} |
Show the name of storms which don't have affected region in record. | SELECT name FROM storm WHERE NOT storm_id IN (SELECT storm_id FROM affected_region) | CREATE TABLE affected_region (name VARCHAR(255), storm_id VARCHAR(255)); CREATE TABLE storm (name VARCHAR(255), storm_id VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 1601
} |
Show storm name with at least two regions and 10 cities affected. | SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10 | CREATE TABLE affected_region (storm_id VARCHAR(255), number_city_affected INTEGER); CREATE TABLE storm (name VARCHAR(255), storm_id VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 1 | 0 | {
"split": "train",
"row_index": 1602
} |
What are the region names affected by the storm with a number of deaths of least 10? | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 | CREATE TABLE region (region_name VARCHAR(255), region_id VARCHAR(255)); CREATE TABLE affected_region (region_id VARCHAR(255), storm_id VARCHAR(255)); CREATE TABLE storm (storm_id VARCHAR(255), number_deaths VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1604
} |
Show all storm names affecting region "Denmark". | SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' | CREATE TABLE region (region_id VARCHAR(255), region_name VARCHAR(255)); CREATE TABLE affected_region (region_id VARCHAR(255), storm_id VARCHAR(255)); CREATE TABLE storm (name VARCHAR(255), storm_id VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1605
} |
Show the region name with at least two storms. | SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING COUNT(*) >= 2 | CREATE TABLE region (region_name VARCHAR(255), region_id VARCHAR(255)); CREATE TABLE affected_region (region_id VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1606
} |
Find the names of the regions which were affected by the storm that killed the greatest number of people. | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1 | CREATE TABLE region (region_name VARCHAR(255), region_id VARCHAR(255)); CREATE TABLE affected_region (region_id VARCHAR(255), storm_id VARCHAR(255)); CREATE TABLE storm (storm_id VARCHAR(255), Number_Deaths VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 4 | 0 | 0 | {
"split": "train",
"row_index": 1607
} |
Find the name of the storm that affected both Afghanistan and Albania regions. | SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id... | CREATE TABLE storm (Name VARCHAR(255), storm_id VARCHAR(255)); CREATE TABLE affected_region (region_id VARCHAR(255), storm_id VARCHAR(255)); CREATE TABLE region (region_id VARCHAR(255), Region_name VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 1 | 0 | {
"split": "train",
"row_index": 1608
} |
How many counties are there in total? | SELECT COUNT(*) FROM county | CREATE TABLE county (Id VARCHAR(255), Name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1609
} |
Show the county name and population of all counties. | SELECT County_name, Population FROM county | CREATE TABLE county (County_name VARCHAR(255), Population VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 1 | {
"split": "train",
"row_index": 1610
} |
Show the average population of all counties. | SELECT AVG(Population) FROM county | CREATE TABLE county (Population INTEGER, County_name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1611
} |
Return the maximum and minimum population among all counties. | SELECT MAX(Population), MIN(Population) FROM county | CREATE TABLE county (Population INTEGER, County_name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 2 | {
"split": "train",
"row_index": 1612
} |
Show all the distinct districts for elections. | SELECT DISTINCT District FROM election | CREATE TABLE election (District VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1613
} |
Show the zip code of the county with name "Howard". | SELECT Zip_code FROM county WHERE County_name = 'Howard' | CREATE TABLE county (Zip_code VARCHAR(255), County_name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1614
} |
Show the delegate from district 1 in election. | SELECT Delegate FROM election WHERE District = 1 | CREATE TABLE election (Delegate VARCHAR(255), District VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1615
} |
Show the delegate and committee information of elections. | SELECT Delegate, Committee FROM election | CREATE TABLE election (Delegate VARCHAR(255), Committee VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 1 | {
"split": "train",
"row_index": 1616
} |
How many distinct governors are there? | SELECT COUNT(DISTINCT Governor) FROM party | CREATE TABLE party (Governor VARCHAR(255), Party VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1617
} |
Show the lieutenant governor and comptroller from the democratic party. | SELECT Lieutenant_Governor, Comptroller FROM party WHERE Party = 'Democratic' | CREATE TABLE party (Lieutenant_Governor VARCHAR(255), Comptroller VARCHAR(255), Party VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1618
} |
In which distinct years was the governor "Eliot Spitzer"? | SELECT DISTINCT YEAR FROM party WHERE Governor = 'Eliot Spitzer' | CREATE TABLE party (YEAR VARCHAR(255), Governor VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1619
} |
Show the delegates and the names of county they belong to. | SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District | CREATE TABLE election (Delegate VARCHAR(255), District VARCHAR(255)); CREATE TABLE county (County_name VARCHAR(255), County_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1621
} |
Which delegates are from counties with population smaller than 100000? | SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 | CREATE TABLE election (Delegate VARCHAR(255), District VARCHAR(255)); CREATE TABLE county (County_id VARCHAR(255), Population INTEGER) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1622
} |
How many distinct delegates are from counties with population larger than 50000? | SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 | CREATE TABLE election (Delegate VARCHAR(255), District VARCHAR(255)); CREATE TABLE county (County_id VARCHAR(255), Population INTEGER) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1623
} |
What are the names of the county that the delegates on "Appropriations" committee belong to? | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = 'Appropriations' | CREATE TABLE election (District VARCHAR(255), Committee VARCHAR(255)); CREATE TABLE county (County_name VARCHAR(255), County_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1624
} |
Show the delegates and the names of the party they belong to. | SELECT T1.Delegate, T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID | CREATE TABLE election (Delegate VARCHAR(255), Party VARCHAR(255)); CREATE TABLE party (Party VARCHAR(255), Party_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1625
} |
Who were the governors of the parties associated with delegates from district 1? | SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 | CREATE TABLE party (Governor VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE election (Party VARCHAR(255), District VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1626
} |
Who were the comptrollers of the parties associated with the delegates from district 1 or district 2? | SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 | CREATE TABLE party (Comptroller VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE election (Party VARCHAR(255), District VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 1627
} |
Return all the committees that have delegates from Democratic party. | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic' | CREATE TABLE election (Committee VARCHAR(255), Party VARCHAR(255)); CREATE TABLE party (Party_ID VARCHAR(255), Party VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1628
} |
Show the name of each county along with the corresponding number of delegates from that county. | SELECT T1.County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id | CREATE TABLE election (District VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE county (County_name VARCHAR(255), County_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1629
} |
Show the name of each party and the corresponding number of delegates from that party. | SELECT T2.Party, COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party | CREATE TABLE election (Party VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE party (Party VARCHAR(255), Party_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1630
} |
Return the names of all counties sorted by population in ascending order. | SELECT County_name FROM county ORDER BY Population | CREATE TABLE county (County_name VARCHAR(255), Population VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1631
} |
Return the names of all counties sorted by county name in descending alphabetical order. | SELECT County_name FROM county ORDER BY County_name DESC | CREATE TABLE county (County_name VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1632
} |
Show the name of the county with the biggest population. | SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 | CREATE TABLE county (County_name VARCHAR(255), Population VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1633
} |
Show the 3 counties with the smallest population. | SELECT County_name FROM county ORDER BY Population LIMIT 3 | CREATE TABLE county (County_name VARCHAR(255), Population VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1634
} |
Show the names of counties that have at least two delegates. | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2 | CREATE TABLE election (District VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE county (County_name VARCHAR(255), County_id VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1635
} |
Show the name of the party that has at least two records. | SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2 | CREATE TABLE party (Party VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1636
} |
Show the name of the party that has the most delegates. | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE election (Party VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE party (Party VARCHAR(255), Party_ID VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 4 | 0 | 0 | {
"split": "train",
"row_index": 1637
} |
Show the people that have been governor the most times. | SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE party (Governor VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1638
} |
Show the people that have been comptroller the most times and the corresponding number of times. | SELECT Comptroller, COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE party (Comptroller VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 2 | {
"split": "train",
"row_index": 1639
} |
What are the names of parties that do not have delegates in election? | SELECT Party FROM party WHERE NOT Party_ID IN (SELECT Party FROM election) | CREATE TABLE election (Party VARCHAR(255), Party_ID VARCHAR(255)); CREATE TABLE party (Party VARCHAR(255), Party_ID VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 1640
} |
What are the names of parties that have both delegates on "Appropriations" committee and | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = 'Appropriations' INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = 'Economic Matters' | CREATE TABLE election (Party VARCHAR(255), Committee VARCHAR(255)); CREATE TABLE party (Party VARCHAR(255), Party_ID VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 1 | 0 | {
"split": "train",
"row_index": 1641
} |
Which committees have delegates from both democratic party and liberal party? | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic' INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Liberal' | CREATE TABLE election (Committee VARCHAR(255), Party VARCHAR(255)); CREATE TABLE party (Party_ID VARCHAR(255), Party VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 1 | 0 | {
"split": "train",
"row_index": 1642
} |
How many journalists are there? | SELECT COUNT(*) FROM journalist | CREATE TABLE journalist (Id VARCHAR(255), name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1643
} |
List the names of journalists in ascending order of years working. | SELECT Name FROM journalist ORDER BY Years_working | CREATE TABLE journalist (Name VARCHAR(255), Years_working VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1644
} |
What are the nationalities and ages of journalists? | SELECT Nationality, Age FROM journalist | CREATE TABLE journalist (Nationality VARCHAR(255), Age VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 1 | {
"split": "train",
"row_index": 1645
} |
Show the names of journalists from "England" or "Wales". | SELECT Name FROM journalist WHERE Nationality = 'England' OR Nationality = 'Wales' | CREATE TABLE journalist (Name VARCHAR(255), Nationality VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1646
} |
What is the average number of years spent working as a journalist? | SELECT AVG(Years_working) FROM journalist | CREATE TABLE journalist (Years_working INTEGER, name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1647
} |
What is the nationality of the journalist with the largest number of years working? | SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1 | CREATE TABLE journalist (Nationality VARCHAR(255), Years_working VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 1648
} |
Show the different nationalities and the number of journalists of each nationality. | SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality | CREATE TABLE journalist (Nationality VARCHAR(255), name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1649
} |
Show the most common nationality for journalists. | SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE journalist (Nationality VARCHAR(255), name VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1650
} |
Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working. | SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3 | CREATE TABLE journalist (Nationality VARCHAR(255), Years_working INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 1651
} |
Show the dates, places, and names of events in descending order of the attendance. | SELECT Date, Name, venue FROM event ORDER BY Event_Attendance DESC | CREATE TABLE event (Date VARCHAR(255), Name VARCHAR(255), venue VARCHAR(255), Event_Attendance VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1652
} |
Show the names of journalists and the dates of the events they reported. | SELECT T3.Name, T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID | CREATE TABLE journalist (Name VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE news_report (Event_ID VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE event (Date VARCHAR(255), Event_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1653
} |
Show the names of journalists and the names of the events they reported in ascending order | SELECT T3.Name, T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance | CREATE TABLE journalist (Name VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE news_report (Event_ID VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE event (Name VARCHAR(255), Event_ID VARCHAR(255), Event_Attendance VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 1654
} |
Show the names of journalists and the number of events they reported. | SELECT T3.Name, COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name | CREATE TABLE journalist (Name VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE news_report (Event_ID VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE event (Event_ID VARCHAR(255), Event_Name VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 1655
} |
Show the names of journalists that have reported more than one event. | SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1 | CREATE TABLE journalist (Name VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE news_report (Event_ID VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE event (Event_ID VARCHAR(255), Event_Name VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 1656
} |
List the names of journalists who have not reported any event. | SELECT Name FROM journalist WHERE NOT journalist_ID IN (SELECT journalist_ID FROM news_report) | CREATE TABLE journalist (Name VARCHAR(255), journalist_ID VARCHAR(255)); CREATE TABLE news_report (Name VARCHAR(255), journalist_ID VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 1657
} |
what are the average and maximum attendances of all events? | SELECT AVG(Event_Attendance), MAX(Event_Attendance) FROM event | CREATE TABLE event (Event_Attendance INTEGER, Event_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 2 | {
"split": "train",
"row_index": 1658
} |
List the event venues and names that have the top 2 most number of people attended. | SELECT venue, name FROM event ORDER BY Event_Attendance DESC LIMIT 2 | CREATE TABLE event (venue VARCHAR(255), name VARCHAR(255), Event_Attendance VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1660
} |
Show me all the restaurants. | SELECT ResName FROM Restaurant | CREATE TABLE Restaurant (ResName VARCHAR(255), Address VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1661
} |
What is the address of the restaurant Subway? | SELECT Address FROM Restaurant WHERE ResName = 'Subway' | CREATE TABLE Restaurant (Address VARCHAR(255), ResName VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1662
} |
What is the rating of the restaurant Subway? | SELECT Rating FROM Restaurant WHERE ResName = 'Subway' | CREATE TABLE Restaurant (Rating VARCHAR(255), ResName VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1663
} |
List all restaurant types. | SELECT ResTypeName FROM Restaurant_Type | CREATE TABLE Restaurant_Type (ResTypeName VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 1664
} |
What is the description of the restaurant type Sandwich? | SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = 'Sandwich' | CREATE TABLE Restaurant_Type (ResTypeDescription VARCHAR(255), ResTypeName VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 1665
} |
Which restaurants have highest rating? List the restaurant name and its rating. | SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1 | CREATE TABLE Restaurant (ResName VARCHAR(255), Rating VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 1666
} |
What is the age of student Linda Smith? | SELECT Age FROM Student WHERE Fname = 'Linda' AND Lname = 'Smith' | CREATE TABLE Student (Age VARCHAR(255), Fname VARCHAR(255), Lname VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1667
} |
What is the gender of the student Linda Smith? | SELECT Sex FROM Student WHERE Fname = 'Linda' AND Lname = 'Smith' | CREATE TABLE Student (Sex VARCHAR(255), Fname VARCHAR(255), Lname VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 1668
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.