Simple Question (Direct)
Simple Question
Q16856973
P21
Q290
USER
What is the sex of Frederick C. Williams ?
(Q16856973,P21,c(Q290))
action filter_type
action find
entity Q16856973
relation P21
type Q290
['Q16856973', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q16856973 property:P21 ?z . ?z rdf:type ontology:Q290 }
Frederick C. Williams
action filter_type
action find
entity Frederick C. Williams
relation gender
type sex
['Frederick C. Williams', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Frederick_C._Williams property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16856973,P21,c(Q290))
action filter_type
action find
entity Q16856973
relation P21
type Q290
The sex of Frederick C. is a [ANSWER]
['Q16856973', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q16856973 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Frederick C. is a male
male
action filter_type
action find
entity Frederick C. Williams
relation gender
type sex
['Frederick C. Williams', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Frederick_C._Williams property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16856973
P102
Q7210356
USER
Which political organization is Frederick C. Williams a member of ?
(Q16856973,P102,c(Q7210356))
action filter_type
action find
entity Q16856973
relation P102
type Q7210356
['Q16856973', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q16856973 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Frederick C. Williams
action filter_type
action find
entity Frederick C. Williams
relation member of political party
type political organization
['Frederick C. Williams', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Frederick_C._Williams property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q16856973,P102,c(Q7210356))
action filter_type
action find
entity Q16856973
relation P102
type Q7210356
The [ANSWER] is Frederick C. Williams a member of
['Q16856973', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q16856973 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Republican Party
The Republican Party is Frederick C. Williams a member of
Republican Party
action filter_type
action find
entity Frederick C. Williams
relation member of political party
type political organization
['Frederick C. Williams', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Frederick_C._Williams property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16856973
P734
Q82799
USER
Who has the surname that person ?
(Q29468,P734,c(Q82799))
action filter_type
action find
entity Q16856973
relation P734
type Q82799
['Q29468', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q16856973 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Frederick C. Williams
action filter_type
action find
entity Frederick C. Williams
relation family name
type name
['Republican Party', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Frederick_C._Williams property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q1688722
SYSTEM
Williams
Q1688722
(Q29468,P734,c(Q82799))
action filter_type
action find
entity Q16856973
relation P734
type Q82799
[ANSWER] has the surname that person
['Q29468', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q16856973 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Williams
Williams has the surname that person
Williams
action filter_type
action find
entity Frederick C. Williams
relation family name
type name
['Republican Party', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Frederick_C._Williams property:family_name ?d . ?d rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1688722 Q13366
P407
Q34770
USER
Is Williams in Meroitic ?
(Q1688722,P407,Q13366)
action is_in
entity Q13366
action find
entity Q1688722
relation P407
['Q1688722', 'P407', 'Q13366']
ASK WHERE { resource:Q1688722 property:P407 resource:Q13366 }
Williams Meroitic
action is_in
entity Meroitic
action find
entity Williams
relation language of work or name
['Williams', 'language of work or name', 'Meroitic']
ASK WHERE { resource:Williams property:language_of_work_or_name resource:Meroitic }
[]
language
SYSTEM
NO
(Q1688722,P407,Q13366)
action is_in
entity Q13366
action find
entity Q1688722
relation P407
[ANSWER]
['Q1688722', 'P407', 'Q13366']
ASK WHERE { resource:Q1688722 property:P407 resource:Q13366 }
No
action is_in
entity Meroitic
action find
entity Williams
relation language of work or name
['Williams', 'language of work or name', 'Meroitic']
ASK WHERE { resource:Williams property:language_of_work_or_name resource:Meroitic }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q2342494 Q234460 Q502895
USER
Which people are featured in atmost 3 collectables or texts ?
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action atmost
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
value 3
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?a ) WHERE { { ?j property:P1441 ?t . ?j rdf:type ontology:Q502895 . ?t rdf:type ontology:Q2342494 } UNION { ?t rdf:type ontology:Q234460 . ?j rdf:type ontology:Q502895 . ?j property:P1441 ?t } } GROUP BY ?j } . FILTER ( ?a <= 3 ) }
action atmost
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?a ) WHERE { { ?j property:present_in_work ?t . ?j rdf:type ontology:common_name . ?t rdf:type ontology:collectable } UNION { ?t rdf:type ontology:text . ?j rdf:type ontology:common_name . ?j property:present_in_work ?t } } GROUP BY ?j } . FILTER ( ?a <= 3 ) }
[]
collectable text common name
Q17457 Q110436 Q270438
SYSTEM
Donald Knuth, Cory Doctorow, Charles of Valois
Q41863 Q603233 Q660359 Q2447493 Q80048 Q529984 Q23885172 Q1143157 Q4430779 Q1341397 Q249381 Q232525 Q194064 Q240258 Q24579400 Q466687 Q7307192 Q321469 Q18699270 Q319116 Q18699272 Q12591 Q213633 Q131195 Q221514 Q30914 Q2426699 Q937827 Q24624067 Q4057937 Q214648 Q2574151 Q160116 Q785349 Q2052042 Q318912 Q18699312 Q3858588 Q4154984 Q4006447 Q363623 Q3343834 Q211663 Q176125 Q2451581 Q2046277 Q8423 Q715713 Q24577230 Q1938388 Q2040793 Q494455 Q673959 Q185801 Q6239779 Q125102 Q34428 Q2033697 Q954820 Q244912 Q313216 Q313214 Q24622402 Q645796 Q361636 Q20656752 Q205523 Q1281177 Q311556 Q1353836 Q294192 Q19975705 Q560559 Q807236 Q25885222 Q1867479 Q134646 Q2256348 Q879668 Q1686571 Q1675214 Q2170784 Q188794 Q844433 Q181538 Q24623408 Q28730 Q200902 Q3798672 Q8413 Q2600794 Q126689 Q9077 Q2282686 Q459606 Q145746 Q437417 Q463934 Q721295 Q3778878 Q3774081 Q1403627 Q1133523 Q1348720 Q24624893 Q1396131 Q3591188 Q716237 Q2264125 Q608841 Q1133337 Q200637 Q2124082 Q3259530 Q24625686 Q81422 Q3187975 Q2116944 Q3783913 Q2137929 Q315276 Q946939 Q888890 Q3148218 Q24577318 Q515828 Q24625326 Q1771358 Q25858050 Q26858752 Q923021 Q272277 Q460763 Q24633210 Q205372 Q715547 Q717814 Q3745274 Q3867479 Q830183 Q1446 Q1641601 Q6577515 Q63070 Q7493584 Q19348839 Q1300996 Q2073479 Q851686 Q1333225 Q40662 Q206238 Q400294 Q2723049 Q922184 Q1093885 Q156328 Q1346246 Q3785031 Q1768161 Q2578955 Q6323112 Q171724 Q3010053 Q550255 Q889694 Q1851709 Q8027483 Q816397 Q164889 Q24625073 Q27621044 Q1380878 Q16879711 Q24623579 Q366070 Q2038223 Q1377025 Q2276030 Q264699 Q313415 Q270438 Q360378 Q2711883 Q363660 Q665541 Q1516550 Q886399 Q840401 Q1341779 Q37085 Q326585 Q109920 Q536019 Q213850 Q74891 Q45090 Q972487 Q336832 Q313395 Q1941782 Q2304442 Q8581 Q2651263 Q1542853 Q24577238 Q209793 Q24632700 Q1808889 Q587893 Q24626363 Q2685920 Q256076 Q184273 Q107626 Q205365 Q32295 Q24633126 Q477527 Q1091513 Q3658171 Q2601106 Q18699310 Q62788 Q4804479 Q26721185 Q2292243 Q2448083 Q313421 Q313423 Q633681 Q362021 Q24623790 Q2296791 Q200947 Q24083251 Q262766 Q1947936 Q225198 Q211396 Q25923184 Q313228 Q2075711 Q312311 Q2361344 Q3275910 Q536485 Q273517 Q3752551 Q671872 Q169329 Q2477603 Q110436 Q16845969 Q23906252 Q2519772 Q879088 Q192785 Q302322 Q308320 Q183089 Q7734 Q3761044 Q2168182 Q878882 Q76721 Q1030008 Q26858995 Q2487300 Q319049 Q283466 Q18699300 Q9441 Q18699268 Q372783 Q16006746 Q17457 Q786748 Q24626010 Q229702 Q574641 Q26858919 Q2590260 Q2047062 Q599907 Q1227361 Q282220 Q313237
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action atmost
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
value 3
[ANSWERS] are featured in atmost 3 collectables or texts
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?a ) WHERE { { ?j property:P1441 ?t . ?j rdf:type ontology:Q502895 . ?t rdf:type ontology:Q2342494 } UNION { ?t rdf:type ontology:Q234460 . ?j rdf:type ontology:Q502895 . ?j property:P1441 ?t } } GROUP BY ?j } . FILTER ( ?a <= 3 ) }
Halga Julius Asclepiodotus Cecco Angiolieri Ferrex Al Capone Eric Anundsson Victor Petit Jair Immanuel Michal Markandeya Theodelinda Ezekiel Olof Björnsson Jebidiah Farnsworth Damaris Refil Abishag Achim Nathan Eliud Nebuchadnezzar II Deborah Constantius Chlorus Manoah Ahaz Dyfnwal Moelmud Delilah Bea Hansen Adoniram Samson Sisillius III Alexander III Cangrande I della Scala Mempricius Eric the Victorious Jacob Mino da San Quirico Kai Darab Urianus Cassivellaunus Norman Winther Rehoboam Gideon Cordelia of Britain Parikshit Cyrus the Great Salvatore Maranzano Harriet Mutesi Miriam Reu Orville Wright Leil Mikhail Kutuzov John Hooper Necho II Philip Sisillius I Yael Hezekiah Uzziah Ahaziah of Judah Frank Fauteux Ibzan Amnon Bernard C. Webber Zipporah Beowulf Allectus Hrothgar Guy of Lusignan Daniel Webster Cluff Constans II Barak James Harcourt Jago of Britain Boniface VIII Shealtiel Björn Ironside Jehu Ithamar Anund Uppsale Isaiah Kenan Rudolf Abel Eldon Hanan Saul Shem Ingeld Constantine the Great Erik Björnsson Jehoshaphat Moses Locrinus Ambrosius Aurelianus Joseph Cunobeline Athaliah Jezebel Guglielmo Borsiere Gracianus Municeps Hrethel Jephthah Guy de Montfort, Count of Nola Raymond Sybert Wilbur Wright Erik Refilsson Song Jiang Bladud Arvirargus Abner Japheth Azzo VIII d'Este, Marquis of Ferrara Loretta Jones Andy Fitzgerald Noah Judith Wealhþeow Heardred Gurgustius Agilulf Phut Nahor Ignacy Przybyszewski Sara Katende Tasciovanus Miriam Webber Salomon Helen Kingsleigh Sarah Katende Gorboduc Bathsheba Benjamin George "Tiny" Myers Absalom Mandubracius Hadadezer Filippo Minutolo Musciatto Franzesi Eve Caracalla Tattenai Samuel Mary Magdalene Sheleph Salammbô Ehud Shaunaka Mephibosheth Elon John the Baptist Elisha Ahitophel Mayasura Caleb Hathi Manasseh of Judah Johnny Ringo Heoroweard Islamic views on Abraham Porrex I Nahor Daniel Céleste de Chateaubriand J. William Fulbright Hygelac Rud Hud Hudibras Wise woman of Abel Ben-Hadad I Manfred, King of Sicily Richard Livesey Davy Brown Vortimer Sage Animandaya Wallace Quirey George William Russell Amminadab Bharata Archmail Wil Wheaton Asa of Judah Charles of Valois Adonijah Gurguit Barbtruc Elimelek Hosea Shamgar Maelgwn Gwynedd Laban Kai Lohrasp Solomon Vortigern Jotham of Judah Ecgþeow Amos Jonathan Jesse Buonamico Buffalmacco Jehoahaz of Judah Authari Nadabe Coel Hen Saladin Trahern Alphaeus Robert Katende Constantine III John Stello Kimarcus Sisillius II Mel Gouthro Bledudo Cunedagius Zedekiah Seth Cain Michael J. Massimino Donald Bangs Amram Son of Gorbonianus Phiona Mutesi Rukmi Matthan Jethro Ash Vasudevan Lena Gogan Rivallo Brutus Greenshield Abel Amon of Judah Björn Eriksson Eli D.A. Brown Molly Bloom Ahmad ibn Fadlan Stan the Man Junia Beldgabred Belshazzar Magnus Maximus Elizabeth Ham Josiah Andragius Peter III of Aragon Durvasa Anne Françoise Elisabeth Lange Othniel Abijah of Judah Freawaru Isaac Conrad of Montferrat Vaisampayana Cory Doctorow Hygd Caf' Francisco Sawyl Penuchel Björn at Haugi Goliath Calandrino Abdon Publius Septimius Geta Joshua Geri Spini Ebraucus Togodumnus Godfrey of Bouillon Tamar Aloysius Kyazze Cunedda Jeconiah Roger of Lauria Eleazar Gautama Buddha Zadok Adrian Cronauer James B. Donovan Donald Knuth Pedro González de Mendoza Ervin Maske Ham Balaam Hope Katende Ahijah the Shilonite Marius of Britain Baruch ben Neriah John of Procida Judah Amaziah of Judah
Donald Knuth, Cory Doctorow and Charles of Valois are featured in atmost 3 collectables or texts
Donald Knuth Cory Doctorow Charles of Valois
action atmost
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?a ) WHERE { { ?j property:present_in_work ?t . ?j rdf:type ontology:common_name . ?t rdf:type ontology:collectable } UNION { ?t rdf:type ontology:text . ?j rdf:type ontology:common_name . ?j property:present_in_work ?t } } GROUP BY ?j } . FILTER ( ?a <= 3 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P50
Q2342494
USER
How many collectables were written by that person ?
(c(Q2342494),P50,Q17457)
[{'concept': 'Q2342494'}, 'P50', 'Q17457']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q482980 resource:Q18612136 . ?z rdf:type ontology:Q2342494 }
[{'concept': 'collectable'}, 'author', 'Donald Knuth']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:author resource:Donald_Knuth . ?z rdf:type ontology:collectable }
[]
collectable
Quantitative|Count|Single entity type|Clarification
Q17457
SYSTEM
Did you mean Donald Knuth ?
(c(Q2342494),P50,Q17457) (c(Q2342494),P50,Q110436) (c(Q2342494),P50,Q270438)
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q17457'] [{'concept': 'Q2342494'}, 'P50', 'Q110436'] [{'concept': 'Q2342494'}, 'P50', 'Q270438']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q482980 resource:Q18612136 . ?z rdf:type ontology:Q2342494 }
Did you mean Donald Knuth ?
Donald Knuth
[{'concept': 'collectable'}, 'author', 'Donald Knuth'] [{'concept': 'collectable'}, 'author', 'Cory Doctorow'] [{'concept': 'collectable'}, 'author', 'Charles of Valois']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:author resource:Donald_Knuth . ?z rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q2342494),P50,Q17457)
[{'concept': 'Q2342494'}, 'P50', 'Q17457']
[{'concept': 'collectable'}, 'author', 'Donald Knuth']
[]
SYSTEM
5
Q1124361 Q19595428 Q7784408 Q82438 Q24845083
(c(Q2342494),P50,Q17457)
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q17457']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q482980 resource:Q18612136 . ?z rdf:type ontology:Q2342494 }
Concrete Mathematics The TeXbook Things a Computer Scientist Rarely Talks About The Art of Computer Programming Surreal Numbers
5
[{'concept': 'collectable'}, 'author', 'Donald Knuth']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:author resource:Donald_Knuth . ?z rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6881637 Q110436
P1346
Q618779
USER
Which awards were Cory Doctorow or Mithoon decalred as a champion of ?
OR((c(Q618779),P1346,Q110436), (c(Q618779),P1346,Q6881637))
action filter_type
action union
action find_reverse
entity Q110436
relation P1346
action find_reverse
entity Q6881637
relation P1346
type Q618779
{'OR': [[{'concept': 'Q618779'}, 'P1346', 'Q110436'], [{'concept': 'Q618779'}, 'P1346', 'Q6881637']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q618779 . { { ?j property:P1346 resource:Q110436 } UNION { ?j property:P1346 resource:Q6881637 } } }
Mithoon Cory Doctorow
action filter_type
action union
action find_reverse
entity Cory Doctorow
relation winner
action find_reverse
entity Mithoon
relation winner
type award
{'OR': [[{'concept': 'award'}, 'winner', 'Cory Doctorow'], [{'concept': 'award'}, 'winner', 'Mithoon']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:award . { { ?j property:winner resource:Cory_Doctorow } UNION { ?j property:winner resource:Mithoon } } }
[]
award
Q958630 Q2603334 Q630653 Q1030402
SYSTEM
John W. Campbell Award for Best New Writer, Zee Cine Award for Best Music Director, Zee Cine Award for Best Lyricist, John W. Campbell Memorial Award for Best Science Fiction Novel
Q958630 Q2603334 Q630653 Q1030402
OR((c(Q618779),P1346,Q110436), (c(Q618779),P1346,Q6881637))
action filter_type
action union
action find_reverse
entity Q110436
relation P1346
action find_reverse
entity Q6881637
relation P1346
type Q618779
Cory Doctorow or Mithoon were decalred as a champion of the [ANSWERS]
{'OR': [[{'concept': 'Q618779'}, 'P1346', 'Q110436'], [{'concept': 'Q618779'}, 'P1346', 'Q6881637']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q618779 . { { ?j property:P1346 resource:Q110436 } UNION { ?j property:P1346 resource:Q6881637 } } }
John W. Campbell Award for Best New Writer Zee Cine Award for Best Music Director Zee Cine Award for Best Lyricist John W. Campbell Memorial Award for Best Science Fiction Novel
Cory Doctorow or Mithoon were decalred as a champion of the John W. Campbell Award for Best New Writer, Zee Cine Award for Best Music Director, Zee Cine Award for Best Lyricist and John W. Campbell Memorial Award for Best Science Fiction Novel
John W. Campbell Award for Best New Writer Zee Cine Award for Best Music Director Zee Cine Award for Best Lyricist John W. Campbell Memorial Award for Best Science Fiction Novel
action filter_type
action union
action find_reverse
entity Cory Doctorow
relation winner
action find_reverse
entity Mithoon
relation winner
type award
{'OR': [[{'concept': 'award'}, 'winner', 'Cory Doctorow'], [{'concept': 'award'}, 'winner', 'Mithoon']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:award . { { ?j property:winner resource:Cory_Doctorow } UNION { ?j property:winner resource:Mithoon } } }
[]