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 |
|---|---|---|---|---|---|---|---|---|
4,410 | voter_2 | spider:train_spider.json:5478 | Find the distinct Advisor of students who have treasurer votes in the spring election cycle. | SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = "Spring" | [
"Find",
"the",
"distinct",
"Advisor",
"of",
"students",
"who",
"have",
"treasurer",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"."
] | [
{
"id": 3,
"type": "column",
"value": "election_cycle"
},
{
"id": 6,
"type": "column",
"value": "treasurer_vote"
},
{
"id": 2,
"type": "table",
"value": "voting_record"
},
{
"id": 0,
"type": "column",
"value": "advisor"
},
{
"id": 1,
"type": "t... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13,
14
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_i... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,411 | bike_1 | spider:train_spider.json:143 | What are the names and ids of stations that had more than 14 bikes available on average or were installed in December? | SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE "12/%" | [
"What",
"are",
"the",
"names",
"and",
"ids",
"of",
"stations",
"that",
"had",
"more",
"than",
"14",
"bikes",
"available",
"on",
"average",
"or",
"were",
"installed",
"in",
"December",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "installation_date"
},
{
"id": 8,
"type": "column",
"value": "bikes_available"
},
{
"id": 0,
"type": "column",
"value": "station_id"
},
{
"id": 1,
"type": "table",
"value": "station"
},
{
"id": 4,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
4,412 | toxicology | bird:dev.json:244 | Is the molecule with the most double bonds carcinogenic? | SELECT T1.label FROM molecule AS T1 INNER JOIN ( SELECT T.molecule_id, COUNT(T.bond_type) FROM bond AS T WHERE T.bond_type = '=' GROUP BY T.molecule_id ORDER BY COUNT(T.bond_type) DESC LIMIT 1 ) AS T2 ON T1.molecule_id = T2.molecule_id | [
"Is",
"the",
"molecule",
"with",
"the",
"most",
"double",
"bonds",
"carcinogenic",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "molecule_id"
},
{
"id": 4,
"type": "column",
"value": "bond_type"
},
{
"id": 1,
"type": "table",
"value": "molecule"
},
{
"id": 0,
"type": "column",
"value": "label"
},
{
"id": 3,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
4,413 | club_1 | spider:train_spider.json:4290 | Find the name of all the clubs at "AKW". | SELECT clubname FROM club WHERE clublocation = "AKW" | [
"Find",
"the",
"name",
"of",
"all",
"the",
"clubs",
"at",
"\"",
"AKW",
"\"",
"."
] | [
{
"id": 2,
"type": "column",
"value": "clublocation"
},
{
"id": 1,
"type": "column",
"value": "clubname"
},
{
"id": 0,
"type": "table",
"value": "club"
},
{
"id": 3,
"type": "column",
"value": "AKW"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
4,414 | program_share | spider:train_spider.json:3763 | List the names of all the channels owned by either CCTV or HBS | SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS' | [
"List",
"the",
"names",
"of",
"all",
"the",
"channels",
"owned",
"by",
"either",
"CCTV",
"or",
"HBS"
] | [
{
"id": 0,
"type": "table",
"value": "channel"
},
{
"id": 2,
"type": "column",
"value": "owner"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "CCTV"
},
{
"id": 4,
"type": "value",
"value": "HBS"
}... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE"
] |
4,415 | food_inspection_2 | bird:train.json:6201 | How many inspections done in 2010 had serious food safety issue? | SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T2.inspection_date) = '2010' AND T1.risk_level = 3 | [
"How",
"many",
"inspections",
"done",
"in",
"2010",
"had",
"serious",
"food",
"safety",
"issue",
"?"
] | [
{
"id": 8,
"type": "column",
"value": "inspection_date"
},
{
"id": 0,
"type": "table",
"value": "establishment"
},
{
"id": 2,
"type": "column",
"value": "inspection_id"
},
{
"id": 1,
"type": "table",
"value": "inspection"
},
{
"id": 3,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,416 | sakila_1 | spider:train_spider.json:2963 | Return the name of the category to which the film 'HUNGER ROOF' belongs. | SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' | [
"Return",
"the",
"name",
"of",
"the",
"category",
"to",
"which",
"the",
"film",
"'",
"HUNGER",
"ROOF",
"'",
"belongs",
"."
] | [
{
"id": 5,
"type": "table",
"value": "film_category"
},
{
"id": 3,
"type": "value",
"value": "HUNGER ROOF"
},
{
"id": 7,
"type": "column",
"value": "category_id"
},
{
"id": 4,
"type": "table",
"value": "category"
},
{
"id": 6,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
4,417 | phone_1 | spider:train_spider.json:1048 | List all the model names sorted by their launch year. | SELECT model_name FROM chip_model ORDER BY launch_year | [
"List",
"all",
"the",
"model",
"names",
"sorted",
"by",
"their",
"launch",
"year",
"."
] | [
{
"id": 2,
"type": "column",
"value": "launch_year"
},
{
"id": 0,
"type": "table",
"value": "chip_model"
},
{
"id": 1,
"type": "column",
"value": "model_name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
8,
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,418 | hockey | bird:train.json:7635 | List all the deceased goalies and the teams he had played whose birth country was in Canada. | SELECT DISTINCT firstName, lastName, T3.name FROM Goalies AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T1.lgID = T3.lgID WHERE T2.birthCountry = 'Canada' AND T2.deathYear IS NOT NULL AND T2.pos = 'G' | [
"List",
"all",
"the",
"deceased",
"goalies",
"and",
"the",
"teams",
"he",
"had",
"played",
"whose",
"birth",
"country",
"was",
"in",
"Canada",
"."
] | [
{
"id": 7,
"type": "column",
"value": "birthcountry"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 9,
"type": "column",
"value": "deathyear"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 12,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
4,419 | real_estate_rentals | bird:test.json:1441 | What was the registration date for the user whose login name is ratione? | SELECT date_registered FROM Users WHERE login_name = 'ratione'; | [
"What",
"was",
"the",
"registration",
"date",
"for",
"the",
"user",
"whose",
"login",
"name",
"is",
"ratione",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "date_registered"
},
{
"id": 2,
"type": "column",
"value": "login_name"
},
{
"id": 3,
"type": "value",
"value": "ratione"
},
{
"id": 0,
"type": "table",
"value": "users"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,420 | movie_3 | bird:train.json:9236 | Among films with a rental rate of 4.99, what is the total number of films starred by Bob Fawcett? | SELECT COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.rental_rate = 4.99 AND T1.first_name = 'Bob' AND T1.last_name = 'Fawcett' | [
"Among",
"films",
"with",
"a",
"rental",
"rate",
"of",
"4.99",
",",
"what",
"is",
"the",
"total",
"number",
"of",
"films",
"starred",
"by",
"Bob",
"Fawcett",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "rental_rate"
},
{
"id": 3,
"type": "table",
"value": "film_actor"
},
{
"id": 7,
"type": "column",
"value": "first_name"
},
{
"id": 9,
"type": "column",
"value": "last_name"
},
{
"id": 1,
"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": [
15
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
4,421 | musical | spider:train_spider.json:251 | What are the names of actors and the musicals that they are in? | SELECT T1.Name , T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID | [
"What",
"are",
"the",
"names",
"of",
"actors",
"and",
"the",
"musicals",
"that",
"they",
"are",
"in",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "musical_id"
},
{
"id": 2,
"type": "table",
"value": "musical"
},
{
"id": 1,
"type": "table",
"value": "actor"
},
{
"id": 0,
"type": "column",
"value": "name"
}
] | [
{
"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-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
4,423 | book_publishing_company | bird:train.json:185 | Name the Chief Executive Officer and when he/she was hired. | SELECT T1.fname, T1.lname, T1.hire_date FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Chief Financial Officier' | [
"Name",
"the",
"Chief",
"Executive",
"Officer",
"and",
"when",
"he",
"/",
"she",
"was",
"hired",
"."
] | [
{
"id": 6,
"type": "value",
"value": "Chief Financial Officier"
},
{
"id": 2,
"type": "column",
"value": "hire_date"
},
{
"id": 3,
"type": "table",
"value": "employee"
},
{
"id": 5,
"type": "column",
"value": "job_desc"
},
{
"id": 7,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
0
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,424 | dorm_1 | spider:train_spider.json:5689 | What is the average and total capacity for all dorms who are of gender X? | SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X' | [
"What",
"is",
"the",
"average",
"and",
"total",
"capacity",
"for",
"all",
"dorms",
"who",
"are",
"of",
"gender",
"X",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "student_capacity"
},
{
"id": 1,
"type": "column",
"value": "gender"
},
{
"id": 0,
"type": "table",
"value": "dorm"
},
{
"id": 2,
"type": "value",
"value": "X"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
4,425 | bike_racing | bird:test.json:1472 | List the heat, name, and nation for all the cyclists. | SELECT heat , name , nation FROM cyclist | [
"List",
"the",
"heat",
",",
"name",
",",
"and",
"nation",
"for",
"all",
"the",
"cyclists",
"."
] | [
{
"id": 0,
"type": "table",
"value": "cyclist"
},
{
"id": 3,
"type": "column",
"value": "nation"
},
{
"id": 1,
"type": "column",
"value": "heat"
},
{
"id": 2,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,426 | public_review_platform | bird:train.json:4062 | In businesses with a category of "DJs", how many businesses are rated less than 5? | SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'DJs' AND T1.stars < 5 | [
"In",
"businesses",
"with",
"a",
"category",
"of",
"\"",
"DJs",
"\"",
",",
"how",
"many",
"businesses",
"are",
"rated",
"less",
"than",
"5",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "business_categories"
},
{
"id": 5,
"type": "column",
"value": "category_name"
},
{
"id": 1,
"type": "column",
"value": "business_id"
},
{
"id": 4,
"type": "column",
"value": "category_id"
},
{
"id": 0,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,427 | e_learning | spider:train_spider.json:3810 | Find the names of courses taught by the tutor who has personal name "Julio". | SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = "Julio" | [
"Find",
"the",
"names",
"of",
"courses",
"taught",
"by",
"the",
"tutor",
"who",
"has",
"personal",
"name",
"\"",
"Julio",
"\"",
"."
] | [
{
"id": 1,
"type": "table",
"value": "course_authors_and_tutors"
},
{
"id": 3,
"type": "column",
"value": "personal_name"
},
{
"id": 0,
"type": "column",
"value": "course_name"
},
{
"id": 5,
"type": "column",
"value": "author_id"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5,
6,
7,
8
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
4,428 | synthea | bird:train.json:1415 | What is the code of the prevalent disease with the highest occurrences? | SELECT T2.code FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON T1.ITEM = T2.DESCRIPTION ORDER BY T1.OCCURRENCES DESC LIMIT 1 | [
"What",
"is",
"the",
"code",
"of",
"the",
"prevalent",
"disease",
"with",
"the",
"highest",
"occurrences",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "all_prevalences"
},
{
"id": 3,
"type": "column",
"value": "occurrences"
},
{
"id": 5,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "conditions"
},
{
"id": 0,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
1,
2
]
},
{
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,429 | art_1 | bird:test.json:1202 | What is the title and location of the oldest painting ? | select title , location from paintings order by year limit 1 | [
"What",
"is",
"the",
"title",
"and",
"location",
"of",
"the",
"oldest",
"painting",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "paintings"
},
{
"id": 2,
"type": "column",
"value": "location"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 3,
"type": "column",
"value": "year"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,430 | baseball_1 | spider:train_spider.json:3697 | List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007. | SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id... | [
"List",
"players",
"'",
"first",
"name",
"and",
"last",
"name",
"who",
"received",
"salary",
"from",
"team",
"Washington",
"Nationals",
"in",
"both",
"2005",
"and",
"2007",
"."
] | [
{
"id": 10,
"type": "value",
"value": "Washington Nationals"
},
{
"id": 0,
"type": "column",
"value": "name_first"
},
{
"id": 5,
"type": "column",
"value": "team_id_br"
},
{
"id": 1,
"type": "column",
"value": "name_last"
},
{
"id": 12,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
4,431 | codebase_community | bird:dev.json:579 | Write all comments made on the post titled 'How does gentle boosting differ from AdaBoost?' | SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'How does gentle boosting differ from AdaBoost?' | [
"Write",
"all",
"comments",
"made",
"on",
"the",
"post",
"titled",
"'",
"How",
"does",
"gentle",
"boosting",
"differ",
"from",
"AdaBoost",
"?",
"'"
] | [
{
"id": 4,
"type": "value",
"value": "How does gentle boosting differ from AdaBoost?"
},
{
"id": 1,
"type": "table",
"value": "comments"
},
{
"id": 5,
"type": "column",
"value": "postid"
},
{
"id": 2,
"type": "table",
"value": "posts"
},
{
"id": 3,... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
9,
10,
11,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
4,432 | race_track | spider:train_spider.json:769 | What is the race class with most number of races. | SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"race",
"class",
"with",
"most",
"number",
"of",
"races",
"."
] | [
{
"id": 1,
"type": "column",
"value": "class"
},
{
"id": 0,
"type": "table",
"value": "race"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"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",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,433 | bike_share_1 | bird:train.json:9097 | Name the city of the station that trip ID 585842 borrowed a bike and indicate when that station was first installed. | SELECT T2.city, T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 585842 | [
"Name",
"the",
"city",
"of",
"the",
"station",
"that",
"trip",
"ID",
"585842",
"borrowed",
"a",
"bike",
"and",
"indicate",
"when",
"that",
"station",
"was",
"first",
"installed",
"."
] | [
{
"id": 7,
"type": "column",
"value": "start_station_name"
},
{
"id": 1,
"type": "column",
"value": "installation_date"
},
{
"id": 3,
"type": "table",
"value": "station"
},
{
"id": 5,
"type": "value",
"value": "585842"
},
{
"id": 0,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
8
... | [
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
4,434 | bike_share_1 | bird:train.json:9003 | Calculate the average usage of each bike in the third quarter of year 2013. Find the average wind direction within the same period. | SELECT AVG(T1.duration), AVG(T2.wind_dir_degrees) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), 1, INSTR(T2.date, '/') - 1) IN ('7', '8', '9') AND SUBSTR(CAST(T2.date AS TEXT), -4) = '2013' | [
"Calculate",
"the",
"average",
"usage",
"of",
"each",
"bike",
"in",
"the",
"third",
"quarter",
"of",
"year",
"2013",
".",
"Find",
"the",
"average",
"wind",
"direction",
"within",
"the",
"same",
"period",
"."
] | [
{
"id": 3,
"type": "column",
"value": "wind_dir_degrees"
},
{
"id": 2,
"type": "column",
"value": "duration"
},
{
"id": 4,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "table",
"value": "weather"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
19
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
4,435 | storm_record | spider:train_spider.json:2708 | How many regions are affected? | SELECT count(DISTINCT region_id) FROM affected_region | [
"How",
"many",
"regions",
"are",
"affected",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "affected_region"
},
{
"id": 1,
"type": "column",
"value": "region_id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
4,436 | assets_maintenance | spider:train_spider.json:3132 | Which parts have more than 2 faults? Show the part name and id. | SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count(*) > 2 | [
"Which",
"parts",
"have",
"more",
"than",
"2",
"faults",
"?",
"Show",
"the",
"part",
"name",
"and",
"i",
"d."
] | [
{
"id": 3,
"type": "table",
"value": "part_faults"
},
{
"id": 1,
"type": "column",
"value": "part_name"
},
{
"id": 0,
"type": "column",
"value": "part_id"
},
{
"id": 2,
"type": "table",
"value": "parts"
},
{
"id": 4,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O"
] |
4,437 | insurance_fnol | spider:train_spider.json:914 | List all the policy types used by the customer enrolled in the most policies. | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.custo... | [
"List",
"all",
"the",
"policy",
"types",
"used",
"by",
"the",
"customer",
"enrolled",
"in",
"the",
"most",
"policies",
"."
] | [
{
"id": 1,
"type": "table",
"value": "available_policies"
},
{
"id": 4,
"type": "table",
"value": "customers_policies"
},
{
"id": 0,
"type": "column",
"value": "policy_type_code"
},
{
"id": 2,
"type": "column",
"value": "customer_name"
},
{
"id": 6... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13
]
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
4,438 | cre_Drama_Workshop_Groups | spider:train_spider.json:5134 | What are the names of workshop groups in which services with product name "film" are performed? | SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = "film" | [
"What",
"are",
"the",
"names",
"of",
"workshop",
"groups",
"in",
"which",
"services",
"with",
"product",
"name",
"\"",
"film",
"\"",
"are",
"performed",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "drama_workshop_groups"
},
{
"id": 1,
"type": "column",
"value": "store_email_address"
},
{
"id": 6,
"type": "column",
"value": "workshop_group_id"
},
{
"id": 4,
"type": "column",
"value": "product_name"
},
{
"i... | [
{
"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": [
11,
12
]
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
4,439 | sing_contest | bird:test.json:748 | What are the distinct stage presence scores for all the songs that are in language 'English' ? | SELECT DISTINCT T2.stage_presence FROM songs AS T1 JOIN performance_score AS T2 ON T1.id = T2.songs_id WHERE T1.language = 'English' | [
"What",
"are",
"the",
"distinct",
"stage",
"presence",
"scores",
"for",
"all",
"the",
"songs",
"that",
"are",
"in",
"language",
"'",
"English",
"'",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "performance_score"
},
{
"id": 0,
"type": "column",
"value": "stage_presence"
},
{
"id": 3,
"type": "column",
"value": "language"
},
{
"id": 6,
"type": "column",
"value": "songs_id"
},
{
"id": 4,
"type": "va... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
16
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
4,440 | body_builder | spider:train_spider.json:1151 | List the total scores of body builders in ascending order. | SELECT Total FROM body_builder ORDER BY Total ASC | [
"List",
"the",
"total",
"scores",
"of",
"body",
"builders",
"in",
"ascending",
"order",
"."
] | [
{
"id": 0,
"type": "table",
"value": "body_builder"
},
{
"id": 1,
"type": "column",
"value": "total"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O"
] |
4,441 | retail_world | bird:train.json:6630 | What are the total products value shipped to Brazil by Speedy Express Company? | SELECT SUM(T2.Quantity * T2.UnitPrice) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Shippers AS T3 ON T1.ShipVia = T3.ShipperID WHERE T3.CompanyName = 'Speedy Express' AND T1.ShipCountry = 'Brazil' | [
"What",
"are",
"the",
"total",
"products",
"value",
"shipped",
"to",
"Brazil",
"by",
"Speedy",
"Express",
"Company",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Speedy Express"
},
{
"id": 2,
"type": "table",
"value": "Order Details"
},
{
"id": 5,
"type": "column",
"value": "companyname"
},
{
"id": 7,
"type": "column",
"value": "shipcountry"
},
{
"id": 4,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"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": [
12
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O"
] |
4,442 | works_cycles | bird:train.json:7380 | Which product allows the company to make the highest profit on a single item among those that are the fastest to manufacture? Indicate the rating of the product if there any. | SELECT T1.Name, T2.Rating FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T1.DaysToManufacture = ( SELECT DaysToManufacture FROM Product ORDER BY DaysToManufacture LIMIT 1 ) ORDER BY T1.ListPrice - T1.StandardCost DESC LIMIT 1 | [
"Which",
"product",
"allows",
"the",
"company",
"to",
"make",
"the",
"highest",
"profit",
"on",
"a",
"single",
"item",
"among",
"those",
"that",
"are",
"the",
"fastest",
"to",
"manufacture",
"?",
"Indicate",
"the",
"rating",
"of",
"the",
"product",
"if",
"... | [
{
"id": 4,
"type": "column",
"value": "daystomanufacture"
},
{
"id": 3,
"type": "table",
"value": "productreview"
},
{
"id": 7,
"type": "column",
"value": "standardcost"
},
{
"id": 5,
"type": "column",
"value": "productid"
},
{
"id": 6,
"type":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
25
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
28,
29
]
},
{
"entity_id": 4,
"token_idxs": [
20,
21
... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O"
] |
4,443 | superhero | bird:dev.json:811 | Give the alignment and superpowers of the superhero named Atom IV. | SELECT T4.alignment, T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T3.id = T2.power_id INNER JOIN alignment AS T4 ON T1.alignment_id = T4.id WHERE T1.superhero_name = 'Atom IV' | [
"Give",
"the",
"alignment",
"and",
"superpowers",
"of",
"the",
"superhero",
"named",
"Atom",
"IV",
"."
] | [
{
"id": 3,
"type": "column",
"value": "superhero_name"
},
{
"id": 6,
"type": "column",
"value": "alignment_id"
},
{
"id": 1,
"type": "column",
"value": "power_name"
},
{
"id": 5,
"type": "table",
"value": "superpower"
},
{
"id": 9,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
9,
10
]
},
{
"entity_id"... | [
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O"
] |
4,444 | codebase_community | bird:dev.json:647 | Provide the badge names received in 2011 for the user whose location is in the North Pole. | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE STRFTIME('%Y', T2.Date) = '2011' AND T1.Location = 'North Pole' | [
"Provide",
"the",
"badge",
"names",
"received",
"in",
"2011",
"for",
"the",
"user",
"whose",
"location",
"is",
"in",
"the",
"North",
"Pole",
"."
] | [
{
"id": 7,
"type": "value",
"value": "North Pole"
},
{
"id": 6,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "table",
"value": "badges"
},
{
"id": 4,
"type": "column",
"value": "userid"
},
{
"id": 1,
"type": "table",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
4,445 | professional_basketball | bird:train.json:2952 | Which team had more than one player who grabbed more than 600 rebounds in 2011? Give the full name of the team. | SELECT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 2011 AND T2.rebounds > 600 | [
"Which",
"team",
"had",
"more",
"than",
"one",
"player",
"who",
"grabbed",
"more",
"than",
"600",
"rebounds",
"in",
"2011",
"?",
"Give",
"the",
"full",
"name",
"of",
"the",
"team",
"."
] | [
{
"id": 2,
"type": "table",
"value": "players_teams"
},
{
"id": 5,
"type": "column",
"value": "rebounds"
},
{
"id": 1,
"type": "table",
"value": "teams"
},
{
"id": 0,
"type": "column",
"value": "tmid"
},
{
"id": 3,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id": 5,
... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,446 | college_2 | spider:train_spider.json:1323 | What are the distinct buildings with capacities of greater than 50? | SELECT DISTINCT building FROM classroom WHERE capacity > 50 | [
"What",
"are",
"the",
"distinct",
"buildings",
"with",
"capacities",
"of",
"greater",
"than",
"50",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "classroom"
},
{
"id": 1,
"type": "column",
"value": "building"
},
{
"id": 2,
"type": "column",
"value": "capacity"
},
{
"id": 3,
"type": "value",
"value": "50"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,447 | allergy_1 | spider:train_spider.json:476 | What are the student ids for students over 20 years old? | SELECT StuID FROM Student WHERE age > 20 | [
"What",
"are",
"the",
"student",
"ids",
"for",
"students",
"over",
"20",
"years",
"old",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "stuid"
},
{
"id": 2,
"type": "column",
"value": "age"
},
{
"id": 3,
"type": "value",
"value": "20"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
4,448 | retails | bird:train.json:6805 | Please list any three customers with debt. | SELECT c_name FROM customer WHERE c_acctbal < 0 LIMIT 3 | [
"Please",
"list",
"any",
"three",
"customers",
"with",
"debt",
"."
] | [
{
"id": 2,
"type": "column",
"value": "c_acctbal"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "column",
"value": "c_name"
},
{
"id": 3,
"type": "value",
"value": "0"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
4,449 | e_learning | spider:train_spider.json:3784 | Find the dates of the tests taken with result "Pass". | SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = "Pass" | [
"Find",
"the",
"dates",
"of",
"the",
"tests",
"taken",
"with",
"result",
"\"",
"Pass",
"\"",
"."
] | [
{
"id": 0,
"type": "table",
"value": "student_tests_taken"
},
{
"id": 1,
"type": "column",
"value": "date_test_taken"
},
{
"id": 2,
"type": "column",
"value": "test_result"
},
{
"id": 3,
"type": "column",
"value": "Pass"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"e... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
4,450 | world_development_indicators | bird:train.json:2205 | How many nations in East Asia and the Pacific have completed their external debt reporting on time? | SELECT COUNT(CountryCode) FROM Country WHERE Region = 'East Asia & Pacific' AND ExternalDebtReportingStatus = 'Estimate' | [
"How",
"many",
"nations",
"in",
"East",
"Asia",
"and",
"the",
"Pacific",
"have",
"completed",
"their",
"external",
"debt",
"reporting",
"on",
"time",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "externaldebtreportingstatus"
},
{
"id": 3,
"type": "value",
"value": "East Asia & Pacific"
},
{
"id": 1,
"type": "column",
"value": "countrycode"
},
{
"id": 5,
"type": "value",
"value": "Estimate"
},
{
"id": 0... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5,
6,
7,
8
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13,
... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,452 | movie_1 | spider:train_spider.json:2443 | How many reviewers are there? | SELECT count(*) FROM Reviewer | [
"How",
"many",
"reviewers",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "reviewer"
}
] | [
{
"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"
] |
4,453 | planet_1 | bird:test.json:1928 | What are the names of all employees who have a salary greater than average or more than 5000? | SELECT Name FROM Employee WHERE Salary > 5000 OR Salary > (SELECT avg(salary) FROM employee) | [
"What",
"are",
"the",
"names",
"of",
"all",
"employees",
"who",
"have",
"a",
"salary",
"greater",
"than",
"average",
"or",
"more",
"than",
"5000",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 2,
"type": "column",
"value": "salary"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "5000"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,454 | superstore | bird:train.json:2456 | Provide the product's name of the product with the highest sales in the South region. | SELECT T2.`Product Name` FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'South' ORDER BY T1.Sales DESC LIMIT 1 | [
"Provide",
"the",
"product",
"'s",
"name",
"of",
"the",
"product",
"with",
"the",
"highest",
"sales",
"in",
"the",
"South",
"region",
"."
] | [
{
"id": 1,
"type": "table",
"value": "south_superstore"
},
{
"id": 0,
"type": "column",
"value": "Product Name"
},
{
"id": 6,
"type": "column",
"value": "Product ID"
},
{
"id": 2,
"type": "table",
"value": "product"
},
{
"id": 3,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
4,455 | books | bird:train.json:6096 | What is the number of pages of the book in the order ID 1167? | SELECT T1.num_pages FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.order_id = 1167 | [
"What",
"is",
"the",
"number",
"of",
"pages",
"of",
"the",
"book",
"in",
"the",
"order",
"ID",
"1167",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "order_line"
},
{
"id": 0,
"type": "column",
"value": "num_pages"
},
{
"id": 3,
"type": "column",
"value": "order_id"
},
{
"id": 5,
"type": "column",
"value": "book_id"
},
{
"id": 1,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
4,456 | customer_complaints | spider:train_spider.json:5773 | Return the city with the customer type code "Good Credit Rating" that had the fewest customers. | SELECT town_city FROM customers WHERE customer_type_code = "Good Credit Rating" GROUP BY town_city ORDER BY count(*) LIMIT 1 | [
"Return",
"the",
"city",
"with",
"the",
"customer",
"type",
"code",
"\"",
"Good",
"Credit",
"Rating",
"\"",
"that",
"had",
"the",
"fewest",
"customers",
"."
] | [
{
"id": 2,
"type": "column",
"value": "customer_type_code"
},
{
"id": 3,
"type": "column",
"value": "Good Credit Rating"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 1,
"type": "column",
"value": "town_city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10,
11
]
},
{
"entity_id": 4,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,457 | e_government | spider:train_spider.json:6324 | Find the last name of the first ever contact person of the organization with the highest UK Vat number. | SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT... | [
"Find",
"the",
"last",
"name",
"of",
"the",
"first",
"ever",
"contact",
"person",
"of",
"the",
"organization",
"with",
"the",
"highest",
"UK",
"Vat",
"number",
"."
] | [
{
"id": 5,
"type": "table",
"value": "organization_contact_individuals"
},
{
"id": 0,
"type": "column",
"value": "individual_last_name"
},
{
"id": 3,
"type": "column",
"value": "date_contact_to"
},
{
"id": 7,
"type": "column",
"value": "organization_id"
... | [
{
"entity_id": 0,
"token_idxs": [
0,
1,
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
16,
17,
18
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"to... | [
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
4,458 | image_and_language | bird:train.json:7475 | What is the ID of the image with the most number of object samples? | SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID ORDER BY COUNT(OBJ_SAMPLE_ID) DESC LIMIT 1 | [
"What",
"is",
"the",
"ID",
"of",
"the",
"image",
"with",
"the",
"most",
"number",
"of",
"object",
"samples",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "obj_sample_id"
},
{
"id": 0,
"type": "table",
"value": "img_obj"
},
{
"id": 1,
"type": "column",
"value": "img_id"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,459 | app_store | bird:train.json:2552 | What is the average price for a dating application? | SELECT AVG(Price) FROM playstore WHERE Genres = 'Dating' | [
"What",
"is",
"the",
"average",
"price",
"for",
"a",
"dating",
"application",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "playstore"
},
{
"id": 1,
"type": "column",
"value": "genres"
},
{
"id": 2,
"type": "value",
"value": "Dating"
},
{
"id": 3,
"type": "column",
"value": "price"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
4,460 | ice_hockey_draft | bird:train.json:6975 | List the names of all players from Avangard Omsk that have played for playoffs in season 2000-2001. | SELECT DISTINCT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.TEAM = 'Avangard Omsk' AND T1.GAMETYPE = 'Playoffs' | [
"List",
"the",
"names",
"of",
"all",
"players",
"from",
"Avangard",
"Omsk",
"that",
"have",
"played",
"for",
"playoffs",
"in",
"season",
"2000",
"-",
"2001",
"."
] | [
{
"id": 7,
"type": "value",
"value": "Avangard Omsk"
},
{
"id": 1,
"type": "table",
"value": "seasonstatus"
},
{
"id": 0,
"type": "column",
"value": "playername"
},
{
"id": 2,
"type": "table",
"value": "playerinfo"
},
{
"id": 5,
"type": "value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
"tok... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
4,461 | car_retails | bird:train.json:1665 | How many 2001 Ferrari Enzo were ordered? | SELECT SUM(t1.orderNumber) FROM orderdetails AS t1 INNER JOIN products AS t2 ON t1.productCode = t2.productCode WHERE t2.productName = '2001 Ferrari Enzo' | [
"How",
"many",
"2001",
"Ferrari",
"Enzo",
"were",
"ordered",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "2001 Ferrari Enzo"
},
{
"id": 0,
"type": "table",
"value": "orderdetails"
},
{
"id": 2,
"type": "column",
"value": "productname"
},
{
"id": 4,
"type": "column",
"value": "ordernumber"
},
{
"id": 5,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O"
] |
4,463 | culture_company | spider:train_spider.json:6991 | Which directors had a movie in either 1999 or 2000? | SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000 | [
"Which",
"directors",
"had",
"a",
"movie",
"in",
"either",
"1999",
"or",
"2000",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "director"
},
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value": "1999"
},
{
"id": 4,
"type": "value",
"value": "2000"
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_... | [
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
4,464 | regional_sales | bird:train.json:2582 | Name the most expensive ordered? Who, when was it ordered? | SELECT T2.OrderNumber, T1.`Customer Names`, T2.OrderDate FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products AS T3 ON T3.ProductID = T2._ProductID ORDER BY T2.`Unit Cost` DESC LIMIT 1 | [
"Name",
"the",
"most",
"expensive",
"ordered",
"?",
"Who",
",",
"when",
"was",
"it",
"ordered",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "Customer Names"
},
{
"id": 6,
"type": "table",
"value": "Sales Orders"
},
{
"id": 0,
"type": "column",
"value": "ordernumber"
},
{
"id": 9,
"type": "column",
"value": "_customerid"
},
{
"id": 8,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
1,
2
]
},
{
"entity_id"... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O"
] |
4,465 | social_media | bird:train.json:802 | State the number of positive tweets from Ha Noi. | SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Sentiment > 0 AND T2.State = 'Ha Noi' | [
"State",
"the",
"number",
"of",
"positive",
"tweets",
"from",
"Ha",
"Noi",
"."
] | [
{
"id": 3,
"type": "column",
"value": "locationid"
},
{
"id": 4,
"type": "column",
"value": "sentiment"
},
{
"id": 1,
"type": "table",
"value": "location"
},
{
"id": 0,
"type": "table",
"value": "twitter"
},
{
"id": 2,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
4,466 | formula_1 | spider:train_spider.json:2181 | What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix? | SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T... | [
"What",
"are",
"the",
"forenames",
"and",
"surnames",
"of",
"drivers",
"who",
"participated",
"in",
"the",
"races",
"named",
"Australian",
"Grand",
"Prix",
"but",
"not",
"the",
"races",
"named",
"Chinese",
"Grand",
"Prix",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "Australian Grand Prix"
},
{
"id": 5,
"type": "column",
"value": "Chinese Grand Prix"
},
{
"id": 0,
"type": "column",
"value": "forename"
},
{
"id": 8,
"type": "column",
"value": "driverid"
},
{
"id": 1,
"t... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
14,
15,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
4,467 | apartment_rentals | spider:train_spider.json:1242 | Show the total number of rooms of the apartments in the building with short name "Columbus Square". | SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = "Columbus Square" | [
"Show",
"the",
"total",
"number",
"of",
"rooms",
"of",
"the",
"apartments",
"in",
"the",
"building",
"with",
"short",
"name",
"\"",
"Columbus",
"Square",
"\"",
"."
] | [
{
"id": 0,
"type": "table",
"value": "apartment_buildings"
},
{
"id": 2,
"type": "column",
"value": "building_short_name"
},
{
"id": 3,
"type": "column",
"value": "Columbus Square"
},
{
"id": 5,
"type": "column",
"value": "building_id"
},
{
"id": 1... | [
{
"entity_id": 0,
"token_idxs": [
9,
10
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
12,
13,
14
]
},
{
"entity_id": 3,
"token_idxs": [
16,
17
]
},
{
"entity_id": 4,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
4,468 | phone_1 | spider:train_spider.json:1031 | Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is "LG-P760". | SELECT T1.Char_cells , T1.Pixels , T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = "LG-P760"; | [
"Find",
"the",
"Char",
"cells",
",",
"Pixels",
"and",
"Hardware",
"colours",
"for",
"the",
"screen",
"of",
"the",
"phone",
"whose",
"hardware",
"model",
"name",
"is",
"\"",
"LG",
"-",
"P760",
"\"",
"."
] | [
{
"id": 5,
"type": "column",
"value": "hardware_model_name"
},
{
"id": 2,
"type": "column",
"value": "hardware_colours"
},
{
"id": 7,
"type": "column",
"value": "graphics_mode"
},
{
"id": 3,
"type": "table",
"value": "screen_mode"
},
{
"id": 8,
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
14
]
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O"
] |
4,469 | music_platform_2 | bird:train.json:7963 | What is the average rating of podcasts in comedy category? | SELECT AVG(T2.rating) FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'comedy' | [
"What",
"is",
"the",
"average",
"rating",
"of",
"podcasts",
"in",
"comedy",
"category",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "categories"
},
{
"id": 5,
"type": "column",
"value": "podcast_id"
},
{
"id": 2,
"type": "column",
"value": "category"
},
{
"id": 1,
"type": "table",
"value": "reviews"
},
{
"id": 3,
"type": "value",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
4,470 | soccer_2016 | bird:train.json:1811 | Who was the man of the series in 2013? Give the full name. | SELECT T2.Player_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id WHERE T1.Season_Year = 2013 | [
"Who",
"was",
"the",
"man",
"of",
"the",
"series",
"in",
"2013",
"?",
"Give",
"the",
"full",
"name",
"."
] | [
{
"id": 5,
"type": "column",
"value": "man_of_the_series"
},
{
"id": 0,
"type": "column",
"value": "player_name"
},
{
"id": 3,
"type": "column",
"value": "season_year"
},
{
"id": 6,
"type": "column",
"value": "player_id"
},
{
"id": 1,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"token_idxs": [
3,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,472 | authors | bird:train.json:3527 | List down the author ID of authors with a name of "Peter". | SELECT AuthorId FROM PaperAuthor WHERE Name = 'Peter' | [
"List",
"down",
"the",
"author",
"ID",
"of",
"authors",
"with",
"a",
"name",
"of",
"\"",
"Peter",
"\"",
"."
] | [
{
"id": 0,
"type": "table",
"value": "paperauthor"
},
{
"id": 1,
"type": "column",
"value": "authorid"
},
{
"id": 3,
"type": "value",
"value": "Peter"
},
{
"id": 2,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
4,473 | simpson_episodes | bird:train.json:4295 | List all of the award winners' birth dates. | SELECT T1.birthdate FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.result = 'Winner'; | [
"List",
"all",
"of",
"the",
"award",
"winners",
"'",
"birth",
"dates",
"."
] | [
{
"id": 0,
"type": "column",
"value": "birthdate"
},
{
"id": 1,
"type": "table",
"value": "person"
},
{
"id": 3,
"type": "column",
"value": "result"
},
{
"id": 4,
"type": "value",
"value": "Winner"
},
{
"id": 6,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
7,
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,474 | codebase_comments | bird:train.json:602 | How many more followers in percentage are there for the repository used by solution ID 18 than solution ID19? | SELECT CAST((SUM(CASE WHEN T2.Id = 18 THEN T1.Forks ELSE 0 END) - SUM(CASE WHEN T2.Id = 19 THEN T1.Forks ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 19 THEN T1.Forks ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId | [
"How",
"many",
"more",
"followers",
"in",
"percentage",
"are",
"there",
"for",
"the",
"repository",
"used",
"by",
"solution",
"ID",
"18",
"than",
"solution",
"ID19",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 3,
"type": "column",
"value": "repoid"
},
{
"id": 6,
"type": "column",
"value": "forks"
},
{
"id": 0,
"type": "table",
"value": "repo"
},
{
"id": 4,
"type": "value",
"value": "100"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
4,475 | icfp_1 | spider:train_spider.json:2882 | What are the papers published under the institution "Indiana University"? | SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University" | [
"What",
"are",
"the",
"papers",
"published",
"under",
"the",
"institution",
"\"",
"Indiana",
"University",
"\"",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "Indiana University"
},
{
"id": 5,
"type": "table",
"value": "authorship"
},
{
"id": 7,
"type": "column",
"value": "paperid"
},
{
"id": 4,
"type": "table",
"value": "papers"
},
{
"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,
10
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
4,476 | hr_1 | spider:train_spider.json:3443 | display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000. | SELECT job_title , max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000 | [
"display",
"job",
"Title",
",",
"the",
"difference",
"between",
"minimum",
"and",
"maximum",
"salaries",
"for",
"those",
"jobs",
"which",
"max",
"salary",
"within",
"the",
"range",
"12000",
"to",
"18000",
"."
] | [
{
"id": 2,
"type": "column",
"value": "max_salary"
},
{
"id": 5,
"type": "column",
"value": "min_salary"
},
{
"id": 1,
"type": "column",
"value": "job_title"
},
{
"id": 3,
"type": "value",
"value": "12000"
},
{
"id": 4,
"type": "value",
"va... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": [
22
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
4,477 | chicago_crime | bird:train.json:8753 | List down the report number of crimes associated with the district commander named Jill M. Stevens. | SELECT SUM(CASE WHEN T1.commander = 'Jill M. Stevens' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no | [
"List",
"down",
"the",
"report",
"number",
"of",
"crimes",
"associated",
"with",
"the",
"district",
"commander",
"named",
"Jill",
"M.",
"Stevens",
"."
] | [
{
"id": 6,
"type": "value",
"value": "Jill M. Stevens"
},
{
"id": 2,
"type": "column",
"value": "district_no"
},
{
"id": 5,
"type": "column",
"value": "commander"
},
{
"id": 0,
"type": "table",
"value": "district"
},
{
"id": 1,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
4,478 | olympics | bird:train.json:5040 | List out the name of the game that the people participated in games id 13. | SELECT DISTINCT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T2.games_id = 13 | [
"List",
"out",
"the",
"name",
"of",
"the",
"game",
"that",
"the",
"people",
"participated",
"in",
"games",
"i",
"d",
"13",
"."
] | [
{
"id": 2,
"type": "table",
"value": "games_competitor"
},
{
"id": 0,
"type": "column",
"value": "games_name"
},
{
"id": 3,
"type": "column",
"value": "games_id"
},
{
"id": 1,
"type": "table",
"value": "games"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
4,479 | art_1 | bird:test.json:1234 | What are the location and medium type of paintings that are created by the artist whose first name is Pablo? | SELECT T2.location , T2.medium FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.fname = "Pablo" | [
"What",
"are",
"the",
"location",
"and",
"medium",
"type",
"of",
"paintings",
"that",
"are",
"created",
"by",
"the",
"artist",
"whose",
"first",
"name",
"is",
"Pablo",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "paintings"
},
{
"id": 7,
"type": "column",
"value": "painterid"
},
{
"id": 0,
"type": "column",
"value": "location"
},
{
"id": 6,
"type": "column",
"value": "artistid"
},
{
"id": 2,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
4,480 | donor | bird:train.json:3275 | What percentage of projects that have not received a cash donation have received a portion of a donation included corporate sponsored giftcard? | SELECT CAST(SUM(CASE WHEN payment_included_campaign_gift_card = 't' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(donationid) FROM donations WHERE payment_method = 'no_cash_received' | [
"What",
"percentage",
"of",
"projects",
"that",
"have",
"not",
"received",
"a",
"cash",
"donation",
"have",
"received",
"a",
"portion",
"of",
"a",
"donation",
"included",
"corporate",
"sponsored",
"giftcard",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "payment_included_campaign_gift_card"
},
{
"id": 2,
"type": "value",
"value": "no_cash_received"
},
{
"id": 1,
"type": "column",
"value": "payment_method"
},
{
"id": 4,
"type": "column",
"value": "donationid"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
4,481 | restaurant | bird:train.json:1760 | List the review and label of the restaurants in Mission Blvd., Hayward. | SELECT T2.review, T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'hayward' AND T1.street_name = 'mission blvd' | [
"List",
"the",
"review",
"and",
"label",
"of",
"the",
"restaurants",
"in",
"Mission",
"Blvd",
".",
",",
"Hayward",
"."
] | [
{
"id": 4,
"type": "column",
"value": "id_restaurant"
},
{
"id": 8,
"type": "value",
"value": "mission blvd"
},
{
"id": 3,
"type": "table",
"value": "generalinfo"
},
{
"id": 7,
"type": "column",
"value": "street_name"
},
{
"id": 2,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
4,482 | pilot_1 | bird:test.json:1149 | What are the names of pilots who have planes in both Austin and Boston? | SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = "Austin" INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.LOCATION = "Boston" | [
"What",
"are",
"the",
"names",
"of",
"pilots",
"who",
"have",
"planes",
"in",
"both",
"Austin",
"and",
"Boston",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "pilotskills"
},
{
"id": 0,
"type": "column",
"value": "pilot_name"
},
{
"id": 6,
"type": "column",
"value": "plane_name"
},
{
"id": 3,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
4,483 | address_1 | bird:test.json:780 | How many cities are there in each country? | SELECT country , count(*) FROM City GROUP BY country | [
"How",
"many",
"cities",
"are",
"there",
"in",
"each",
"country",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,484 | document_management | spider:train_spider.json:4505 | Find the total access count of all documents in the most popular document type. | SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"total",
"access",
"count",
"of",
"all",
"documents",
"in",
"the",
"most",
"popular",
"document",
"type",
"."
] | [
{
"id": 1,
"type": "column",
"value": "document_type_code"
},
{
"id": 2,
"type": "column",
"value": "access_count"
},
{
"id": 0,
"type": "table",
"value": "documents"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
12,
13
]
},
{
"entity_id": 2,
"token_idxs": [
3,
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,485 | customers_campaigns_ecommerce | spider:train_spider.json:4632 | What are the distinct address type codes for all customer addresses? | SELECT DISTINCT address_type_code FROM customer_addresses | [
"What",
"are",
"the",
"distinct",
"address",
"type",
"codes",
"for",
"all",
"customer",
"addresses",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "customer_addresses"
},
{
"id": 1,
"type": "column",
"value": "address_type_code"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9,
10
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
4,486 | product_catalog | spider:train_spider.json:315 | What are the entry names of catalog with the attribute possessed by most entries. | SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1) | [
"What",
"are",
"the",
"entry",
"names",
"of",
"catalog",
"with",
"the",
"attribute",
"possessed",
"by",
"most",
"entries",
"."
] | [
{
"id": 2,
"type": "table",
"value": "catalog_contents_additional_attributes"
},
{
"id": 0,
"type": "column",
"value": "catalog_entry_name"
},
{
"id": 1,
"type": "table",
"value": "catalog_contents"
},
{
"id": 4,
"type": "column",
"value": "catalog_entry_i... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
4,487 | voter_2 | spider:train_spider.json:5489 | Which students live in the city with code "NYC" and have class senator votes in the spring election cycle? Count the numbers. | SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | [
"Which",
"students",
"live",
"in",
"the",
"city",
"with",
"code",
"\"",
"NYC",
"\"",
"and",
"have",
"class",
"senator",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"?",
"Count",
"the",
"numbers",
"."
] | [
{
"id": 3,
"type": "column",
"value": "class_senator_vote"
},
{
"id": 6,
"type": "column",
"value": "election_cycle"
},
{
"id": 1,
"type": "table",
"value": "voting_record"
},
{
"id": 4,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
13,
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
5,
6,
7
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
4,488 | boat_1 | bird:test.json:915 | Find the names of sailors who reserved boat with the name Melon. | SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.name = 'Melon' | [
"Find",
"the",
"names",
"of",
"sailors",
"who",
"reserved",
"boat",
"with",
"the",
"name",
"Melon",
"."
] | [
{
"id": 4,
"type": "table",
"value": "reserves"
},
{
"id": 3,
"type": "table",
"value": "sailors"
},
{
"id": 1,
"type": "table",
"value": "boats"
},
{
"id": 2,
"type": "value",
"value": "Melon"
},
{
"id": 0,
"type": "column",
"value": "name... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
4,489 | gymnast | spider:train_spider.json:1771 | From which hometowns did both people older than 23 and younger than 20 come from? | SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20 | [
"From",
"which",
"hometowns",
"did",
"both",
"people",
"older",
"than",
"23",
"and",
"younger",
"than",
"20",
"come",
"from",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "hometown"
},
{
"id": 0,
"type": "table",
"value": "people"
},
{
"id": 2,
"type": "column",
"value": "age"
},
{
"id": 3,
"type": "value",
"value": "23"
},
{
"id": 4,
"type": "value",
"value": "20"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
4,490 | movie_platform | bird:train.json:43 | What is the average rating score of the movie "The Crowd" and who was its director? | SELECT AVG(T2.rating_score), T1.director_name FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Crowd' | [
"What",
"is",
"the",
"average",
"rating",
"score",
"of",
"the",
"movie",
"\"",
"The",
"Crowd",
"\"",
"and",
"who",
"was",
"its",
"director",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "director_name"
},
{
"id": 5,
"type": "column",
"value": "rating_score"
},
{
"id": 3,
"type": "column",
"value": "movie_title"
},
{
"id": 4,
"type": "value",
"value": "The Crowd"
},
{
"id": 6,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,491 | financial | bird:dev.json:131 | Which district has highest active loan? | SELECT T2.A3 FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN loan AS T3 ON T1.account_id = T3.account_id WHERE T3.status IN ('C', 'D') GROUP BY T2.A3 ORDER BY SUM(T3.amount) DESC LIMIT 1 | [
"Which",
"district",
"has",
"highest",
"active",
"loan",
"?"
] | [
{
"id": 9,
"type": "column",
"value": "district_id"
},
{
"id": 7,
"type": "column",
"value": "account_id"
},
{
"id": 6,
"type": "table",
"value": "district"
},
{
"id": 5,
"type": "table",
"value": "account"
},
{
"id": 2,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,492 | olympics | bird:train.json:4969 | Calculate the percentage of women who have participated in Equestrianism Mixed Three-Day Event, Individual. | SELECT CAST(COUNT(CASE WHEN T1.gender = 'F' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN event AS T4 ON T3.event_id = T4.id WHERE T4.event_name = 'Equestrianism Mix... | [
"Calculate",
"the",
"percentage",
"of",
"women",
"who",
"have",
"participated",
"in",
"Equestrianism",
"Mixed",
"Three",
"-",
"Day",
"Event",
",",
"Individual",
"."
] | [
{
"id": 2,
"type": "value",
"value": "Equestrianism Mixed Three-Day Event, Individual"
},
{
"id": 3,
"type": "table",
"value": "competitor_event"
},
{
"id": 8,
"type": "table",
"value": "games_competitor"
},
{
"id": 9,
"type": "column",
"value": "competito... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9,
10,
11,
12,
13,
15,
16
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"to... | [
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O"
] |
4,493 | university_rank | bird:test.json:1773 | Show all home conferences with average enrollment of universities above 2000. | SELECT home_conference FROM University GROUP BY home_conference HAVING avg(enrollment) > 2000 | [
"Show",
"all",
"home",
"conferences",
"with",
"average",
"enrollment",
"of",
"universities",
"above",
"2000",
"."
] | [
{
"id": 1,
"type": "column",
"value": "home_conference"
},
{
"id": 0,
"type": "table",
"value": "university"
},
{
"id": 3,
"type": "column",
"value": "enrollment"
},
{
"id": 2,
"type": "value",
"value": "2000"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
4,494 | superhero | bird:dev.json:752 | Give the name of the alien superheroes. | SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alien' | [
"Give",
"the",
"name",
"of",
"the",
"alien",
"superheroes",
"."
] | [
{
"id": 0,
"type": "column",
"value": "superhero_name"
},
{
"id": 1,
"type": "table",
"value": "superhero"
},
{
"id": 5,
"type": "column",
"value": "race_id"
},
{
"id": 4,
"type": "value",
"value": "Alien"
},
{
"id": 2,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
4,495 | superhero | bird:dev.json:796 | State all of 3-D Man's attributes along with their values. | SELECT T3.attribute_name, T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T1.superhero_name = '3-D Man' | [
"State",
"all",
"of",
"3",
"-",
"D",
"Man",
"'s",
"attributes",
"along",
"with",
"their",
"values",
"."
] | [
{
"id": 1,
"type": "column",
"value": "attribute_value"
},
{
"id": 0,
"type": "column",
"value": "attribute_name"
},
{
"id": 3,
"type": "column",
"value": "superhero_name"
},
{
"id": 6,
"type": "table",
"value": "hero_attribute"
},
{
"id": 7,
"... | [
{
"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": [
3,
4,
6
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
4,496 | student_1 | spider:train_spider.json:4057 | Show each student's first name and last name. | SELECT DISTINCT firstname , lastname FROM list | [
"Show",
"each",
"student",
"'s",
"first",
"name",
"and",
"last",
"name",
"."
] | [
{
"id": 1,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "column",
"value": "lastname"
},
{
"id": 0,
"type": "table",
"value": "list"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
4,497 | student_1 | spider:train_spider.json:4065 | What are the last names of the teachers who teach the student called GELL TAMI? | SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "GELL" AND T1.lastname = "TAMI" | [
"What",
"are",
"the",
"last",
"names",
"of",
"the",
"teachers",
"who",
"teach",
"the",
"student",
"called",
"GELL",
"TAMI",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "classroom"
},
{
"id": 4,
"type": "column",
"value": "firstname"
},
{
"id": 0,
"type": "column",
"value": "lastname"
},
{
"id": 2,
"type": "table",
"value": "teachers"
},
{
"id": 1,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
4,498 | cs_semester | bird:train.json:874 | For the 3-credit course with the easiest difficulty, how many students get an "A" in that course? | SELECT COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T1.grade = 'A' AND T2.credit = '3' AND T2.diff = 1 | [
"For",
"the",
"3",
"-",
"credit",
"course",
"with",
"the",
"easiest",
"difficulty",
",",
"how",
"many",
"students",
"get",
"an",
"\"",
"A",
"\"",
"in",
"that",
"course",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "registration"
},
{
"id": 2,
"type": "column",
"value": "student_id"
},
{
"id": 3,
"type": "column",
"value": "course_id"
},
{
"id": 1,
"type": "table",
"value": "course"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
21
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,500 | customers_and_addresses | spider:train_spider.json:6114 | Find the number of distinct products Rodrick Heaney has bought so far. | SELECT count(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney" | [
"Find",
"the",
"number",
"of",
"distinct",
"products",
"Rodrick",
"Heaney",
"has",
"bought",
"so",
"far",
"."
] | [
{
"id": 5,
"type": "table",
"value": "customer_orders"
},
{
"id": 2,
"type": "column",
"value": "Rodrick Heaney"
},
{
"id": 1,
"type": "column",
"value": "customer_name"
},
{
"id": 0,
"type": "table",
"value": "order_items"
},
{
"id": 7,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
4,501 | car_retails | bird:train.json:1626 | If I'm from the Muscle Machine Inc, to which e-mail adress should I write a letter if I want to reach the superior of my sales representitive? | SELECT t2.email FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t1.customerName = 'Muscle Machine Inc' | [
"If",
"I",
"'m",
"from",
"the",
"Muscle",
"Machine",
"Inc",
",",
"to",
"which",
"e",
"-",
"mail",
"adress",
"should",
"I",
"write",
"a",
"letter",
"if",
"I",
"want",
"to",
"reach",
"the",
"superior",
"of",
"my",
"sales",
"representitive",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "salesrepemployeenumber"
},
{
"id": 4,
"type": "value",
"value": "Muscle Machine Inc"
},
{
"id": 6,
"type": "column",
"value": "employeenumber"
},
{
"id": 3,
"type": "column",
"value": "customername"
},
{
"id":... | [
{
"entity_id": 0,
"token_idxs": [
11,
12,
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6,
7
]
},
{... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,502 | codebase_community | bird:dev.json:603 | What is the sum of favourite count gained by user ID 686 in 2011? | SELECT SUM(DISTINCT FavoriteCount) FROM posts WHERE Id IN ( SELECT PostId FROM postHistory WHERE UserId = 686 AND STRFTIME('%Y', CreationDate) = '2011' ) | [
"What",
"is",
"the",
"sum",
"of",
"favourite",
"count",
"gained",
"by",
"user",
"ID",
"686",
"in",
"2011",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "favoritecount"
},
{
"id": 9,
"type": "column",
"value": "creationdate"
},
{
"id": 3,
"type": "table",
"value": "posthistory"
},
{
"id": 4,
"type": "column",
"value": "postid"
},
{
"id": 5,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
4,503 | voter_2 | spider:train_spider.json:5509 | Find the major that is studied by the largest number of students. | SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"major",
"that",
"is",
"studied",
"by",
"the",
"largest",
"number",
"of",
"students",
"."
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "major"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,504 | movielens | bird:train.json:2280 | Among divergent movies that got the highest rating, how many of them are from the UK? | SELECT COUNT(DISTINCT T1.movieid) FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'UK' AND T1.rating = 5 | [
"Among",
"divergent",
"movies",
"that",
"got",
"the",
"highest",
"rating",
",",
"how",
"many",
"of",
"them",
"are",
"from",
"the",
"UK",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "movieid"
},
{
"id": 3,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
"value": "u2base"
},
{
"id": 1,
"type": "table",
"value": "movies"
},
{
"id": 5,
"type": "column",
"value": "r... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,505 | debit_card_specializing | bird:dev.json:1496 | Which client segment consumed the least in September 2013? | SELECT T1.Segment FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Date = '201309' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1 | [
"Which",
"client",
"segment",
"consumed",
"the",
"least",
"in",
"September",
"2013",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "consumption"
},
{
"id": 0,
"type": "column",
"value": "customerid"
},
{
"id": 2,
"type": "table",
"value": "customers"
},
{
"id": 3,
"type": "table",
"value": "yearmonth"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
8
... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,507 | soccer_2 | spider:train_spider.json:4986 | Find the number of students who participate in the tryout for each college ordered by descending count. | SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC | [
"Find",
"the",
"number",
"of",
"students",
"who",
"participate",
"in",
"the",
"tryout",
"for",
"each",
"college",
"ordered",
"by",
"descending",
"count",
"."
] | [
{
"id": 0,
"type": "table",
"value": "tryout"
},
{
"id": 1,
"type": "column",
"value": "cname"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,508 | public_review_platform | bird:train.json:3819 | Please list all business IDs in Mesa city that review stars of over 3. | SELECT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Mesa' AND T2.review_stars > 3 GROUP BY T1.business_id | [
"Please",
"list",
"all",
"business",
"IDs",
"in",
"Mesa",
"city",
"that",
"review",
"stars",
"of",
"over",
"3",
"."
] | [
{
"id": 5,
"type": "column",
"value": "review_stars"
},
{
"id": 0,
"type": "column",
"value": "business_id"
},
{
"id": 1,
"type": "table",
"value": "business"
},
{
"id": 2,
"type": "table",
"value": "reviews"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
4,509 | institution_sports | bird:test.json:1655 | What is the stadium of the institution with the largest enrollment? | SELECT Stadium FROM institution ORDER BY Enrollment DESC LIMIT 1 | [
"What",
"is",
"the",
"stadium",
"of",
"the",
"institution",
"with",
"the",
"largest",
"enrollment",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "institution"
},
{
"id": 2,
"type": "column",
"value": "enrollment"
},
{
"id": 1,
"type": "column",
"value": "stadium"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,510 | e_government | spider:train_spider.json:6321 | What is the name of the organization that was formed most recently? | SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"organization",
"that",
"was",
"formed",
"most",
"recently",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "organization_name"
},
{
"id": 0,
"type": "table",
"value": "organizations"
},
{
"id": 2,
"type": "column",
"value": "date_formed"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"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",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
4,511 | journal_committee | spider:train_spider.json:662 | Show the id, name of each editor and the number of journal committees they are on. | SELECT T1.editor_id , T1.Name , COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id | [
"Show",
"the",
"i",
"d",
",",
"name",
"of",
"each",
"editor",
"and",
"the",
"number",
"of",
"journal",
"committees",
"they",
"are",
"on",
"."
] | [
{
"id": 3,
"type": "table",
"value": "journal_committee"
},
{
"id": 0,
"type": "column",
"value": "editor_id"
},
{
"id": 2,
"type": "table",
"value": "editor"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
13,
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O"
] |
4,512 | talkingdata | bird:train.json:1179 | Among the HTC users, calculate the percentage of female users who are over 80. | SELECT SUM(IIF(T1.gender = 'F' AND T1.age > 80, 1, 0)) / COUNT(T1.device_id) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'HTC' | [
"Among",
"the",
"HTC",
"users",
",",
"calculate",
"the",
"percentage",
"of",
"female",
"users",
"who",
"are",
"over",
"80",
"."
] | [
{
"id": 1,
"type": "table",
"value": "phone_brand_device_model2"
},
{
"id": 2,
"type": "column",
"value": "phone_brand"
},
{
"id": 0,
"type": "table",
"value": "gender_age"
},
{
"id": 4,
"type": "column",
"value": "device_id"
},
{
"id": 7,
"typ... | [
{
"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-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,513 | computer_student | bird:train.json:1018 | Which professor taught the least amount of courses? | SELECT p_id FROM taughtBy GROUP BY p_id ORDER BY COUNT(course_id) ASC LIMIT 1 | [
"Which",
"professor",
"taught",
"the",
"least",
"amount",
"of",
"courses",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "course_id"
},
{
"id": 0,
"type": "table",
"value": "taughtby"
},
{
"id": 1,
"type": "column",
"value": "p_id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,514 | shakespeare | bird:train.json:2955 | What is the description of Act 1, Scene 2 in Twelfth Night? | SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Twelfth Night' AND T2.Act = 1 AND T2.Scene = 2 | [
"What",
"is",
"the",
"description",
"of",
"Act",
"1",
",",
"Scene",
"2",
"in",
"Twelfth",
"Night",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Twelfth Night"
},
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "chapters"
},
{
"id": 4,
"type": "column",
"value": "work_id"
},
{
"id": 1,
"type": "table",
... | [
{
"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-COLUMN",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
4,515 | formula_1 | bird:dev.json:900 | List circuits in USA which hosted f1 races in 2006. State the name and location of circuit and the name of the race it hosted. | SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'USA' AND T2.year = 2006 | [
"List",
"circuits",
"in",
"USA",
"which",
"hosted",
"f1",
"races",
"in",
"2006",
".",
"State",
"the",
"name",
"and",
"location",
"of",
"circuit",
"and",
"the",
"name",
"of",
"the",
"race",
"it",
"hosted",
"."
] | [
{
"id": 4,
"type": "column",
"value": "circuitid"
},
{
"id": 1,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "table",
"value": "circuits"
},
{
"id": 5,
"type": "column",
"value": "country"
},
{
"id": 3,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
... | [
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.