db_id stringclasses 215
values | question stringlengths 16 325 | gold_sql stringlengths 18 804 | source stringclasses 2
values | evidence stringlengths 0 673 | schema_text stringclasses 215
values |
|---|---|---|---|---|---|
law_episode | In which organization did Constantine Makris win the most awards? | SELECT T2.organization FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Constantine Makris' AND T2.result = 'Winner' GROUP BY T2.organization ORDER BY COUNT(T2.award_id) DESC LIMIT 1 | bird | win refers to result = 'Winner'; the most awards refers to max(count(award_id)) | 【DB_ID】 law_episode
# Table: Episode
[
(episode_id:TEXT, PK, examples=['tt0629204', 'tt0629228', 'tt0629170']),
(series:TEXT, examples=['Law and Order']),
(season:INTEGER, examples=[9]),
(episode:INTEGER, examples=[1, 2, 3]),
(number_in_series:INTEGER, examples=[182, 183, 184]),
(title:TEXT, examples=['Cher... |
customers_card_transactions | What are the full names of customers who have accounts? | SELECT DISTINCT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id | spider | 【DB_ID】 customers_card_transactions
# Table: Accounts
[
(account_id:INTEGER, PK, examples=[1, 2, 3]),
(customer_id:INTEGER, examples=[6, 14, 9]),
(account_name:VARCHAR(50), examples=['338', '562', '162']),
(other_account_details:VARCHAR(255), examples=['Regular', 'VIP']),
]
# Table: Customers
[
(customer_id:I... | |
bike_1 | How many days had both mean humidity above 50 and mean visibility above 8? | SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8 | spider | 【DB_ID】 bike_1
# Table: station
[
(id:INTEGER, PK, examples=[2, 3, 4]),
(name:TEXT, examples=['San Jose Diridon Caltrain Station', 'San Jose Civic Center', 'Santa Clara at Almaden']),
(lat:NUMERIC, examples=[37.329732, 37.330698, 37.333988]),
(long:NUMERIC, examples=[-121.90178200000001, -121.888979, -121.89490... | |
works_cycles | What's Lynn N Tsoflias's job title? | "SELECT T2.JobTitle FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.Business(...TRUNCATED) | bird | "【DB_ID】 works_cycles\n# Table: CountryRegion\n[\n (CountryRegionCode:TEXT, PK, examples=['Cou'(...TRUNCATED) | |
language_corpus | Please list the page IDs of all the Wikipedia pages that have the word "nombre" appeared on it. | "SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nom(...TRUNCATED) | bird | nombre refers to word = 'nombre'; page IDs refers to pid | "【DB_ID】 language_corpus\n# Table: langs\n[\n (lid:INTEGER, PK, examples=[1]),\n (lang:TEXT, e(...TRUNCATED) |
store_1 | What are the total amount of money in the invoices billed from Chicago, Illinois? | SELECT sum(total) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"; | spider | "【DB_ID】 store_1\n# Table: artists\n[\n (id:INTEGER, PK, examples=[1, 2, 3]),\n (name:VARCHAR((...TRUNCATED) | |
books | What is the number of pages of the book in the order ID 1167? | "SELECT T1.num_pages FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2(...TRUNCATED) | bird | number of pages refers to num_pages | "【DB_ID】 books\n# Table: address_status\n[\n (status_id:INTEGER, PK, examples=[1, 2]),\n (addr(...TRUNCATED) |
beer_factory | What brands of beer has Peg Winchester consumed? | "SELECT T3.BrandName FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.Cust(...TRUNCATED) | bird | brands of beer refers to BrandName; | "【DB_ID】 beer_factory\n# Table: customers\n[\n (CustomerID:INTEGER, PK, examples=[101811, 10350(...TRUNCATED) |
student_assessment | What is the id of the candidate who most recently accessed the course? | SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1 | spider | "【DB_ID】 student_assessment\n# Table: Addresses\n[\n (address_id:INTEGER, PK, examples=[5, 9, 2(...TRUNCATED) | |
university_basketball | What are the public schools and what are their locations? | SELECT school , LOCATION FROM university WHERE affiliation = 'Public' | spider | "【DB_ID】 university_basketball\n# Table: basketball_match\n[\n (Team_ID:INT, PK, examples=[1, 2(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 11