Compositional Semantic Parsing on Semi-Structured Tables
Paper • 1508.00305 • Published
id stringclasses 19
values | question stringclasses 19
values | answers sequence | table dict | aggregation_label stringclasses 4
values | answer_coordinates sequence |
|---|---|---|---|---|---|
nt-0 | What is the total average attendance at all USL First Division matches? | [
"36755"
] | {
"header": [
"Year",
"Division",
"League",
"Regular Season",
"Playoffs",
"Open Cup",
"Avg. Attendance"
],
"rows": [
[
"2001",
"2",
"USL A-League",
"4th, Western",
"Quarterfinals",
"Did not qualify",
"7,169"
],
[
"2002",
... | SUM | [
[
4,
6
],
[
5,
6
],
[
6,
6
],
[
7,
6
],
[
8,
6
]
] |
nt-1 | What events have there been in the World Youth Championships? | [
"400 m",
"Medley relay"
] | {
"header": [
"Year",
"Competition",
"Venue",
"Position",
"Event",
"Notes"
],
"rows": [
[
"2001",
"World Youth Championships",
"Debrecen, Hungary",
"2nd",
"400 m",
"47.12"
],
[
"2001",
"World Youth Championships",
"Debrecen,... | SUM | [
[
0,
4
],
[
1,
4
]
] |
nt-4 | What is the total attendance in May 1988? | [
"91156"
] | {
"header": [
"Date",
"Opponent",
"Venue",
"Result",
"Attendance",
"Scorers"
],
"rows": [
[
"15 August 1987",
"Derby County",
"Away",
"0–1",
"17,204",
"—"
],
[
"18 August 1987",
"Coventry City",
"Home",
"0–1",
"0... | SUM | [
[
34,
4
],
[
35,
4
],
[
36,
4
],
[
37,
4
],
[
38,
4
],
[
39,
4
]
] |
nt-5 | Which name has been in the most parties? | [
"Peter Little"
] | {
"header": [
"",
"Name",
"Took office",
"Left office",
"Party",
"Notes/Events"
],
"rows": [
[
"11",
"William McCreery",
"March 4, 1803",
"March 3, 1809",
"Democratic Republican",
""
],
[
"12",
"Alexander McKim",
"March 4, 1... | COUNT | [
[
3,
0
],
[
4,
0
],
[
5,
0
]
] |
nt-6 | What was the score of the 84 tie no expressed as a ratio? | [
"0-4"
] | {
"header": [
"Tie no",
"Home team",
"Score",
"Away team"
],
"rows": [
[
"49",
"Dalsjöfors GoIF (WC)",
"1-4",
"Varbergs GIF (D3)"
],
[
"50",
"Sjömarkens IF (D4)",
"1-4",
"BK Slätta Damm (D3)"
],
[
"51",
"IF Tymer (D4)"... | - | [
[
35,
2
]
] |
nt-7 | What is the average depth? | [
"113"
] | {
"header": [
"Name in English",
"Name in Turkish",
"Area (km2)",
"Depth",
"Location (districts and/or provinces)"
],
"rows": [
[
"Lake Van",
"Van Gölü",
"3755 km2",
"451 m",
"Van, Bitlis"
],
[
"Lake Tuz",
"Tuz Gölü",
"1500 km2",
... | AVERAGE | [
[
0,
3
],
[
1,
3
],
[
2,
3
],
[
8,
3
],
[
10,
3
],
[
20,
3
],
[
48,
3
]
] |
nt-10 | Who had the most fastest lap? | [
"Raymond Roche"
] | {
"header": [
"Round",
"Round",
"Circuit",
"Date",
"Pole Position",
"Fastest Lap",
"Winning Rider"
],
"rows": [
[
"1",
"R1",
"Jerez",
"18 March",
"Raymond Roche",
"Stéphane Mertens",
"Raymond Roche"
],
[
"1",
"R2",
... | COUNT | [
[
1,
5
],
[
3,
5
],
[
4,
5
],
[
7,
5
],
[
8,
5
],
[
14,
5
],
[
16,
5
],
[
21,
5
],
[
25,
5
]
] |
nt-11 | How many total competions were there? | [
"10"
] | {
"header": [
"Year",
"Competition",
"Venue",
"Position",
"Notes"
],
"rows": [
[
"1996",
"Olympic Games",
"Atlanta, United States",
"36th (q)",
"5.55 m"
],
[
"1998",
"Asian Games",
"Bangkok, Thailand",
"8th",
"6.07 m"
... | COUNT | [
[
0,
1
],
[
1,
1
],
[
2,
1
],
[
3,
1
],
[
4,
1
],
[
5,
1
],
[
6,
1
],
[
7,
1
],
[
8,
1
],
[
9,
1
]
] |
nt-12 | What is the first Prefecture? | [
"Tokushima Prefecture"
] | {
"header": [
"No.",
"Temple",
"Honzon (main image)",
"City/Town/Village",
"Prefecture"
],
"rows": [
[
"1",
"Ryōzen-ji (霊山寺)",
"Shaka Nyorai",
"Naruto",
"Tokushima Prefecture"
],
[
"2",
"Gokuraku-ji (極楽寺)",
"Amida Nyorai",
"Naru... | COUNT | [
[
4,
0
]
] |
nt-13 | What are all the classes in 1994-95? | [
"Menard",
"Van Alstyne",
"Wichita Falls",
"Weslaco"
] | {
"header": [
"School Year",
"Class A",
"Class AA",
"Class AAA",
"Class AAAA",
"Class AAAAA"
],
"rows": [
[
"1994-95",
"Menard",
"Van Alstyne",
"Cameron Yoe",
"Wichita Falls",
"Weslaco"
],
[
"1995-96",
"Era",
"Coahoma",
... | COUNT | [
[
1,
0
],
[
2,
0
],
[
3,
0
],
[
4,
0
],
[
5,
0
]
] |
nt-16 | What is the average winning score? | [
"31"
] | {
"header": [
"Week",
"Date",
"Opponent",
"Score",
"Result",
"Record"
],
"rows": [
[
"1",
"July 9",
"vs. Saskatchewan Roughriders",
"31–21",
"Win",
"1–0"
],
[
"2",
"July 16",
"at Montreal Concordes",
"36–0",
"Win... | AVERAGE | [
[
0,
3
],
[
1,
3
],
[
3,
3
],
[
4,
3
],
[
5,
3
],
[
6,
3
],
[
7,
3
],
[
8,
3
],
[
10,
3
],
[
11,
3
],
[
12,
3
],
[
13,
3
]
] |
nt-17 | What is the zip code of the first Abbott? | [
"72944"
] | {
"header": [
"Name of place",
"Number of counties",
"Principal county",
"Lower zip code"
],
"rows": [
[
"Abbott",
"1",
"Scott County",
"72944"
],
[
"Abco",
"1",
"Hot Spring County",
""
],
[
"Aberdeen",
"1",
"Mon... | COUNT | [
[
0,
3
]
] |
nt-18 | How many films came out in 2009? | [
"3"
] | {
"header": [
"Year",
"Title",
"Role",
"Notes"
],
"rows": [
[
"1991",
"Let Him Have It",
"Derek Bentley",
""
],
[
"1992",
"Death and the Compass",
"Alonso Zunz",
""
],
[
"1993",
"Anchoress",
"Priest",
""
... | SUM | [
[
21,
1
],
[
22,
1
],
[
23,
1
]
] |
nt-19 | How many games did an away team win? | [
"2"
] | {
"header": [
"Home Team",
"Score",
"Away Team",
"Date",
"Agg"
],
"rows": [
[
"Aberdeen",
"7–1",
"Hamilton Academical",
"11-10-1978",
"8–1"
],
[
"Airdrieonians",
"1–2",
"Arbroath",
"10-10-1978",
"2–3"
],
[
"A... | SUM | [
[
1,
1
],
[
6,
1
]
] |
nt-20 | How many titles were on The Sound of Trees Album? | [
"3"
] | {
"header": [
"Year",
"Title",
"Peak chart positions\\nAUS",
"Peak chart positions\\nNZ",
"Album"
],
"rows": [
[
"1988",
"\"Whisper\"",
"58",
"42",
"The Sound Of Trees"
],
[
"1988",
"\"Love-Hate Relationship\"",
"81",
"46",
... | COUNT | [
[
0,
4
],
[
1,
4
],
[
2,
4
]
] |
nt-21 | How models are from the United States? | [
"4"
] | {
"header": [
"Model",
"Origin",
"Type",
"Version",
"In Service",
"Notes"
],
"rows": [
[
"AM General HMMWV",
"United States",
"Light Utility Vehicle",
"M998A1\\n\\nM1038A1\\n\\nM1025A1\\n\\nM1025P1\\n\\nM1114",
"-",
"Divided into several variants and... | COUNT | [
[
0,
1
],
[
1,
1
],
[
2,
1
],
[
3,
1
]
] |
nt-22 | How many knots can the Meola go? | [
"9"
] | {
"header": [
"Name",
"Dates",
"Grt",
"Propulsion",
"Port",
"Notes"
],
"rows": [
[
"Arataki i",
"1948-84",
"74",
"320 bhp diesel, 10 knots (19 km/h)",
"",
"US Navy harbour tug"
],
[
"Arataki ii",
"1984-99",
"143",
"1... | COUNT | [
[
5,
3
]
] |
nt-23 | How many names are from Kenya? | [
"3"
] | {
"header": [
"Rank",
"Name",
"Nationality",
"Time"
],
"rows": [
[
"",
"Brahim Boulami",
"Morocco",
"8:17.73"
],
[
"",
"Reuben Kosgei",
"Kenya",
"8:18.63"
],
[
"",
"Stephen Cherono",
"Kenya",
"8:19.98"
... | COUNT | [
[
1,
2
],
[
2,
2
],
[
6,
2
]
] |
nt-25 | Name a closed Parish | [
"St Joseph"
] | {
"header": [
"Parish",
"Locality",
"Parish Priest",
"Founded",
"Closed"
],
"rows": [
[
"St Mary",
"Bacup",
"Fr Frank Thorpe",
"1852",
"----"
],
[
"Our Immaculate Mother & St Anselm",
"Whitworth",
"Fr Frank Thorpe",
"1860",
... | COUNT | [
[
2,
0
]
] |
The WikiTableQuestions-wtq dataset is a small-scale dataset for the task of question answering on semi-structured tables.
This data includes the aggregation_label and answer_coordinates to make it easy to train this model on any TAPAS based modles.
question-answering, table-question-answering
en
An example of 'validation' looks as follows:
{
"id": "nt-0",
"question": "What is the total average attendance at all USL First Division matches?",
"answers": [
"36755"
],
"table": {
"header": [
"Year",
"Division",
"League",
"Regular Season",
"Playoffs",
"Open Cup",
"Avg. Attendance"
],
"rows": [
[
"2001",
"2",
"USL A-League",
"4th, Western",
"Quarterfinals",
"Did not qualify",
"7,169"
],
...
],
"name": "csv/204-csv/590.tsv"
},
"aggregation_label": "SUM",
"answer_coordinates": [
[
4,
6
],
...
]
}
The data fields are the same among all splits.
id: a string feature.question: a string feature.answers: a list of string feature.answers_coordinates: a list of int,int tuples.aggregation_label: a string feature.table: a dictionary feature containing:header: a list of string features.rows: a list of list of string features:name: a string feature.TBA
[Needs More Information]
[Needs More Information]
[Needs More Information]
[Needs More Information]
[Needs More Information]
[Needs More Information]
[Needs More Information]
[Needs More Information]
[Needs More Information]
Panupong Pasupat and Percy Liang
Creative Commons Attribution Share Alike 4.0 International
@inproceedings{pasupat-liang-2015-compositional,
title = "Compositional Semantic Parsing on Semi-Structured Tables",
author = "Pasupat, Panupong and Liang, Percy",
booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
month = jul,
year = "2015",
address = "Beijing, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/P15-1142",
doi = "10.3115/v1/P15-1142",
pages = "1470--1480",
}
Thanks to @SivilTaram for adding this dataset.