TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension
Paper • 1705.03551 • Published • 1
question_id stringlengths 4 10 | question stringlengths 18 1.2k | question_source stringclasses 14
values | answer_value stringlengths 1 179 | answer_aliases listlengths 1 438 | normalized_answer stringlengths 0 166 | answer_type stringclasses 4
values | question_emb list |
|---|---|---|---|---|---|---|---|
tc_1 | Which American-born Sinclair won the Nobel Prize for Literature in 1930? | http://www.triviacountry.com/ | Sinclair Lewis | [
"(Harry) Sinclair Lewis",
"Harry Sinclair Lewis",
"Lewis, (Harry) Sinclair",
"Grace Hegger",
"Sinclair Lewis"
] | sinclair lewis | WikipediaEntity | [
0.023169325664639473,
-0.030406534671783447,
-0.07039284706115723,
0.0454985573887825,
0.009289265610277653,
0.07207824289798737,
0.09149531275033951,
0.027861332520842552,
0.011133934371173382,
0.07158803939819336,
-0.024399645626544952,
0.09474774450063705,
-0.03153642639517784,
0.024326... |
tc_3 | Where in England was Dame Judi Dench born? | http://www.triviacountry.com/ | York | [
"Park Grove (1895)",
"York UA",
"Yorkish",
"UN/LOCODE:GBYRK",
"York, UK",
"Eoforwic",
"Park Grove School",
"York Ham",
"The weather in York",
"City of York",
"York, England",
"York, Yorkshire",
"York ham",
"County Borough of York",
"YORK",
"Eoferwic",
"Park Grove Primary School",
"... | york | WikipediaEntity | [
0.04752374440431595,
-0.004885627888143063,
-0.01350818108767271,
-0.02971527725458145,
-0.01296195574104786,
0.07503002136945724,
-0.021380098536610603,
-0.00786353088915348,
-0.011738622561097145,
0.0684937834739685,
0.0048612989485263824,
-0.11780311912298203,
-0.0340106375515461,
-0.07... |
tc_5 | In which decade did Billboard magazine first publish and American hit chart? | http://www.triviacountry.com/ | 30s | [
"30's",
"30’s",
"30s",
"30s AD",
"30-39"
] | 30s | WikipediaEntity | [
0.08651887625455856,
-0.0514783151447773,
-0.10441441833972931,
0.07962378114461899,
0.017974043264985085,
0.08217453211545944,
-0.046744298189878464,
0.00568322092294693,
-0.056948594748973846,
-0.03368859365582466,
0.015830010175704956,
0.04437496140599251,
0.10326030850410461,
0.0214751... |
tc_8 | From which country did Angola achieve independence in 1975? | http://www.triviacountry.com/ | Portugal | [
"Portogało",
"Republic of Portugal",
"PORTUGAL",
"Portekiz",
"Portugallu",
"O Papagaio",
"ISO 3166-1:PT",
"Portunga",
"Phu-to-ga",
"Potigal",
"Portûnga",
"Portugul",
"An Phortaingéil",
"Portugāle",
"Portugale",
"Portingale",
"Potiti",
"Portugali",
"Portugall",
"Portekîz",
"Bo... | portugal | WikipediaEntity | [
-0.05920160934329033,
0.05574307218194008,
-0.03240777179598808,
0.11692319810390472,
0.019090892747044563,
-0.0506412573158741,
0.0038206761237233877,
-0.024617960676550865,
-0.03810102865099907,
0.04961460456252098,
0.05663755536079407,
-0.08344381302595139,
-0.026640282943844795,
0.0576... |
tc_9 | Which city does David Soul come from? | http://www.triviacountry.com/ | Chicago | [
"Chi-Beria",
"Sayre language academy",
"Chicago",
"Chicago, Illinois",
"Hog Butcher for the World",
"Land of smelly onions",
"Ariel Community Academy",
"The weather in Chicago",
"Chicago, Illinois, U.S.A.",
"Chicago, Illionis",
"Near North Montessori",
"Religion in Chicago",
"Chicago Finance... | chicago | WikipediaEntity | [
0.06124470755457878,
0.15526311099529266,
-0.02029101923108101,
-0.01823659986257553,
-0.032905302941799164,
0.06170681118965149,
0.04655097424983978,
-0.11728964745998383,
0.01037870068103075,
0.07055146247148514,
-0.03160538524389267,
-0.06546007096767426,
-0.03715747594833374,
-0.039915... |
tc_10 | Who won Super Bowl XX? | http://www.triviacountry.com/ | Chicago Bears | [
"Chicago Bears",
"Chicago Staleys",
"Decatur Staleys",
"Chicago Bears football",
"Chicago bears",
"Save Da Planet",
"Chicago Gators"
] | chicago bears | WikipediaEntity | [
-0.040907472372055054,
0.04029460996389389,
-0.05311192572116852,
-0.044142257422208786,
0.004738742019981146,
0.05789303779602051,
0.05285423994064331,
0.03351844474673271,
0.05744193121790886,
0.028670141473412514,
-0.08925320953130722,
-0.002925639972090721,
0.0948374941945076,
-0.01345... |
tc_11 | Which was the first European country to abolish capital punishment? | http://www.triviacountry.com/ | Norway | [
"Norvège",
"Mainland Norway",
"Norway",
"Norvege",
"Noregur",
"NORWAY",
"Norwegian state",
"Etymology of Norway",
"Noruega",
"Norwegen",
"ISO 3166-1:NO",
"Noreg",
"Republic of Norway",
"Norwegian kingdom",
"Kongeriket Noreg",
"Name of Norway",
"Kongeriket Norge",
"Noorwegen",
"Ki... | norway | WikipediaEntity | [
0.04978356510400772,
0.09942281246185303,
-0.12599368393421173,
-0.05261523649096489,
0.026605745777487755,
0.05195906385779381,
0.016049515455961227,
-0.045578692108392715,
-0.015607531182467937,
0.05576194077730179,
0.12862978875637054,
0.027098823338747025,
-0.02946905978024006,
0.06681... |
tc_15 | In which country did he widespread use of ISDN begin in 1988? | http://www.triviacountry.com/ | Japan | [
"日本國",
"State of Japan",
"Ja-pan",
"Nihon",
"Nippon",
"Japang",
"Modern–era Japan",
"Etymology of Japan",
"Japan (country)",
"Republic of Japan",
"Japanese financial sector",
"Nihon-koku",
"ISO 3166-1:JP",
"日本",
"Japian",
"Japan",
"JapaN",
"The State of Japan",
"Riben",
"Nippon... | japan | WikipediaEntity | [
-0.0361785814166069,
0.024634787812829018,
0.044502947479486465,
0.021195970475673676,
0.01775924675166607,
0.06840086728334427,
0.045256562530994415,
0.12696196138858795,
-0.027636192739009857,
0.042680930346250534,
0.015016299672424793,
0.11832540482282639,
-0.01634513959288597,
0.087554... |
tc_16 | What is Bruce Willis' real first name? | http://www.triviacountry.com/ | Walter | [
"Walter (TV Series)",
"Walter",
"Walter (disambiguation)",
"Walter (TV series)"
] | walter | WikipediaEntity | [
-0.12045761942863464,
-0.03706871345639229,
-0.11397518962621689,
0.06705824285745621,
-0.09309973567724228,
-0.05791829898953438,
0.10885172337293625,
0.008734261617064476,
0.004739760421216488,
-0.039038728922605515,
0.02531038224697113,
-0.09572898596525192,
0.03439547121524811,
0.03639... |
tc_17 | Which William wrote the novel Lord Of The Flies? | http://www.triviacountry.com/ | Golding | [
"Golding",
"Golding (surname)",
"Golding (disambiguation)"
] | golding | WikipediaEntity | [
0.02235744521021843,
0.02580886334180832,
0.04897703975439072,
0.06022774428129196,
-0.023392707109451294,
0.020914992317557335,
0.03141666576266289,
-0.04390065371990204,
-0.011144408024847507,
0.03044544719159603,
-0.015010186471045017,
0.07189875841140747,
-0.02960575371980667,
-0.03350... |
tc_18 | Which innovation for the car was developed by Prince Henry of Prussia in 1911? | http://www.triviacountry.com/ | Windshield wipers | [
"Rear-window wiper",
"Headlight washer",
"Windshield wiper",
"Windshield wipers",
"Wipers (car)",
"Headlamp wiper",
"Windscreen wipers",
"MAGIC VISION CONTROL",
"Intermittent windshield wiper",
"Windscreen washer",
"Headlight wiper",
"Headlamp washer",
"Wiper blade",
"Windshield washer",
... | windshield wipers | WikipediaEntity | [
-0.1088128536939621,
0.07205507904291153,
-0.016627201810479164,
-0.011276153847575188,
0.003056945977732539,
0.08482358604669571,
-0.02596292644739151,
0.1133842021226883,
-0.08734442293643951,
-0.0615699402987957,
0.02737276628613472,
0.0301031656563282,
0.03228013962507248,
-0.052453614... |
tc_19 | How is musician William Lee Conley better known? | http://www.triviacountry.com/ | Big Bill Broonzy | [
"Bill Broonzy",
"Big Bill Broonzey",
"William Lee Conley Broonzy",
"Big Bill Broonzy",
"William Broonzy"
] | big bill broonzy | WikipediaEntity | [
0.01703054830431938,
0.022055892273783684,
-0.04397841542959213,
0.00042515317909419537,
-0.10152866691350937,
0.011738866567611694,
0.08245404809713364,
-0.010094705037772655,
-0.03875464200973511,
-0.025006454437971115,
0.02093619666993618,
-0.06728779524564743,
0.03038228303194046,
-0.0... |
tc_21 | How is Joan Molinsky better known? | http://www.triviacountry.com/ | Joan Rivers | [
"Queen of Comedy",
"Heidi Abromowitz",
"Joan Rivers (TV) Show",
"Joan Alexandra Molinsky",
"Diary of a Mad Diva",
"Joan rivers",
"Heidi abromowitz",
"Joan River",
"Joan Rivers Show",
"Joan Rivers"
] | joan rivers | WikipediaEntity | [
0.028838686645030975,
-0.050041139125823975,
-0.04912107065320015,
0.030553365126252174,
0.06072792783379555,
0.01945258304476738,
0.04674778878688812,
0.06627627462148666,
0.0057186707854270935,
-0.0456971600651741,
-0.02845982275903225,
0.060580093413591385,
-0.004938929341733456,
-0.002... |
tc_22 | In which branch of the arts is Patricia Neary famous? | http://www.triviacountry.com/ | Ballet | [
"Ballet",
"Ballet competitions",
"Ballet schools",
"Balet, India",
"Balletti",
"Ballet dancing",
"1938 ballet premieres",
"Balletto",
"Balletomane",
"2011 ballet premieres",
"1940 ballet premieres",
"Balletomanes",
"1939 ballet premieres",
"Ballet characters",
"Ballet teachers",
"Balle... | ballet | WikipediaEntity | [
0.04416121542453766,
-0.00652533071115613,
-0.0009445230243727565,
-0.04352923110127449,
-0.06609247624874115,
0.06999315321445465,
-0.030689898878335953,
0.01775413751602173,
-0.008547736331820488,
0.029907822608947754,
-0.06846927851438522,
-0.022681448608636856,
-0.033526889979839325,
-... |
tc_23 | Which country is Europe's largest silk producer? | http://www.triviacountry.com/ | Italy | [
"Environment of Italy",
"Italiën",
"Subdivisions of Italy",
"Republic of Italy",
"ItalY",
"ISO 3166-1:IT",
"Etymology of Italy",
"Itali",
"Pollution in Italy",
"Administrative divisions of Italy",
"Austrian Empire (Italy)",
"Italija",
"Italie",
"Italia",
"Italian Republic",
"Second Ita... | italy | WikipediaEntity | [
0.016399342566728592,
0.014141676016151905,
-0.043557360768318176,
0.02756260521709919,
0.032482121139764786,
-0.012791451998054981,
-0.005946739111095667,
-0.03657308220863342,
-0.0794256404042244,
-0.0609918050467968,
0.06744349002838135,
-0.05234075337648392,
-0.06393761187791824,
0.043... |
tc_24 | The VS-300 was a type of what? | http://www.triviacountry.com/ | Helicopter | [
"🚁",
"Helicopters",
"Civilian helicopter",
"Pescara (helicopter)",
"Cargo helicopter",
"Copter",
"Helecopter",
"List of deadliest helicopter crashes",
"Helichopper",
"Helocopter",
"Cargo Helicopter",
"Helicopter",
"Helicoptor",
"Anatomy of a helicopter"
] | helicopter | WikipediaEntity | [
-0.10964345932006836,
0.020844019949436188,
-0.09409292787313461,
-0.03595757484436035,
-0.038714516907930374,
0.027419360354542732,
-0.08690785616636276,
0.06689354032278061,
-0.08950431644916534,
0.021219849586486816,
0.03079281561076641,
0.035078346729278564,
-0.007456370163708925,
-0.0... |
tc_25 | At which university did Joseph Goebbels become a doctor of philosophy? | http://www.triviacountry.com/ | Heidelberg | [
"Heidelberg romantics",
"UN/LOCODE:DEHEI",
"Heidelberg, West Germany",
"Wieblingen",
"Heidelberg",
"Heidelberg, Germany"
] | heidelberg | WikipediaEntity | [
0.02659054473042488,
0.06210885941982269,
-0.05765410140156746,
0.0009278468787670135,
-0.06864457577466965,
0.007288170047104359,
-0.014437803067266941,
0.030409570783376694,
-0.00020919564121868461,
-0.07413353025913239,
-0.007535172626376152,
0.039598122239112854,
-0.03434043377637863,
... |
tc_26 | Which prince is Queen Elizabeth II's youngest son? | http://www.triviacountry.com/ | Edward | [
"Eadweard",
"Edward"
] | edward | WikipediaEntity | [
0.04049056023359299,
0.028727911412715912,
0.04380517825484276,
0.030984189361333847,
0.0390685498714447,
-0.018353363499045372,
0.01031123660504818,
0.004296185448765755,
-0.0737345889210701,
0.018328187987208366,
-0.08140302449464798,
-0.028109246864914894,
0.003253248753026128,
-0.06150... |
tc_27 | When did the founder of Jehovah's Witnesses say the world would end? | http://www.triviacountry.com/ | 1914 | [
"one thousand, nine hundred and fourteen",
"1914"
] | 1914 | Numerical | [
-0.04112902283668518,
0.11318378895521164,
0.03601811081171036,
0.06107861176133156,
-0.04367787763476372,
-0.0693797916173935,
-0.07185114175081253,
-0.00029754952993243933,
0.008842159993946552,
0.02229258418083191,
-0.024448323994874954,
0.02772526815533638,
-0.006146460305899382,
0.022... |
tc_28 | Who found the remains of the Titanic? | http://www.triviacountry.com/ | Robert Ballard | [
"Bob Ballard",
"Robert Duane Ballard",
"Robert Ballard",
"Robert %22Bob%22 Ballard",
"Robert d. ballard"
] | robert ballard | WikipediaEntity | [
-0.09524061530828476,
0.08917678147554398,
0.019546858966350555,
0.0982854813337326,
0.04392252117395401,
0.015064929611980915,
-0.04164867475628853,
-0.0026691844686865807,
-0.0010562367970123887,
-0.013470296747982502,
-0.03647487983107567,
-0.003871750319376588,
-0.03798362612724304,
0.... |
tc_30 | Who was the only Spice Girl not to have a middle name? | http://www.triviacountry.com/ | Posh Spice | [
"My Love Is For Real (Victoria Beckham song",
"Romeo James Beckham",
"Harper Seven Beckham",
"Posh Spice",
"Victoria addams",
"Victoria Beckham",
"Victoria Adams Beckham",
"Harper Beckham",
"Victoria Caroline Beckham",
"I'd Give It All Away",
"Come Together (Victoria Beckham album)",
"Posh spi... | posh spice | WikipediaEntity | [
-0.05416562780737877,
-0.05625636875629425,
-0.02119278348982334,
0.038305751979351044,
-0.03191437944769859,
0.019930848851799965,
0.035209935158491135,
0.03321920335292816,
0.022241080179810524,
-0.03767172992229462,
0.09725411981344223,
-0.082635298371315,
0.06665951758623123,
-0.066725... |
tc_31 | What are the international registration letters of a vehicle from Algeria? | http://www.triviacountry.com/ | DZ | [
"DZ (disambiguation)",
"Dz.",
"DZs",
"Dz",
"D.z.",
"DZ",
"D Z",
"D.Z."
] | dz | WikipediaEntity | [
-0.05865120515227318,
-0.0028281663544476032,
-0.09776101261377335,
-0.06259207427501678,
-0.062145959585905075,
0.026477089151740074,
-0.03011632151901722,
0.003672227030619979,
0.020383019000291824,
-0.062038354575634,
0.09637778997421265,
-0.008229505270719528,
0.053455691784620285,
-0.... |
tc_32 | How did Jock die in Dallas? | http://www.triviacountry.com/ | Helicopter accident | [
"Helicopter accident"
] | helicopter accident | FreeForm | [
0.08124176412820816,
0.011415379121899605,
-0.0022691211197525263,
-0.02774479053914547,
0.07038690149784088,
0.029935112223029137,
0.03459681198000908,
0.03333287686109543,
-0.042227983474731445,
0.02615705505013466,
0.030803440138697624,
0.02640126459300518,
0.07019811123609543,
-0.01725... |
Lance-formatted version of TriviaQA (rc.nocontext config) — a question-answering dataset of trivia questions paired with answer aliases — with MiniLM sentence embeddings stored inline.
rc.nocontext?
The full TriviaQA dataset bundles entire Wikipedia / web pages per question (entity_pages, search_results), which makes it tens of GB. The rc.nocontext slice keeps the question + answer + answer aliases in a compact form — ideal for closed-book QA, retrieval research, and as a search target.
| Split | Rows |
|---|---|
train.lance |
138,384 |
validation.lance |
17,944 |
| Column | Type | Notes |
|---|---|---|
question_id |
string |
TriviaQA question id (e.g. tc_1) |
question |
string |
The trivia question |
question_source |
string |
URL / source where the question came from |
answer_value |
string |
Canonical answer |
answer_aliases |
list<string> |
Other accepted phrasings (e.g. ["Sinclair Lewis", "Harry Sinclair Lewis"]) |
normalized_answer |
string |
Lowercased / normalized form for exact-match scoring |
answer_type |
string |
TriviaQA entity type (e.g. WikipediaEntity, FreebaseEntity) |
question_emb |
fixed_size_list<float32, 384> |
MiniLM embedding of question (cosine-normalized) |
IVF_PQ on question_emb — metric=cosineINVERTED on questionBTREE on question_id and answer_valueBITMAP on answer_typeimport lance
ds = lance.dataset("hf://datasets/lance-format/trivia-qa-lance/data/train.lance")
print(ds.count_rows(), ds.schema.names, ds.list_indices())
These tables can also be consumed by LanceDB, the multimodal lakehouse and embedded search library built on top of Lance, for simplified vector search and other queries.
import lancedb
db = lancedb.connect("hf://datasets/lance-format/trivia-qa-lance/data")
tbl = db.open_table("train")
print(f"LanceDB table opened with {len(tbl)} trivia questions")
import lance
import pyarrow as pa
from sentence_transformers import SentenceTransformer
encoder = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2", device="cuda")
q = encoder.encode(["who painted the sistine chapel ceiling"], normalize_embeddings=True)[0]
ds = lance.dataset("hf://datasets/lance-format/trivia-qa-lance/data/train.lance")
emb_field = ds.schema.field("question_emb")
hits = ds.scanner(
nearest={"column": "question_emb", "q": pa.array([q.tolist()], type=emb_field.type)[0], "k": 5},
columns=["question", "answer_value", "answer_aliases"],
).to_table().to_pylist()
import lancedb
from sentence_transformers import SentenceTransformer
encoder = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2", device="cuda")
q = encoder.encode(["who painted the sistine chapel ceiling"], normalize_embeddings=True)[0]
db = lancedb.connect("hf://datasets/lance-format/trivia-qa-lance/data")
tbl = db.open_table("train")
results = (
tbl.search(q.tolist(), vector_column_name="question_emb")
.metric("cosine")
.select(["question", "answer_value", "answer_aliases"])
.limit(5)
.to_list()
)
import lancedb
db = lancedb.connect("hf://datasets/lance-format/trivia-qa-lance/data")
tbl = db.open_table("train")
results = (
tbl.search("sistine chapel")
.select(["question", "answer_value"])
.limit(10)
.to_list()
)
ds = lance.dataset("hf://datasets/lance-format/trivia-qa-lance/data/train.lance")
wiki = ds.scanner(filter="answer_type = 'WikipediaEntity'", columns=["question"], limit=5).to_table()
import lancedb
db = lancedb.connect("hf://datasets/lance-format/trivia-qa-lance/data")
tbl = db.open_table("train")
wiki = (
tbl.search()
.where("answer_type = 'WikipediaEntity'")
.select(["question"])
.limit(5)
.to_list()
)
Converted from mandarjoshi/trivia_qa (rc.nocontext). TriviaQA is released under the Apache 2.0 license.
@article{joshi2017triviaqa,
title={TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension},
author={Joshi, Mandar and Choi, Eunsol and Weld, Daniel S and Zettlemoyer, Luke},
journal={arXiv preprint arXiv:1705.03551},
year={2017}
}