question_id int64 0 16.1k | db_id stringclasses 259
values | dber_id stringlengths 15 29 | question stringlengths 16 325 | SQL stringlengths 18 1.25k | tokens listlengths 4 62 | entities listlengths 0 21 | entity_to_token listlengths 20 20 | dber_tags listlengths 4 62 |
|---|---|---|---|---|---|---|---|---|
5,049 | tracking_grants_for_research | spider:train_spider.json:4333 | What is the type of the organization with the most research staff? | SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"type",
"of",
"the",
"organization",
"with",
"the",
"most",
"research",
"staff",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "employer_organisation_id"
},
{
"id": 0,
"type": "column",
"value": "organisation_type"
},
{
"id": 3,
"type": "column",
"value": "organisation_id"
},
{
"id": 2,
"type": "table",
"value": "research_staff"
},
{
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10,
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
5,051 | roller_coaster | spider:train_spider.json:6205 | What are the lengths and heights of roller coasters? | SELECT LENGTH , Height FROM roller_coaster | [
"What",
"are",
"the",
"lengths",
"and",
"heights",
"of",
"roller",
"coasters",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "roller_coaster"
},
{
"id": 1,
"type": "column",
"value": "length"
},
{
"id": 2,
"type": "column",
"value": "height"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7,
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
5,052 | election | spider:train_spider.json:2801 | Find the committees that have delegates both from from the democratic party and the 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" | [
"Find",
"the",
"committees",
"that",
"have",
"delegates",
"both",
"from",
"from",
"the",
"democratic",
"party",
"and",
"the",
"liberal",
"party",
"."
] | [
{
"id": 4,
"type": "column",
"value": "Democratic"
},
{
"id": 0,
"type": "column",
"value": "committee"
},
{
"id": 1,
"type": "table",
"value": "election"
},
{
"id": 6,
"type": "column",
"value": "party_id"
},
{
"id": 5,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,053 | thrombosis_prediction | bird:dev.json:1299 | Among the patients with the normal level of triglyceride, how many of them have other symptoms observed? | SELECT COUNT(T1.ID) FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG < 200 AND T1.Symptoms IS NOT NULL | [
"Among",
"the",
"patients",
"with",
"the",
"normal",
"level",
"of",
"triglyceride",
",",
"how",
"many",
"of",
"them",
"have",
"other",
"symptoms",
"observed",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "examination"
},
{
"id": 1,
"type": "table",
"value": "laboratory"
},
{
"id": 5,
"type": "column",
"value": "symptoms"
},
{
"id": 4,
"type": "value",
"value": "200"
},
{
"id": 2,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
16
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
5,054 | e_commerce | bird:test.json:49 | What are the ids , names , prices , and colors of all products that have been listed in less than two orders ? | select t1.product_id , t1.product_name , t1.product_price , t1.product_color from products as t1 join order_items as t2 on t1.product_id = t2.product_id join orders as t3 on t2.order_id = t3.order_id group by t1.product_id having count(*) < 2 | [
"What",
"are",
"the",
"ids",
",",
"names",
",",
"prices",
",",
"and",
"colors",
"of",
"all",
"products",
"that",
"have",
"been",
"listed",
"in",
"less",
"than",
"two",
"orders",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "product_price"
},
{
"id": 3,
"type": "column",
"value": "product_color"
},
{
"id": 1,
"type": "column",
"value": "product_name"
},
{
"id": 7,
"type": "table",
"value": "order_items"
},
{
"id": 0,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
22
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,055 | law_episode | bird:train.json:1291 | How many roles did Julia Roberts play in the series? | SELECT COUNT(T1.role) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Julia Roberts' | [
"How",
"many",
"roles",
"did",
"Julia",
"Roberts",
"play",
"in",
"the",
"series",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Julia Roberts"
},
{
"id": 5,
"type": "column",
"value": "person_id"
},
{
"id": 0,
"type": "table",
"value": "credit"
},
{
"id": 1,
"type": "table",
"value": "person"
},
{
"id": 2,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
5,056 | match_season | spider:train_spider.json:1096 | Show the most common position of players in match seasons. | SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1 | [
"Show",
"the",
"most",
"common",
"position",
"of",
"players",
"in",
"match",
"seasons",
"."
] | [
{
"id": 0,
"type": "table",
"value": "match_season"
},
{
"id": 1,
"type": "column",
"value": "position"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8,
9
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
5,057 | movie_3 | bird:train.json:9384 | Provide the list of the longest movies. Arrange these titles in alphabetical order. | SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film ) | [
"Provide",
"the",
"list",
"of",
"the",
"longest",
"movies",
".",
"Arrange",
"these",
"titles",
"in",
"alphabetical",
"order",
"."
] | [
{
"id": 2,
"type": "column",
"value": "length"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 0,
"type": "table",
"value": "film"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
5,058 | planet_1 | bird:test.json:1878 | What is the package number and weight of the heaviest package that was sent by a client named John or something similar? | SELECT T1.PackageNumber , max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE "John"; | [
"What",
"is",
"the",
"package",
"number",
"and",
"weight",
"of",
"the",
"heaviest",
"package",
"that",
"was",
"sent",
"by",
"a",
"client",
"named",
"John",
"or",
"something",
"similar",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "packagenumber"
},
{
"id": 7,
"type": "column",
"value": "accountnumber"
},
{
"id": 1,
"type": "table",
"value": "package"
},
{
"id": 2,
"type": "table",
"value": "client"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
16
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
18
]
},... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
5,059 | world | bird:train.json:7862 | What is the capital city of the Philippines? | SELECT T1.Capital FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Philipiines' | [
"What",
"is",
"the",
"capital",
"city",
"of",
"the",
"Philippines",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Philipiines"
},
{
"id": 6,
"type": "column",
"value": "countrycode"
},
{
"id": 0,
"type": "column",
"value": "capital"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 2,
"type": "table",
"v... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
5,060 | soccer_2 | spider:train_spider.json:4960 | What are the unique types of player positions in the tryout? | SELECT count(DISTINCT pPos) FROM tryout | [
"What",
"are",
"the",
"unique",
"types",
"of",
"player",
"positions",
"in",
"the",
"tryout",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "tryout"
},
{
"id": 1,
"type": "column",
"value": "ppos"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,061 | customers_and_addresses | spider:train_spider.json:6084 | What are the cities no customers live in? | SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id) | [
"What",
"are",
"the",
"cities",
"no",
"customers",
"live",
"in",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "customer_addresses"
},
{
"id": 5,
"type": "column",
"value": "customer_id"
},
{
"id": 4,
"type": "column",
"value": "address_id"
},
{
"id": 0,
"type": "table",
"value": "addresses"
},
{
"id": 2,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,062 | movies_4 | bird:train.json:562 | Which character did Orlando Bloom play in the movie Pirates of the Caribbean: The Curse of the Black Pearl? | SELECT T2.character_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Pirates of the Caribbean: The Curse of the Black Pearl' AND T3.person_name = 'Orlando Bloom' | [
"Which",
"character",
"did",
"Orlando",
"Bloom",
"play",
"in",
"the",
"movie",
"Pirates",
"of",
"the",
"Caribbean",
":",
"The",
"Curse",
"of",
"the",
"Black",
"Pearl",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Pirates of the Caribbean: The Curse of the Black Pearl"
},
{
"id": 0,
"type": "column",
"value": "character_name"
},
{
"id": 8,
"type": "value",
"value": "Orlando Bloom"
},
{
"id": 7,
"type": "column",
"value": "person... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,063 | computer_student | bird:train.json:1031 | What is the average number of professional or master/undergraduate courses being taught by each professor? | SELECT CAST(COUNT(T1.course_id) AS REAL) / COUNT(DISTINCT T2.p_id) FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_500' | [
"What",
"is",
"the",
"average",
"number",
"of",
"professional",
"or",
"master",
"/",
"undergraduate",
"courses",
"being",
"taught",
"by",
"each",
"professor",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "courselevel"
},
{
"id": 3,
"type": "value",
"value": "Level_500"
},
{
"id": 4,
"type": "column",
"value": "course_id"
},
{
"id": 1,
"type": "table",
"value": "taughtby"
},
{
"id": 0,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
13,
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"t... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O"
] |
5,064 | language_corpus | bird:train.json:5765 | State the total pages of the words that has repeated times of 2593. | SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences = 2593 | [
"State",
"the",
"total",
"pages",
"of",
"the",
"words",
"that",
"has",
"repeated",
"times",
"of",
"2593",
"."
] | [
{
"id": 1,
"type": "table",
"value": "langs_words"
},
{
"id": 2,
"type": "column",
"value": "occurrences"
},
{
"id": 0,
"type": "table",
"value": "langs"
},
{
"id": 4,
"type": "column",
"value": "pages"
},
{
"id": 3,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,065 | real_estate_rentals | bird:test.json:1419 | What is the id of the property that had the lowest requested price from the vendor, and what was that price? | SELECT property_id , vendor_requested_price FROM Properties ORDER BY vendor_requested_price LIMIT 1; | [
"What",
"is",
"the",
"i",
"d",
"of",
"the",
"property",
"that",
"had",
"the",
"lowest",
"requested",
"price",
"from",
"the",
"vendor",
",",
"and",
"what",
"was",
"that",
"price",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "vendor_requested_price"
},
{
"id": 1,
"type": "column",
"value": "property_id"
},
{
"id": 0,
"type": "table",
"value": "properties"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,066 | wrestler | spider:train_spider.json:1859 | What are the names of wrestlers and their teams in elimination, ordered descending by days held? | SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC | [
"What",
"are",
"the",
"names",
"of",
"wrestlers",
"and",
"their",
"teams",
"in",
"elimination",
",",
"ordered",
"descending",
"by",
"days",
"held",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "elimination"
},
{
"id": 5,
"type": "column",
"value": "wrestler_id"
},
{
"id": 4,
"type": "column",
"value": "days_held"
},
{
"id": 3,
"type": "table",
"value": "wrestler"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
15,
16
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,068 | works_cycles | bird:train.json:7058 | For the employees who have the highest pay frequency, please list their vacation hours. | SELECT T2.VacationHours FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.BusinessEntityID = ( SELECT BusinessEntityID FROM EmployeePayHistory ORDER BY Rate DESC LIMIT 1 ) | [
"For",
"the",
"employees",
"who",
"have",
"the",
"highest",
"pay",
"frequency",
",",
"please",
"list",
"their",
"vacation",
"hours",
"."
] | [
{
"id": 1,
"type": "table",
"value": "employeepayhistory"
},
{
"id": 3,
"type": "column",
"value": "businessentityid"
},
{
"id": 0,
"type": "column",
"value": "vacationhours"
},
{
"id": 2,
"type": "table",
"value": "employee"
},
{
"id": 4,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
13,
14
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,069 | student_loan | bird:train.json:4377 | How many students are unemployed and have payment due? | SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN no_payment_due AS T2 ON T1.`name` = T2.`name` | [
"How",
"many",
"students",
"are",
"unemployed",
"and",
"have",
"payment",
"due",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "no_payment_due"
},
{
"id": 0,
"type": "table",
"value": "unemployed"
},
{
"id": 2,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
7,
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
5,070 | music_1 | spider:train_spider.json:3601 | What are the maximum duration and resolution of songs grouped and ordered by languages? | SELECT max(T1.duration) , max(T2.resolution) , T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages | [
"What",
"are",
"the",
"maximum",
"duration",
"and",
"resolution",
"of",
"songs",
"grouped",
"and",
"ordered",
"by",
"languages",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "resolution"
},
{
"id": 0,
"type": "column",
"value": "languages"
},
{
"id": 3,
"type": "column",
"value": "duration"
},
{
"id": 1,
"type": "table",
"value": "files"
},
{
"id": 2,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,071 | county_public_safety | spider:train_spider.json:2532 | How many counties are there? | SELECT count(*) FROM county_public_safety | [
"How",
"many",
"counties",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "county_public_safety"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,072 | ice_hockey_draft | bird:train.json:6976 | Who is the most valuable player who played in the 2000-2001 season of the International league? | SELECT DISTINCT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.LEAGUE = 'International' ORDER BY T1.P DESC LIMIT 1 | [
"Who",
"is",
"the",
"most",
"valuable",
"player",
"who",
"played",
"in",
"the",
"2000",
"-",
"2001",
"season",
"of",
"the",
"International",
"league",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "International"
},
{
"id": 1,
"type": "table",
"value": "seasonstatus"
},
{
"id": 0,
"type": "column",
"value": "playername"
},
{
"id": 2,
"type": "table",
"value": "playerinfo"
},
{
"id": 6,
"type": "value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
13
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,073 | scientist_1 | spider:train_spider.json:6505 | Select the project names which are not assigned yet. | SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo) | [
"Select",
"the",
"project",
"names",
"which",
"are",
"not",
"assigned",
"yet",
"."
] | [
{
"id": 3,
"type": "table",
"value": "assignedto"
},
{
"id": 0,
"type": "table",
"value": "projects"
},
{
"id": 4,
"type": "column",
"value": "project"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
5,074 | boat_1 | bird:test.json:856 | What are the different names of sailors who are older than some other sailor with a rating larger than 7? | SELECT DISTINCT name FROM Sailors WHERE age > (SELECT min(age) FROM Sailors WHERE rating > 7); | [
"What",
"are",
"the",
"different",
"names",
"of",
"sailors",
"who",
"are",
"older",
"than",
"some",
"other",
"sailor",
"with",
"a",
"rating",
"larger",
"than",
"7",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "sailors"
},
{
"id": 3,
"type": "column",
"value": "rating"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "age"
},
{
"id": 4,
"type": "value",
"value": "7"
}
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
5,075 | formula_1 | bird:dev.json:928 | Which driver ranked the first in the Canadian Grand Prix in 2007? Please give his reference name. | SELECT T3.forename, T3.surname, T3.driverRef FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Canadian Grand Prix' AND T2.rank = 1 AND T1.year = 2007 | [
"Which",
"driver",
"ranked",
"the",
"first",
"in",
"the",
"Canadian",
"Grand",
"Prix",
"in",
"2007",
"?",
"Please",
"give",
"his",
"reference",
"name",
"."
] | [
{
"id": 8,
"type": "value",
"value": "Canadian Grand Prix"
},
{
"id": 2,
"type": "column",
"value": "driverref"
},
{
"id": 0,
"type": "column",
"value": "forename"
},
{
"id": 6,
"type": "column",
"value": "driverid"
},
{
"id": 1,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
1
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,076 | language_corpus | bird:train.json:5712 | What is the word id for title "Sometent"? | SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Sometent' | [
"What",
"is",
"the",
"word",
"i",
"d",
"for",
"title",
"\"",
"Sometent",
"\"",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "pages_words"
},
{
"id": 4,
"type": "value",
"value": "Sometent"
},
{
"id": 1,
"type": "table",
"value": "pages"
},
{
"id": 3,
"type": "column",
"value": "title"
},
{
"id": 0,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
5,077 | hockey | bird:train.json:7640 | Which coach has the best performance for team DET in history? What was the winning percentage? Name the coach and the year he coached. | SELECT CAST(T2.W AS REAL) / T2.G, T1.firstName, T1.lastName, T2.year FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN ( SELECT coachID FROM Coaches ORDER BY CAST(w AS REAL) / g DESC LIMIT 1 ) AS T3 ON T2.coachID = T3.coachID | [
"Which",
"coach",
"has",
"the",
"best",
"performance",
"for",
"team",
"DET",
"in",
"history",
"?",
"What",
"was",
"the",
"winning",
"percentage",
"?",
"Name",
"the",
"coach",
"and",
"the",
"year",
"he",
"coached",
"."
] | [
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 5,
"type": "table",
"value": "coaches"
},
{
"id": 6,
"type": "column",
"value": "coachid"
},
{
"id": 4,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": [
23
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13,
14
]
},
{
"entity_... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
5,078 | law_episode | bird:train.json:1249 | How many 10-star votes were given to the episode titled "Cherished"? | SELECT T2.votes FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished' AND T2.stars = 10 | [
"How",
"many",
"10",
"-",
"star",
"votes",
"were",
"given",
"to",
"the",
"episode",
"titled",
"\"",
"Cherished",
"\"",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "episode_id"
},
{
"id": 5,
"type": "value",
"value": "Cherished"
},
{
"id": 1,
"type": "table",
"value": "episode"
},
{
"id": 0,
"type": "column",
"value": "votes"
},
{
"id": 4,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
5,079 | cre_Theme_park | spider:train_spider.json:5920 | Find the names and descriptions of the photos taken at the tourist attraction called "film festival". | SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival" | [
"Find",
"the",
"names",
"and",
"descriptions",
"of",
"the",
"photos",
"taken",
"at",
"the",
"tourist",
"attraction",
"called",
"\"",
"film",
"festival",
"\"",
"."
] | [
{
"id": 5,
"type": "column",
"value": "tourist_attraction_id"
},
{
"id": 3,
"type": "table",
"value": "tourist_attractions"
},
{
"id": 4,
"type": "column",
"value": "film festival"
},
{
"id": 1,
"type": "column",
"value": "description"
},
{
"id": 2... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": [
15,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
5,080 | boat_1 | bird:test.json:866 | What are the ids of sailors who reserved red and blue boats? | SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = 'red' INTERSECT SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = "blue" | [
"What",
"are",
"the",
"ids",
"of",
"sailors",
"who",
"reserved",
"red",
"and",
"blue",
"boats",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "reserves"
},
{
"id": 1,
"type": "table",
"value": "boats"
},
{
"id": 3,
"type": "column",
"value": "color"
},
{
"id": 5,
"type": "column",
"value": "blue"
},
{
"id": 0,
"type": "column",
"value": "sid"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
5,081 | world_development_indicators | bird:train.json:2218 | How many countries in Europe & Central Asia uses Danish krone as its currency? List the full names of those coutnries. | SELECT COUNT(longname) FROM country WHERE region = 'Europe & Central Asia' AND currencyunit = 'Danish krone' UNION SELECT longname FROM country WHERE currencyunit = 'Danish krone' AND region = 'Europe & Central Asia' | [
"How",
"many",
"countries",
"in",
"Europe",
"&",
"Central",
"Asia",
"uses",
"Danish",
"krone",
"as",
"its",
"currency",
"?",
"List",
"the",
"full",
"names",
"of",
"those",
"coutnries",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Europe & Central Asia"
},
{
"id": 4,
"type": "column",
"value": "currencyunit"
},
{
"id": 5,
"type": "value",
"value": "Danish krone"
},
{
"id": 1,
"type": "column",
"value": "longname"
},
{
"id": 0,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5,
6,
7
]
},
{
"entity_id": 4,
"token_idxs": [
1... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
5,082 | student_club | bird:dev.json:1395 | How many members did attend the event 'Community Theater' in 2019? | SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Community Theater' AND SUBSTR(T1.event_date, 1, 4) = '2019' | [
"How",
"many",
"members",
"did",
"attend",
"the",
"event",
"'",
"Community",
"Theater",
"'",
"in",
"2019",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Community Theater"
},
{
"id": 2,
"type": "column",
"value": "link_to_member"
},
{
"id": 4,
"type": "column",
"value": "link_to_event"
},
{
"id": 1,
"type": "table",
"value": "attendance"
},
{
"id": 5,
"type... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
5,083 | e_commerce | bird:test.json:103 | How much do the products cost on average? | SELECT avg(product_price) FROM Products | [
"How",
"much",
"do",
"the",
"products",
"cost",
"on",
"average",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "product_price"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
5,084 | voter_2 | spider:train_spider.json:5512 | What is the city_code of the city that the most students live in? | SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"city_code",
"of",
"the",
"city",
"that",
"the",
"most",
"students",
"live",
"in",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"type": "table",
"value": "student"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,086 | cre_Theme_park | spider:train_spider.json:5950 | List all the possible ways to get to attractions, together with the number of attractions accessible by these methods. | SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There | [
"List",
"all",
"the",
"possible",
"ways",
"to",
"get",
"to",
"attractions",
",",
"together",
"with",
"the",
"number",
"of",
"attractions",
"accessible",
"by",
"these",
"methods",
"."
] | [
{
"id": 0,
"type": "table",
"value": "tourist_attractions"
},
{
"id": 1,
"type": "column",
"value": "how_to_get_there"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7,
8
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,087 | theme_gallery | spider:train_spider.json:1668 | How many exhibitions has each artist had? | SELECT T2.name , count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id | [
"How",
"many",
"exhibitions",
"has",
"each",
"artist",
"had",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "exhibition"
},
{
"id": 0,
"type": "column",
"value": "artist_id"
},
{
"id": 3,
"type": "table",
"value": "artist"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
5,088 | cre_Doc_Tracking_DB | spider:train_spider.json:4226 | Show the location codes and the number of documents in each location. | SELECT location_code , count(*) FROM Document_locations GROUP BY location_code | [
"Show",
"the",
"location",
"codes",
"and",
"the",
"number",
"of",
"documents",
"in",
"each",
"location",
"."
] | [
{
"id": 0,
"type": "table",
"value": "document_locations"
},
{
"id": 1,
"type": "column",
"value": "location_code"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8,
9,
10,
11
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"I-TABLE",
"O"
] |
5,089 | toxicology | bird:dev.json:275 | Give me the molecule ID of the double bond type. | SELECT DISTINCT T.molecule_id FROM bond AS T WHERE T.bond_type = '=' | [
"Give",
"me",
"the",
"molecule",
"ID",
"of",
"the",
"double",
"bond",
"type",
"."
] | [
{
"id": 1,
"type": "column",
"value": "molecule_id"
},
{
"id": 2,
"type": "column",
"value": "bond_type"
},
{
"id": 0,
"type": "table",
"value": "bond"
},
{
"id": 3,
"type": "value",
"value": "="
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
5,090 | retail_world | bird:train.json:6334 | Provide the number of orders that were handled by Michael Suyama. | SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama' | [
"Provide",
"the",
"number",
"of",
"orders",
"that",
"were",
"handled",
"by",
"Michael",
"Suyama",
"."
] | [
{
"id": 3,
"type": "column",
"value": "employeeid"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "firstname"
},
{
"id": 6,
"type": "column",
"value": "lastname"
},
{
"id": 2,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
9
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
5,091 | student_loan | bird:train.json:4549 | Provide the name of disabled male students that are unemployed. | SELECT T2.NAME FROM unemployed AS T1 INNER JOIN male AS T2 ON T1.name = T2.name INNER JOIN disabled AS T3 ON T3.name = T2.name | [
"Provide",
"the",
"name",
"of",
"disabled",
"male",
"students",
"that",
"are",
"unemployed",
"."
] | [
{
"id": 2,
"type": "table",
"value": "unemployed"
},
{
"id": 1,
"type": "table",
"value": "disabled"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "table",
"value": "male"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,092 | wine_1 | spider:train_spider.json:6584 | What are the names of wines produced before any wine from the Brander winery? | SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = "Brander") | [
"What",
"are",
"the",
"names",
"of",
"wines",
"produced",
"before",
"any",
"wine",
"from",
"the",
"Brander",
"winery",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "Brander"
},
{
"id": 3,
"type": "column",
"value": "winery"
},
{
"id": 0,
"type": "table",
"value": "wine"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "year"... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,093 | works_cycles | bird:train.json:7044 | Among the companies to which Adventure Works Cycles purchases parts or other goods, what is the profit on net obtained from the vendor who has an above average credit rating? Kindly indicate each names of the vendor and the corresponding net profits. | SELECT T2.Name, T1.LastReceiptCost - T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.CreditRating = 3 | [
"Among",
"the",
"companies",
"to",
"which",
"Adventure",
"Works",
"Cycles",
"purchases",
"parts",
"or",
"other",
"goods",
",",
"what",
"is",
"the",
"profit",
"on",
"net",
"obtained",
"from",
"the",
"vendor",
"who",
"has",
"an",
"above",
"average",
"credit",
... | [
{
"id": 7,
"type": "column",
"value": "businessentityid"
},
{
"id": 5,
"type": "column",
"value": "lastreceiptcost"
},
{
"id": 1,
"type": "table",
"value": "productvendor"
},
{
"id": 6,
"type": "column",
"value": "standardprice"
},
{
"id": 3,
"... | [
{
"entity_id": 0,
"token_idxs": [
35
]
},
{
"entity_id": 1,
"token_idxs": [
21,
22
]
},
{
"entity_id": 2,
"token_idxs": [
23
]
},
{
"entity_id": 3,
"token_idxs": [
29,
30
]
},
{
"entity_id": 4,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",... |
5,094 | bakery_1 | bird:test.json:1516 | What is the receipt number and date corresponding to the receipt for which the most expensive item was purchased? | SELECT T1.ReceiptNumber , T1.Date FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id ORDER BY T3.price DESC LIMIT 1 | [
"What",
"is",
"the",
"receipt",
"number",
"and",
"date",
"corresponding",
"to",
"the",
"receipt",
"for",
"which",
"the",
"most",
"expensive",
"item",
"was",
"purchased",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "receiptnumber"
},
{
"id": 4,
"type": "table",
"value": "receipts"
},
{
"id": 8,
"type": "column",
"value": "receipt"
},
{
"id": 2,
"type": "table",
"value": "goods"
},
{
"id": 3,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
5,095 | department_store | spider:train_spider.json:4719 | For each payment method, return how many customers use it. | SELECT payment_method_code , count(*) FROM customers GROUP BY payment_method_code | [
"For",
"each",
"payment",
"method",
",",
"return",
"how",
"many",
"customers",
"use",
"it",
"."
] | [
{
"id": 1,
"type": "column",
"value": "payment_method_code"
},
{
"id": 0,
"type": "table",
"value": "customers"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,096 | superstore | bird:train.json:2354 | Among the customers who have ordered the product "Telescoping Adjustable Floor Lamp", how many of them are consumers? | SELECT COUNT(DISTINCT T1.`Customer Name`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T3.`Product Name` = 'Telescoping Adjustable Floor Lamp' AND T1.Segment = 'Consumer' | [
"Among",
"the",
"customers",
"who",
"have",
"ordered",
"the",
"product",
"\"",
"Telescoping",
"Adjustable",
"Floor",
"Lamp",
"\"",
",",
"how",
"many",
"of",
"them",
"are",
"consumers",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Telescoping Adjustable Floor Lamp"
},
{
"id": 3,
"type": "table",
"value": "central_superstore"
},
{
"id": 1,
"type": "column",
"value": "Customer Name"
},
{
"id": 5,
"type": "column",
"value": "Product Name"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,097 | cre_Doc_Workflow | bird:test.json:2031 | How many business processes do we have? | SELECT count(*) FROM Business_processes | [
"How",
"many",
"business",
"processes",
"do",
"we",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "business_processes"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O"
] |
5,098 | flight_4 | spider:train_spider.json:6825 | Find the number of routes operated by American Airlines. | SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' | [
"Find",
"the",
"number",
"of",
"routes",
"operated",
"by",
"American",
"Airlines",
"."
] | [
{
"id": 3,
"type": "value",
"value": "American Airlines"
},
{
"id": 0,
"type": "table",
"value": "airlines"
},
{
"id": 1,
"type": "table",
"value": "routes"
},
{
"id": 2,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,099 | book_1 | bird:test.json:582 | What are the titles of all books written by an author with a name that contains Plato? | SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name LIKE "%Plato%" | [
"What",
"are",
"the",
"titles",
"of",
"all",
"books",
"written",
"by",
"an",
"author",
"with",
"a",
"name",
"that",
"contains",
"Plato",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "author_book"
},
{
"id": 7,
"type": "column",
"value": "idauthor"
},
{
"id": 3,
"type": "column",
"value": "%Plato%"
},
{
"id": 1,
"type": "table",
"value": "author"
},
{
"id": 6,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
5,100 | beer_factory | bird:train.json:5327 | What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | SELECT AVG(T2.StarRating) FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.BrandID = 10018 AND T1.Gender = 'F' AND T2.ReviewDate BETWEEN '2013-01-25' AND '2015-03-10' | [
"What",
"is",
"the",
"average",
"star",
"rating",
"given",
"by",
"female",
"customers",
"to",
"brand",
"ID",
"10018",
"from",
"1/25/2015",
"to",
"3/10/2015",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "rootbeerreview"
},
{
"id": 2,
"type": "column",
"value": "starrating"
},
{
"id": 3,
"type": "column",
"value": "customerid"
},
{
"id": 8,
"type": "column",
"value": "reviewdate"
},
{
"id": 9,
"type": "value... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11,
12
]
},
{
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
5,101 | synthea | bird:train.json:1434 | List down the first name of patients who have cystitis condition. | SELECT DISTINCT T1.first FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Cystitis' | [
"List",
"down",
"the",
"first",
"name",
"of",
"patients",
"who",
"have",
"cystitis",
"condition",
"."
] | [
{
"id": 3,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "conditions"
},
{
"id": 1,
"type": "table",
"value": "patients"
},
{
"id": 4,
"type": "value",
"value": "Cystitis"
},
{
"id": 5,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,102 | retail_complains | bird:train.json:264 | Which district did the review on 2018/9/11 come from? Give the name of the city. | SELECT T2.district_id, T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Date = '2018-09-11' | [
"Which",
"district",
"did",
"the",
"review",
"on",
"2018/9/11",
"come",
"from",
"?",
"Give",
"the",
"name",
"of",
"the",
"city",
"."
] | [
{
"id": 0,
"type": "column",
"value": "district_id"
},
{
"id": 5,
"type": "value",
"value": "2018-09-11"
},
{
"id": 3,
"type": "table",
"value": "district"
},
{
"id": 2,
"type": "table",
"value": "reviews"
},
{
"id": 1,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
1
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,103 | mondial_geo | bird:train.json:8324 | In which province is city Glenrothes located? What is the capital of the province? | SELECT T2.Province, T1.Capital FROM province AS T1 INNER JOIN city AS T2 ON T1.Name = T2.Province AND T1.Country = T2.Country WHERE T2.Name = 'Glenrothes' | [
"In",
"which",
"province",
"is",
"city",
"Glenrothes",
"located",
"?",
"What",
"is",
"the",
"capital",
"of",
"the",
"province",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Glenrothes"
},
{
"id": 0,
"type": "column",
"value": "province"
},
{
"id": 2,
"type": "table",
"value": "province"
},
{
"id": 1,
"type": "column",
"value": "capital"
},
{
"id": 6,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
5,104 | customers_and_orders | bird:test.json:264 | What is the average price of products for each product type? | SELECT product_type_code , avg(product_price) FROM Products GROUP BY product_type_code | [
"What",
"is",
"the",
"average",
"price",
"of",
"products",
"for",
"each",
"product",
"type",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "product_type_code"
},
{
"id": 2,
"type": "column",
"value": "product_price"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,105 | hr_1 | spider:train_spider.json:3464 | Give the name of each department and the number of employees in each. | SELECT T2.department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name | [
"Give",
"the",
"name",
"of",
"each",
"department",
"and",
"the",
"number",
"of",
"employees",
"in",
"each",
"."
] | [
{
"id": 0,
"type": "column",
"value": "department_name"
},
{
"id": 3,
"type": "column",
"value": "department_id"
},
{
"id": 2,
"type": "table",
"value": "departments"
},
{
"id": 1,
"type": "table",
"value": "employees"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,106 | student_club | bird:dev.json:1382 | Among the students majored in interior design, who have attended the Community Theater event? | SELECT T2.first_name, T2.last_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id WHERE T4.event_name = 'Community Theater' AND T1.major_name = 'Interior Design' | [
"Among",
"the",
"students",
"majored",
"in",
"interior",
"design",
",",
"who",
"have",
"attended",
"the",
"Community",
"Theater",
"event",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Community Theater"
},
{
"id": 9,
"type": "value",
"value": "Interior Design"
},
{
"id": 13,
"type": "column",
"value": "link_to_member"
},
{
"id": 4,
"type": "column",
"value": "link_to_event"
},
{
"id": 15,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
5,108 | school_bus | spider:train_spider.json:6364 | List names for drivers from Hartford city and younger than 40. | SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40 | [
"List",
"names",
"for",
"drivers",
"from",
"Hartford",
"city",
"and",
"younger",
"than",
"40",
"."
] | [
{
"id": 2,
"type": "column",
"value": "home_city"
},
{
"id": 3,
"type": "value",
"value": "Hartford"
},
{
"id": 0,
"type": "table",
"value": "driver"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,109 | retail_world | bird:train.json:6347 | How many kinds of products are supplied by "Karkki Oy" company? | SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Karkki Oy' | [
"How",
"many",
"kinds",
"of",
"products",
"are",
"supplied",
"by",
"\"",
"Karkki",
"Oy",
"\"",
"company",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "companyname"
},
{
"id": 5,
"type": "column",
"value": "supplierid"
},
{
"id": 1,
"type": "table",
"value": "suppliers"
},
{
"id": 3,
"type": "value",
"value": "Karkki Oy"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O"
] |
5,110 | software_company | bird:train.json:8584 | Among the reference ID of under 10 who got response by marketing department, compare their education status. | SELECT T1.EDUCATIONNUM FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T2.REFID < 10 AND T2.RESPONSE = 'true' | [
"Among",
"the",
"reference",
"ID",
"of",
"under",
"10",
"who",
"got",
"response",
"by",
"marketing",
"department",
",",
"compare",
"their",
"education",
"status",
"."
] | [
{
"id": 0,
"type": "column",
"value": "educationnum"
},
{
"id": 2,
"type": "table",
"value": "mailings1_2"
},
{
"id": 1,
"type": "table",
"value": "customers"
},
{
"id": 6,
"type": "column",
"value": "response"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
5,111 | video_games | bird:train.json:3378 | Provide the ID of 1C Company. | SELECT T.id FROM publisher AS T WHERE T.publisher_name = '1C Company' | [
"Provide",
"the",
"ID",
"of",
"1C",
"Company",
"."
] | [
{
"id": 2,
"type": "column",
"value": "publisher_name"
},
{
"id": 3,
"type": "value",
"value": "1C Company"
},
{
"id": 0,
"type": "table",
"value": "publisher"
},
{
"id": 1,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
5,112 | assets_maintenance | spider:train_spider.json:3138 | What are all the distinct last names of all the engineers? | SELECT DISTINCT last_name FROM Maintenance_Engineers | [
"What",
"are",
"all",
"the",
"distinct",
"last",
"names",
"of",
"all",
"the",
"engineers",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "maintenance_engineers"
},
{
"id": 1,
"type": "column",
"value": "last_name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9,
10
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
5,113 | toxicology | bird:dev.json:231 | Which bond type accounted for the majority of the bonds found in molecule TR010 and state whether or not this molecule is carcinogenic? | SELECT T.bond_type FROM ( SELECT T1.bond_type, COUNT(T1.molecule_id) FROM bond AS T1 WHERE T1.molecule_id = 'TR010' GROUP BY T1.bond_type ORDER BY COUNT(T1.molecule_id) DESC LIMIT 1 ) AS T | [
"Which",
"bond",
"type",
"accounted",
"for",
"the",
"majority",
"of",
"the",
"bonds",
"found",
"in",
"molecule",
"TR010",
"and",
"state",
"whether",
"or",
"not",
"this",
"molecule",
"is",
"carcinogenic",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "molecule_id"
},
{
"id": 0,
"type": "column",
"value": "bond_type"
},
{
"id": 3,
"type": "value",
"value": "TR010"
},
{
"id": 1,
"type": "table",
"value": "bond"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,114 | chicago_crime | bird:train.json:8620 | What is the percentage of larceny cases among all cases that happened in Edgewater community? | SELECT CAST(SUM(CASE WHEN T3.title = 'Larceny' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.case_number) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.community_area_name = 'Edgewater' | [
"What",
"is",
"the",
"percentage",
"of",
"larceny",
"cases",
"among",
"all",
"cases",
"that",
"happened",
"in",
"Edgewater",
"community",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "community_area_name"
},
{
"id": 8,
"type": "column",
"value": "community_area_no"
},
{
"id": 3,
"type": "table",
"value": "community_area"
},
{
"id": 5,
"type": "column",
"value": "fbi_code_no"
},
{
"id": 7,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,115 | synthea | bird:train.json:1437 | List down the last name of patients who are allergic to dairy products. | SELECT DISTINCT T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Allergy to dairy product' | [
"List",
"down",
"the",
"last",
"name",
"of",
"patients",
"who",
"are",
"allergic",
"to",
"dairy",
"products",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Allergy to dairy product"
},
{
"id": 3,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "allergies"
},
{
"id": 1,
"type": "table",
"value": "patients"
},
{
"id": 5,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11,
12
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,116 | entertainment_awards | spider:train_spider.json:4616 | List the name of artworks that are not nominated. | SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination) | [
"List",
"the",
"name",
"of",
"artworks",
"that",
"are",
"not",
"nominated",
"."
] | [
{
"id": 2,
"type": "column",
"value": "artwork_id"
},
{
"id": 3,
"type": "table",
"value": "nomination"
},
{
"id": 0,
"type": "table",
"value": "artwork"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,117 | music_platform_2 | bird:train.json:7960 | Write the names of the podcasts in the music category that have a rating greater than 3. | SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'music' AND T2.rating > 3 | [
"Write",
"the",
"names",
"of",
"the",
"podcasts",
"in",
"the",
"music",
"category",
"that",
"have",
"a",
"rating",
"greater",
"than",
"3",
"."
] | [
{
"id": 1,
"type": "table",
"value": "categories"
},
{
"id": 3,
"type": "column",
"value": "podcast_id"
},
{
"id": 4,
"type": "column",
"value": "category"
},
{
"id": 2,
"type": "table",
"value": "reviews"
},
{
"id": 6,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
5,118 | sakila_1 | spider:train_spider.json:2930 | Which districts have at least two addresses? | SELECT district FROM address GROUP BY district HAVING count(*) >= 2 | [
"Which",
"districts",
"have",
"at",
"least",
"two",
"addresses",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "district"
},
{
"id": 0,
"type": "table",
"value": "address"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,119 | disney | bird:train.json:4692 | Among Frank Welker's voice-acted movies, list the movie titles and the total gross when the estimated inflation rate was less than 2. | SELECT T1.movie_title, T1.total_gross FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Frank Welker' AND CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) * 1.0 / CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) * 1.0 < 2 | [
"Among",
"Frank",
"Welker",
"'s",
"voice",
"-",
"acted",
"movies",
",",
"list",
"the",
"movie",
"titles",
"and",
"the",
"total",
"gross",
"when",
"the",
"estimated",
"inflation",
"rate",
"was",
"less",
"than",
"2",
"."
] | [
{
"id": 11,
"type": "column",
"value": "inflation_adjusted_gross"
},
{
"id": 2,
"type": "table",
"value": "movies_total_gross"
},
{
"id": 3,
"type": "table",
"value": "voice-actors"
},
{
"id": 6,
"type": "value",
"value": "Frank Welker"
},
{
"id": ... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
15,
16
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_... | [
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,120 | works_cycles | bird:train.json:7441 | What is the thumbnail photo file for the product with the id "979"? | SELECT T2.ThumbnailPhotoFileName FROM ProductProductPhoto AS T1 INNER JOIN ProductPhoto AS T2 ON T1.ProductPhotoID = T2.ProductPhotoID WHERE T1.ProductID = 979 | [
"What",
"is",
"the",
"thumbnail",
"photo",
"file",
"for",
"the",
"product",
"with",
"the",
"i",
"d",
"\"",
"979",
"\"",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "thumbnailphotofilename"
},
{
"id": 1,
"type": "table",
"value": "productproductphoto"
},
{
"id": 5,
"type": "column",
"value": "productphotoid"
},
{
"id": 2,
"type": "table",
"value": "productphoto"
},
{
"id":... | [
{
"entity_id": 0,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"e... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
5,121 | coinmarketcap | bird:train.json:6255 | What is the average monthly circulating supply for Frozen in 2014. | SELECT CAST(SUM(T2.circulating_supply) AS REAL) / 12 FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Frozen' AND STRFTIME('%Y', T2.date) = '2014' | [
"What",
"is",
"the",
"average",
"monthly",
"circulating",
"supply",
"for",
"Frozen",
"in",
"2014",
"."
] | [
{
"id": 10,
"type": "column",
"value": "circulating_supply"
},
{
"id": 1,
"type": "table",
"value": "historical"
},
{
"id": 4,
"type": "column",
"value": "coin_id"
},
{
"id": 6,
"type": "value",
"value": "Frozen"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
5,122 | advertising_agencies | bird:test.json:2089 | List the client id and detail with most number of invoices. | SELECT T1.client_id , T2.client_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id = T2.client_id GROUP BY T1.client_id ORDER BY count(*) DESC LIMIT 1 | [
"List",
"the",
"client",
"i",
"d",
"and",
"detail",
"with",
"most",
"number",
"of",
"invoices",
"."
] | [
{
"id": 1,
"type": "column",
"value": "client_details"
},
{
"id": 0,
"type": "column",
"value": "client_id"
},
{
"id": 2,
"type": "table",
"value": "invoices"
},
{
"id": 3,
"type": "table",
"value": "clients"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,123 | chicago_crime | bird:train.json:8594 | Please list the names of all the neighborhoods in Central Chicago. | SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.side = 'Central' | [
"Please",
"list",
"the",
"names",
"of",
"all",
"the",
"neighborhoods",
"in",
"Central",
"Chicago",
"."
] | [
{
"id": 0,
"type": "column",
"value": "neighborhood_name"
},
{
"id": 5,
"type": "column",
"value": "community_area_no"
},
{
"id": 1,
"type": "table",
"value": "community_area"
},
{
"id": 2,
"type": "table",
"value": "neighborhood"
},
{
"id": 4,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
5,124 | vehicle_rent | bird:test.json:433 | What is the discount name with most number of renting history records? | SELECT T2.name FROM renting_history AS T1 JOIN discount AS T2 ON T1.discount_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"discount",
"name",
"with",
"most",
"number",
"of",
"renting",
"history",
"records",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "renting_history"
},
{
"id": 4,
"type": "column",
"value": "discount_id"
},
{
"id": 3,
"type": "table",
"value": "discount"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O"
] |
5,125 | sakila_1 | spider:train_spider.json:3000 | What is the largest payment amount? | SELECT amount FROM payment ORDER BY amount DESC LIMIT 1 | [
"What",
"is",
"the",
"largest",
"payment",
"amount",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "payment"
},
{
"id": 1,
"type": "column",
"value": "amount"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
5,126 | movie_platform | bird:train.json:65 | How many more movie lists were created by the user who created the movie list "250 Favourite Films"? | SELECT COUNT(list_id) FROM lists_users WHERE user_id = ( SELECT user_id FROM lists WHERE list_title = '250 Favourite Films' ) | [
"How",
"many",
"more",
"movie",
"lists",
"were",
"created",
"by",
"the",
"user",
"who",
"created",
"the",
"movie",
"list",
"\"",
"250",
"Favourite",
"Films",
"\"",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "250 Favourite Films"
},
{
"id": 0,
"type": "table",
"value": "lists_users"
},
{
"id": 4,
"type": "column",
"value": "list_title"
},
{
"id": 1,
"type": "column",
"value": "user_id"
},
{
"id": 2,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
5,127 | music_1 | spider:train_spider.json:3544 | What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from? | SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3 | [
"What",
"are",
"the",
"names",
"of",
"the",
"singers",
"who",
"sang",
"the",
"top",
"3",
"most",
"highly",
"rated",
"songs",
"and",
"what",
"countries",
"do",
"they",
"hail",
"from",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "artist_name"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "table",
"value": "artist"
},
{
"id": 4,
"type": "column",
"value": "rating"
},
{
"id": 3,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
1,
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
5,128 | manufactory_1 | spider:train_spider.json:5322 | Select the names of all the products in the store. | SELECT Name FROM Products | [
"Select",
"the",
"names",
"of",
"all",
"the",
"products",
"in",
"the",
"store",
"."
] | [
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
5,129 | bbc_channels | bird:test.json:120 | Return the names of directors who are older than the average age. | SELECT name FROM director WHERE age > (SELECT avg(age) FROM director) | [
"Return",
"the",
"names",
"of",
"directors",
"who",
"are",
"older",
"than",
"the",
"average",
"age",
"."
] | [
{
"id": 0,
"type": "table",
"value": "director"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,130 | food_inspection_2 | bird:train.json:6185 | Who inspected Jean Samocki and what was the result? | SELECT T3.first_name, T3.last_name, T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T1.dba_name = 'JEAN SAMOCKI' | [
"Who",
"inspected",
"Jean",
"Samocki",
"and",
"what",
"was",
"the",
"result",
"?"
] | [
{
"id": 6,
"type": "table",
"value": "establishment"
},
{
"id": 5,
"type": "value",
"value": "JEAN SAMOCKI"
},
{
"id": 8,
"type": "column",
"value": "employee_id"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
2,
... | [
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,131 | hospital_1 | spider:train_spider.json:3921 | Find the number of patients' prescriptions physician John Dorian made. | SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = "John Dorian" | [
"Find",
"the",
"number",
"of",
"patients",
"'",
"prescriptions",
"physician",
"John",
"Dorian",
"made",
"."
] | [
{
"id": 2,
"type": "column",
"value": "John Dorian"
},
{
"id": 5,
"type": "table",
"value": "prescribes"
},
{
"id": 7,
"type": "column",
"value": "employeeid"
},
{
"id": 0,
"type": "table",
"value": "physician"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
8,
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
5,132 | professional_basketball | bird:train.json:2865 | What is the full name of the team that has the most players from UCLA? | SELECT T3.name FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE T1.college = 'UCLA' GROUP BY T3.name ORDER BY COUNT(DISTINCT T1.playerID) DESC LIMIT 1 | [
"What",
"is",
"the",
"full",
"name",
"of",
"the",
"team",
"that",
"has",
"the",
"most",
"players",
"from",
"UCLA",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "players_teams"
},
{
"id": 7,
"type": "column",
"value": "playerid"
},
{
"id": 2,
"type": "column",
"value": "college"
},
{
"id": 4,
"type": "table",
"value": "players"
},
{
"id": 1,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
5,133 | college_2 | spider:train_spider.json:1445 | What are the names of instructors who didn't teach courses in the Spring? | SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring') | [
"What",
"are",
"the",
"names",
"of",
"instructors",
"who",
"did",
"n't",
"teach",
"courses",
"in",
"the",
"Spring",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 4,
"type": "column",
"value": "semester"
},
{
"id": 3,
"type": "table",
"value": "teaches"
},
{
"id": 5,
"type": "value",
"value": "Spring"
},
{
"id": 1,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,134 | bike_1 | spider:train_spider.json:109 | Give me the dates when the max temperature was higher than 85. | SELECT date FROM weather WHERE max_temperature_f > 85 | [
"Give",
"me",
"the",
"dates",
"when",
"the",
"max",
"temperature",
"was",
"higher",
"than",
"85",
"."
] | [
{
"id": 2,
"type": "column",
"value": "max_temperature_f"
},
{
"id": 0,
"type": "table",
"value": "weather"
},
{
"id": 1,
"type": "column",
"value": "date"
},
{
"id": 3,
"type": "value",
"value": "85"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,135 | address | bird:train.json:5113 | For the city with the most elders, what's its area code? | SELECT T2.area_code FROM zip_data AS T1 INNER JOIN area_code AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.area_code ORDER BY T1.over_65 DESC LIMIT 1 | [
"For",
"the",
"city",
"with",
"the",
"most",
"elders",
",",
"what",
"'s",
"its",
"area",
"code",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "area_code"
},
{
"id": 2,
"type": "table",
"value": "area_code"
},
{
"id": 1,
"type": "table",
"value": "zip_data"
},
{
"id": 4,
"type": "column",
"value": "zip_code"
},
{
"id": 3,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
5,136 | student_loan | bird:train.json:4408 | How many students were absence for 4 month? | SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 4 | [
"How",
"many",
"students",
"were",
"absence",
"for",
"4",
"month",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 1,
"type": "column",
"value": "month"
},
{
"id": 3,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "value",
"value": "4"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,137 | books | bird:train.json:6025 | Indicate the last number of each street. | SELECT street_number FROM address | [
"Indicate",
"the",
"last",
"number",
"of",
"each",
"street",
"."
] | [
{
"id": 1,
"type": "column",
"value": "street_number"
},
{
"id": 0,
"type": "table",
"value": "address"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
5,140 | image_and_language | bird:train.json:7512 | What is the unique id number identifying the onion object class? | SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS = 'onion' | [
"What",
"is",
"the",
"unique",
"i",
"d",
"number",
"identifying",
"the",
"onion",
"object",
"class",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "obj_class_id"
},
{
"id": 0,
"type": "table",
"value": "obj_classes"
},
{
"id": 2,
"type": "column",
"value": "obj_class"
},
{
"id": 3,
"type": "value",
"value": "onion"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10,
11
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,141 | synthea | bird:train.json:1421 | Provide the patients' full names who received the extraction of wisdom tooth. | SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Extraction of wisdom tooth' | [
"Provide",
"the",
"patients",
"'",
"full",
"names",
"who",
"received",
"the",
"extraction",
"of",
"wisdom",
"tooth",
"."
] | [
{
"id": 5,
"type": "value",
"value": "Extraction of wisdom tooth"
},
{
"id": 4,
"type": "column",
"value": "description"
},
{
"id": 3,
"type": "table",
"value": "procedures"
},
{
"id": 2,
"type": "table",
"value": "patients"
},
{
"id": 6,
"type... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
0
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
9,
... | [
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,142 | insurance_fnol | spider:train_spider.json:901 | Find the total and average amount of settlements. | SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements | [
"Find",
"the",
"total",
"and",
"average",
"amount",
"of",
"settlements",
"."
] | [
{
"id": 1,
"type": "column",
"value": "settlement_amount"
},
{
"id": 0,
"type": "table",
"value": "settlements"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,144 | tv_shows | bird:test.json:147 | Show the transmitters of radios and the cities of the channels they are associated with. | SELECT T3.Transmitter , T2.City FROM city_channel_radio AS T1 JOIN city_channel AS T2 ON T1.City_channel_ID = T2.ID JOIN radio AS T3 ON T1.Radio_ID = T3.Radio_ID | [
"Show",
"the",
"transmitters",
"of",
"radios",
"and",
"the",
"cities",
"of",
"the",
"channels",
"they",
"are",
"associated",
"with",
"."
] | [
{
"id": 3,
"type": "table",
"value": "city_channel_radio"
},
{
"id": 6,
"type": "column",
"value": "city_channel_id"
},
{
"id": 4,
"type": "table",
"value": "city_channel"
},
{
"id": 0,
"type": "column",
"value": "transmitter"
},
{
"id": 5,
"ty... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
5,145 | university | bird:train.json:8000 | Which country is the University of Oxford located? | SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE university_name = 'University of Oxford' | [
"Which",
"country",
"is",
"the",
"University",
"of",
"Oxford",
"located",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "University of Oxford"
},
{
"id": 3,
"type": "column",
"value": "university_name"
},
{
"id": 0,
"type": "column",
"value": "country_name"
},
{
"id": 1,
"type": "table",
"value": "university"
},
{
"id": 5,
"t... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
"entity_id":... | [
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
5,146 | works_cycles | bird:train.json:7102 | What is the percentage of the total products ordered were not rejected by Drill size? | SELECT CAST(SUM(CASE WHEN T2.VacationHours > 20 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.CurrentFlag = 1 AND T2.SickLeaveHours > 10 | [
"What",
"is",
"the",
"percentage",
"of",
"the",
"total",
"products",
"ordered",
"were",
"not",
"rejected",
"by",
"Drill",
"size",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "employeepayhistory"
},
{
"id": 2,
"type": "column",
"value": "businessentityid"
},
{
"id": 5,
"type": "column",
"value": "sickleavehours"
},
{
"id": 9,
"type": "column",
"value": "vacationhours"
},
{
"id": 3,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,148 | car_retails | bird:train.json:1660 | How many transactions payment made by customer that is lower than 10000. Group the result by year. | SELECT STRFTIME('%Y', t1.paymentDate), COUNT(t1.customerNumber) FROM payments AS t1 WHERE t1.amount < 10000 GROUP BY STRFTIME('%Y', t1.paymentDate) | [
"How",
"many",
"transactions",
"payment",
"made",
"by",
"customer",
"that",
"is",
"lower",
"than",
"10000",
".",
"Group",
"the",
"result",
"by",
"year",
"."
] | [
{
"id": 5,
"type": "column",
"value": "customernumber"
},
{
"id": 4,
"type": "column",
"value": "paymentdate"
},
{
"id": 0,
"type": "table",
"value": "payments"
},
{
"id": 1,
"type": "column",
"value": "amount"
},
{
"id": 2,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,149 | movie_platform | bird:train.json:73 | How many users were trialists when they rated the movie "A Way of Life"? | SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.user_trialist = 1 | [
"How",
"many",
"users",
"were",
"trialists",
"when",
"they",
"rated",
"the",
"movie",
"\"",
"A",
"Way",
"of",
"Life",
"\"",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "When Will I Be Loved"
},
{
"id": 6,
"type": "column",
"value": "user_trialist"
},
{
"id": 4,
"type": "column",
"value": "movie_title"
},
{
"id": 3,
"type": "column",
"value": "movie_id"
},
{
"id": 0,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,150 | soccer_2016 | bird:train.json:1843 | List the player's name of Mumbai Indians in the match ID 335990. | SELECT T3.Team_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T2.Player_Id = T1.Player_Id INNER JOIN Team AS T3 ON T3.Team_Id = T2.Team_Id WHERE T2.Match_Id = 335990 AND T3.Team_Name = 'Mumbai Indians' GROUP BY T3.Team_Name | [
"List",
"the",
"player",
"'s",
"name",
"of",
"Mumbai",
"Indians",
"in",
"the",
"match",
"ID",
"335990",
"."
] | [
{
"id": 7,
"type": "value",
"value": "Mumbai Indians"
},
{
"id": 3,
"type": "table",
"value": "player_match"
},
{
"id": 0,
"type": "column",
"value": "team_name"
},
{
"id": 8,
"type": "column",
"value": "player_id"
},
{
"id": 5,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
5,151 | movie | bird:train.json:770 | List the runtime of movies starred by an African-American actor born on December 28, 1954. | SELECT T1.Runtime FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Ethnicity = 'African American' AND T3.`Date of Birth` = '1954-12-28' | [
"List",
"the",
"runtime",
"of",
"movies",
"starred",
"by",
"an",
"African",
"-",
"American",
"actor",
"born",
"on",
"December",
"28",
",",
"1954",
"."
] | [
{
"id": 6,
"type": "value",
"value": "African American"
},
{
"id": 7,
"type": "column",
"value": "Date of Birth"
},
{
"id": 3,
"type": "table",
"value": "characters"
},
{
"id": 8,
"type": "value",
"value": "1954-12-28"
},
{
"id": 5,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,152 | game_1 | spider:train_spider.json:6033 | How many students play video games? | SELECT count(DISTINCT StuID) FROM Plays_games | [
"How",
"many",
"students",
"play",
"video",
"games",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "plays_games"
},
{
"id": 1,
"type": "column",
"value": "stuid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O"
] |
5,153 | law_episode | bird:train.json:1285 | How many awards did the "Agony" win? | SELECT COUNT(T2.award) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Agony' AND T2.result = 'Winner' | [
"How",
"many",
"awards",
"did",
"the",
"\"",
"Agony",
"\"",
"win",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "episode_id"
},
{
"id": 0,
"type": "table",
"value": "episode"
},
{
"id": 6,
"type": "column",
"value": "result"
},
{
"id": 7,
"type": "value",
"value": "Winner"
},
{
"id": 1,
"type": "table",
"value": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
6
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
5,154 | perpetrator | spider:train_spider.json:2309 | What are the names of perpetrators? | SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID | [
"What",
"are",
"the",
"names",
"of",
"perpetrators",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "perpetrator"
},
{
"id": 3,
"type": "column",
"value": "people_id"
},
{
"id": 1,
"type": "table",
"value": "people"
},
{
"id": 0,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
5,156 | soccer_2016 | bird:train.json:1941 | Tally the match IDs in which V Kohli is the "Man of the Match". | SELECT T1.Match_Id FROM `Match` AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Match = T2.Player_Id WHERE T2.Player_Name = 'V Kohli' | [
"Tally",
"the",
"match",
"IDs",
"in",
"which",
"V",
"Kohli",
"is",
"the",
"\"",
"Man",
"of",
"the",
"Match",
"\"",
"."
] | [
{
"id": 5,
"type": "column",
"value": "man_of_the_match"
},
{
"id": 3,
"type": "column",
"value": "player_name"
},
{
"id": 6,
"type": "column",
"value": "player_id"
},
{
"id": 0,
"type": "column",
"value": "match_id"
},
{
"id": 4,
"type": "valu... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6,
7
]
},
{
"e... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O"
] |
5,157 | aan_1 | bird:test.json:1005 | What is the id and the number of citations of the most cited paper? | SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"i",
"d",
"and",
"the",
"number",
"of",
"citations",
"of",
"the",
"most",
"cited",
"paper",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "cited_paper_id"
},
{
"id": 0,
"type": "table",
"value": "citation"
},
{
"id": 2,
"type": "column",
"value": "paper_id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.