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 |
|---|---|---|---|---|---|---|---|---|
1,935 | county_public_safety | spider:train_spider.json:2534 | List the names of counties in descending order of population. | SELECT Name FROM county_public_safety ORDER BY Population DESC | [
"List",
"the",
"names",
"of",
"counties",
"in",
"descending",
"order",
"of",
"population",
"."
] | [
{
"id": 0,
"type": "table",
"value": "county_public_safety"
},
{
"id": 2,
"type": "column",
"value": "population"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,936 | codebase_community | bird:dev.json:670 | What is the date when the youngest user made his or her first post? | SELECT T2.CreaionDate FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Age IS NOT NULL ORDER BY T1.Age, T2.CreaionDate LIMIT 1 | [
"What",
"is",
"the",
"date",
"when",
"the",
"youngest",
"user",
"made",
"his",
"or",
"her",
"first",
"post",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "creaiondate"
},
{
"id": 5,
"type": "column",
"value": "owneruserid"
},
{
"id": 1,
"type": "table",
"value": "users"
},
{
"id": 2,
"type": "table",
"value": "posts"
},
{
"id": 3,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,937 | student_club | bird:dev.json:1442 | What is the percentage of the events that went over budget? | SELECT CAST(SUM(CASE WHEN remaining < 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(budget_id) FROM budget | [
"What",
"is",
"the",
"percentage",
"of",
"the",
"events",
"that",
"went",
"over",
"budget",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "budget_id"
},
{
"id": 5,
"type": "column",
"value": "remaining"
},
{
"id": 0,
"type": "table",
"value": "budget"
},
{
"id": 1,
"type": "value",
"value": "100"
},
{
"id": 3,
"type": "value",
"value": "0... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,938 | decoration_competition | spider:train_spider.json:4488 | Show the different countries and the number of members from each. | SELECT Country , COUNT(*) FROM member GROUP BY Country | [
"Show",
"the",
"different",
"countries",
"and",
"the",
"number",
"of",
"members",
"from",
"each",
"."
] | [
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
"value": "member"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
1,939 | european_football_2 | bird:dev.json:1054 | What is the defensive work rate of the football player David Wilson
? | SELECT DISTINCT t2.defensive_work_rate FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'David Wilson' | [
"What",
"is",
"the",
"defensive",
"work",
"rate",
"of",
"the",
"football",
"player",
"David",
"Wilson",
"\n",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "defensive_work_rate"
},
{
"id": 2,
"type": "table",
"value": "player_attributes"
},
{
"id": 5,
"type": "column",
"value": "player_api_id"
},
{
"id": 4,
"type": "value",
"value": "David Wilson"
},
{
"id": 3,
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
1,940 | food_inspection_2 | bird:train.json:6243 | Name the taverns that failed the inspection in January 2010. | SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE strftime('%Y-%m', T2.inspection_date) = '2010-01' AND T2.results = 'Fail' AND T1.facility_type = 'TAVERN' | [
"Name",
"the",
"taverns",
"that",
"failed",
"the",
"inspection",
"in",
"January",
"2010",
"."
] | [
{
"id": 12,
"type": "column",
"value": "inspection_date"
},
{
"id": 2,
"type": "table",
"value": "establishment"
},
{
"id": 4,
"type": "column",
"value": "inspection_id"
},
{
"id": 8,
"type": "column",
"value": "facility_type"
},
{
"id": 3,
"ty... | [
{
"entity_id": 0,
"token_idxs": [
0
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
1,941 | sales | bird:train.json:5465 | Give the full name of the customer who bought the most amount of products. | SELECT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID ORDER BY T2.Quantity * T1.Price DESC LIMIT 1 | [
"Give",
"the",
"full",
"name",
"of",
"the",
"customer",
"who",
"bought",
"the",
"most",
"amount",
"of",
"products",
"."
] | [
{
"id": 1,
"type": "column",
"value": "middleinitial"
},
{
"id": 6,
"type": "column",
"value": "customerid"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 3,
"type": "table",
"value": "customers"
},
{
"id": 9,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,942 | food_inspection_2 | bird:train.json:6211 | What is the name of the establishment that Joshua Rosa inspected? | SELECT DISTINCT T3.dba_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Joshua' AND T1.last_name = 'Rosa' | [
"What",
"is",
"the",
"name",
"of",
"the",
"establishment",
"that",
"Joshua",
"Rosa",
"inspected",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "establishment"
},
{
"id": 9,
"type": "column",
"value": "employee_id"
},
{
"id": 3,
"type": "table",
"value": "inspection"
},
{
"id": 4,
"type": "column",
"value": "license_no"
},
{
"id": 5,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"B-TABLE",
"O"
] |
1,943 | disney | bird:train.json:4705 | Provide the name of the song from the movie directed by Ben Sharpsteen. | SELECT T1.song FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Ben Sharpsteen' | [
"Provide",
"the",
"name",
"of",
"the",
"song",
"from",
"the",
"movie",
"directed",
"by",
"Ben",
"Sharpsteen",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Ben Sharpsteen"
},
{
"id": 5,
"type": "column",
"value": "movie_title"
},
{
"id": 1,
"type": "table",
"value": "characters"
},
{
"id": 2,
"type": "table",
"value": "director"
},
{
"id": 3,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"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... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
1,944 | soccer_3 | bird:test.json:27 | Which manufacturer is most common among clubs? | SELECT Manufacturer FROM club GROUP BY Manufacturer ORDER BY COUNT(*) DESC LIMIT 1 | [
"Which",
"manufacturer",
"is",
"most",
"common",
"among",
"clubs",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "manufacturer"
},
{
"id": 0,
"type": "table",
"value": "club"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,945 | musical | spider:train_spider.json:239 | Return the characters and durations for each actor. | SELECT Character , Duration FROM actor | [
"Return",
"the",
"characters",
"and",
"durations",
"for",
"each",
"actor",
"."
] | [
{
"id": 1,
"type": "column",
"value": "character"
},
{
"id": 2,
"type": "column",
"value": "duration"
},
{
"id": 0,
"type": "table",
"value": "actor"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
1,946 | codebase_comments | bird:train.json:568 | What is the time of sampling of the solution with the highest sampling time? Indicate the id number of the solution. | SELECT DISTINCT SampledAt, SolutionId FROM Method WHERE SampledAt = ( SELECT MAX(SampledAt) FROM Method ) | [
"What",
"is",
"the",
"time",
"of",
"sampling",
"of",
"the",
"solution",
"with",
"the",
"highest",
"sampling",
"time",
"?",
"Indicate",
"the",
"i",
"d",
"number",
"of",
"the",
"solution",
"."
] | [
{
"id": 2,
"type": "column",
"value": "solutionid"
},
{
"id": 1,
"type": "column",
"value": "sampledat"
},
{
"id": 0,
"type": "table",
"value": "method"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
22
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,947 | hr_1 | spider:train_spider.json:3418 | What are the full name, hire date, salary, and department id for employees without the letter M in their first name? | SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' | [
"What",
"are",
"the",
"full",
"name",
",",
"hire",
"date",
",",
"salary",
",",
"and",
"department",
"i",
"d",
"for",
"employees",
"without",
"the",
"letter",
"M",
"in",
"their",
"first",
"name",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "department_id"
},
{
"id": 1,
"type": "column",
"value": "first_name"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 2,
"type": "column",
"value": "last_name"
},
{
"id": 3,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
23,
24
]
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
1,948 | art_1 | bird:test.json:1292 | Find the first names and number of works of all artists who have at least two paintings? | SELECT T1.fname , count(*) FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID GROUP BY T2.painterID HAVING count(*) >= 2 | [
"Find",
"the",
"first",
"names",
"and",
"number",
"of",
"works",
"of",
"all",
"artists",
"who",
"have",
"at",
"least",
"two",
"paintings",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "painterid"
},
{
"id": 3,
"type": "table",
"value": "paintings"
},
{
"id": 5,
"type": "column",
"value": "artistid"
},
{
"id": 2,
"type": "table",
"value": "artists"
},
{
"id": 1,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,949 | books | bird:train.json:6024 | What are the names of all the publishers who have published at least 30 books? | SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name HAVING COUNT(T2.publisher_name) >= 30 | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"publishers",
"who",
"have",
"published",
"at",
"least",
"30",
"books",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 4,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"type": "table",
"value": "publisher"
},
{
"id": 1,
"type": "table",
"value": "book"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
1,950 | tracking_orders | spider:train_spider.json:6928 | What are ids of the all distinct orders, sorted by placement date? | SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed | [
"What",
"are",
"ids",
"of",
"the",
"all",
"distinct",
"orders",
",",
"sorted",
"by",
"placement",
"date",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "date_order_placed"
},
{
"id": 1,
"type": "column",
"value": "order_id"
},
{
"id": 0,
"type": "table",
"value": "orders"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
1,951 | flight_4 | spider:train_spider.json:6852 | What is the number of cities in the United States with more than 3 airports? | SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3 | [
"What",
"is",
"the",
"number",
"of",
"cities",
"in",
"the",
"United",
"States",
"with",
"more",
"than",
"3",
"airports",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "United States"
},
{
"id": 0,
"type": "table",
"value": "airports"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 1,
"type": "column",
"value": "city"
},
{
"id": 4,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
1,952 | program_share | spider:train_spider.json:3761 | Which programs' origins are not "Beijing"? Give me the program names. | SELECT name FROM program WHERE origin != 'Beijing' | [
"Which",
"programs",
"'",
"origins",
"are",
"not",
"\"",
"Beijing",
"\"",
"?",
"Give",
"me",
"the",
"program",
"names",
"."
] | [
{
"id": 0,
"type": "table",
"value": "program"
},
{
"id": 3,
"type": "value",
"value": "Beijing"
},
{
"id": 2,
"type": "column",
"value": "origin"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
1,953 | movie_1 | spider:train_spider.json:2489 | For each director who directed more than one movie, what are the titles and dates of release for all those movies? | SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title | [
"For",
"each",
"director",
"who",
"directed",
"more",
"than",
"one",
"movie",
",",
"what",
"are",
"the",
"titles",
"and",
"dates",
"of",
"release",
"for",
"all",
"those",
"movies",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "director"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "table",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value": "year"
}
] | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
1,954 | candidate_poll | spider:train_spider.json:2404 | which poll source does the highest oppose rate come from? | SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 | [
"which",
"poll",
"source",
"does",
"the",
"highest",
"oppose",
"rate",
"come",
"from",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "poll_source"
},
{
"id": 2,
"type": "column",
"value": "oppose_rate"
},
{
"id": 0,
"type": "table",
"value": "candidate"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
1,955 | disney | bird:train.json:4715 | What genre of movie has Taran as the main character? | SELECT T1.genre FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T2.hero = 'Taran' | [
"What",
"genre",
"of",
"movie",
"has",
"Taran",
"as",
"the",
"main",
"character",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "movies_total_gross"
},
{
"id": 5,
"type": "column",
"value": "movie_title"
},
{
"id": 2,
"type": "table",
"value": "characters"
},
{
"id": 0,
"type": "column",
"value": "genre"
},
{
"id": 4,
"type": "value"... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"... | [
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,956 | hockey | bird:train.json:7784 | Who was the latest non player/builder to become the hall of famer? Give the full name. | SELECT name FROM HOF WHERE category IN ('Player', 'Builder') ORDER BY year DESC LIMIT 1 | [
"Who",
"was",
"the",
"latest",
"non",
"player",
"/",
"builder",
"to",
"become",
"the",
"hall",
"of",
"famer",
"?",
"Give",
"the",
"full",
"name",
"."
] | [
{
"id": 2,
"type": "column",
"value": "category"
},
{
"id": 4,
"type": "value",
"value": "Builder"
},
{
"id": 3,
"type": "value",
"value": "Player"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 5,
"type": "column",
"value": "ye... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,957 | books | bird:train.json:6070 | List all books written in Arabic. | SELECT T1.title FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'Arabic' | [
"List",
"all",
"books",
"written",
"in",
"Arabic",
"."
] | [
{
"id": 2,
"type": "table",
"value": "book_language"
},
{
"id": 3,
"type": "column",
"value": "language_name"
},
{
"id": 5,
"type": "column",
"value": "language_id"
},
{
"id": 4,
"type": "value",
"value": "Arabic"
},
{
"id": 0,
"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": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
1,958 | movielens | bird:train.json:2333 | Which actor has appeared in the most films? | SELECT actorid FROM movies2actors GROUP BY actorid ORDER BY COUNT(movieid) DESC LIMIT 1 | [
"Which",
"actor",
"has",
"appeared",
"in",
"the",
"most",
"films",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "movies2actors"
},
{
"id": 1,
"type": "column",
"value": "actorid"
},
{
"id": 2,
"type": "column",
"value": "movieid"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
1,959 | superstore | bird:train.json:2455 | Who ordered the order ID CA-2011-118976 from the East region? | SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Order ID` = 'CA-2011-118976' AND T2.Region = 'East' | [
"Who",
"ordered",
"the",
"order",
"ID",
"CA-2011",
"-",
"118976",
"from",
"the",
"East",
"region",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "east_superstore"
},
{
"id": 5,
"type": "value",
"value": "CA-2011-118976"
},
{
"id": 0,
"type": "column",
"value": "Customer Name"
},
{
"id": 3,
"type": "column",
"value": "Customer ID"
},
{
"id": 4,
"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": [
3,
4
]
},
{
"entity_id": 5,
"token_idxs": [
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
1,960 | car_racing | bird:test.json:1609 | List all the driver names in ascending order of age. | SELECT Driver FROM driver ORDER BY Age ASC | [
"List",
"all",
"the",
"driver",
"names",
"in",
"ascending",
"order",
"of",
"age",
"."
] | [
{
"id": 0,
"type": "table",
"value": "driver"
},
{
"id": 1,
"type": "column",
"value": "driver"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,961 | california_schools | bird:dev.json:25 | Name schools in Riverside which the average of average math score for SAT is grater than 400, what is the funding type of these schools? | SELECT T1.sname, T2.`Charter Funding Type` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE T2.`District Name` LIKE 'Riverside%' GROUP BY T1.sname, T2.`Charter Funding Type` HAVING CAST(SUM(T1.AvgScrMath) AS REAL) / COUNT(T1.cds) > 400 | [
"Name",
"schools",
"in",
"Riverside",
"which",
"the",
"average",
"of",
"average",
"math",
"score",
"for",
"SAT",
"is",
"grater",
"than",
"400",
",",
"what",
"is",
"the",
"funding",
"type",
"of",
"these",
"schools",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "Charter Funding Type"
},
{
"id": 4,
"type": "column",
"value": "District Name"
},
{
"id": 5,
"type": "value",
"value": "Riverside%"
},
{
"id": 9,
"type": "column",
"value": "avgscrmath"
},
{
"id": 2,
"type... | [
{
"entity_id": 0,
"token_idxs": [
0
]
},
{
"entity_id": 1,
"token_idxs": [
20,
21,
22
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
1,962 | district_spokesman | bird:test.json:1192 | Find the name of the district which has greatest number of spokesmen. | SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID = t2.District_ID GROUP BY t2.District_ID ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"name",
"of",
"the",
"district",
"which",
"has",
"greatest",
"number",
"of",
"spokesmen",
"."
] | [
{
"id": 3,
"type": "table",
"value": "spokesman_district"
},
{
"id": 0,
"type": "column",
"value": "district_id"
},
{
"id": 2,
"type": "table",
"value": "district"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
1,963 | app_store | bird:train.json:2525 | How many apps that are only compatible with Android ver 8.0 and above? List down the users' sentiment of these apps. | SELECT DISTINCT Sentiment FROM user_reviews WHERE App IN ( SELECT App FROM playstore WHERE `Android Ver` = '8.0 and up' ) | [
"How",
"many",
"apps",
"that",
"are",
"only",
"compatible",
"with",
"Android",
"ver",
"8.0",
"and",
"above",
"?",
"List",
"down",
"the",
"users",
"'",
"sentiment",
"of",
"these",
"apps",
"."
] | [
{
"id": 0,
"type": "table",
"value": "user_reviews"
},
{
"id": 4,
"type": "column",
"value": "Android Ver"
},
{
"id": 5,
"type": "value",
"value": "8.0 and up"
},
{
"id": 1,
"type": "column",
"value": "sentiment"
},
{
"id": 3,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": [
19
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8,
9
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
1,965 | movie_3 | bird:train.json:9331 | List movie titles with duration over 120 minutes that are in the action category. | SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.`name` = 'action' AND T1.length > 120 | [
"List",
"movie",
"titles",
"with",
"duration",
"over",
"120",
"minutes",
"that",
"are",
"in",
"the",
"action",
"category",
"."
] | [
{
"id": 3,
"type": "table",
"value": "film_category"
},
{
"id": 4,
"type": "column",
"value": "category_id"
},
{
"id": 1,
"type": "table",
"value": "category"
},
{
"id": 9,
"type": "column",
"value": "film_id"
},
{
"id": 6,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
1,966 | formula_1 | bird:dev.json:941 | How many points did Lewis Hamilton get in total in all the Formula_1 races he participated? | SELECT SUM(T2.points) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId WHERE T1.forename = 'Lewis' AND T1.surname = 'Hamilton' | [
"How",
"many",
"points",
"did",
"Lewis",
"Hamilton",
"get",
"in",
"total",
"in",
"all",
"the",
"Formula_1",
"races",
"he",
"participated",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "driverid"
},
{
"id": 4,
"type": "column",
"value": "forename"
},
{
"id": 7,
"type": "value",
"value": "Hamilton"
},
{
"id": 0,
"type": "table",
"value": "drivers"
},
{
"id": 1,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
4
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
1,967 | menu | bird:train.json:5496 | Among the dishes on menu page ID 7610, list the names and highest prices of the dishes in menu items that were created on 23rd May 2011. | SELECT T1.name, T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.created_at LIKE '2011-05-23%' ORDER BY T2.price DESC LIMIT 1 | [
"Among",
"the",
"dishes",
"on",
"menu",
"page",
"ID",
"7610",
",",
"list",
"the",
"names",
"and",
"highest",
"prices",
"of",
"the",
"dishes",
"in",
"menu",
"items",
"that",
"were",
"created",
"on",
"23rd",
"May",
"2011",
"."
] | [
{
"id": 5,
"type": "value",
"value": "2011-05-23%"
},
{
"id": 4,
"type": "column",
"value": "created_at"
},
{
"id": 3,
"type": "table",
"value": "menuitem"
},
{
"id": 7,
"type": "column",
"value": "dish_id"
},
{
"id": 1,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
19,
20
]
},
{
"entity_id": 4,
"token_idxs": [
23
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
1,968 | menu | bird:train.json:5535 | Who are the sponsors of the menu whose image full height is more than 10000 mm? | SELECT T2.sponsor FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T1.full_height = 10000 | [
"Who",
"are",
"the",
"sponsors",
"of",
"the",
"menu",
"whose",
"image",
"full",
"height",
"is",
"more",
"than",
"10000",
"mm",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "full_height"
},
{
"id": 1,
"type": "table",
"value": "menupage"
},
{
"id": 0,
"type": "column",
"value": "sponsor"
},
{
"id": 6,
"type": "column",
"value": "menu_id"
},
{
"id": 4,
"type": "value",
"val... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
1,969 | baseball_1 | spider:train_spider.json:3677 | What is the total salary paid by team Boston Red Stockings in 2010? | SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010 | [
"What",
"is",
"the",
"total",
"salary",
"paid",
"by",
"team",
"Boston",
"Red",
"Stockings",
"in",
"2010",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Boston Red Stockings"
},
{
"id": 4,
"type": "column",
"value": "team_id_br"
},
{
"id": 3,
"type": "column",
"value": "team_id"
},
{
"id": 0,
"type": "table",
"value": "salary"
},
{
"id": 2,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O"
] |
1,970 | student_loan | bird:train.json:4454 | How many male students join more than one organization? | SELECT COUNT(T.a) FROM ( SELECT COUNT(DISTINCT T1.name) AS a, COUNT(T2.organ) AS num FROM male AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name GROUP BY T1.name ) T WHERE T.num > 1 | [
"How",
"many",
"male",
"students",
"join",
"more",
"than",
"one",
"organization",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "enlist"
},
{
"id": 6,
"type": "column",
"value": "organ"
},
{
"id": 3,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "table",
"value": "male"
},
{
"id": 0,
"type": "column",
"value": "num"
}... | [
{
"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": [
2
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,971 | hockey | bird:train.json:7780 | What is the average winning rate of the Buffalo Sabres in 2000? | SELECT SUM(CAST(T2.W AS REAL) / T2.G) / COUNT(T1.oppID) FROM TeamVsTeam AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID WHERE T2.name = 'Buffalo Sabres' AND T1.year = 2000 | [
"What",
"is",
"the",
"average",
"winning",
"rate",
"of",
"the",
"Buffalo",
"Sabres",
"in",
"2000",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Buffalo Sabres"
},
{
"id": 0,
"type": "table",
"value": "teamvsteam"
},
{
"id": 1,
"type": "table",
"value": "teams"
},
{
"id": 6,
"type": "column",
"value": "oppid"
},
{
"id": 2,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O"
] |
1,972 | movie_3 | bird:train.json:9317 | What are the addresses for the stores? | SELECT T2.address FROM store AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id | [
"What",
"are",
"the",
"addresses",
"for",
"the",
"stores",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "address_id"
},
{
"id": 0,
"type": "column",
"value": "address"
},
{
"id": 2,
"type": "table",
"value": "address"
},
{
"id": 1,
"type": "table",
"value": "store"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O"
] |
1,973 | image_and_language | bird:train.json:7477 | How many self-relations are there between the object samples in image no.5? | SELECT SUM(CASE WHEN IMG_ID = 5 THEN 1 ELSE 0 END) FROM IMG_REL WHERE OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID | [
"How",
"many",
"self",
"-",
"relations",
"are",
"there",
"between",
"the",
"object",
"samples",
"in",
"image",
"no.5",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "obj1_sample_id"
},
{
"id": 2,
"type": "column",
"value": "obj2_sample_id"
},
{
"id": 0,
"type": "table",
"value": "img_rel"
},
{
"id": 5,
"type": "column",
"value": "img_id"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9,
10,
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O"
] |
1,974 | superhero | bird:dev.json:777 | What is the gender of Agent 13 hero? | SELECT T2.gender FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T1.superhero_name = 'Agent 13' | [
"What",
"is",
"the",
"gender",
"of",
"Agent",
"13",
"hero",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "superhero_name"
},
{
"id": 1,
"type": "table",
"value": "superhero"
},
{
"id": 5,
"type": "column",
"value": "gender_id"
},
{
"id": 4,
"type": "value",
"value": "Agent 13"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
1,975 | sales_in_weather | bird:train.json:8174 | Give the station pressure status recorded by the weather station which contained no.12 store on 2012/5/15. | SELECT T1.stnpressure FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2012-05-15' AND T2.store_nbr = 12 | [
"Give",
"the",
"station",
"pressure",
"status",
"recorded",
"by",
"the",
"weather",
"station",
"which",
"contained",
"no.12",
"store",
"on",
"2012/5/15",
"."
] | [
{
"id": 0,
"type": "column",
"value": "stnpressure"
},
{
"id": 3,
"type": "column",
"value": "station_nbr"
},
{
"id": 5,
"type": "value",
"value": "2012-05-15"
},
{
"id": 6,
"type": "column",
"value": "store_nbr"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
1,976 | manufactory_1 | spider:train_spider.json:5290 | Find the name of companies whose revenue is between 100 and 150. | SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 | [
"Find",
"the",
"name",
"of",
"companies",
"whose",
"revenue",
"is",
"between",
"100",
"and",
"150",
"."
] | [
{
"id": 0,
"type": "table",
"value": "manufacturers"
},
{
"id": 2,
"type": "column",
"value": "revenue"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "100"
},
{
"id": 4,
"type": "value",
"value": "1... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
1,977 | e_learning | spider:train_spider.json:3807 | What are the personal name, family name, and author ID of the course author who teaches the most courses? | SELECT T1.personal_name , T1.family_name , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1 | [
"What",
"are",
"the",
"personal",
"name",
",",
"family",
"name",
",",
"and",
"author",
"ID",
"of",
"the",
"course",
"author",
"who",
"teaches",
"the",
"most",
"courses",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "course_authors_and_tutors"
},
{
"id": 1,
"type": "column",
"value": "personal_name"
},
{
"id": 2,
"type": "column",
"value": "family_name"
},
{
"id": 0,
"type": "column",
"value": "author_id"
},
{
"id": 4,
... | [
{
"entity_id": 0,
"token_idxs": [
10,
11
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
14,
15
]
},
{
"entity_id": 4,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,978 | regional_sales | bird:train.json:2613 | List out the name of products which have been applied 10% discount. | SELECT T FROM ( SELECT DISTINCT IIF(T1.`Discount Applied` = 0.1, T2.`Product Name`, NULL) AS T FROM `Sales Orders` T1 INNER JOIN Products T2 ON T2.ProductID = T1._ProductID ) WHERE T IS NOT NULL | [
"List",
"out",
"the",
"name",
"of",
"products",
"which",
"have",
"been",
"applied",
"10",
"%",
"discount",
"."
] | [
{
"id": 6,
"type": "column",
"value": "Discount Applied"
},
{
"id": 1,
"type": "table",
"value": "Sales Orders"
},
{
"id": 3,
"type": "column",
"value": "Product Name"
},
{
"id": 5,
"type": "column",
"value": "_productid"
},
{
"id": 4,
"type": ... | [
{
"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": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,979 | real_estate_rentals | bird:test.json:1433 | What are the ids of users who have only made one search, and what are their category codes? | SELECT T1.user_category_code , T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING count(*) = 1; | [
"What",
"are",
"the",
"ids",
"of",
"users",
"who",
"have",
"only",
"made",
"one",
"search",
",",
"and",
"what",
"are",
"their",
"category",
"codes",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "user_category_code"
},
{
"id": 3,
"type": "table",
"value": "user_searches"
},
{
"id": 0,
"type": "column",
"value": "user_id"
},
{
"id": 2,
"type": "table",
"value": "users"
},
{
"id": 4,
"type": "value",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
17,
18
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
1,980 | codebase_community | bird:dev.json:562 | For the post which got 1910 view counts, how many comments does it get? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910 | [
"For",
"the",
"post",
"which",
"got",
"1910",
"view",
"counts",
",",
"how",
"many",
"comments",
"does",
"it",
"get",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "viewcount"
},
{
"id": 1,
"type": "table",
"value": "comments"
},
{
"id": 5,
"type": "column",
"value": "postid"
},
{
"id": 0,
"type": "table",
"value": "posts"
},
{
"id": 3,
"type": "value",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
1,981 | entrepreneur | spider:train_spider.json:2266 | What are the companies of entrepreneurs, ordered descending by amount of money requested? | SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC | [
"What",
"are",
"the",
"companies",
"of",
"entrepreneurs",
",",
"ordered",
"descending",
"by",
"amount",
"of",
"money",
"requested",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "money_requested"
},
{
"id": 0,
"type": "table",
"value": "entrepreneur"
},
{
"id": 1,
"type": "column",
"value": "company"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
1,983 | musical | spider:train_spider.json:261 | How many musicals has each nominee been nominated for? | SELECT Nominee , COUNT(*) FROM musical GROUP BY Nominee | [
"How",
"many",
"musicals",
"has",
"each",
"nominee",
"been",
"nominated",
"for",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "musical"
},
{
"id": 1,
"type": "column",
"value": "nominee"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
1,984 | soccer_2016 | bird:train.json:1991 | Among the matches of Delhi Daredevils in 2014, how many won matches are there? | SELECT COUNT(T1.Match_Winner) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 OR T2.Team_Id = T1.Team_2 WHERE T2.team_name = 'Delhi Daredevils' AND T1.Match_Date LIKE '2014%' | [
"Among",
"the",
"matches",
"of",
"Delhi",
"Daredevils",
"in",
"2014",
",",
"how",
"many",
"won",
"matches",
"are",
"there",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Delhi Daredevils"
},
{
"id": 2,
"type": "column",
"value": "match_winner"
},
{
"id": 5,
"type": "column",
"value": "match_date"
},
{
"id": 3,
"type": "column",
"value": "team_name"
},
{
"id": 7,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4,
5
]
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
1,985 | country_language | bird:test.json:1361 | What are the names of languages, in alphabetical order? | SELECT name FROM languages ORDER BY name ASC | [
"What",
"are",
"the",
"names",
"of",
"languages",
",",
"in",
"alphabetical",
"order",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "languages"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
1,986 | public_review_platform | bird:train.json:3946 | What is the total number of fans or followers who received most likes of their comments in the business? | SELECT COUNT(T1.user_fans) FROM Users AS T1 INNER JOIN Tips AS T2 ON T1.user_id = T2.user_id ORDER BY COUNT(T2.likes) DESC LIMIT 1 | [
"What",
"is",
"the",
"total",
"number",
"of",
"fans",
"or",
"followers",
"who",
"received",
"most",
"likes",
"of",
"their",
"comments",
"in",
"the",
"business",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "user_fans"
},
{
"id": 3,
"type": "column",
"value": "user_id"
},
{
"id": 0,
"type": "table",
"value": "users"
},
{
"id": 4,
"type": "column",
"value": "likes"
},
{
"id": 1,
"type": "table",
"value": "t... | [
{
"entity_id": 0,
"token_idxs": [
18
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entit... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
1,987 | car_retails | bird:train.json:1575 | How many Sales Manager who are working in Sydney? List out their email. | SELECT T1.email FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T1.jobTitle LIKE '%Sales Manager%' AND T2.city = 'Sydney' | [
"How",
"many",
"Sales",
"Manager",
"who",
"are",
"working",
"in",
"Sydney",
"?",
"List",
"out",
"their",
"email",
"."
] | [
{
"id": 5,
"type": "value",
"value": "%Sales Manager%"
},
{
"id": 3,
"type": "column",
"value": "officecode"
},
{
"id": 1,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "jobtitle"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"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": [
2,
... | [
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,989 | synthea | bird:train.json:1520 | Provide the full names of patients who have been taking Penicillin V Potassium 250 MG since 1948. | SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Penicillin V Potassium 250 MG' AND strftime('%Y', T2.START) >= '1948' | [
"Provide",
"the",
"full",
"names",
"of",
"patients",
"who",
"have",
"been",
"taking",
"Penicillin",
"V",
"Potassium",
"250",
"MG",
"since",
"1948",
"."
] | [
{
"id": 6,
"type": "value",
"value": "Penicillin V Potassium 250 MG"
},
{
"id": 3,
"type": "table",
"value": "medications"
},
{
"id": 5,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "patients"
},
{
"id": 4,
"... | [
{
"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": [
5
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O"
] |
1,990 | chicago_crime | bird:train.json:8660 | Calculate the average population of community areas in the West side. | SELECT AVG(population) FROM Community_Area WHERE side = 'West ' | [
"Calculate",
"the",
"average",
"population",
"of",
"community",
"areas",
"in",
"the",
"West",
"side",
"."
] | [
{
"id": 0,
"type": "table",
"value": "community_area"
},
{
"id": 3,
"type": "column",
"value": "population"
},
{
"id": 2,
"type": "value",
"value": "West "
},
{
"id": 1,
"type": "column",
"value": "side"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
1,991 | car_retails | bird:train.json:1617 | Where was the order No. 10383 shipped to? Show me the address. | SELECT t2.addressLine1, t2.addressLine2 FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.orderNumber = '10383' | [
"Where",
"was",
"the",
"order",
"No",
".",
"10383",
"shipped",
"to",
"?",
"Show",
"me",
"the",
"address",
"."
] | [
{
"id": 6,
"type": "column",
"value": "customernumber"
},
{
"id": 0,
"type": "column",
"value": "addressline1"
},
{
"id": 1,
"type": "column",
"value": "addressline2"
},
{
"id": 4,
"type": "column",
"value": "ordernumber"
},
{
"id": 3,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,992 | movies_4 | bird:train.json:491 | List down the movie titles within the genre of thriller. | SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Thriller' | [
"List",
"down",
"the",
"movie",
"titles",
"within",
"the",
"genre",
"of",
"thriller",
"."
] | [
{
"id": 5,
"type": "table",
"value": "movie_genres"
},
{
"id": 2,
"type": "column",
"value": "genre_name"
},
{
"id": 3,
"type": "value",
"value": "Thriller"
},
{
"id": 6,
"type": "column",
"value": "genre_id"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
1,993 | public_review_platform | bird:train.json:3929 | List the categories of inactive businesses in AZ. | SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'FALSE' AND T1.state LIKE 'AZ' | [
"List",
"the",
"categories",
"of",
"inactive",
"businesses",
"in",
"AZ",
"."
] | [
{
"id": 3,
"type": "table",
"value": "business_categories"
},
{
"id": 0,
"type": "column",
"value": "category_name"
},
{
"id": 4,
"type": "column",
"value": "category_id"
},
{
"id": 9,
"type": "column",
"value": "business_id"
},
{
"id": 1,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
1,994 | college_1 | spider:train_spider.json:3224 | Which department has the highest average student GPA, and what is the average gpa? | SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1 | [
"Which",
"department",
"has",
"the",
"highest",
"average",
"student",
"GPA",
",",
"and",
"what",
"is",
"the",
"average",
"gpa",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "department"
},
{
"id": 0,
"type": "column",
"value": "dept_code"
},
{
"id": 1,
"type": "column",
"value": "dept_name"
},
{
"id": 2,
"type": "table",
"value": "student"
},
{
"id": 4,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6,
7
]
},
{
"entity_id": 5,
"toke... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
1,995 | mondial_geo | bird:train.json:8359 | Which nation's GDP is the lowest among those that are communist states? | SELECT T2.Country FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country WHERE T1.Government = 'Communist state' ORDER BY T2.GDP ASC LIMIT 1 | [
"Which",
"nation",
"'s",
"GDP",
"is",
"the",
"lowest",
"among",
"those",
"that",
"are",
"communist",
"states",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Communist state"
},
{
"id": 3,
"type": "column",
"value": "government"
},
{
"id": 1,
"type": "table",
"value": "politics"
},
{
"id": 0,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
1,996 | student_loan | bird:train.json:4446 | How many students are enlisted in the army? | SELECT COUNT(name) FROM enlist WHERE organ = 'army' | [
"How",
"many",
"students",
"are",
"enlisted",
"in",
"the",
"army",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "enlist"
},
{
"id": 1,
"type": "column",
"value": "organ"
},
{
"id": 2,
"type": "value",
"value": "army"
},
{
"id": 3,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"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",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
1,997 | law_episode | bird:train.json:1330 | What is the ratio of American casts on episode 2 of the series? Please include their roles. | SELECT CAST(SUM(CASE WHEN T2.category = 'Cast' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.category), T1.role FROM Award AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Episode AS T3 ON T2.episode_id = T3.episode_id INNER JOIN Person AS T4 ON T2.person_id = T4.person_id WHERE T3.episode = 2 A... | [
"What",
"is",
"the",
"ratio",
"of",
"American",
"casts",
"on",
"episode",
"2",
"of",
"the",
"series",
"?",
"Please",
"include",
"their",
"roles",
"."
] | [
{
"id": 6,
"type": "column",
"value": "birth_country"
},
{
"id": 12,
"type": "column",
"value": "episode_id"
},
{
"id": 3,
"type": "column",
"value": "person_id"
},
{
"id": 9,
"type": "column",
"value": "category"
},
{
"id": 2,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
1,998 | sales | bird:train.json:5416 | What is the name of the product that is most sold by sale person id 20? | SELECT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.SalesPersonID = 20 ORDER BY T2.Quantity DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"product",
"that",
"is",
"most",
"sold",
"by",
"sale",
"person",
"i",
"d",
"20",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "salespersonid"
},
{
"id": 6,
"type": "column",
"value": "productid"
},
{
"id": 1,
"type": "table",
"value": "products"
},
{
"id": 5,
"type": "column",
"value": "quantity"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
13,
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
1,999 | food_inspection | bird:train.json:8835 | Who were the owners of eateries which had highest health hazard by improper cooking time or temperatures? | SELECT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.description = 'Improper cooking time or temperatures' | [
"Who",
"were",
"the",
"owners",
"of",
"eateries",
"which",
"had",
"highest",
"health",
"hazard",
"by",
"improper",
"cooking",
"time",
"or",
"temperatures",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Improper cooking time or temperatures"
},
{
"id": 4,
"type": "column",
"value": "risk_category"
},
{
"id": 3,
"type": "column",
"value": "business_id"
},
{
"id": 6,
"type": "column",
"value": "description"
},
{
... | [
{
"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": [
8
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
2,000 | food_inspection_2 | bird:train.json:6223 | Among the list of employees, what is the total number of supervisors? | SELECT COUNT(employee_id) FROM employee WHERE title = 'Supervisor' | [
"Among",
"the",
"list",
"of",
"employees",
",",
"what",
"is",
"the",
"total",
"number",
"of",
"supervisors",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "employee_id"
},
{
"id": 2,
"type": "value",
"value": "Supervisor"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 1,
"type": "column",
"value": "title"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
2,001 | books | bird:train.json:6077 | Name the title of books written by author A.J.Ayer. | SELECT T3.title FROM book_author AS T1 INNER JOIN author AS T2 ON T1.author_id = T2.author_id INNER JOIN book AS T3 ON T3.book_id = T1.book_id WHERE T2.author_name = 'A.J. Ayer' | [
"Name",
"the",
"title",
"of",
"books",
"written",
"by",
"author",
"A.J.Ayer",
"."
] | [
{
"id": 2,
"type": "column",
"value": "author_name"
},
{
"id": 4,
"type": "table",
"value": "book_author"
},
{
"id": 3,
"type": "value",
"value": "A.J. Ayer"
},
{
"id": 7,
"type": "column",
"value": "author_id"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-VALUE",
"O"
] |
2,002 | college_2 | spider:train_spider.json:1391 | What are the names of students who have more than one advisor? | SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1 | [
"What",
"are",
"the",
"names",
"of",
"students",
"who",
"have",
"more",
"than",
"one",
"advisor",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "student"
},
{
"id": 3,
"type": "table",
"value": "advisor"
},
{
"id": 0,
"type": "column",
"value": "s_id"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 5,
"type": "column",
"value": "id"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
2,003 | olympics | bird:train.json:5058 | List the name of competitors from Argentina. | SELECT T3.full_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Argentina' | [
"List",
"the",
"name",
"of",
"competitors",
"from",
"Argentina",
"."
] | [
{
"id": 5,
"type": "table",
"value": "person_region"
},
{
"id": 2,
"type": "column",
"value": "region_name"
},
{
"id": 4,
"type": "table",
"value": "noc_region"
},
{
"id": 0,
"type": "column",
"value": "full_name"
},
{
"id": 3,
"type": "value",... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
2,004 | authors | bird:train.json:3582 | What percentage of authors of the paper about Charged particle multiplicity are affiliated with INFN? | SELECT CAST((SUM(CASE WHEN T1.Affiliation LIKE '%INFN%' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T2.Id) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title LIKE '%Charged particle multiplicity%' | [
"What",
"percentage",
"of",
"authors",
"of",
"the",
"paper",
"about",
"Charged",
"particle",
"multiplicity",
"are",
"affiliated",
"with",
"INFN",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "%Charged particle multiplicity%"
},
{
"id": 0,
"type": "table",
"value": "paperauthor"
},
{
"id": 9,
"type": "column",
"value": "affiliation"
},
{
"id": 4,
"type": "column",
"value": "paperid"
},
{
"id": 10,
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
8,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-VALUE",
"B-COLUMN",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
2,005 | retail_world | bird:train.json:6544 | Find the total production amount and product names which had "10 - 500 g pkgs." as quantity per unit. | SELECT UnitsInStock + UnitsOnOrder, ProductName FROM Products WHERE QuantityPerUnit = '10 - 500 g pkgs.' | [
"Find",
"the",
"total",
"production",
"amount",
"and",
"product",
"names",
"which",
"had",
"\"",
"10",
"-",
"500",
"g",
"pkgs",
".",
"\"",
"as",
"quantity",
"per",
"unit",
"."
] | [
{
"id": 3,
"type": "value",
"value": "10 - 500 g pkgs."
},
{
"id": 2,
"type": "column",
"value": "quantityperunit"
},
{
"id": 4,
"type": "column",
"value": "unitsinstock"
},
{
"id": 5,
"type": "column",
"value": "unitsonorder"
},
{
"id": 1,
"ty... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
19,
20,
21
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12,
13,
14,
15,
16
]... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
2,006 | candidate_poll | spider:train_spider.json:2397 | Return the poll resource associated with the most candidates. | SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1 | [
"Return",
"the",
"poll",
"resource",
"associated",
"with",
"the",
"most",
"candidates",
"."
] | [
{
"id": 1,
"type": "column",
"value": "poll_source"
},
{
"id": 0,
"type": "table",
"value": "candidate"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
2,007 | pilot_1 | bird:test.json:1127 | How many planes are owned by the pilot whose name is Smith? | SELECT count(plane_name) FROM pilotskills WHERE pilot_name = 'Smith' | [
"How",
"many",
"planes",
"are",
"owned",
"by",
"the",
"pilot",
"whose",
"name",
"is",
"Smith",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "pilotskills"
},
{
"id": 1,
"type": "column",
"value": "pilot_name"
},
{
"id": 3,
"type": "column",
"value": "plane_name"
},
{
"id": 2,
"type": "value",
"value": "Smith"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
2,
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
2,008 | movielens | bird:train.json:2318 | How many French movies got the highest ranking? | SELECT COUNT(movieid) FROM movies WHERE country = 'France' AND movieid IN ( SELECT movieid FROM u2base WHERE rating = ( SELECT MAX(rating) FROM u2base ) ) | [
"How",
"many",
"French",
"movies",
"got",
"the",
"highest",
"ranking",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "movieid"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
"value": "movies"
},
{
"id": 3,
"type": "value",
"value": "France"
},
{
"id": 4,
"type": "table",
"value": "u2... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
2,009 | airline | bird:train.json:5894 | Provide the air carrier description of all flights arriving at Miami. | SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.DEST = 'MIA' | [
"Provide",
"the",
"air",
"carrier",
"description",
"of",
"all",
"flights",
"arriving",
"at",
"Miami",
"."
] | [
{
"id": 6,
"type": "column",
"value": "op_carrier_airline_id"
},
{
"id": 1,
"type": "table",
"value": "Air Carriers"
},
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "airlines"
},
{
"id": 3,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id"... | [
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
2,010 | customers_and_products_contacts | spider:train_spider.json:5657 | Show the name of the customer who has the most orders. | SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 | [
"Show",
"the",
"name",
"of",
"the",
"customer",
"who",
"has",
"the",
"most",
"orders",
"."
] | [
{
"id": 3,
"type": "table",
"value": "customer_orders"
},
{
"id": 1,
"type": "column",
"value": "customer_name"
},
{
"id": 0,
"type": "column",
"value": "customer_id"
},
{
"id": 2,
"type": "table",
"value": "customers"
}
] | [
{
"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": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
2,011 | retail_complains | bird:train.json:405 | In complaints received in 2014, how many of them were submitted via call? | SELECT COUNT(T2.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.`Submitted via` = 'Phone' AND strftime('%Y', T1.`Date received`) = '2014' | [
"In",
"complaints",
"received",
"in",
"2014",
",",
"how",
"many",
"of",
"them",
"were",
"submitted",
"via",
"call",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "callcenterlogs"
},
{
"id": 3,
"type": "column",
"value": "Submitted via"
},
{
"id": 7,
"type": "column",
"value": "Date received"
},
{
"id": 2,
"type": "column",
"value": "Complaint ID"
},
{
"id": 1,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
2,012 | book_publishing_company | bird:train.json:219 | Which publisher had the highest job level? Give his/her full name. | SELECT T1.fname, T1.minit, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.job_lvl DESC LIMIT 1 | [
"Which",
"publisher",
"had",
"the",
"highest",
"job",
"level",
"?",
"Give",
"his",
"/",
"her",
"full",
"name",
"."
] | [
{
"id": 3,
"type": "table",
"value": "employee"
},
{
"id": 5,
"type": "column",
"value": "job_lvl"
},
{
"id": 6,
"type": "column",
"value": "job_id"
},
{
"id": 0,
"type": "column",
"value": "fname"
},
{
"id": 1,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
2,013 | public_review_platform | bird:train.json:4123 | In users yelping since 2009 to 2011, how many of them have low count of fans? | SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year >= 2009 AND user_yelping_since_year < 2012 AND user_fans = 'Low' | [
"In",
"users",
"yelping",
"since",
"2009",
"to",
"2011",
",",
"how",
"many",
"of",
"them",
"have",
"low",
"count",
"of",
"fans",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "user_yelping_since_year"
},
{
"id": 5,
"type": "column",
"value": "user_fans"
},
{
"id": 1,
"type": "column",
"value": "user_id"
},
{
"id": 0,
"type": "table",
"value": "users"
},
{
"id": 3,
"type": "value... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
... | [
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
2,014 | phone_market | spider:train_spider.json:1982 | Show the names of phones with carrier either "Sprint" or "TMobile". | SELECT Name FROM phone WHERE Carrier = "Sprint" OR Carrier = "TMobile" | [
"Show",
"the",
"names",
"of",
"phones",
"with",
"carrier",
"either",
"\"",
"Sprint",
"\"",
"or",
"\"",
"TMobile",
"\"",
"."
] | [
{
"id": 2,
"type": "column",
"value": "carrier"
},
{
"id": 4,
"type": "column",
"value": "TMobile"
},
{
"id": 3,
"type": "column",
"value": "Sprint"
},
{
"id": 0,
"type": "table",
"value": "phone"
},
{
"id": 1,
"type": "column",
"value": "n... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
2,015 | mondial_geo | bird:train.json:8303 | How many deserts are there in a country where over 90% of people speaks Armenian? | SELECT COUNT(T2.Desert) FROM country AS T1 INNER JOIN geo_desert AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T1.Code = T2.Country WHERE T3.Name = 'Armenian' AND T3.Percentage > 90 | [
"How",
"many",
"deserts",
"are",
"there",
"in",
"a",
"country",
"where",
"over",
"90",
"%",
"of",
"people",
"speaks",
"Armenian",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "geo_desert"
},
{
"id": 8,
"type": "column",
"value": "percentage"
},
{
"id": 0,
"type": "table",
"value": "language"
},
{
"id": 7,
"type": "value",
"value": "Armenian"
},
{
"id": 2,
"type": "table",
"va... | [
{
"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": [
7
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
2,016 | real_estate_rentals | bird:test.json:1410 | For users whose description contain the string 'Mother', which age categories are they in? | SELECT T2.age_category_code FROM Ref_User_Categories AS T1 JOIN Users AS T2 ON T1.user_category_code = T2.user_category_code WHERE T1.User_category_description LIKE "%Mother"; | [
"For",
"users",
"whose",
"description",
"contain",
"the",
"string",
"'",
"Mother",
"'",
",",
"which",
"age",
"categories",
"are",
"they",
"in",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "user_category_description"
},
{
"id": 1,
"type": "table",
"value": "ref_user_categories"
},
{
"id": 5,
"type": "column",
"value": "user_category_code"
},
{
"id": 0,
"type": "column",
"value": "age_category_code"
},
... | [
{
"entity_id": 0,
"token_idxs": [
12,
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
2,
3
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
... | [
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
2,017 | real_estate_rentals | bird:test.json:1424 | What are the ids of users who have searched at least twice, and what did they search? | SELECT search_seq , user_id FROM User_Searches GROUP BY user_id HAVING count(*) >= 2; | [
"What",
"are",
"the",
"ids",
"of",
"users",
"who",
"have",
"searched",
"at",
"least",
"twice",
",",
"and",
"what",
"did",
"they",
"search",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "user_searches"
},
{
"id": 2,
"type": "column",
"value": "search_seq"
},
{
"id": 1,
"type": "column",
"value": "user_id"
},
{
"id": 3,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"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,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
2,018 | soccer_2016 | bird:train.json:2037 | What is the total number of players born between 1970 to 1975? | SELECT COUNT(Player_Id) FROM Player WHERE strftime('%Y', DOB) BETWEEN '1970' AND '1975' | [
"What",
"is",
"the",
"total",
"number",
"of",
"players",
"born",
"between",
"1970",
"to",
"1975",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "player_id"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 1,
"type": "value",
"value": "1970"
},
{
"id": 2,
"type": "value",
"value": "1975"
},
{
"id": 5,
"type": "column",
"value": "dob"
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
2,019 | computer_student | bird:train.json:1022 | Who are the top 5 professors who teaches the highest number of professional or master/undergraduate courses? | SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_500' GROUP BY T2.p_id ORDER BY COUNT(T2.p_id) DESC LIMIT 5 | [
"Who",
"are",
"the",
"top",
"5",
"professors",
"who",
"teaches",
"the",
"highest",
"number",
"of",
"professional",
"or",
"master",
"/",
"undergraduate",
"courses",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "courselevel"
},
{
"id": 4,
"type": "value",
"value": "Level_500"
},
{
"id": 5,
"type": "column",
"value": "course_id"
},
{
"id": 2,
"type": "table",
"value": "taughtby"
},
{
"id": 1,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
2,020 | works_cycles | bird:train.json:7026 | How many products with the highest unit price were ordered? | SELECT OrderQty FROM PurchaseOrderDetail ORDER BY UnitPrice DESC LIMIT 1 | [
"How",
"many",
"products",
"with",
"the",
"highest",
"unit",
"price",
"were",
"ordered",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "purchaseorderdetail"
},
{
"id": 2,
"type": "column",
"value": "unitprice"
},
{
"id": 1,
"type": "column",
"value": "orderqty"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O"
] |
2,021 | e_commerce | bird:test.json:77 | For each order, what is its id, date, and total amount paid? | SELECT T1.order_id , T1.date_order_placed , sum(T3.product_price) FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id JOIN Products AS T3 ON T2.product_id = T3.product_id GROUP BY T1.order_id | [
"For",
"each",
"order",
",",
"what",
"is",
"its",
"i",
"d",
",",
"date",
",",
"and",
"total",
"amount",
"paid",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "date_order_placed"
},
{
"id": 3,
"type": "column",
"value": "product_price"
},
{
"id": 5,
"type": "table",
"value": "order_items"
},
{
"id": 6,
"type": "column",
"value": "product_id"
},
{
"id": 0,
"type":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
2,022 | retails | bird:train.json:6847 | List the 5 orders with the highest total price, indicating the delivery date. | SELECT T1.o_orderkey, T2.l_shipdate FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey ORDER BY T1.o_totalprice DESC LIMIT 5 | [
"List",
"the",
"5",
"orders",
"with",
"the",
"highest",
"total",
"price",
",",
"indicating",
"the",
"delivery",
"date",
"."
] | [
{
"id": 4,
"type": "column",
"value": "o_totalprice"
},
{
"id": 0,
"type": "column",
"value": "o_orderkey"
},
{
"id": 1,
"type": "column",
"value": "l_shipdate"
},
{
"id": 5,
"type": "column",
"value": "l_orderkey"
},
{
"id": 3,
"type": "table"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7,
8
]
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
2,023 | retail_complains | bird:train.json:266 | Which product received a review from Indianapolis on 2016/10/7? | SELECT T1.Product FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Indianapolis' AND T1.Date = '2016-10-07' | [
"Which",
"product",
"received",
"a",
"review",
"from",
"Indianapolis",
"on",
"2016/10/7",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Indianapolis"
},
{
"id": 3,
"type": "column",
"value": "district_id"
},
{
"id": 7,
"type": "value",
"value": "2016-10-07"
},
{
"id": 2,
"type": "table",
"value": "district"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"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",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
2,024 | codebase_community | bird:dev.json:620 | State the number of views of users who obtained the badge on 7/19/2010 7:39:08 PM. | SELECT T1.Views FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Date = '2010-07-19 19:39:08.0' | [
"State",
"the",
"number",
"of",
"views",
"of",
"users",
"who",
"obtained",
"the",
"badge",
"on",
"7/19/2010",
"7:39:08",
"PM",
"."
] | [
{
"id": 4,
"type": "value",
"value": "2010-07-19 19:39:08.0"
},
{
"id": 2,
"type": "table",
"value": "badges"
},
{
"id": 6,
"type": "column",
"value": "userid"
},
{
"id": 0,
"type": "column",
"value": "views"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
0
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13
... | [
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
2,025 | flight_4 | spider:train_spider.json:6818 | What are the names of all airports whose elevation is between -50 and 50? | SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50 | [
"What",
"are",
"the",
"names",
"of",
"all",
"airports",
"whose",
"elevation",
"is",
"between",
"-50",
"and",
"50",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "elevation"
},
{
"id": 0,
"type": "table",
"value": "airports"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "-50"
},
{
"id": 4,
"type": "value",
"value": "50"
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
2,026 | debit_card_specializing | bird:dev.json:1476 | What was the difference in gas consumption between CZK-paying customers and EUR-paying customers in 2012? | SELECT SUM(IIF(T1.Currency = 'CZK', T2.Consumption, 0)) - SUM(IIF(T1.Currency = 'EUR', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2012' | [
"What",
"was",
"the",
"difference",
"in",
"gas",
"consumption",
"between",
"CZK",
"-",
"paying",
"customers",
"and",
"EUR",
"-",
"paying",
"customers",
"in",
"2012",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "consumption"
},
{
"id": 3,
"type": "column",
"value": "customerid"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 1,
"type": "table",
"value": "yearmonth"
},
{
"id": 9,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
2,027 | public_review_platform | bird:train.json:3827 | How many businesses in the AZ state got low quality of reviews? | SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND review_count LIKE 'Low' | [
"How",
"many",
"businesses",
"in",
"the",
"AZ",
"state",
"got",
"low",
"quality",
"of",
"reviews",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "review_count"
},
{
"id": 1,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 2,
"type": "column",
"value": "state"
},
{
"id": 5,
"type": "value",
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O"
] |
2,028 | art_1 | bird:test.json:1273 | What is the first name of the sculptor with the greatest number of works? | SELECT T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"first",
"name",
"of",
"the",
"sculptor",
"with",
"the",
"greatest",
"number",
"of",
"works",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "sculptorid"
},
{
"id": 3,
"type": "table",
"value": "sculptures"
},
{
"id": 4,
"type": "column",
"value": "artistid"
},
{
"id": 2,
"type": "table",
"value": "artists"
},
{
"id": 1,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
2,029 | retail_world | bird:train.json:6328 | What is the average salary of the employees who takes charge of the sales of over 4 territories? | SELECT AVG(T1.Salary) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.EmployeeID HAVING COUNT(T2.TerritoryID) > 4 | [
"What",
"is",
"the",
"average",
"salary",
"of",
"the",
"employees",
"who",
"takes",
"charge",
"of",
"the",
"sales",
"of",
"over",
"4",
"territories",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "employeeterritories"
},
{
"id": 5,
"type": "column",
"value": "territoryid"
},
{
"id": 0,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
2,030 | network_2 | spider:train_spider.json:4457 | What are the names of all females who are friends with Zach? | SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female' | [
"What",
"are",
"the",
"names",
"of",
"all",
"females",
"who",
"are",
"friends",
"with",
"Zach",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "personfriend"
},
{
"id": 1,
"type": "table",
"value": "person"
},
{
"id": 3,
"type": "column",
"value": "friend"
},
{
"id": 5,
"type": "column",
"value": "gender"
},
{
"id": 6,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
2,031 | driving_school | spider:train_spider.json:6707 | What is the average price for a lesson taught by Janessa Sawayn? | SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"; | [
"What",
"is",
"the",
"average",
"price",
"for",
"a",
"lesson",
"taught",
"by",
"Janessa",
"Sawayn",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 6,
"type": "column",
"value": "last_name"
},
{
"id": 3,
"type": "column",
"value": "staff_id"
},
{
"id": 0,
"type": "table",
"value": "lessons"
},
{
"id": 5,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
2,032 | climbing | spider:train_spider.json:1143 | What are the names of countains that no climber has climbed? | SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber) | [
"What",
"are",
"the",
"names",
"of",
"countains",
"that",
"no",
"climber",
"has",
"climbed",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "mountain_id"
},
{
"id": 0,
"type": "table",
"value": "mountain"
},
{
"id": 3,
"type": "table",
"value": "climber"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
2,033 | european_football_1 | bird:train.json:2742 | Of all the teams that played as a team away against Caen in the 2010 season, which one has the highest winning percentage? | SELECT AwayTeam FROM matchs WHERE HomeTeam = 'Caen' AND season = 2010 AND FTR = 'A' GROUP BY AwayTeam ORDER BY COUNT(AwayTeam) DESC LIMIT 1 | [
"Of",
"all",
"the",
"teams",
"that",
"played",
"as",
"a",
"team",
"away",
"against",
"Caen",
"in",
"the",
"2010",
"season",
",",
"which",
"one",
"has",
"the",
"highest",
"winning",
"percentage",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "awayteam"
},
{
"id": 2,
"type": "column",
"value": "hometeam"
},
{
"id": 0,
"type": "table",
"value": "matchs"
},
{
"id": 4,
"type": "column",
"value": "season"
},
{
"id": 3,
"type": "value",
"value": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6,
8
]
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
2,034 | disney | bird:train.json:4665 | From 2000 to 2010, in which year did the studio entertainment segment make the most revenue? | SELECT `Year` FROM revenue WHERE `Year` BETWEEN 2000 AND 2010 ORDER BY `Studio Entertainment[NI 1]` DESC LIMIT 1 | [
"From",
"2000",
"to",
"2010",
",",
"in",
"which",
"year",
"did",
"the",
"studio",
"entertainment",
"segment",
"make",
"the",
"most",
"revenue",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "Studio Entertainment[NI 1]"
},
{
"id": 0,
"type": "table",
"value": "revenue"
},
{
"id": 1,
"type": "column",
"value": "Year"
},
{
"id": 2,
"type": "value",
"value": "2000"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11
... | [
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
2,035 | works_cycles | bird:train.json:7132 | Which position does Suchitra hold? | SELECT T2.JobTitle FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Suchitra' | [
"Which",
"position",
"does",
"Suchitra",
"hold",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "businessentityid"
},
{
"id": 3,
"type": "column",
"value": "firstname"
},
{
"id": 0,
"type": "column",
"value": "jobtitle"
},
{
"id": 2,
"type": "table",
"value": "employee"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
2,036 | law_episode | bird:train.json:1263 | Which role did Joseph Blair play in the show? | SELECT T1.role FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Joseph Blair' | [
"Which",
"role",
"did",
"Joseph",
"Blair",
"play",
"in",
"the",
"show",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Joseph Blair"
},
{
"id": 5,
"type": "column",
"value": "person_id"
},
{
"id": 1,
"type": "table",
"value": "credit"
},
{
"id": 2,
"type": "table",
"value": "person"
},
{
"id": 0,
"type": "column",
"valu... | [
{
"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": [
3,
4
]
},
{
"entity_id": 5,
"toke... | [
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
2,037 | allergy_1 | spider:train_spider.json:457 | Which allergy type has least number of allergies? | SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1 | [
"Which",
"allergy",
"type",
"has",
"least",
"number",
"of",
"allergies",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "allergy_type"
},
{
"id": 1,
"type": "column",
"value": "allergytype"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"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.