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
6,214
movie_3
bird:train.json:9228
Among the customers with customer ID of 100 and below, how many of them have Thomas as their last name?
SELECT COUNT(customer_id) FROM customer WHERE last_name = 'Thomas' AND customer_id < 100
[ "Among", "the", "customers", "with", "customer", "ID", "of", "100", "and", "below", ",", "how", "many", "of", "them", "have", "Thomas", "as", "their", "last", "name", "?" ]
[ { "id": 1, "type": "column", "value": "customer_id" }, { "id": 2, "type": "column", "value": "last_name" }, { "id": 0, "type": "table", "value": "customer" }, { "id": 3, "type": "value", "value": "Thomas" }, { "id": 4, "type": "value", "val...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 19, 20 ] }, { "entity_id": 3, "token_idxs": [ 16 ] }, { "entity_id": 4, "token_idxs": [ 7 ...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
6,215
bbc_channels
bird:test.json:130
Find the number of channels that do not run any program.
SELECT count(*) FROM channel WHERE channel_id NOT IN (SELECT channel_id FROM program)
[ "Find", "the", "number", "of", "channels", "that", "do", "not", "run", "any", "program", "." ]
[ { "id": 1, "type": "column", "value": "channel_id" }, { "id": 0, "type": "table", "value": "channel" }, { "id": 2, "type": "table", "value": "program" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "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", "O", "B-TABLE", "O" ]
6,217
cars
bird:train.json:3118
Calculate the difference between the number of cars that has a horsepower of 130 with the model year 1970 and model year 1976
SELECT SUM(CASE WHEN T2.model_year = 1970 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.model_year = 1976 THEN 1 ELSE 0 END) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.horsepower = 130
[ "Calculate", "the", "difference", "between", "the", "number", "of", "cars", "that", "has", "a", "horsepower", "of", "130", "with", "the", "model", "year", "1970", "and", "model", "year", "1976" ]
[ { "id": 1, "type": "table", "value": "production" }, { "id": 2, "type": "column", "value": "horsepower" }, { "id": 7, "type": "column", "value": "model_year" }, { "id": 0, "type": "table", "value": "data" }, { "id": 8, "type": "value", "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "O", "B-VALUE" ]
6,218
computer_student
bird:train.json:986
How many teachers are faculty employees?
SELECT COUNT(*) FROM person WHERE hasPosition = 'Faculty_eme'
[ "How", "many", "teachers", "are", "faculty", "employees", "?" ]
[ { "id": 1, "type": "column", "value": "hasposition" }, { "id": 2, "type": "value", "value": "Faculty_eme" }, { "id": 0, "type": "table", "value": "person" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "B-VALUE", "O", "O" ]
6,219
driving_school
spider:train_spider.json:6631
What is the date of birth for the staff member named Janessa Sawayn?
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
[ "What", "is", "the", "date", "of", "birth", "for", "the", "staff", "member", "named", "Janessa", "Sawayn", "?" ]
[ { "id": 1, "type": "column", "value": "date_of_birth" }, { "id": 2, "type": "column", "value": "first_name" }, { "id": 4, "type": "column", "value": "last_name" }, { "id": 3, "type": "column", "value": "Janessa" }, { "id": 5, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "e...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
6,220
music_4
spider:train_spider.json:6172
Return names of songs in volumes that are by artists that are at least 32 years old.
SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32
[ "Return", "names", "of", "songs", "in", "volumes", "that", "are", "by", "artists", "that", "are", "at", "least", "32", "years", "old", "." ]
[ { "id": 5, "type": "column", "value": "artist_id" }, { "id": 1, "type": "table", "value": "artist" }, { "id": 2, "type": "table", "value": "volume" }, { "id": 0, "type": "column", "value": "song" }, { "id": 3, "type": "column", "value": "ag...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 14 ] }, ...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O" ]
6,221
student_assessment
spider:train_spider.json:70
How many students are attending English courses?
SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "English"
[ "How", "many", "students", "are", "attending", "English", "courses", "?" ]
[ { "id": 1, "type": "table", "value": "student_course_attendance" }, { "id": 2, "type": "column", "value": "course_name" }, { "id": 4, "type": "column", "value": "course_id" }, { "id": 0, "type": "table", "value": "courses" }, { "id": 3, "type":...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "B-COLUMN", "B-TABLE", "O" ]
6,222
european_football_2
bird:dev.json:1084
Among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked?
SELECT COUNT(DISTINCT t1.player_name) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y',t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'
[ "Among", "the", "players", "born", "before", "the", "year", "1986", ",", "how", "many", "of", "them", "would", "remain", "in", "his", "position", "and", "defense", "while", "the", "team", "attacked", "?" ]
[ { "id": 5, "type": "column", "value": "defensive_work_rate" }, { "id": 1, "type": "table", "value": "player_attributes" }, { "id": 3, "type": "column", "value": "player_api_id" }, { "id": 2, "type": "column", "value": "player_name" }, { "id": 8, ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,223
tracking_software_problems
spider:train_spider.json:5388
What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte" )
[ "What", "are", "the", "ids", "of", "the", "problems", "reported", "before", "the", "date", "of", "any", "problem", "reported", "by", "Lysanne", "Turcotte", "?" ]
[ { "id": 3, "type": "column", "value": "date_problem_reported" }, { "id": 4, "type": "column", "value": "reported_by_staff_id" }, { "id": 6, "type": "column", "value": "staff_first_name" }, { "id": 8, "type": "column", "value": "staff_last_name" }, { ...
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14, 15 ] }, { "entity_i...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "B-COLUMN", "B-COLUMN", "O" ]
6,225
soccer_2
spider:train_spider.json:4981
What are the name of the players who received a card in descending order of the hours of training?
SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC
[ "What", "are", "the", "name", "of", "the", "players", "who", "received", "a", "card", "in", "descending", "order", "of", "the", "hours", "of", "training", "?" ]
[ { "id": 0, "type": "table", "value": "player" }, { "id": 1, "type": "column", "value": "pname" }, { "id": 2, "type": "column", "value": "ycard" }, { "id": 3, "type": "value", "value": "yes" }, { "id": 4, "type": "column", "value": "hs" } ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,226
retail_complains
bird:train.json:295
How many Credit Card complaints did Sharon handle?
SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.Product = 'Credit card' AND T1.server = 'SHARON'
[ "How", "many", "Credit", "Card", "complaints", "did", "Sharon", "handle", "?" ]
[ { "id": 0, "type": "table", "value": "callcenterlogs" }, { "id": 2, "type": "column", "value": "Complaint ID" }, { "id": 4, "type": "value", "value": "Credit card" }, { "id": 3, "type": "column", "value": "product" }, { "id": 1, "type": "table"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4, 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 2, 3 ] }, { "entity_id": 5, ...
[ "O", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O" ]
6,228
restaurant
bird:train.json:1785
Which region has the highest number of restaurants?
SELECT T1.region FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city GROUP BY T1.region ORDER BY COUNT(T2.id_restaurant) DESC LIMIT 1
[ "Which", "region", "has", "the", "highest", "number", "of", "restaurants", "?" ]
[ { "id": 4, "type": "column", "value": "id_restaurant" }, { "id": 1, "type": "table", "value": "geographic" }, { "id": 2, "type": "table", "value": "location" }, { "id": 0, "type": "column", "value": "region" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
6,229
student_loan
bird:train.json:4382
Please list all the female students that have filed for bankruptcy.
SELECT name FROM filed_for_bankrupcy WHERE name NOT IN ( SELECT name FROM male )
[ "Please", "list", "all", "the", "female", "students", "that", "have", "filed", "for", "bankruptcy", "." ]
[ { "id": 0, "type": "table", "value": "filed_for_bankrupcy" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "table", "value": "male" } ]
[ { "entity_id": 0, "token_idxs": [ 8, 9, 10 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5,...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O" ]
6,230
train_station
spider:train_spider.json:6600
Show the name, location, and number of platforms for all stations.
SELECT name , LOCATION , number_of_platforms FROM station
[ "Show", "the", "name", ",", "location", ",", "and", "number", "of", "platforms", "for", "all", "stations", "." ]
[ { "id": 3, "type": "column", "value": "number_of_platforms" }, { "id": 2, "type": "column", "value": "location" }, { "id": 0, "type": "table", "value": "station" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O" ]
6,231
beer_factory
bird:train.json:5318
What percentage of customers who paid with a Discover Credit Card gave a 3-star rating?
SELECT CAST(COUNT(CASE WHEN T1.StarRating = 3 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.CustomerID) FROM rootbeerreview AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.CreditCardType = 'Discover'
[ "What", "percentage", "of", "customers", "who", "paid", "with", "a", "Discover", "Credit", "Card", "gave", "a", "3", "-", "star", "rating", "?" ]
[ { "id": 0, "type": "table", "value": "rootbeerreview" }, { "id": 2, "type": "column", "value": "creditcardtype" }, { "id": 1, "type": "table", "value": "transaction" }, { "id": 4, "type": "column", "value": "customerid" }, { "id": 7, "type": "c...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 9, 10 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 3 ] }, { "entity_id"...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "B-COLUMN", "I-COLUMN", "O" ]
6,233
film_rank
spider:train_spider.json:4138
Please list the years of film market estimations when the market is in country "Japan" in descending order.
SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC
[ "Please", "list", "the", "years", "of", "film", "market", "estimations", "when", "the", "market", "is", "in", "country", "\"", "Japan", "\"", "in", "descending", "order", "." ]
[ { "id": 1, "type": "table", "value": "film_market_estimation" }, { "id": 5, "type": "column", "value": "market_id" }, { "id": 3, "type": "column", "value": "country" }, { "id": 2, "type": "table", "value": "market" }, { "id": 4, "type": "column...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5, 6, 7 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O" ]
6,234
california_schools
bird:dev.json:48
What is the ratio of merged Unified School District schools in Orange County to merged Elementary School District schools?
SELECT CAST(SUM(CASE WHEN DOC = 54 THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN DOC = 52 THEN 1 ELSE 0 END) FROM schools WHERE StatusType = 'Merged' AND County = 'Orange'
[ "What", "is", "the", "ratio", "of", "merged", "Unified", "School", "District", "schools", "in", "Orange", "County", "to", "merged", "Elementary", "School", "District", "schools", "?" ]
[ { "id": 1, "type": "column", "value": "statustype" }, { "id": 0, "type": "table", "value": "schools" }, { "id": 2, "type": "value", "value": "Merged" }, { "id": 3, "type": "column", "value": "county" }, { "id": 4, "type": "value", "value": ...
[ { "entity_id": 0, "token_idxs": [ 18 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "enti...
[ "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
6,235
cre_Drama_Workshop_Groups
spider:train_spider.json:5153
List the email addresses of the drama workshop groups located in Alaska state.
SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = "Alaska"
[ "List", "the", "email", "addresses", "of", "the", "drama", "workshop", "groups", "located", "in", "Alaska", "state", "." ]
[ { "id": 2, "type": "table", "value": "drama_workshop_groups" }, { "id": 0, "type": "column", "value": "store_email_address" }, { "id": 3, "type": "column", "value": "state_county" }, { "id": 5, "type": "column", "value": "address_id" }, { "id": 1, ...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idx...
[ "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
6,236
entrepreneur
spider:train_spider.json:2273
What are the names of entrepreneurs?
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
[ "What", "are", "the", "names", "of", "entrepreneurs", "?" ]
[ { "id": 1, "type": "table", "value": "entrepreneur" }, { "id": 3, "type": "column", "value": "people_id" }, { "id": 2, "type": "table", "value": "people" }, { "id": 0, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "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", "B-COLUMN", "O", "B-TABLE", "O" ]
6,237
movie_1
spider:train_spider.json:2434
Find the titles of all movies directed by steven spielberg.
SELECT title FROM Movie WHERE director = 'Steven Spielberg'
[ "Find", "the", "titles", "of", "all", "movies", "directed", "by", "steven", "spielberg", "." ]
[ { "id": 3, "type": "value", "value": "Steven Spielberg" }, { "id": 2, "type": "column", "value": "director" }, { "id": 0, "type": "table", "value": "movie" }, { "id": 1, "type": "column", "value": "title" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O" ]
6,238
card_games
bird:dev.json:476
Please list the name of the cards in the set Coldsnap with the highest converted mana cost.
SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' ORDER BY T1.convertedManaCost DESC LIMIT 1
[ "Please", "list", "the", "name", "of", "the", "cards", "in", "the", "set", "Coldsnap", "with", "the", "highest", "converted", "mana", "cost", "." ]
[ { "id": 4, "type": "column", "value": "convertedmanacost" }, { "id": 3, "type": "value", "value": "Coldsnap" }, { "id": 6, "type": "column", "value": "setcode" }, { "id": 1, "type": "table", "value": "cards" }, { "id": 0, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14, 15, 16 ] ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
6,239
language_corpus
bird:train.json:5733
Indicate if there is any pair formed by the words fukunaga and d'egees.
SELECT CASE WHEN COUNT(T1.wid) > 0 THEN 'yes' ELSE 'no' END FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st OR T1.wid = T2.w2nd WHERE T2.w1st = ( SELECT wid FROM words WHERE T1.word = 'fukunaga' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word LIKE 'd%egees' )
[ "Indicate", "if", "there", "is", "any", "pair", "formed", "by", "the", "words", "fukunaga", "and", "d'egees", "." ]
[ { "id": 9, "type": "value", "value": "fukunaga" }, { "id": 1, "type": "table", "value": "biwords" }, { "id": 10, "type": "value", "value": "d%egees" }, { "id": 0, "type": "table", "value": "words" }, { "id": 3, "type": "column", "value": "w...
[ { "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", "B-COLUMN", "B-VALUE", "O", "B-VALUE", "O" ]
6,240
language_corpus
bird:train.json:5769
Calculate the average percentage of word appearance in the page that have revision page id smaller than 106680.
SELECT CAST(SUM(T1.words) AS REAL) * 100 / SUM(T2.occurrences) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.revision < 106680
[ "Calculate", "the", "average", "percentage", "of", "word", "appearance", "in", "the", "page", "that", "have", "revision", "page", "i", "d", "smaller", "than", "106680", "." ]
[ { "id": 1, "type": "table", "value": "pages_words" }, { "id": 6, "type": "column", "value": "occurrences" }, { "id": 2, "type": "column", "value": "revision" }, { "id": 3, "type": "value", "value": "106680" }, { "id": 0, "type": "table", "v...
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14, 15 ] }, { "entity_...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O" ]
6,241
chicago_crime
bird:train.json:8741
Please name three communities that experience the fraud incident.
SELECT T3.community_area_name FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.title = 'Criminal Sexual Assault' LIMIT 3
[ "Please", "name", "three", "communities", "that", "experience", "the", "fraud", "incident", "." ]
[ { "id": 3, "type": "value", "value": "Criminal Sexual Assault" }, { "id": 0, "type": "column", "value": "community_area_name" }, { "id": 6, "type": "column", "value": "community_area_no" }, { "id": 1, "type": "table", "value": "community_area" }, { ...
[ { "entity_id": 0, "token_idxs": [] }, { "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-TABLE", "O", "O", "O", "O", "O", "O" ]
6,242
student_club
bird:dev.json:1387
Which student has been entrusted to manage the budget for the Yearly Kickoff?
SELECT T4.first_name, T4.last_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget INNER JOIN member AS T4 ON T3.link_to_member = T4.member_id WHERE T1.event_name = 'Yearly Kickoff'
[ "Which", "student", "has", "been", "entrusted", "to", "manage", "the", "budget", "for", "the", "Yearly", "Kickoff", "?" ]
[ { "id": 4, "type": "value", "value": "Yearly Kickoff" }, { "id": 6, "type": "column", "value": "link_to_member" }, { "id": 11, "type": "column", "value": "link_to_budget" }, { "id": 13, "type": "column", "value": "link_to_event" }, { "id": 0, "...
[ { "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": [ 11, 12 ] }, { "entity_id": 5, "token_idxs": []...
[ "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O" ]
6,243
baseball_1
spider:train_spider.json:3694
How many games in total did team Boston Red Stockings attend from 2000 to 2010?
SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;
[ "How", "many", "games", "in", "total", "did", "team", "Boston", "Red", "Stockings", "attend", "from", "2000", "to", "2010", "?" ]
[ { "id": 6, "type": "value", "value": "Boston Red Stockings" }, { "id": 2, "type": "column", "value": "attendance" }, { "id": 4, "type": "column", "value": "team_id_br" }, { "id": 0, "type": "table", "value": "home_game" }, { "id": 3, "type": "c...
[ { "entity_id": 0, "token_idxs": [ 0, 1 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "O", "B-TABLE", "B-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O" ]
6,244
music_platform_2
bird:train.json:7986
What is the average rating of the podcast "Please Excuse My Dead Aunt Sally"?
SELECT AVG(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Please Excuse My Dead Aunt Sally'
[ "What", "is", "the", "average", "rating", "of", "the", "podcast", "\"", "Please", "Excuse", "My", "Dead", "Aunt", "Sally", "\"", "?" ]
[ { "id": 3, "type": "value", "value": "Please Excuse My Dead Aunt Sally" }, { "id": 5, "type": "column", "value": "podcast_id" }, { "id": 0, "type": "table", "value": "podcasts" }, { "id": 1, "type": "table", "value": "reviews" }, { "id": 4, "ty...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9, 10, 11, 12, 13, 14 ] }, { "entity_id": 4, "token_idxs": ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
6,245
train_station
spider:train_spider.json:6617
Show all locations with only 1 station.
SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*) = 1
[ "Show", "all", "locations", "with", "only", "1", "station", "." ]
[ { "id": 1, "type": "column", "value": "location" }, { "id": 0, "type": "table", "value": "station" }, { "id": 2, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "B-TABLE", "O" ]
6,246
authors
bird:train.json:3574
Identify by papers title those in which conferences have been published that do not have a website..
SELECT T2.Title FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.HomePage = '' AND T2.Title <> ''
[ "Identify", "by", "papers", "title", "those", "in", "which", "conferences", "have", "been", "published", "that", "do", "not", "have", "a", "website", ".." ]
[ { "id": 4, "type": "column", "value": "conferenceid" }, { "id": 1, "type": "table", "value": "conference" }, { "id": 5, "type": "column", "value": "homepage" }, { "id": 0, "type": "column", "value": "title" }, { "id": 2, "type": "table", "v...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,247
medicine_enzyme_interaction
spider:train_spider.json:952
What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?
SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC
[ "What", "are", "the", "ids", ",", "names", ",", "and", "FDA", "approval", "status", "for", "medicines", "ordered", "by", "descending", "number", "of", "possible", "enzyme", "interactions", "?" ]
[ { "id": 4, "type": "table", "value": "medicine_enzyme_interaction" }, { "id": 2, "type": "column", "value": "fda_approved" }, { "id": 5, "type": "column", "value": "medicine_id" }, { "id": 3, "type": "table", "value": "medicine" }, { "id": 1, "...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 19, ...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O" ]
6,248
works_cycles
bird:train.json:7407
Where can I find the Valley Bicycle Specialists store?
SELECT T2.AddressLine1, T2.AddressLine2 FROM BusinessEntityAddress AS T1 INNER JOIN Address AS T2 ON T1.AddressID = T2.AddressID INNER JOIN Store AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T3.Name = 'Valley Bicycle Specialists'
[ "Where", "can", "I", "find", "the", "Valley", "Bicycle", "Specialists", "store", "?" ]
[ { "id": 4, "type": "value", "value": "Valley Bicycle Specialists" }, { "id": 5, "type": "table", "value": "businessentityaddress" }, { "id": 7, "type": "column", "value": "businessentityid" }, { "id": 0, "type": "column", "value": "addressline1" }, { ...
[ { "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": [ 5, 6, 7 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-TABLE", "O" ]
6,249
behavior_monitoring
spider:train_spider.json:3102
Find the first names and last names of teachers in alphabetical order of last name.
SELECT first_name , last_name FROM Teachers ORDER BY last_name
[ "Find", "the", "first", "names", "and", "last", "names", "of", "teachers", "in", "alphabetical", "order", "of", "last", "name", "." ]
[ { "id": 1, "type": "column", "value": "first_name" }, { "id": 2, "type": "column", "value": "last_name" }, { "id": 0, "type": "table", "value": "teachers" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 13, 14 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
6,250
school_player
spider:train_spider.json:4875
Which team has the oldest player?
SELECT Team FROM player ORDER BY Age DESC LIMIT 1
[ "Which", "team", "has", "the", "oldest", "player", "?" ]
[ { "id": 0, "type": "table", "value": "player" }, { "id": 1, "type": "column", "value": "team" }, { "id": 2, "type": "column", "value": "age" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "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", "B-TABLE", "O" ]
6,251
works_cycles
bird:train.json:7313
Name the oldest employee who is working on night shift. How old is the employee?
SELECT T1.FirstName, T1.LastName , STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', BirthDate) FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeeDepartmentHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T3.ShiftId = 3 ORDER BY STRFTIME('%Y', C...
[ "Name", "the", "oldest", "employee", "who", "is", "working", "on", "night", "shift", ".", "How", "old", "is", "the", "employee", "?" ]
[ { "id": 2, "type": "table", "value": "employeedepartmenthistory" }, { "id": 7, "type": "column", "value": "businessentityid" }, { "id": 0, "type": "column", "value": "firstname" }, { "id": 9, "type": "column", "value": "birthdate" }, { "id": 1, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 0 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
6,253
regional_sales
bird:train.json:2586
Calculate the average net profit for bakeware product.
SELECT AVG(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T2.`Product Name` = 'Bakeware'
[ "Calculate", "the", "average", "net", "profit", "for", "bakeware", "product", "." ]
[ { "id": 0, "type": "table", "value": "Sales Orders" }, { "id": 2, "type": "column", "value": "Product Name" }, { "id": 5, "type": "column", "value": "_productid" }, { "id": 6, "type": "column", "value": "Unit Price" }, { "id": 4, "type": "colum...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "B-TABLE", "O" ]
6,254
cookbook
bird:train.json:8903
Which ingredient appeared the most in recipes? Calculate its amount of appearance in percentage.
SELECT T1.name, CAST(COUNT(T2.ingredient_id) AS FLOAT) * 100 / ( SELECT COUNT(T2.ingredient_id) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id ) AS "percentage" FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id GROUP BY T2.ingredient_id ORDER ...
[ "Which", "ingredient", "appeared", "the", "most", "in", "recipes", "?", "Calculate", "its", "amount", "of", "appearance", "in", "percentage", "." ]
[ { "id": 0, "type": "column", "value": "ingredient_id" }, { "id": 2, "type": "table", "value": "ingredient" }, { "id": 3, "type": "table", "value": "quantity" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "value", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,255
retail_world
bird:train.json:6576
Name products and their quantity ordered by the company 'GROSELLA-Restaurante' in the sales order that was processed by Nancy Davolio.
SELECT T4.ProductName, T3.Quantity FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID INNER JOIN Customers AS T5 ON T2.CustomerID = T5.CustomerID WHERE T1.FirstName = 'Nancy' A...
[ "Name", "products", "and", "their", "quantity", "ordered", "by", "the", "company", "'", "GROSELLA", "-", "Restaurante", "'", "in", "the", "sales", "order", "that", "was", "processed", "by", "Nancy", "Davolio", "." ]
[ { "id": 10, "type": "value", "value": "GROSELLA-Restaurante" }, { "id": 11, "type": "table", "value": "Order Details" }, { "id": 0, "type": "column", "value": "productname" }, { "id": 9, "type": "column", "value": "companyname" }, { "id": 4, "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "O", "O", "O", "B-VALUE", "B-VALUE", "O" ]
6,256
donor
bird:train.json:3160
If funded, which are the projects that could impact at least 600 students for a school with moderate level of poverty? Name the projects and state the project cost.
SELECT DISTINCT T2.title, T1.total_price_excluding_optional_support FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.students_reached >= 600 AND T1.poverty_level LIKE 'moderate poverty'
[ "If", "funded", ",", "which", "are", "the", "projects", "that", "could", "impact", "at", "least", "600", "students", "for", "a", "school", "with", "moderate", "level", "of", "poverty", "?", "Name", "the", "projects", "and", "state", "the", "project", "cost...
[ { "id": 1, "type": "column", "value": "total_price_excluding_optional_support" }, { "id": 5, "type": "column", "value": "students_reached" }, { "id": 8, "type": "value", "value": "moderate poverty" }, { "id": 7, "type": "column", "value": "poverty_level" ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 25 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 29 ] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O" ]
6,257
donor
bird:train.json:3182
Which school requested the highest amount of resources from Amazon? State the school's ID.
SELECT T2.schoolid FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name LIKE 'Amazon' GROUP BY T2.schoolid ORDER BY COUNT(T1.vendor_name) DESC LIMIT 1
[ "Which", "school", "requested", "the", "highest", "amount", "of", "resources", "from", "Amazon", "?", "State", "the", "school", "'s", "ID", "." ]
[ { "id": 3, "type": "column", "value": "vendor_name" }, { "id": 1, "type": "table", "value": "resources" }, { "id": 5, "type": "column", "value": "projectid" }, { "id": 0, "type": "column", "value": "schoolid" }, { "id": 2, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "...
[ "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O" ]
6,258
race_track
spider:train_spider.json:785
Show the name and location of track with 1 race.
SELECT T2.name , T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING count(*) = 1
[ "Show", "the", "name", "and", "location", "of", "track", "with", "1", "race", "." ]
[ { "id": 0, "type": "column", "value": "track_id" }, { "id": 2, "type": "column", "value": "location" }, { "id": 4, "type": "table", "value": "track" }, { "id": 1, "type": "column", "value": "name" }, { "id": 3, "type": "table", "value": "ra...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "entity_...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "B-TABLE", "O" ]
6,259
superstore
bird:train.json:2377
What category does the item ordered by Katherine Murray on 11/4/2018 in the South region belong to?
SELECT DISTINCT T3.Category FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Katherine Murray' AND T1.`Order Date` = '2018-11-04' AND T2.Region = 'South'
[ "What", "category", "does", "the", "item", "ordered", "by", "Katherine", "Murray", "on", "11/4/2018", "in", "the", "South", "region", "belong", "to", "?" ]
[ { "id": 2, "type": "table", "value": "south_superstore" }, { "id": 6, "type": "value", "value": "Katherine Murray" }, { "id": 5, "type": "column", "value": "Customer Name" }, { "id": 11, "type": "column", "value": "Customer ID" }, { "id": 4, "t...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "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", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O" ]
6,260
legislator
bird:train.json:4803
List the full names, Twitter IDs, and YouTube IDs of legislators who have Richard as their first name.
SELECT T2.official_full_name, T1.twitter_id, T1.youtube_id FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.first_name = 'Richard'
[ "List", "the", "full", "names", ",", "Twitter", "IDs", ",", "and", "YouTube", "IDs", "of", "legislators", "who", "have", "Richard", "as", "their", "first", "name", "." ]
[ { "id": 0, "type": "column", "value": "official_full_name" }, { "id": 3, "type": "table", "value": "social-media" }, { "id": 8, "type": "column", "value": "bioguide_id" }, { "id": 1, "type": "column", "value": "twitter_id" }, { "id": 2, "type":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 9, 10 ] }, { "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-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
6,261
ship_mission
spider:train_spider.json:4000
List the name of ships in ascending order of tonnage.
SELECT Name FROM ship ORDER BY Tonnage ASC
[ "List", "the", "name", "of", "ships", "in", "ascending", "order", "of", "tonnage", "." ]
[ { "id": 2, "type": "column", "value": "tonnage" }, { "id": 0, "type": "table", "value": "ship" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O" ]
6,262
language_corpus
bird:train.json:5692
List all the first words of the biwords pair where the second word is 'antic'.
SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T2.w2nd = ( SELECT wid FROM words WHERE word = 'antic' )
[ "List", "all", "the", "first", "words", "of", "the", "biwords", "pair", "where", "the", "second", "word", "is", "'", "antic", "'", "." ]
[ { "id": 2, "type": "table", "value": "biwords" }, { "id": 1, "type": "table", "value": "words" }, { "id": 6, "type": "value", "value": "antic" }, { "id": 0, "type": "column", "value": "word" }, { "id": 3, "type": "column", "value": "w2nd" ...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O" ]
6,263
insurance_and_eClaims
spider:train_spider.json:1533
Find the names of customers who either have an deputy policy or uniformed policy.
SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy" OR t1.policy_type_code = "Uniform"
[ "Find", "the", "names", "of", "customers", "who", "either", "have", "an", "deputy", "policy", "or", "uniformed", "policy", "." ]
[ { "id": 0, "type": "column", "value": "customer_details" }, { "id": 4, "type": "column", "value": "policy_type_code" }, { "id": 3, "type": "column", "value": "customer_id" }, { "id": 2, "type": "table", "value": "customers" }, { "id": 1, "type"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "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", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "O", "O" ]
6,264
country_language
bird:test.json:1376
Show the names of countries and their official languages.
SELECT T1.name , T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id
[ "Show", "the", "names", "of", "countries", "and", "their", "official", "languages", "." ]
[ { "id": 3, "type": "table", "value": "official_languages" }, { "id": 4, "type": "column", "value": "language_id" }, { "id": 6, "type": "column", "value": "country_id" }, { "id": 1, "type": "table", "value": "languages" }, { "id": 2, "type": "ta...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "B-TABLE", "O" ]
6,265
sales
bird:train.json:5392
Among the products, how many of them are freebies?
SELECT COUNT(ProductID) FROM Products WHERE Price = 0
[ "Among", "the", "products", ",", "how", "many", "of", "them", "are", "freebies", "?" ]
[ { "id": 3, "type": "column", "value": "productid" }, { "id": 0, "type": "table", "value": "products" }, { "id": 1, "type": "column", "value": "price" }, { "id": 2, "type": "value", "value": "0" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "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", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,266
cre_Drama_Workshop_Groups
spider:train_spider.json:5170
What is the description of the service type which offers both the photo product and the film product?
SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.P...
[ "What", "is", "the", "description", "of", "the", "service", "type", "which", "offers", "both", "the", "photo", "product", "and", "the", "film", "product", "?" ]
[ { "id": 0, "type": "column", "value": "service_type_description" }, { "id": 1, "type": "table", "value": "ref_service_types" }, { "id": 6, "type": "column", "value": "service_type_code" }, { "id": 3, "type": "column", "value": "product_name" }, { "...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 17 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
6,268
art_1
bird:test.json:1217
What is the first and last name of each distinct artists who made a sculpture before 1900?
SELECT DISTINCT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.year < 1900
[ "What", "is", "the", "first", "and", "last", "name", "of", "each", "distinct", "artists", "who", "made", "a", "sculpture", "before", "1900", "?" ]
[ { "id": 3, "type": "table", "value": "sculptures" }, { "id": 7, "type": "column", "value": "sculptorid" }, { "id": 6, "type": "column", "value": "artistid" }, { "id": 2, "type": "table", "value": "artists" }, { "id": 0, "type": "column", "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
6,269
cre_Students_Information_Systems
bird:test.json:459
How many students got the most common result in the behavioral monitoring details? Also list the result details.
SELECT count(DISTINCT student_id) , behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1
[ "How", "many", "students", "got", "the", "most", "common", "result", "in", "the", "behavioral", "monitoring", "details", "?", "Also", "list", "the", "result", "details", "." ]
[ { "id": 1, "type": "column", "value": "behaviour_monitoring_details" }, { "id": 0, "type": "table", "value": "behaviour_monitoring" }, { "id": 2, "type": "column", "value": "student_id" } ]
[ { "entity_id": 0, "token_idxs": [ 10, 11 ] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_i...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O" ]
6,270
student_club
bird:dev.json:1449
What is the name and major of members who had to spend more than a hundred dollars on an expense?
SELECT DISTINCT T1.first_name, T1.last_name, T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major INNER JOIN expense AS T3 ON T1.member_id = T3.link_to_member WHERE T3.cost > 100
[ "What", "is", "the", "name", "and", "major", "of", "members", "who", "had", "to", "spend", "more", "than", "a", "hundred", "dollars", "on", "an", "expense", "?" ]
[ { "id": 9, "type": "column", "value": "link_to_member" }, { "id": 11, "type": "column", "value": "link_to_major" }, { "id": 0, "type": "column", "value": "first_name" }, { "id": 2, "type": "column", "value": "major_name" }, { "id": 1, "type": "...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 19 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
6,271
network_2
spider:train_spider.json:4475
What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?
SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')
[ "What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?" ]
[ { "id": 4, "type": "table", "value": "personfriend" }, { "id": 3, "type": "table", "value": "person" }, { "id": 5, "type": "column", "value": "friend" }, { "id": 6, "type": "value", "value": "Alice" }, { "id": 0, "type": "column", "value": ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O" ]
6,272
formula_1
spider:train_spider.json:2203
What are the names of races held between 2009 and 2011?
SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
[ "What", "are", "the", "names", "of", "races", "held", "between", "2009", "and", "2011", "?" ]
[ { "id": 0, "type": "table", "value": "races" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "column", "value": "year" }, { "id": 3, "type": "value", "value": "2009" }, { "id": 4, "type": "value", "value": "2011" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-VALUE", "O" ]
6,273
human_resources
bird:train.json:8978
Which positions are suitable with 4 years degree education?
SELECT positiontitle FROM position WHERE educationrequired = '4 year degree'
[ "Which", "positions", "are", "suitable", "with", "4", "years", "degree", "education", "?" ]
[ { "id": 2, "type": "column", "value": "educationrequired" }, { "id": 1, "type": "column", "value": "positiontitle" }, { "id": 3, "type": "value", "value": "4 year degree" }, { "id": 0, "type": "table", "value": "position" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 5, 6, 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O" ]
6,274
party_people
spider:train_spider.json:2081
How many Annual Meeting events happened in the United Kingdom region?
SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = "United Kingdom" AND t3.Event_Name = "Annaual Meeting"
[ "How", "many", "Annual", "Meeting", "events", "happened", "in", "the", "United", "Kingdom", "region", "?" ]
[ { "id": 7, "type": "column", "value": "Annaual Meeting" }, { "id": 5, "type": "column", "value": "United Kingdom" }, { "id": 0, "type": "table", "value": "party_events" }, { "id": 4, "type": "column", "value": "region_name" }, { "id": 6, "type"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 8, ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O" ]
6,276
music_2
spider:train_spider.json:5242
What instrument did the musician with last name "Heilo" use in the song "Badlands"?
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
[ "What", "instrument", "did", "the", "musician", "with", "last", "name", "\"", "Heilo", "\"", "use", "in", "the", "song", "\"", "Badlands", "\"", "?" ]
[ { "id": 1, "type": "table", "value": "instruments" }, { "id": 7, "type": "table", "value": "performance" }, { "id": 0, "type": "column", "value": "instrument" }, { "id": 10, "type": "column", "value": "bandmateid" }, { "id": 3, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 6, 7 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { ...
[ "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O" ]
6,277
sales
bird:train.json:5372
Calculate the total sales ids that were sales of Flat Washer 8.
SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Flat Washer 8'
[ "Calculate", "the", "total", "sales", "ids", "that", "were", "sales", "of", "Flat", "Washer", "8", "." ]
[ { "id": 3, "type": "value", "value": "Flat Washer 8" }, { "id": 5, "type": "column", "value": "productid" }, { "id": 1, "type": "table", "value": "products" }, { "id": 4, "type": "column", "value": "salesid" }, { "id": 0, "type": "table", "...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9, 10, 11 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
6,278
cre_Drama_Workshop_Groups
spider:train_spider.json:5113
Sort the names of products in ascending order of their price.
SELECT Product_Name FROM Products ORDER BY Product_Price ASC
[ "Sort", "the", "names", "of", "products", "in", "ascending", "order", "of", "their", "price", "." ]
[ { "id": 2, "type": "column", "value": "product_price" }, { "id": 1, "type": "column", "value": "product_name" }, { "id": 0, "type": "table", "value": "products" } ]
[ { "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", "O", "O", "O", "O", "O" ]
6,279
car_retails
bird:train.json:1613
How many products with the highest expected profits were sold in total?
SELECT SUM(t2.quantityOrdered) FROM orderdetails AS t2 INNER JOIN ( SELECT t1.productCode FROM products AS t1 ORDER BY t1.MSRP - t1.buyPrice DESC LIMIT 1 ) AS t3 ON t2.productCode = t3.productCode
[ "How", "many", "products", "with", "the", "highest", "expected", "profits", "were", "sold", "in", "total", "?" ]
[ { "id": 1, "type": "column", "value": "quantityordered" }, { "id": 0, "type": "table", "value": "orderdetails" }, { "id": 2, "type": "column", "value": "productcode" }, { "id": 3, "type": "table", "value": "products" }, { "id": 5, "type": "colu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,280
airline
bird:train.json:5829
How many flights on 2018/8/1 were operated by American Airlines Inc.?
SELECT COUNT(*) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1' AND T3.Description = 'American Airlines Inc.: AA'
[ "How", "many", "flights", "on", "2018/8/1", "were", "operated", "by", "American", "Airlines", "Inc.", "?" ]
[ { "id": 8, "type": "value", "value": "American Airlines Inc.: AA" }, { "id": 3, "type": "column", "value": "op_carrier_airline_id" }, { "id": 0, "type": "table", "value": "Air Carriers" }, { "id": 7, "type": "column", "value": "description" }, { "i...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "B-TABLE", "B-VALUE", "O" ]
6,281
twitter_1
spider:train_spider.json:300
Find the maximum and total number of followers of all users.
SELECT max(followers) , sum(followers) FROM user_profiles
[ "Find", "the", "maximum", "and", "total", "number", "of", "followers", "of", "all", "users", "." ]
[ { "id": 0, "type": "table", "value": "user_profiles" }, { "id": 1, "type": "column", "value": "followers" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "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-COLUMN", "O", "O", "O", "O" ]
6,282
cre_Doc_and_collections
bird:test.json:699
List collection subset id, name and number of collections in each subset.
SELECT T2.Collection_Subset_ID , T1.Collection_Subset_Name , count(*) FROM Collection_Subsets AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Collection_Subset_ID = T2.Collection_Subset_ID GROUP BY T2.Collection_Subset_ID;
[ "List", "collection", "subset", "i", "d", ",", "name", "and", "number", "of", "collections", "in", "each", "subset", "." ]
[ { "id": 3, "type": "table", "value": "collection_subset_members" }, { "id": 1, "type": "column", "value": "collection_subset_name" }, { "id": 0, "type": "column", "value": "collection_subset_id" }, { "id": 2, "type": "table", "value": "collection_subsets" ...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 1, 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-TABLE", "I-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,283
cre_Docs_and_Epenses
spider:train_spider.json:6427
What is the document type description for document type named Film?
SELECT document_type_description FROM Ref_document_types WHERE document_type_name = "Film"
[ "What", "is", "the", "document", "type", "description", "for", "document", "type", "named", "Film", "?" ]
[ { "id": 1, "type": "column", "value": "document_type_description" }, { "id": 0, "type": "table", "value": "ref_document_types" }, { "id": 2, "type": "column", "value": "document_type_name" }, { "id": 3, "type": "column", "value": "Film" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 2, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "O" ]
6,284
soccer_2016
bird:train.json:2015
List the names of players who played as a keeper.
SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Keeper' GROUP BY T1.Player_Name
[ "List", "the", "names", "of", "players", "who", "played", "as", "a", "keeper", "." ]
[ { "id": 5, "type": "table", "value": "player_match" }, { "id": 0, "type": "column", "value": "player_name" }, { "id": 2, "type": "column", "value": "role_desc" }, { "id": 7, "type": "column", "value": "player_id" }, { "id": 6, "type": "column",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
6,285
performance_attendance
spider:train_spider.json:1319
Show the dates of performances with attending members whose roles are "Violin".
SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin"
[ "Show", "the", "dates", "of", "performances", "with", "attending", "members", "whose", "roles", "are", "\"", "Violin", "\"", "." ]
[ { "id": 4, "type": "table", "value": "member_attendance" }, { "id": 6, "type": "column", "value": "performance_id" }, { "id": 1, "type": "table", "value": "performance" }, { "id": 7, "type": "column", "value": "member_id" }, { "id": 3, "type": ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O" ]
6,286
art_1
bird:test.json:1249
How many paintings were created before 1900 in different locations?
SELECT count(*) , LOCATION FROM paintings WHERE YEAR < 1900 GROUP BY LOCATION
[ "How", "many", "paintings", "were", "created", "before", "1900", "in", "different", "locations", "?" ]
[ { "id": 0, "type": "table", "value": "paintings" }, { "id": 1, "type": "column", "value": "location" }, { "id": 2, "type": "column", "value": "year" }, { "id": 3, "type": "value", "value": "1900" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O" ]
6,287
language_corpus
bird:train.json:5756
List out the total pages of Wikipedia in Catalan language.
SELECT pages FROM langs
[ "List", "out", "the", "total", "pages", "of", "Wikipedia", "in", "Catalan", "language", "." ]
[ { "id": 0, "type": "table", "value": "langs" }, { "id": 1, "type": "column", "value": "pages" } ]
[ { "entity_id": 0, "token_idxs": [ 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, "token_idxs": ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O" ]
6,288
codebase_comments
bird:train.json:603
What is the language of the method ''PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn"?
SELECT Lang FROM Method WHERE Name = 'PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn'
[ "What", "is", "the", "language", "of", "the", "method", "''", "PixieTests", ".", "SqlConnectionLayerTests", ".", "TestSqlCreateGuidColumn", "\"", "?" ]
[ { "id": 3, "type": "value", "value": "PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn" }, { "id": 0, "type": "table", "value": "method" }, { "id": 1, "type": "column", "value": "lang" }, { "id": 2, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8, 9, 10, 11, 12 ] }, { "entity_id": 4, "token_idxs"...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
6,289
beer_factory
bird:train.json:5329
Calculate the total purchases made by customers using their Visa credit cards in the Sac State American River Courtyard between 6/3/2014 and 11/27/2015.
SELECT SUM(T1.PurchasePrice) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State American River Courtyard' AND T1.CreditCardType = 'Visa' AND T1.TransactionDate BETWEEN '2014-06-03' AND '2015-11-27'
[ "Calculate", "the", "total", "purchases", "made", "by", "customers", "using", "their", "Visa", "credit", "cards", "in", "the", "Sac", "State", "American", "River", "Courtyard", "between", "6/3/2014", "and", "11/27/2015", "." ]
[ { "id": 5, "type": "value", "value": "Sac State American River Courtyard" }, { "id": 8, "type": "column", "value": "transactiondate" }, { "id": 6, "type": "column", "value": "creditcardtype" }, { "id": 2, "type": "column", "value": "purchaseprice" }, {...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 16, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O" ]
6,290
toxicology
bird:dev.json:325
How many carcinogenic molecules that consisted of Nitrogen?
SELECT COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.element = 'n' AND T1.label = '+'
[ "How", "many", "carcinogenic", "molecules", "that", "consisted", "of", "Nitrogen", "?" ]
[ { "id": 2, "type": "column", "value": "molecule_id" }, { "id": 0, "type": "table", "value": "molecule" }, { "id": 3, "type": "column", "value": "element" }, { "id": 5, "type": "column", "value": "label" }, { "id": 1, "type": "table", "value...
[ { "entity_id": 0, "token_idxs": [ 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", "O", "B-TABLE", "O", "O", "O", "O", "O" ]
6,292
works_cycles
bird:train.json:7012
State the product name, product line, rating and the selling price of product with the lowest rating.
SELECT T1.Name, T1.ProductLine, T2.Rating, T1.ListPrice FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID ORDER BY T2.Rating ASC LIMIT 1
[ "State", "the", "product", "name", ",", "product", "line", ",", "rating", "and", "the", "selling", "price", "of", "product", "with", "the", "lowest", "rating", "." ]
[ { "id": 5, "type": "table", "value": "productreview" }, { "id": 1, "type": "column", "value": "productline" }, { "id": 3, "type": "column", "value": "listprice" }, { "id": 6, "type": "column", "value": "productid" }, { "id": 4, "type": "table",...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 18 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, ...
[ "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
6,293
retail_complains
bird:train.json:243
Please list the full names of all the male clients born after the year 1990.
SELECT first, middle, last FROM client WHERE year > 1990
[ "Please", "list", "the", "full", "names", "of", "all", "the", "male", "clients", "born", "after", "the", "year", "1990", "." ]
[ { "id": 0, "type": "table", "value": "client" }, { "id": 2, "type": "column", "value": "middle" }, { "id": 1, "type": "column", "value": "first" }, { "id": 3, "type": "column", "value": "last" }, { "id": 4, "type": "column", "value": "year"...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity...
[ "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
6,294
apartment_rentals
spider:train_spider.json:1271
Which apartments have bookings with both status codes "Provisional" and "Confirmed"? Give me the apartment numbers.
SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional"
[ "Which", "apartments", "have", "bookings", "with", "both", "status", "codes", "\"", "Provisional", "\"", "and", "\"", "Confirmed", "\"", "?", "Give", "me", "the", "apartment", "numbers", "." ]
[ { "id": 3, "type": "column", "value": "booking_status_code" }, { "id": 1, "type": "table", "value": "apartment_bookings" }, { "id": 5, "type": "column", "value": "Provisional" }, { "id": 0, "type": "column", "value": "apt_number" }, { "id": 2, ...
[ { "entity_id": 0, "token_idxs": [ 20 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [ 4, 5, 6, 7 ] }, { "entity_id": 4, "...
[ "O", "B-TABLE", "B-TABLE", "I-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
6,295
thrombosis_prediction
bird:dev.json:1238
Among the patients who were diagnosed with SLE, who is the oldest with normal hemoglobin level. Provide the ID and sex.
SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1
[ "Among", "the", "patients", "who", "were", "diagnosed", "with", "SLE", ",", "who", "is", "the", "oldest", "with", "normal", "hemoglobin", "level", ".", "Provide", "the", "ID", "and", "sex", "." ]
[ { "id": 3, "type": "table", "value": "laboratory" }, { "id": 5, "type": "column", "value": "diagnosis" }, { "id": 4, "type": "column", "value": "birthday" }, { "id": 2, "type": "table", "value": "patient" }, { "id": 1, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [ 20 ] }, { "entity_id": 1, "token_idxs": [ 22 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
6,296
mondial_geo
bird:train.json:8298
How many mountains are there in the country with the greatest population?
SELECT COUNT(T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY T1.Population DESC LIMIT 1
[ "How", "many", "mountains", "are", "there", "in", "the", "country", "with", "the", "greatest", "population", "?" ]
[ { "id": 2, "type": "table", "value": "geo_mountain" }, { "id": 3, "type": "column", "value": "population" }, { "id": 4, "type": "column", "value": "mountain" }, { "id": 1, "type": "table", "value": "country" }, { "id": 6, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 2 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O" ]
6,297
retails
bird:train.json:6802
Which ship mode has more "deliver in person" instructions, rail or mail?
SELECT IIF(SUM(IIF(l_shipmode = 'RAIL', 1, 0)) - SUM(IIF(l_shipmode = 'MAIL', 1, 0)), 'RAIL', 'MAIL') AS result FROM lineitem WHERE l_shipinstruct = 'DELIVER IN PERSON'
[ "Which", "ship", "mode", "has", "more", "\"", "deliver", "in", "person", "\"", "instructions", ",", "rail", "or", "mail", "?" ]
[ { "id": 2, "type": "value", "value": "DELIVER IN PERSON" }, { "id": 1, "type": "column", "value": "l_shipinstruct" }, { "id": 7, "type": "column", "value": "l_shipmode" }, { "id": 0, "type": "table", "value": "lineitem" }, { "id": 3, "type": "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 14 ] ...
[ "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O" ]
6,298
student_club
bird:dev.json:1445
Find the full name of members whose t-shirt size is extra large.
SELECT first_name, last_name FROM member WHERE t_shirt_size = 'X-Large'
[ "Find", "the", "full", "name", "of", "members", "whose", "t", "-", "shirt", "size", "is", "extra", "large", "." ]
[ { "id": 3, "type": "column", "value": "t_shirt_size" }, { "id": 1, "type": "column", "value": "first_name" }, { "id": 2, "type": "column", "value": "last_name" }, { "id": 4, "type": "value", "value": "X-Large" }, { "id": 0, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9, 10 ] }, { "entity_id": 4, "token_idxs": [ 1...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O" ]
6,299
aan_1
bird:test.json:995
List names of all authors who have only 1 paper.
SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id HAVING count(*) = 1
[ "List", "names", "of", "all", "authors", "who", "have", "only", "1", "paper", "." ]
[ { "id": 3, "type": "table", "value": "author_list" }, { "id": 0, "type": "column", "value": "author_id" }, { "id": 2, "type": "table", "value": "author" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "value", "value":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "...
[ "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O" ]
6,300
car_road_race
bird:test.json:1336
Please show the names and ages of the drivers who participated in at least two races.
SELECT T1.Driver_Name , T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID HAVING COUNT(*) >= 2
[ "Please", "show", "the", "names", "and", "ages", "of", "the", "drivers", "who", "participated", "in", "at", "least", "two", "races", "." ]
[ { "id": 1, "type": "column", "value": "driver_name" }, { "id": 0, "type": "column", "value": "driver_id" }, { "id": 3, "type": "table", "value": "driver" }, { "id": 4, "type": "table", "value": "race" }, { "id": 2, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 15 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
6,301
legislator
bird:train.json:4830
What is the google entity ID of Benjamin Hawkins?
SELECT google_entity_id_id FROM historical WHERE first_name = 'Benjamin' AND last_name = 'Hawkins'
[ "What", "is", "the", "google", "entity", "ID", "of", "Benjamin", "Hawkins", "?" ]
[ { "id": 1, "type": "column", "value": "google_entity_id_id" }, { "id": 0, "type": "table", "value": "historical" }, { "id": 2, "type": "column", "value": "first_name" }, { "id": 4, "type": "column", "value": "last_name" }, { "id": 3, "type": "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-VALUE", "B-VALUE", "O" ]
6,302
hr_1
spider:train_spider.json:3463
display the department name and number of employees in each of the department.
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
[ "display", "the", "department", "name", "and", "number", "of", "employees", "in", "each", "of", "the", "department", "." ]
[ { "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": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
6,303
beer_factory
bird:train.json:5344
List out the name of the top 10 spenders and what credit card type are they using.
SELECT T1.First, T1.Last, T2.CreditCardType FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID GROUP BY T1.CustomerID ORDER BY SUM(T2.PurchasePrice) DESC LIMIT 10
[ "List", "out", "the", "name", "of", "the", "top", "10", "spenders", "and", "what", "credit", "card", "type", "are", "they", "using", "." ]
[ { "id": 3, "type": "column", "value": "creditcardtype" }, { "id": 6, "type": "column", "value": "purchaseprice" }, { "id": 5, "type": "table", "value": "transaction" }, { "id": 0, "type": "column", "value": "customerid" }, { "id": 4, "type": "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 0 ] }, { "entity_id": 3, "token_idxs": [ 11, 12, 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": ...
[ "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O" ]
6,305
election
spider:train_spider.json:2764
What are the names of the county that the delegates on "Appropriations" committee belong to?
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
[ "What", "are", "the", "names", "of", "the", "county", "that", "the", "delegates", "on", "\"", "Appropriations", "\"", "committee", "belong", "to", "?" ]
[ { "id": 4, "type": "column", "value": "Appropriations" }, { "id": 0, "type": "column", "value": "county_name" }, { "id": 3, "type": "column", "value": "committee" }, { "id": 5, "type": "column", "value": "county_id" }, { "id": 2, "type": "table...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 9, 10 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { ...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O" ]
6,306
book_1
bird:test.json:585
Show ids for orders including both "Pride and Prejudice" and "The Little Prince".
SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = "Pride and Prejudice" INTERSECT SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = "The Little Prince"
[ "Show", "ids", "for", "orders", "including", "both", "\"", "Pride", "and", "Prejudice", "\"", "and", "\"", "The", "Little", "Prince", "\"", "." ]
[ { "id": 4, "type": "column", "value": "Pride and Prejudice" }, { "id": 5, "type": "column", "value": "The Little Prince" }, { "id": 2, "type": "table", "value": "books_order" }, { "id": 0, "type": "column", "value": "idorder" }, { "id": 3, "typ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 7, 8, 9 ] }, { "e...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O" ]
6,307
tracking_software_problems
spider:train_spider.json:5386
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley"...
[ "What", "are", "the", "product", "ids", "for", "the", "problems", "reported", "by", "Christop", "Berge", "with", "closure", "authorised", "by", "Ashley", "Medhurst", "?" ]
[ { "id": 9, "type": "column", "value": "closure_authorised_by_staff_id" }, { "id": 3, "type": "column", "value": "reported_by_staff_id" }, { "id": 5, "type": "column", "value": "staff_first_name" }, { "id": 7, "type": "column", "value": "staff_last_name" ...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "B-COLUMN", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "B-COLUMN", "O" ]
6,308
candidate_poll
spider:train_spider.json:2408
Find the average height and weight for all males (sex is M).
SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'
[ "Find", "the", "average", "height", "and", "weight", "for", "all", "males", "(", "sex", "is", "M", ")", "." ]
[ { "id": 0, "type": "table", "value": "people" }, { "id": 3, "type": "column", "value": "height" }, { "id": 4, "type": "column", "value": "weight" }, { "id": 1, "type": "column", "value": "sex" }, { "id": 2, "type": "value", "value": "M" }...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entit...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
6,309
driving_school
spider:train_spider.json:6637
How many employees have a first name of Ludie?
SELECT count(*) FROM Staff WHERE first_name = "Ludie";
[ "How", "many", "employees", "have", "a", "first", "name", "of", "Ludie", "?" ]
[ { "id": 1, "type": "column", "value": "first_name" }, { "id": 0, "type": "table", "value": "staff" }, { "id": 2, "type": "column", "value": "Ludie" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O" ]
6,310
public_review_platform
bird:train.json:3960
How long is the Yelp business No. 15098 opened on Monday?
SELECT SUBSTR(T1.closing_time, 1, 2) + 12 - SUBSTR(T1.opening_time, 1, 2) AS YYSJ FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week = 'Monday' AND T1.business_id = 15098
[ "How", "long", "is", "the", "Yelp", "business", "No", ".", "15098", "opened", "on", "Monday", "?" ]
[ { "id": 0, "type": "table", "value": "business_hours" }, { "id": 8, "type": "column", "value": "opening_time" }, { "id": 11, "type": "column", "value": "closing_time" }, { "id": 3, "type": "column", "value": "day_of_week" }, { "id": 5, "type": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 5 ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "B-TABLE", "O" ]
6,312
book_publishing_company
bird:train.json:179
Name the store with ID 7066 and calculate the percentage of the the quantity ordered that were on 'Net 30' payment terms.
SELECT T2.stor_name , CAST(SUM(CASE WHEN payterms = 'Net 30' THEN qty ELSE 0 END) AS REAL) * 100 / SUM(qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id WHERE T1.stor_id = '7066' GROUP BY T2.stor_name
[ "Name", "the", "store", "with", "ID", "7066", "and", "calculate", "the", "percentage", "of", "the", "the", "quantity", "ordered", "that", "were", "on", "'", "Net", "30", "'", "payment", "terms", "." ]
[ { "id": 0, "type": "column", "value": "stor_name" }, { "id": 8, "type": "column", "value": "payterms" }, { "id": 3, "type": "column", "value": "stor_id" }, { "id": 2, "type": "table", "value": "stores" }, { "id": 9, "type": "value", "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": [ 5 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-VALUE", "O", "O", "B-COLUMN", "O" ]
6,313
customer_complaints
spider:train_spider.json:5809
Of complaints with the type code "Product Failure", how many had each different status code?
SELECT complaint_status_code , count(*) FROM complaints WHERE complaint_type_code = "Product Failure" GROUP BY complaint_status_code
[ "Of", "complaints", "with", "the", "type", "code", "\"", "Product", "Failure", "\"", ",", "how", "many", "had", "each", "different", "status", "code", "?" ]
[ { "id": 1, "type": "column", "value": "complaint_status_code" }, { "id": 2, "type": "column", "value": "complaint_type_code" }, { "id": 3, "type": "column", "value": "Product Failure" }, { "id": 0, "type": "table", "value": "complaints" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2, 3, 4, 5 ] }, { "entity_id": 3, "token_idxs": [ 7, 8 ] }, { "entity_id": 4, "token_idxs": [...
[ "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,314
legislator
bird:train.json:4793
Provide the current legislators' official full names who are from the Independent party.
SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Independent' GROUP BY T1.official_full_name
[ "Provide", "the", "current", "legislators", "'", "official", "full", "names", "who", "are", "from", "the", "Independent", "party", "." ]
[ { "id": 0, "type": "column", "value": "official_full_name" }, { "id": 2, "type": "table", "value": "current-terms" }, { "id": 4, "type": "value", "value": "Independent" }, { "id": 5, "type": "column", "value": "bioguide_id" }, { "id": 6, "type"...
[ { "entity_id": 0, "token_idxs": [ 5, 6, 7 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 12 ] ...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
6,315
works_cycles
bird:train.json:7436
List all products with the color yellow.
SELECT ProductID FROM Product WHERE Color = 'Yellow'
[ "List", "all", "products", "with", "the", "color", "yellow", "." ]
[ { "id": 1, "type": "column", "value": "productid" }, { "id": 0, "type": "table", "value": "product" }, { "id": 3, "type": "value", "value": "Yellow" }, { "id": 2, "type": "column", "value": "color" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
6,316
race_track
spider:train_spider.json:781
Show the name of track with most number of races.
SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1
[ "Show", "the", "name", "of", "track", "with", "most", "number", "of", "races", "." ]
[ { "id": 0, "type": "column", "value": "track_id" }, { "id": 3, "type": "table", "value": "track" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "table", "value": "race" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
6,317
books
bird:train.json:5958
What is the total shipping cost of all the orders made by Page Holsey? Indicate how many of the said orders were ordered in 2022.
SELECT SUM(T3.cost) FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T1.first_name = 'Page' AND T1.last_name = 'Holsey' AND STRFTIME('%Y', T2.order_date) = '2022'
[ "What", "is", "the", "total", "shipping", "cost", "of", "all", "the", "orders", "made", "by", "Page", "Holsey", "?", "Indicate", "how", "many", "of", "the", "said", "orders", "were", "ordered", "in", "2022", "." ]
[ { "id": 5, "type": "column", "value": "shipping_method_id" }, { "id": 0, "type": "table", "value": "shipping_method" }, { "id": 11, "type": "column", "value": "customer_id" }, { "id": 3, "type": "table", "value": "cust_order" }, { "id": 6, "typ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
6,318
soccer_2016
bird:train.json:1800
For how many times has SC Ganguly played as team captain in a match?
SELECT SUM(CASE WHEN T3.Role_Desc = 'Captain' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T1.Player_Name = 'SC Ganguly'
[ "For", "how", "many", "times", "has", "SC", "Ganguly", "played", "as", "team", "captain", "in", "a", "match", "?" ]
[ { "id": 4, "type": "table", "value": "player_match" }, { "id": 1, "type": "column", "value": "player_name" }, { "id": 2, "type": "value", "value": "SC Ganguly" }, { "id": 7, "type": "column", "value": "player_id" }, { "id": 9, "type": "column",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 12, 13 ] ...
[ "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "B-TABLE", "I-TABLE", "O" ]
6,319
hospital_1
spider:train_spider.json:3910
List the name of physicians who took some appointment.
SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID
[ "List", "the", "name", "of", "physicians", "who", "took", "some", "appointment", "." ]
[ { "id": 1, "type": "table", "value": "appointment" }, { "id": 4, "type": "column", "value": "employeeid" }, { "id": 2, "type": "table", "value": "physician" }, { "id": 3, "type": "column", "value": "physician" }, { "id": 0, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O" ]
6,320
california_schools
bird:dev.json:21
In Los Angeles how many schools have more than 500 free meals but less than 700 free or reduced price meals for K-12?
SELECT COUNT(CDSCode) FROM frpm WHERE `County Name` = 'Los Angeles' AND `Free Meal Count (K-12)` > 500 AND `FRPM Count (K-12)`< 700
[ "In", "Los", "Angeles", "how", "many", "schools", "have", "more", "than", "500", "free", "meals", "but", "less", "than", "700", "free", "or", "reduced", "price", "meals", "for", "K-12", "?" ]
[ { "id": 4, "type": "column", "value": "Free Meal Count (K-12)" }, { "id": 6, "type": "column", "value": "FRPM Count (K-12)" }, { "id": 2, "type": "column", "value": "County Name" }, { "id": 3, "type": "value", "value": "Los Angeles" }, { "id": 1, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 1, 2 ] }, { "entity_id": 4, "token_idxs": [ 19, 20, 21, 22 ] }, ...
[ "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
6,321
country_language
bird:test.json:1384
Show the average overall scores of countries whose official language is "English".
SELECT avg(T1.overall_score) FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id WHERE T3.name = "English"
[ "Show", "the", "average", "overall", "scores", "of", "countries", "whose", "official", "language", "is", "\"", "English", "\"", "." ]
[ { "id": 5, "type": "table", "value": "official_languages" }, { "id": 3, "type": "column", "value": "overall_score" }, { "id": 6, "type": "column", "value": "language_id" }, { "id": 8, "type": "column", "value": "country_id" }, { "id": 0, "type"...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 3, 4 ] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-TABLE", "B-TABLE", "O", "O", "B-COLUMN", "O", "O" ]
6,322
books
bird:train.json:6038
What is the highest price at which a customer bought the book 'The Prophet'?
SELECT MAX(T2.price) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'The Prophet'
[ "What", "is", "the", "highest", "price", "at", "which", "a", "customer", "bought", "the", "book", "'", "The", "Prophet", "'", "?" ]
[ { "id": 3, "type": "value", "value": "The Prophet" }, { "id": 1, "type": "table", "value": "order_line" }, { "id": 5, "type": "column", "value": "book_id" }, { "id": 2, "type": "column", "value": "title" }, { "id": 4, "type": "column", "val...
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 13, 14 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_i...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O" ]
6,323
e_learning
spider:train_spider.json:3819
Find the the date of enrollment of the "Spanish" course.
SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish"
[ "Find", "the", "the", "date", "of", "enrollment", "of", "the", "\"", "Spanish", "\"", "course", "." ]
[ { "id": 2, "type": "table", "value": "student_course_enrolment" }, { "id": 0, "type": "column", "value": "date_of_enrolment" }, { "id": 3, "type": "column", "value": "course_name" }, { "id": 5, "type": "column", "value": "course_id" }, { "id": 1, ...
[ { "entity_id": 0, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "e...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O" ]