Simple Question (Direct)
Simple Question
Q459085
P734
Q82799
USER
Who is associated with Tracy Wilson ?
(Q459085,P734,c(Q82799))
action filter_type
action find
entity Q459085
relation P734
type Q82799
['Q459085', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q459085 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Tracy Wilson
action filter_type
action find
entity Tracy Wilson
relation family name
type name
['Tracy Wilson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Tracy_Wilson property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q1645480
SYSTEM
Wilson
Q1645480
(Q459085,P734,c(Q82799))
action filter_type
action find
entity Q459085
relation P734
type Q82799
[ANSWER] is associated with Tracy [ANSWER]
['Q459085', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q459085 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Wilson
Wilson is associated with Tracy Wilson
Wilson
action filter_type
action find
entity Tracy Wilson
relation family name
type name
['Tracy Wilson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Tracy_Wilson property:family_name ?n . ?n rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1645480 Q24204836
P407
Q34770
USER
Is that name in Early Middle Danish ?
(Q1645480,P407,Q24204836)
action is_in
entity Q24204836
action find
entity Q1645480
relation P407
['Q1645480', 'P407', 'Q24204836']
ASK WHERE { resource:Q1645480 property:P407 resource:Q24204836 }
Wilson Early Middle Danish
action is_in
entity Early Middle Danish
action find
entity Wilson
relation language of work or name
['Wilson', 'language of work or name', 'Early Middle Danish']
ASK WHERE { resource:Wilson property:language_of_work_or_name resource:Early_Middle_Danish }
[]
language
SYSTEM
NO
(Q1645480,P407,Q24204836)
action is_in
entity Q24204836
action find
entity Q1645480
relation P407
[ANSWER]
['Q1645480', 'P407', 'Q24204836']
ASK WHERE { resource:Q1645480 property:P407 resource:Q24204836 }
No
action is_in
entity Early Middle Danish
action find
entity Wilson
relation language of work or name
['Wilson', 'language of work or name', 'Early Middle Danish']
ASK WHERE { resource:Wilson property:language_of_work_or_name resource:Early_Middle_Danish }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q943702 Q459085
P27
Q1048835
USER
Which political territories are the native countriesof Tracy Wilson or Gnaeus Cornelius Lentulus ?
OR((Q459085,P27,c(Q1048835)), (Q943702,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q459085
relation P27
action find
entity Q943702
relation P27
type Q1048835
{'OR': [['Q459085', 'P27', {'concept': 'Q1048835'}], ['Q943702', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q459085 property:P27 ?n } UNION { resource:Q943702 property:P27 ?n } } . ?n rdf:type ontology:Q1048835 }
Gnaeus Cornelius Lentulus Tracy Wilson
action filter_type
action union
action find
entity Tracy Wilson
relation country of citizenship
action find
entity Gnaeus Cornelius Lentulus
relation country of citizenship
type political territorial entity
{'OR': [['Tracy Wilson', 'country of citizenship', {'concept': 'political territorial entity'}], ['Gnaeus Cornelius Lentulus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Tracy_Wilson property:country_of_citizenship ?n } UNION { resource:Gnaeus_Cornelius_Lentulus property:country_of_citizenship ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1747689 Q16
SYSTEM
Ancient Rome, Canada
Q1747689 Q16
OR((Q459085,P27,c(Q1048835)), (Q943702,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q459085
relation P27
action find
entity Q943702
relation P27
type Q1048835
[ANSWERS] are the native countriesof Tracy Wilson or Gnaeus Cornelius Lentulus
{'OR': [['Q459085', 'P27', {'concept': 'Q1048835'}], ['Q943702', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q459085 property:P27 ?n } UNION { resource:Q943702 property:P27 ?n } } . ?n rdf:type ontology:Q1048835 }
Ancient Rome Canada
Ancient Rome and Canada are the native countriesof Tracy Wilson or Gnaeus Cornelius Lentulus
Ancient Rome Canada
action filter_type
action union
action find
entity Tracy Wilson
relation country of citizenship
action find
entity Gnaeus Cornelius Lentulus
relation country of citizenship
type political territorial entity
{'OR': [['Tracy Wilson', 'country of citizenship', {'concept': 'political territorial entity'}], ['Gnaeus Cornelius Lentulus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Tracy_Wilson property:country_of_citizenship ?n } UNION { resource:Gnaeus_Cornelius_Lentulus property:country_of_citizenship ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q193660
P674
Q502895 Q571 Q7725634
USER
Which people plays a role in less number of books or literary works than Ramon Llull ?
(c(Q571)|c(Q7725634),P674,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q193660
relation P674
type Q571
type Q7725634
[[{'concept': 'Q571'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:Q571 . ?n rdf:type ontology:Q502895 . ?q property:P674 ?n } UNION { ?q property:P674 ?n . ?q rdf:type ontology:Q7725634 . ?n rdf:type ontology:Q502895 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { ?c rdf:type ?v . VALUES ( ?v ) { ( ontology:Q571 ) ( ontology:Q7725634 ) } } . ?c property:P674 resource:Q193660 } } . FILTER ( ?e < ?s ) }
Ramon Llull
action less
action union
action find_reverse_tuple_counts
relation characters
type common name
type book
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Ramon Llull
relation characters
type book
type literary work
[[{'concept': 'book'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:book . ?n rdf:type ontology:common_name . ?q property:characters ?n } UNION { ?q property:characters ?n . ?q rdf:type ontology:literary_work . ?n rdf:type ontology:common_name } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { ?c rdf:type ?v . VALUES ( ?v ) { ( ontology:book ) ( ontology:literary_work ) } } . ?c property:characters resource:Ramon_Llull } } . FILTER ( ?e < ?s ) }
[]
common name book literary work
Q7243 Q5879 Q41370
SYSTEM
Leo Tolstoy, Johann Wolfgang von Goethe, David
Q13562217 Q7793319 Q315726 Q5254 Q6741571 Q18720650 Q216362 Q457881 Q1986812 Q272246 Q33923 Q2054 Q33760 Q315795 Q3051256 Q676555 Q2635523 Q744125 Q157 Q7788839 Q152513 Q1353836 Q1851366 Q3680198 Q6173387 Q17141 Q551481 Q43706 Q725118 Q36724 Q1093574 Q200902 Q12316446 Q7322 Q18733964 Q10261 Q5879 Q295824 Q12591 Q118653 Q353879 Q955856 Q262513 Q6779230 Q635 Q41370 Q3299086 Q5685 Q5686 Q854177 Q2468262 Q1093885 Q1774745 Q9640 Q248029 Q2850415 Q5170 Q57384 Q3867479 Q48438 Q849 Q36591 Q234022 Q319713 Q1354988 Q92639 Q981915 Q243203 Q1291267 Q229807 Q130221 Q21916822 Q6113413 Q6323112 Q456931 Q3181675 Q4212237 Q10265876 Q2085338 Q41155 Q270438 Q43353 Q206459 Q220344 Q765624 Q44387 Q312660 Q2254800 Q6139425 Q547828 Q44265 Q172480 Q1234647 Q830183 Q1937560 Q317554 Q257442 Q256663 Q62788 Q4679883 Q313421 Q47365 Q104804 Q294147 Q460763 Q230677 Q6562057 Q244912 Q1347324 Q2915318 Q13560546 Q1338025 Q6777920 Q234811 Q41980 Q2721219 Q185101 Q24061503 Q286238 Q2355196 Q229702 Q129165 Q282220 Q55398 Q1411 Q1413 Q363636 Q1416 Q1419 Q2521377 Q1067 Q42305 Q1140161 Q367387 Q937415 Q7200 Q7207 Q20749193 Q312332 Q5363384 Q172916 Q84192 Q6780580 Q187982 Q59180 Q43393 Q188646 Q328793 Q34428 Q8778 Q42544 Q223440 Q5015 Q7523 Q169329 Q83041 Q271278 Q353188 Q1979876 Q1227273 Q603096 Q83235 Q543853 Q9438 Q2412941 Q1348718 Q12927 Q81018 Q232913 Q2361344 Q5264 Q6780925 Q7742 Q1133523 Q281146 Q9077 Q181875 Q152717 Q15718786 Q81422 Q3187975 Q634239 Q591879 Q38370 Q426862 Q1209603 Q154938 Q1059572 Q6818772 Q359237 Q662533 Q317188 Q378053 Q469118 Q17410 Q594805 Q719418 Q991 Q43600 Q128358 Q3090807 Q5598 Q531748 Q7243 Q76918 Q4344 Q19844997 Q188541 Q737786 Q172353 Q256439 Q184176 Q193232 Q43939 Q297285 Q335173 Q692 Q2750254 Q355903 Q1425 Q1427 Q9353 Q312537 Q9215 Q4791018 Q137680 Q315628 Q86745 Q209535 Q7422342 Q1981295 Q321166 Q40787 Q737533 Q236243 Q1281235 Q532354 Q111559 Q297776 Q185476 Q953718 Q81506 Q3860377 Q154971 Q83400 Q8442 Q200817 Q76721 Q352489 Q76723 Q83159 Q1030008 Q951503 Q289694 Q160441 Q7732 Q7734 Q311456 Q153670 Q1394 Q3236830 Q3080825 Q310303 Q1398 Q7328 Q434217 Q215512 Q231944 Q7326 Q63639 Q307 Q6527 Q1280744 Q15995718 Q75568 Q24062019 Q20750935 Q166876 Q134309 Q273942 Q332020 Q1938388 Q7198 Q2633351 Q68366 Q6184 Q145746 Q282280 Q8747 Q118081 Q3064195 Q83375 Q549041 Q34943 Q1177456 Q170859 Q674683 Q8011 Q48305 Q8018 Q15897 Q165479 Q8409 Q154723 Q2438324 Q451516 Q519984 Q312682 Q20749268 Q691873 Q102851 Q694093 Q706003 Q228896 Q9045 Q19348839 Q80823 Q57652 Q7071043 Q131412 Q743858 Q1773005 Q237201 Q353081 Q166056 Q131002 Q229432 Q47180 Q122290 Q170172 Q452048 Q5582 Q1377025 Q612501 Q231997 Q310686 Q170373 Q316876 Q16912694 Q144622 Q8581 Q913 Q785250 Q950850 Q7617726 Q3261049 Q335165 Q544680 Q717441 Q211246 Q9588 Q234533 Q2872353 Q366270 Q559541 Q41866 Q8058 Q83808 Q1824066 Q66107 Q199991 Q141791 Q200637 Q16404704 Q2755054 Q6780526 Q182637 Q3421721 Q4230107 Q15463333 Q466048 Q6264078 Q670332 Q5944261 Q868 Q19118331 Q5544435 Q318726 Q247137 Q9458 Q5816 Q778520 Q230716 Q7367631 Q1370965 Q43718 Q170335 Q555304 Q1402591 Q3275910 Q5202472 Q1394174 Q172248 Q4712236 Q1281177 Q208359 Q186652 Q134646 Q188411 Q15711674 Q75090 Q1771963 Q365695 Q2497107 Q313817 Q7647581 Q4403346 Q443256 Q2596433 Q5689201 Q879350 Q82006 Q1541 Q151209 Q132786 Q828583 Q6197 Q859 Q310267 Q1747004 Q233359 Q2116944 Q203792 Q981902 Q205523 Q325026 Q347133 Q545875 Q380482 Q230314 Q26702 Q43963 Q366205 Q1048 Q983502 Q453382 Q85393 Q665165 Q6691 Q36456 Q517 Q39837 Q154732 Q6779045 Q568082 Q3687804 Q469050 Q438615 Q36517 Q44279 Q745286 Q204236 Q889694 Q297050 Q36303 Q258369 Q17131 Q1960623 Q131463 Q3182316 Q158707 Q6762867 Q37085 Q313555 Q267733 Q920912 Q2361032 Q1774982 Q3471206 Q43746 Q40662 Q107626 Q205365 Q448586 Q5553293 Q315347 Q12324262 Q8820 Q190116 Q9181 Q860084 Q332750 Q772930 Q434579 Q671872 Q83321 Q1405 Q15427574 Q43954 Q289149 Q236017 Q187447 Q155596 Q174210 Q207370 Q60059 Q463440 Q218747 Q9960
(c(Q571)|c(Q7725634),P674,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q193660
relation P674
type Q571
type Q7725634
[ANSWERS] play a role in less number of books or literary works than Ramon Llull
[[{'concept': 'Q571'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:Q571 . ?n rdf:type ontology:Q502895 . ?q property:P674 ?n } UNION { ?q property:P674 ?n . ?q rdf:type ontology:Q7725634 . ?n rdf:type ontology:Q502895 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { ?c rdf:type ?v . VALUES ( ?v ) { ( ontology:Q571 ) ( ontology:Q7725634 ) } } . ?c property:P674 resource:Q193660 } } . FILTER ( ?e < ?s ) }
Mary Cecilia Bailly Thomas Putnam Grand Duke Alexei Alexandrovich of Russia Folquet de Marselha Malayaketu Nyssia August von Goethe John Tenniel Tituba Johanne Luise Heiberg Peter Seneca Bertrand Russell Bernal Díaz del Castillo Elizabeth Parris Francis of Assisi Henry Percy, 6th Earl of Northumberland Chaerephon François Hollande Thomas Danforth Henry Wadsworth Longfellow Hrothgar Pier Francesco Orsini Claudio Rangoni Jeff Bowen Harvey Milk Antoine Barnave John Chrysostom Carl Christian Hall Attila the Hun Ruggieri degli Ubaldini Shem Henrik Sass Larsen Christopher Columbus Peter Stahl Pythagoras Johann Wolfgang von Goethe Peter I of Portugal Nebuchadnezzar II August Engelhardt Jean François Paul de Gondi Pallas John Felton Mary Cleophas Foley Cleopatra David Mathos Anton Chekhov Charles Dickens Kay Scarpetta Jonah Hathi Billy Milligan Lyndon B. Johnson Jiro Horikoshi Ann Putnam, Jr. Blondel de Nesle Wernher von Braun Musciatto Franzesi Saint George François Villon Vladimir Nabokov Inês de Castro Leopold V, Duke of Austria Giles Corey Christos Papadimitriou Joseph Bazalgette Publius Papinius Statius Gundomar I Berengaria of Navarre Frederick II, Holy Roman Emperor Giovanni Corrado Orsini Rucio Nahor Sextus Tarquinius John Hale Kanva Dhana Nanda Vahan I Mamikonian Heraclitus Charles of Valois Aristophanes Feodor II of Russia Pythia Willem Adriaan van der Stel Darius I of Persia Gaius Mucius Scaevola Cunizza da Romano Thomas Hayward Christiaan de Wet Benedict of Nursia Isaac of Armenia Mark Smeaton Eve Mogens Lykketoft Hugh of Saint Victor Sarah Paulson Anne Geneviève de Bourbon Jethro Adam Tas Abel Marie Antoinette Saint Mesrob William Bligh Benjamin Madame du Barry Mushegh IV Mamikonian Hezekiah François de Vendôme, Duc de Beaufort Soupy Sales Heidi Blickenstaff Emma Forsayth Maruja Pachón Emma, Lady Hamilton Democritus Farinata degli Uberti Hamilcar Barca Petrus Kalden Thaïs Martinus Theunis Steyn Ham Xerxes Judah Bernadette Soubirous Claudius Nero Cardinal de Rohan Otho Vespasian Ottaviano degli Ubaldini Dante Alighieri Richard I of England Marina Mniszech William II of Sicily James Stewart, 1st Earl of Moray Alexander Pushkin Elizabeth I of England Irma Le Fer de la Motte Alessandro Cagliostro Elizabeth Proctor John XXI Maximilian I of Mexico Mary Raphael Slattery Alcibiades Diogenes of Sinope Robert Boyle Lucan Periander Philip Galen Thomas More Lucius Junius Brutus Mette Frederiksen Kublai Khan Conrad of Montferrat Anaxagoras Jeanne of Valois-Saint-Rémy Lucius Tarquinius Collatinus Israel Hands Henry Mayhew Leon Klinghoffer Horatio Nelson Herod II Thomas Aquinas The Fox and the Cat Jean-Claude Romand Marine Le Pen Judas Iscariot Beatrice Portinari Durvasa Hippocrates Mary Warren Louis XIV of France Jephthah Yeznik of Kolb Moses Robert Peel Henry VII, Holy Roman Emperor Winona Noah Judith Atto Melani Piet Cronjé Henry VIII Guido Bonatti Dick Beardsley Bede Khaled Al Khamissi Mercy Lewis Charles Martel of Anjou Hrólfr Kraki Theo van Gogh Rob Roy MacGregor Gaius Calpurnius Piso Zhou Enlai Jochebed Vasily Rozanov Fyodor Dostoyevsky Matthew the Apostle Bayezid I Almanzo Wilder Rembrandt Carsten Hansen Leo Tolstoy Johann Georg Faust Arnaut Daniel Sahakanuysh Chandragupta Maurya Giuseppe Moscati Pyrrhus Claudia Acte Seleucus I Nicator Vasili IV of Russia Anselm of Canterbury Ali Pasha Edward Hyde, 1st Earl of Clarendon William Shakespeare Pharantzem Siger of Brabant Trajan Hadrian John Locke Gyges of Lydia Sigmund Freud Aristodemus of Cydathenaeum Angela Burdett-Coutts, 1st Baroness Burdett-Coutts Cuitláhuac Georg Michael Welzel False Dmitriy I Sarah Good Francisco Santos Calderón Abihu Nicholas II of Russia Louis XIII of France Giulia Farnese Abas I of Armenia Margaret Erskine Judah Maccabee Pedanius Dioscorides Flavius Aetius Henry Bennet, 1st Earl of Arlington Charles I of England The Nun of Monza Carlota of Mexico Paulo da Gama Otto von Bismarck Titus van Rijn Godfrey of Bouillon Aulus Plautius Maurice de Saxe Clement VII Tamar Ashot II of Armenia Abigail Williams Rabanus Maurus Louis XVI of France Joshua Orosius Primo Levi Vladimir Lenin Princess Changping Frances Nelson Yazdegerd II Virgil Vasco da Gama Candaules Levi Ann Radcliffe Hernán Cortés Charlotte Buff Galileo Galilei Jean-Jacques Rousseau Vardan Mamikonian Albert Hahl Ottilie von Goethe Henning Huising Athanasius Fogarty Isidore of Seville Charles IX of France Pia Gjellerup César Gaviria Miriam Ovid Vasak of Syunik Siward, Earl of Northumbria Plotius Tucca Joseph Vladimir Solovyov Euclid Pope Celestine V Hovsep Ier de Holotsim Empedocles Graciano Ptolemy David of Scotland, Earl of Huntingdon Nicholas III Terpsion Avicenna Euripides Augustine of Hippo Amy Winehouse Saint Patrick Alexander the Great Viktor Frankl Julie d'Aubigny Gaius Scribonius Curio Neil Strauss Euclid of Megara John Corbe Anthony Wood Boethius Ditlev Gothard Monrad Ugolino della Gherardesca Salome Chanakya Salammbô Anne Boleyn Helle Thorning-Schmidt Nydia Quintero Turbay Mary, Queen of Scots Joscius, Archbishop of Tyre Simeon Adrienne Lecouvreur Robert de Sablé Cardinal Mazarin Harun al-Rashid Lucretia Petronius Jean-Paul Marat Boris Godunov Hasdrubal Gisco Vincent van Gogh Bharata Yeghishe Sadako Sasaki Dionysius the Areopagite Christopher Wren Guido Cavalcanti Cornelia van Rijn Phil Collins Saladin Socrates Petrus Comestor Samuel Morland William Douglas, 6th Earl of Morton Louis Ange Pitou Osceola John Thurloe Alberto Salazar Caiaphas Richard Nixon Cornelia Africana Autaritus Guido Guinizelli Salvatore Giuliano Justinian I Louis XI of France François Joseph Lefebvre Arturo Bandini Henry Kissinger Joachim of Fiore Moctezuma IIl Japheth Endel Nelis Guido I da Montefeltro Mary Pius Regnier Jane Seymour Rebecca Nurse William Compton John Mordaunt, 1st Viscount Mordaunt Francesca da Rimini John Willard Comte de Troisville Hunter Bell Aristotle Andrey Shchelkalov George Seton, 7th Lord Seton Publius Valerius Publicola Aelius Donatus Muhammad Mao Zedong Diana Turbay Poppaea Sabina Rose Angela Horan Peter Heywood Nikolai Gogol Constance, Queen of Sicily Georges Cadoudal Ohthere Anne Françoise Elisabeth Lange Célestine Guynemer de la Hailandière Paphnutius of Thebes Marcus Junius Brutus Alberto Villamizar Beowulf John Wallis Gilbert du Motier Boniface VIII Bernard of Clairvaux Zecora Adele Schopenhauer Naphtali Moses of Chorene Igor Svyatoslavich George Villiers, 1st Duke of Buckingham Susan Blackwell Sahak Sevada Marie Favart Naomi Hernando Santos Castillo Bjarne Corydon Benjamin Disraeli Cicero Anne of Austria Anastasius II Bertrand-François Mahé de La Bourdonnais Horace Plato Shapur III Timon of Athens Atossa Wealhþeow Robert Guiscard Charles Simon Favart Zipporah Anacharsis George Boleyn, Viscount Rochford Monte Melkonian Agathon La Malinche Cardinal Richelieu Jack the Ripper Tigellinus Julius Caesar St. Nerses I John Adams Friedrich Wilhelm Riemer Sordello Homer Hannibal Napoleon Averroes Agrippina the Younger Mary Bernard Laughlin Arshak II Conte Attilio Pomponia Graecina Marie de Rohan Francis Drake Oliver Cromwell Sir Thomas Hardy, 1st Baronet John Fryer Hygelac Cuauhtémoc Thales Peter Damian Pontius Pilatus Tsarevna Xenia Borisovna of Russia Clement V John Proctor Pat Nixon Marie Helene Franey Solomon Hanno the Great Thaïs Theaetetus Thomas Ken Ruth Samuel Parris Bonaventure John the Baptist Seth Cain Fra Dolcino Gertrude Clare Owens Peter Lombard Lene Jensen Lucius Varius Rufus Benvenuto Cellini Abraham Pausanias of Athens Dionysius I of Syracuse Aulus Plautius Théodore Guérin Isaac Giacomo Casanova Augustus John Hathorne Leo I Étienne François, duc de Choiseul Jiang Qing Pablo Escobar Philippe, Duke of Orléans, Regent of France Gael Corteza Gaius Cassius Longinus Albertus Magnus Hendrickje Stoffels Honoré Gabriel Riqueti, comte de Mirabeau Ronald Reagan
Leo Tolstoy, Johann Wolfgang von Goethe and David play a role in less number of books or literary works than Ramon Llull
Leo Tolstoy Johann Wolfgang von Goethe David
action less
action union
action find_reverse_tuple_counts
relation characters
type common name
type book
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Ramon Llull
relation characters
type book
type literary work
[[{'concept': 'book'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:book . ?n rdf:type ontology:common_name . ?q property:characters ?n } UNION { ?q property:characters ?n . ?q rdf:type ontology:literary_work . ?n rdf:type ontology:common_name } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { ?c rdf:type ?v . VALUES ( ?v ) { ( ontology:book ) ( ontology:literary_work ) } } . ?c property:characters resource:Ramon_Llull } } . FILTER ( ?e < ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can max number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?c ) WHERE { ?a property:P1303 ?b . ?a rdf:type ontology:Q502895 . ?b rdf:type ontology:Q34379 } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?x ) WHERE { ?v rdf:type ontology:Q502895 . ?z rdf:type ontology:Q34379 . ?v property:P1303 ?z } GROUP BY ?z } . FILTER ( ?x = ?u ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?c ) WHERE { ?a property:instrument ?b . ?a rdf:type ontology:common_name . ?b rdf:type ontology:musical_instrument } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?x ) WHERE { ?v rdf:type ontology:common_name . ?z rdf:type ontology:musical_instrument . ?v property:instrument ?z } GROUP BY ?z } . FILTER ( ?x = ?u ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people can perform on [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?c ) WHERE { ?a property:P1303 ?b . ?a rdf:type ontology:Q502895 . ?b rdf:type ontology:Q34379 } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?x ) WHERE { ?v rdf:type ontology:Q502895 . ?z rdf:type ontology:Q34379 . ?v property:P1303 ?z } GROUP BY ?z } . FILTER ( ?x = ?u ) }
piano
Max number of people can perform on piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?c ) WHERE { ?a property:instrument ?b . ?a rdf:type ontology:common_name . ?b rdf:type ontology:musical_instrument } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?x ) WHERE { ?v rdf:type ontology:common_name . ?z rdf:type ontology:musical_instrument . ?v property:instrument ?z } GROUP BY ?z } . FILTER ( ?x = ?u ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q5994 Q17057842 Q4394283
P61
Q502895
USER
Was that musical instrument invented or discovered by John Christian Elden and John Rea ?
(Q5994,P61,Q17057842) (Q5994,P61,Q4394283)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q17057842
relation P61
action find_reverse
entity Q4394283
relation P61
['Q5994', 'P61', 'Q17057842'] ['Q5994', 'P61', 'Q4394283']
ASK WHERE { resource:Q5994 property:P61 resource:Q17057842 . resource:Q5994 property:P61 resource:Q4394283 }
piano John Christian Elden John Rea
action is_in
entity piano
action intersection
action find_reverse
entity John Christian Elden
relation discoverer or inventor
action find_reverse
entity John Rea
relation discoverer or inventor
['piano', 'discoverer or inventor', 'John Christian Elden'] ['piano', 'discoverer or inventor', 'John Rea']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:John_Christian_Elden . resource:piano property:discoverer_or_inventor resource:John_Rea }
[]
common name
SYSTEM
NO
(Q5994,P61,Q17057842) (Q5994,P61,Q4394283)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q17057842
relation P61
action find_reverse
entity Q4394283
relation P61
[ANSWER]
['Q5994', 'P61', 'Q17057842'] ['Q5994', 'P61', 'Q4394283']
ASK WHERE { resource:Q5994 property:P61 resource:Q17057842 . resource:Q5994 property:P61 resource:Q4394283 }
No
action is_in
entity piano
action intersection
action find_reverse
entity John Christian Elden
relation discoverer or inventor
action find_reverse
entity John Rea
relation discoverer or inventor
['piano', 'discoverer or inventor', 'John Christian Elden'] ['piano', 'discoverer or inventor', 'John Rea']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:John_Christian_Elden . resource:piano property:discoverer_or_inventor resource:John_Rea }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7243 Q3955946
P40
Q502895
USER
Is Sergey Tolstoy a successor of Leo Tolstoy ?
(Q7243,P40,Q3955946)
action is_in
entity Q3955946
action find
entity Q7243
relation P40
['Q7243', 'P40', 'Q3955946']
ASK WHERE { resource:Q7243 property:P40 resource:Q3955946 }
Leo Tolstoy Sergey Tolstoy
action is_in
entity Sergey Tolstoy
action find
entity Leo Tolstoy
relation child
['Leo Tolstoy', 'child', 'Sergey Tolstoy']
ASK WHERE { resource:Leo_Tolstoy property:child resource:Sergey_Tolstoy }
[]
common name
SYSTEM
YES
(Q7243,P40,Q3955946)
action is_in
entity Q3955946
action find
entity Q7243
relation P40
[ANSWER]
['Q7243', 'P40', 'Q3955946']
ASK WHERE { resource:Q7243 property:P40 resource:Q3955946 }
Yes
action is_in
entity Sergey Tolstoy
action find
entity Leo Tolstoy
relation child
['Leo Tolstoy', 'child', 'Sergey Tolstoy']
ASK WHERE { resource:Leo_Tolstoy property:child resource:Sergey_Tolstoy }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3845803 Q4394283
P106
Q12737077
USER
Which occupations do John Rea or Marcia Sedoc do for a living ?
OR((Q4394283,P106,c(Q12737077)), (Q3845803,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4394283
relation P106
action find
entity Q3845803
relation P106
type Q12737077
{'OR': [['Q4394283', 'P106', {'concept': 'Q12737077'}], ['Q3845803', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { { ?y property:P106 ?z . VALUES ( ?y ) { ( resource:Q4394283 ) ( resource:Q3845803 ) } } . ?z rdf:type ontology:Q12737077 }
Marcia Sedoc John Rea
action filter_type
action union
action find
entity John Rea
relation occupation
action find
entity Marcia Sedoc
relation occupation
type occupation
{'OR': [['John Rea', 'occupation', {'concept': 'occupation'}], ['Marcia Sedoc', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { { ?y property:occupation ?z . VALUES ( ?y ) { ( resource:John_Rea ) ( resource:Marcia_Sedoc ) } } . ?z rdf:type ontology:occupation }
[]
occupation
Q17165321 Q33999
SYSTEM
snooker player, actor
Q17165321 Q33999
OR((Q4394283,P106,c(Q12737077)), (Q3845803,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4394283
relation P106
action find
entity Q3845803
relation P106
type Q12737077
John Rea or Marcia Sedoc do for a living professional [ANSWERS]
{'OR': [['Q4394283', 'P106', {'concept': 'Q12737077'}], ['Q3845803', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { { ?y property:P106 ?z . VALUES ( ?y ) { ( resource:Q4394283 ) ( resource:Q3845803 ) } } . ?z rdf:type ontology:Q12737077 }
snooker player actor
John Rea or Marcia Sedoc do for a living professional snooker player and actor
snooker player actor
action filter_type
action union
action find
entity John Rea
relation occupation
action find
entity Marcia Sedoc
relation occupation
type occupation
{'OR': [['John Rea', 'occupation', {'concept': 'occupation'}], ['Marcia Sedoc', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { { ?y property:occupation ?z . VALUES ( ?y ) { ( resource:John_Rea ) ( resource:Marcia_Sedoc ) } } . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17165321
P425
Q31629
USER
Who has snooker player as the associated field of occupation ?
(Q17165321,P425,c(Q31629))
action filter_type
action find
entity Q17165321
relation P425
type Q31629
['Q17165321', 'P425', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q31629 . resource:Q17165321 property:P425 ?p }
snooker player
action filter_type
action find
entity snooker player
relation field of this occupation
type type of sport
['snooker player', 'field of this occupation', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_sport . resource:snooker_player property:field_of_this_occupation ?p }
[]
type of sport
Q11015
SYSTEM
snooker
Q11015
(Q17165321,P425,c(Q31629))
action filter_type
action find
entity Q17165321
relation P425
type Q31629
Player [ANSWER] has [ANSWER] player as the associated field of occupation
['Q17165321', 'P425', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q31629 . resource:Q17165321 property:P425 ?p }
snooker
Player snooker has snooker player as the associated field of occupation
snooker
action filter_type
action find
entity snooker player
relation field of this occupation
type type of sport
['snooker player', 'field of this occupation', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_sport . resource:snooker_player property:field_of_this_occupation ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11015 Q347262
P641
Q502895
USER
Is Ali Carter involved in playing that type of sport ?
(Q347262,P641,Q11015)
action is_in
entity Q11015
action find
entity Q347262
relation P641
['Q347262', 'P641', 'Q11015']
ASK WHERE { resource:Q347262 property:P641 resource:Q11015 }
snooker Ali Carter
action is_in
entity snooker
action find
entity Ali Carter
relation sport
['Ali Carter', 'sport', 'snooker']
ASK WHERE { resource:Ali_Carter property:sport resource:snooker }
[]
common name
SYSTEM
YES
(Q347262,P641,Q11015)
action is_in
entity Q11015
action find
entity Q347262
relation P641
[ANSWER]
['Q347262', 'P641', 'Q11015']
ASK WHERE { resource:Q347262 property:P641 resource:Q11015 }
Yes
action is_in
entity snooker
action find
entity Ali Carter
relation sport
['Ali Carter', 'sport', 'snooker']
ASK WHERE { resource:Ali_Carter property:sport resource:snooker }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q459085 Q16 Q1650163
P27
Q1048835
USER
Is Tracy Wilson a citizen of Canada and Dios le Guarde ?
(Q459085,P27,Q16) (Q459085,P27,Q1650163)
action is_in
entity Q459085
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q1650163
relation P27
['Q459085', 'P27', 'Q16'] ['Q459085', 'P27', 'Q1650163']
ASK WHERE { resource:Q459085 property:P27 resource:Q16 . resource:Q459085 property:P27 resource:Q1650163 }
Tracy Wilson Canada Dios le Guarde
action is_in
entity Tracy Wilson
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Dios le Guarde
relation country of citizenship
['Tracy Wilson', 'country of citizenship', 'Canada'] ['Tracy Wilson', 'country of citizenship', 'Dios le Guarde']
ASK WHERE { resource:Tracy_Wilson property:country_of_citizenship resource:Canada . resource:Tracy_Wilson property:country_of_citizenship resource:Dios_le_Guarde }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q459085,P27,Q16) (Q459085,P27,Q1650163)
action is_in
entity Q459085
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q1650163
relation P27
[ANSWER]
['Q459085', 'P27', 'Q16'] ['Q459085', 'P27', 'Q1650163']
ASK WHERE { resource:Q459085 property:P27 resource:Q16 . resource:Q459085 property:P27 resource:Q1650163 }
YES and NO respectively
action is_in
entity Tracy Wilson
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Dios le Guarde
relation country of citizenship
['Tracy Wilson', 'country of citizenship', 'Canada'] ['Tracy Wilson', 'country of citizenship', 'Dios le Guarde']
ASK WHERE { resource:Tracy_Wilson property:country_of_citizenship resource:Canada . resource:Tracy_Wilson property:country_of_citizenship resource:Dios_le_Guarde }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q316070
P921
Q12737077 Q191067 Q386724
USER
How many occupations were lesser number of articles or works mainly about than Fletcher Christian ?
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q316070
relation P921
type Q191067
type Q386724
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } . ?m rdf:type ?n } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P921 resource:Q316070 . { { ?l rdf:type ontology:Q191067 } UNION { ?l rdf:type ontology:Q386724 } } } } . FILTER ( ?y < ?a ) }
Fletcher Christian
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity Fletcher Christian
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:article ) ( ontology:work ) } . ?m rdf:type ?n } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:main_subject resource:Fletcher_Christian . { { ?l rdf:type ontology:article } UNION { ?l rdf:type ontology:work } } } } . FILTER ( ?y < ?a ) }
[]
occupation article work
SYSTEM
92
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q316070
relation P921
type Q191067
type Q386724
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } . ?m rdf:type ?n } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P921 resource:Q316070 . { { ?l rdf:type ontology:Q191067 } UNION { ?l rdf:type ontology:Q386724 } } } } . FILTER ( ?y < ?a ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
92
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity Fletcher Christian
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:article ) ( ontology:work ) } . ?m rdf:type ?n } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:main_subject resource:Fletcher_Christian . { { ?l rdf:type ontology:article } UNION { ?l rdf:type ontology:work } } } } . FILTER ( ?y < ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q182436
P921
Q12737077 Q191067 Q386724
USER
And also tell me about librarian?
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P921
type Q191067
type Q386724
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?o WHERE { { ?z property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q191067 } UNION { ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q386724 . ?z property:P921 ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:P921 resource:Q182436 . { { ?f rdf:type ontology:Q386724 } UNION { ?f rdf:type ontology:Q191067 } } } } . FILTER ( ?u < ?q ) }
librarian
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity librarian
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?o WHERE { { ?z property:main_subject ?o . ?o rdf:type ontology:occupation . ?z rdf:type ontology:article } UNION { ?o rdf:type ontology:occupation . ?z rdf:type ontology:work . ?z property:main_subject ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:main_subject resource:librarian . { { ?f rdf:type ontology:work } UNION { ?f rdf:type ontology:article } } } } . FILTER ( ?u < ?q ) }
[]
occupation article work
SYSTEM
92
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P921
type Q191067
type Q386724
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?o WHERE { { ?z property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q191067 } UNION { ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q386724 . ?z property:P921 ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:P921 resource:Q182436 . { { ?f rdf:type ontology:Q386724 } UNION { ?f rdf:type ontology:Q191067 } } } } . FILTER ( ?u < ?q ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
92
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity librarian
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?o WHERE { { ?z property:main_subject ?o . ?o rdf:type ontology:occupation . ?z rdf:type ontology:article } UNION { ?o rdf:type ontology:occupation . ?z rdf:type ontology:work . ?z property:main_subject ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:main_subject resource:librarian . { { ?f rdf:type ontology:work } UNION { ?f rdf:type ontology:article } } } } . FILTER ( ?u < ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q5879
P737
Q502895
USER
How many people were influenced by Johann Wolfgang von Goethe ?
(c(Q502895),P737,Q5879)
action count
action filter_type
action find_reverse
entity Q5879
relation P737
type Q502895
[{'concept': 'Q502895'}, 'P737', 'Q5879']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:P737 resource:Q5879 . ?q rdf:type ontology:Q502895 }
Johann Wolfgang von Goethe
action count
action filter_type
action find_reverse
entity Johann Wolfgang von Goethe
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Johann Wolfgang von Goethe']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:influenced_by resource:Johann_Wolfgang_von_Goethe . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
11
Q380797 Q22670 Q999904 Q316806 Q250754 Q313461 Q1035 Q311145 Q9358 Q61078 Q1031
(c(Q502895),P737,Q5879)
action count
action filter_type
action find_reverse
entity Q5879
relation P737
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P737', 'Q5879']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:P737 resource:Q5879 . ?q rdf:type ontology:Q502895 }
Hovhannes Tumanyan Friedrich Schiller Narcís Oller Almeida Garrett Álvares de Azevedo Khachatur Abovian Charles Darwin Joaquim Maria Machado de Assis Friedrich Nietzsche Walter Benjamin France Prešeren
11
action count
action filter_type
action find_reverse
entity Johann Wolfgang von Goethe
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Johann Wolfgang von Goethe']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:influenced_by resource:Johann_Wolfgang_von_Goethe . ?q rdf:type ontology:common_name }
[]