Simple Question (Direct)
Simple Question
Q18205861
P641
Q349
USER
What was the sport that Santiago Castaño was a part of ?
(Q18205861,P641,c(Q349))
action filter_type
action find
entity Q18205861
relation P641
type Q349
['Q18205861', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q18205861 property:P641 ?h . ?h rdf:type ontology:Q349 }
Santiago Castaño
action filter_type
action find
entity Santiago Castaño
relation sport
type sport
['Santiago Castaño', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Santiago_Castaño property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q18205861,P641,c(Q349))
action filter_type
action find
entity Q18205861
relation P641
type Q349
The sport that Santiago Castaño was a part of was the [ANSWER]
['Q18205861', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q18205861 property:P641 ?h . ?h rdf:type ontology:Q349 }
association football
The sport that Santiago Castaño was a part of was the association football
association football
action filter_type
action find
entity Santiago Castaño
relation sport
type sport
['Santiago Castaño', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Santiago_Castaño property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18205861
P19
Q2983893
USER
Which urban district is the place of birth of that person ?
(Q2736,P19,c(Q2983893))
action filter_type
action find
entity Q18205861
relation P19
type Q2983893
['Q2736', 'P19', {'concept': 'Q2983893'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2983893 . resource:Q18205861 property:P19 ?x }
Santiago Castaño
action filter_type
action find
entity Santiago Castaño
relation place of birth
type urban district
['association football', 'place of birth', {'concept': 'urban district'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:urban_district . resource:Santiago_Castaño property:place_of_birth ?x }
[]
urban district
Q18424
SYSTEM
Queens
Q18424
(Q2736,P19,c(Q2983893))
action filter_type
action find
entity Q18205861
relation P19
type Q2983893
[ANSWER] is the place of birth of that person
['Q2736', 'P19', {'concept': 'Q2983893'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2983893 . resource:Q18205861 property:P19 ?x }
Queens
Queens is the place of birth of that person
Queens
action filter_type
action find
entity Santiago Castaño
relation place of birth
type urban district
['association football', 'place of birth', {'concept': 'urban district'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:urban_district . resource:Santiago_Castaño property:place_of_birth ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18205861
P27
Q15617994
USER
Which administrative territory does Santiago Castaño belong to ?
(Q18205861,P27,c(Q15617994))
action filter_type
action find
entity Q18205861
relation P27
type Q15617994
['Q18205861', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q18205861 property:P27 ?d }
Santiago Castaño
action filter_type
action find
entity Santiago Castaño
relation country of citizenship
type designation for an administrative territorial entity
['Santiago Castaño', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Santiago_Castaño property:country_of_citizenship ?d }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q18205861,P27,c(Q15617994))
action filter_type
action find
entity Q18205861
relation P27
type Q15617994
Santiago Castaño belongs to [ANSWER]
['Q18205861', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q18205861 property:P27 ?d }
United States of America
Santiago Castaño belongs to United States of America
United States of America
action filter_type
action find
entity Santiago Castaño
relation country of citizenship
type designation for an administrative territorial entity
['Santiago Castaño', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Santiago_Castaño property:country_of_citizenship ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18205861
P21
Q290
USER
Which sex does Santiago Castaño belong to ?
(Q18205861,P21,c(Q290))
action filter_type
action find
entity Q18205861
relation P21
type Q290
['Q18205861', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q290 . resource:Q18205861 property:P21 ?i }
Santiago Castaño
action filter_type
action find
entity Santiago Castaño
relation gender
type sex
['Santiago Castaño', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sex . resource:Santiago_Castaño property:gender ?i }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18205861,P21,c(Q290))
action filter_type
action find
entity Q18205861
relation P21
type Q290
Santiago Castaño belongs to [ANSWER]
['Q18205861', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q290 . resource:Q18205861 property:P21 ?i }
male
Santiago Castaño belongs to male
male
action filter_type
action find
entity Santiago Castaño
relation gender
type sex
['Santiago Castaño', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sex . resource:Santiago_Castaño property:gender ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18205861
P106
Q12737077
USER
What is the profession of Santiago Castaño ?
(Q18205861,P106,c(Q12737077))
action filter_type
action find
entity Q18205861
relation P106
type Q12737077
['Q18205861', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q18205861 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Santiago Castaño
action filter_type
action find
entity Santiago Castaño
relation occupation
type occupation
['Santiago Castaño', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Santiago_Castaño property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q18205861,P106,c(Q12737077))
action filter_type
action find
entity Q18205861
relation P106
type Q12737077
The profession of Santiago Castaño is an [ANSWER]
['Q18205861', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q18205861 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
The profession of Santiago Castaño is an association football player
association football player
action filter_type
action find
entity Santiago Castaño
relation occupation
type occupation
['Santiago Castaño', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Santiago_Castaño property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q247137
P674
Q502895 Q838948 Q7725634
USER
How many people appear as a character in approximately the same number of works of art or literary works as Aelius Donatus ?
(c(Q838948)|c(Q7725634),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q247137
relation P674
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?p WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:P674 resource:Q247137 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q7725634 } } } } . FILTER ( ?h = ?y ) }
Aelius Donatus
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Aelius Donatus
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?p WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:literary_work ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:characters resource:Aelius_Donatus . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:literary_work } } } } . FILTER ( ?h = ?y ) }
[]
common name work of art literary work
SYSTEM
460
Q13562217 Q315726 Q5254 Q18720650 Q216362 Q457881 Q272246 Q33923 Q2054 Q33760 Q315795 Q676555 Q2635523 Q744125 Q157 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 Q5170 Q57384 Q3867479 Q48438 Q849 Q36591 Q234022 Q319713 Q92639 Q981915 Q243203 Q1291267 Q229807 Q130221 Q21916822 Q6113413 Q6323112 Q456931 Q2085338 Q41155 Q270438 Q43353 Q206459 Q765624 Q312660 Q2254800 Q6139425 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 Q229702 Q282220 Q55398 Q1411 Q1413 Q363636 Q1416 Q1419 Q2521377 Q1067 Q42305 Q1140161 Q367387 Q937415 Q7200 Q7207 Q5343069 Q20749193 Q312332 Q172916 Q84192 Q6780580 Q187982 Q59180 Q43393 Q188646 Q34428 Q8778 Q223440 Q5015 Q7523 Q169329 Q83041 Q271278 Q353188 Q1227273 Q603096 Q83235 Q543853 Q9438 Q2412941 Q1348718 Q12927 Q81018 Q232913 Q5264 Q7742 Q1133523 Q281146 Q9077 Q181875 Q152717 Q15718786 Q81422 Q3187975 Q634239 Q426862 Q1209603 Q154938 Q1059572 Q359237 Q662533 Q317188 Q378053 Q469118 Q17410 Q594805 Q719418 Q991 Q43600 Q128358 Q3090807 Q5598 Q531748 Q7243 Q4344 Q19844997 Q737786 Q172353 Q256439 Q193232 Q43939 Q297285 Q335173 Q692 Q2750254 Q355903 Q1425 Q1427 Q9353 Q312537 Q9215 Q43989 Q4791018 Q137680 Q315628 Q209535 Q1981295 Q321166 Q40787 Q737533 Q236243 Q1281235 Q532354 Q111559 Q297776 Q185476 Q953718 Q81506 Q3860377 Q154971 Q83400 Q8442 Q200817 Q76721 Q352489 Q76723 Q83159 Q1030008 Q951503 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 Q6184 Q145746 Q282280 Q8747 Q118081 Q3064195 Q83375 Q549041 Q34943 Q1177456 Q170859 Q674683 Q8011 Q48305 Q8018 Q15897 Q165479 Q154723 Q2438324 Q451516 Q519984 Q312682 Q20749268 Q691873 Q102851 Q694093 Q706003 Q228896 Q19348839 Q57652 Q7071043 Q131412 Q743858 Q1773005 Q237201 Q353081 Q166056 Q131002 Q229432 Q47180 Q122290 Q170172 Q452048 Q5582 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 Q2755054 Q6780526 Q182637 Q4230107 Q15463333 Q466048 Q670332 Q5944261 Q868 Q19118331 Q5544435 Q318726 Q80048 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 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 Q158707 Q6762867 Q37085 Q313555 Q267733 Q920912 Q2361032 Q1774982 Q43746 Q40662 Q107626 Q205365 Q448586 Q5553293 Q315347 Q12324262 Q8820 Q190116 Q9181 Q860084 Q332750 Q772930 Q434579 Q671872 Q83321 Q1405 Q1401 Q43954 Q289149 Q236017 Q187447 Q155596 Q174210 Q207370 Q60059 Q463440 Q218747 Q9960
(c(Q838948)|c(Q7725634),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q247137
relation P674
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?p WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:P674 resource:Q247137 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q7725634 } } } } . FILTER ( ?h = ?y ) }
Mary Cecilia Bailly Grand Duke Alexei Alexandrovich of Russia Folquet de Marselha Nyssia August von Goethe John Tenniel Johanne Luise Heiberg Peter Seneca Bertrand Russell Bernal Díaz del Castillo Francis of Assisi Henry Percy, 6th Earl of Northumberland Chaerephon François Hollande 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 Blondel de Nesle Wernher von Braun Musciatto Franzesi Saint George François Villon Vladimir Nabokov Inês de Castro Leopold V, Duke of Austria Christos Papadimitriou Joseph Bazalgette Publius Papinius Statius Gundomar I Berengaria of Navarre Frederick II, Holy Roman Emperor Giovanni Corrado Orsini Rucio Nahor Sextus Tarquinius Vahan I Mamikonian Heraclitus Charles of Valois Aristophanes Feodor II of Russia Willem Adriaan van der Stel Gaius Mucius Scaevola Cunizza da Romano Thomas Hayward 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 Ham 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 Edward Garrard Marsh Irma Le Fer de la Motte Alessandro Cagliostro John XXI Maximilian I of Mexico Mary Raphael Slattery Alcibiades Diogenes of Sinope Robert Boyle Lucan Philip Galen Lucius Junius Brutus Mette Frederiksen Kublai Khan Conrad of Montferrat Anaxagoras Jeanne of Valois-Saint-Rémy Lucius Tarquinius Collatinus 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 Hippocrates Louis XIV of France Jephthah Yeznik of Kolb Moses Robert Peel Henry VII, Holy Roman Emperor Winona Noah Judith Atto Melani Guido Bonatti Dick Beardsley Bede Khaled Al Khamissi 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 Arnaut Daniel Sahakanuysh Giuseppe Moscati Pyrrhus Claudia Acte 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 Grigori Rasputin Aristodemus of Cydathenaeum Angela Burdett-Coutts, 1st Baroness Burdett-Coutts Cuitláhuac False Dmitriy I 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 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 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 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 Salammbô 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 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 Guido I da Montefeltro Mary Pius Regnier Jane Seymour William Compton John Mordaunt, 1st Viscount Mordaunt Francesca da Rimini Comte de Troisville Hunter Bell Aristotle Andrey Shchelkalov George Seton, 7th Lord Seton Publius Valerius Publicola Al Capone 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 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 Pat Nixon Marie Helene Franey Solomon Hanno the Great Thaïs Theaetetus Thomas Ken Ruth 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 Petrarch 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
460
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Aelius Donatus
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?p WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:literary_work ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:characters resource:Aelius_Donatus . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:literary_work } } } } . FILTER ( ?h = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q232913
P674
Q502895 Q838948 Q7725634
USER
And also tell me about Beatrice Portinari?
(c(Q838948)|c(Q7725634),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q232913
relation P674
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:P674 resource:Q232913 . { VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?u rdf:type ?b } } } . FILTER ( ?x = ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?k WHERE { { ?q property:P674 ?k . ?k rdf:type ontology:Q502895 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P674 ?k . ?k rdf:type ontology:Q502895 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?k } }
Beatrice Portinari
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Beatrice Portinari
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:characters resource:Beatrice_Portinari . { VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?u rdf:type ?b } } } . FILTER ( ?x = ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?k WHERE { { ?q property:characters ?k . ?k rdf:type ontology:common_name . ?q rdf:type ontology:work_of_art } UNION { ?q property:characters ?k . ?k rdf:type ontology:common_name . ?q rdf:type ontology:literary_work } } GROUP BY ?k } }
[]
common name work of art literary work
SYSTEM
460
Q13562217 Q315726 Q5254 Q18720650 Q216362 Q457881 Q272246 Q33923 Q2054 Q33760 Q315795 Q676555 Q2635523 Q744125 Q157 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 Q5170 Q57384 Q3867479 Q48438 Q849 Q36591 Q234022 Q319713 Q92639 Q981915 Q243203 Q1291267 Q229807 Q130221 Q21916822 Q6113413 Q6323112 Q456931 Q2085338 Q41155 Q270438 Q43353 Q206459 Q765624 Q312660 Q2254800 Q6139425 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 Q229702 Q282220 Q55398 Q1411 Q1413 Q363636 Q1416 Q1419 Q2521377 Q1067 Q42305 Q1140161 Q367387 Q937415 Q7200 Q7207 Q5343069 Q20749193 Q312332 Q172916 Q84192 Q6780580 Q187982 Q59180 Q43393 Q188646 Q34428 Q8778 Q223440 Q5015 Q7523 Q169329 Q83041 Q271278 Q353188 Q1227273 Q603096 Q83235 Q543853 Q9438 Q2412941 Q1348718 Q12927 Q81018 Q232913 Q5264 Q7742 Q1133523 Q281146 Q9077 Q181875 Q152717 Q15718786 Q81422 Q3187975 Q634239 Q426862 Q1209603 Q154938 Q1059572 Q359237 Q662533 Q317188 Q378053 Q469118 Q17410 Q594805 Q719418 Q991 Q43600 Q128358 Q3090807 Q5598 Q531748 Q7243 Q4344 Q19844997 Q737786 Q172353 Q256439 Q193232 Q43939 Q297285 Q335173 Q692 Q2750254 Q355903 Q1425 Q1427 Q9353 Q312537 Q9215 Q43989 Q4791018 Q137680 Q315628 Q209535 Q1981295 Q321166 Q40787 Q737533 Q236243 Q1281235 Q532354 Q111559 Q297776 Q185476 Q953718 Q81506 Q3860377 Q154971 Q83400 Q8442 Q200817 Q76721 Q352489 Q76723 Q83159 Q1030008 Q951503 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 Q6184 Q145746 Q282280 Q8747 Q118081 Q3064195 Q83375 Q549041 Q34943 Q1177456 Q170859 Q674683 Q8011 Q48305 Q8018 Q15897 Q165479 Q154723 Q2438324 Q451516 Q519984 Q312682 Q20749268 Q691873 Q102851 Q694093 Q706003 Q228896 Q19348839 Q57652 Q7071043 Q131412 Q743858 Q1773005 Q237201 Q353081 Q166056 Q131002 Q229432 Q47180 Q122290 Q170172 Q452048 Q5582 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 Q2755054 Q6780526 Q182637 Q4230107 Q15463333 Q466048 Q670332 Q5944261 Q868 Q19118331 Q5544435 Q318726 Q80048 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 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 Q158707 Q6762867 Q37085 Q313555 Q267733 Q920912 Q2361032 Q1774982 Q43746 Q40662 Q107626 Q205365 Q448586 Q5553293 Q315347 Q12324262 Q8820 Q190116 Q9181 Q860084 Q332750 Q772930 Q434579 Q671872 Q83321 Q1405 Q1401 Q43954 Q289149 Q236017 Q187447 Q155596 Q174210 Q207370 Q60059 Q463440 Q218747 Q9960
(c(Q838948)|c(Q7725634),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q232913
relation P674
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:P674 resource:Q232913 . { VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?u rdf:type ?b } } } . FILTER ( ?x = ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?k WHERE { { ?q property:P674 ?k . ?k rdf:type ontology:Q502895 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P674 ?k . ?k rdf:type ontology:Q502895 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?k } }
Mary Cecilia Bailly Grand Duke Alexei Alexandrovich of Russia Folquet de Marselha Nyssia August von Goethe John Tenniel Johanne Luise Heiberg Peter Seneca Bertrand Russell Bernal Díaz del Castillo Francis of Assisi Henry Percy, 6th Earl of Northumberland Chaerephon François Hollande 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 Blondel de Nesle Wernher von Braun Musciatto Franzesi Saint George François Villon Vladimir Nabokov Inês de Castro Leopold V, Duke of Austria Christos Papadimitriou Joseph Bazalgette Publius Papinius Statius Gundomar I Berengaria of Navarre Frederick II, Holy Roman Emperor Giovanni Corrado Orsini Rucio Nahor Sextus Tarquinius Vahan I Mamikonian Heraclitus Charles of Valois Aristophanes Feodor II of Russia Willem Adriaan van der Stel Gaius Mucius Scaevola Cunizza da Romano Thomas Hayward 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 Ham 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 Edward Garrard Marsh Irma Le Fer de la Motte Alessandro Cagliostro John XXI Maximilian I of Mexico Mary Raphael Slattery Alcibiades Diogenes of Sinope Robert Boyle Lucan Philip Galen Lucius Junius Brutus Mette Frederiksen Kublai Khan Conrad of Montferrat Anaxagoras Jeanne of Valois-Saint-Rémy Lucius Tarquinius Collatinus 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 Hippocrates Louis XIV of France Jephthah Yeznik of Kolb Moses Robert Peel Henry VII, Holy Roman Emperor Winona Noah Judith Atto Melani Guido Bonatti Dick Beardsley Bede Khaled Al Khamissi 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 Arnaut Daniel Sahakanuysh Giuseppe Moscati Pyrrhus Claudia Acte 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 Grigori Rasputin Aristodemus of Cydathenaeum Angela Burdett-Coutts, 1st Baroness Burdett-Coutts Cuitláhuac False Dmitriy I 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 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 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 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 Salammbô 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 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 Guido I da Montefeltro Mary Pius Regnier Jane Seymour William Compton John Mordaunt, 1st Viscount Mordaunt Francesca da Rimini Comte de Troisville Hunter Bell Aristotle Andrey Shchelkalov George Seton, 7th Lord Seton Publius Valerius Publicola Al Capone 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 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 Pat Nixon Marie Helene Franey Solomon Hanno the Great Thaïs Theaetetus Thomas Ken Ruth 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 Petrarch 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
460
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Beatrice Portinari
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:characters resource:Beatrice_Portinari . { VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?u rdf:type ?b } } } . FILTER ( ?x = ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?k WHERE { { ?q property:characters ?k . ?k rdf:type ontology:common_name . ?q rdf:type ontology:work_of_art } UNION { ?q property:characters ?k . ?k rdf:type ontology:common_name . ?q rdf:type ontology:literary_work } } GROUP BY ?k } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18424
P138
Q502895
USER
Which person is Queens named after ?
(Q18424,P138,c(Q502895))
action filter_type
action find
entity Q18424
relation P138
type Q502895
['Q18424', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q18424 property:P138 ?o . ?o rdf:type ontology:Q502895 }
Queens
action filter_type
action find
entity Queens
relation named after
type common name
['Queens', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Queens property:named_after ?o . ?o rdf:type ontology:common_name }
[]
common name
Q176253
SYSTEM
Catherine of Braganza
Q176253
(Q18424,P138,c(Q502895))
action filter_type
action find
entity Q18424
relation P138
type Q502895
Queens is named for [ANSWER]
['Q18424', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q18424 property:P138 ?o . ?o rdf:type ontology:Q502895 }
Catherine of Braganza
Queens is named for Catherine of Braganza
Catherine of Braganza
action filter_type
action find
entity Queens
relation named after
type common name
['Queens', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Queens property:named_after ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17053999
Q502895
USER
And what about Sandford Fleming Award?
(Q17053999,P138,c(Q502895))
action filter_type
action find
entity Q17053999
relation P138
type Q502895
['Q17053999', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q17053999 property:P138 ?g . ?g rdf:type ontology:Q502895 }
Sandford Fleming Award
action filter_type
action find
entity Sandford Fleming Award
relation named after
type common name
['Sandford Fleming Award', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Sandford_Fleming_Award property:named_after ?g . ?g rdf:type ontology:common_name }
[]
common name
Q41411
SYSTEM
Sandford Fleming
Q41411
(Q17053999,P138,c(Q502895))
action filter_type
action find
entity Q17053999
relation P138
type Q502895
[ANSWER]
['Q17053999', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q17053999 property:P138 ?g . ?g rdf:type ontology:Q502895 }
Sandford Fleming
Sandford Fleming
action filter_type
action find
entity Sandford Fleming Award
relation named after
type common name
['Sandford Fleming Award', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Sandford_Fleming_Award property:named_after ?g . ?g rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q41411 Q1577905
P138
Q618779
USER
Is Jackson-Gwilt Medal the eponym of that person ?
(Q1577905,P138,Q41411)
action is_in
entity Q1577905
action find
entity Q41411
relation P138
['Q1577905', 'P138', 'Q41411']
ASK WHERE { resource:Q41411 property:P138 resource:Q1577905 }
Sandford Fleming Jackson-Gwilt Medal
action is_in
entity Jackson-Gwilt Medal
action find
entity Sandford Fleming
relation named after
['Jackson-Gwilt Medal', 'named after', 'Sandford Fleming']
ASK WHERE { resource:Sandford_Fleming property:named_after resource:Jackson-Gwilt_Medal }
[]
award
SYSTEM
NO
(Q1577905,P138,Q41411)
action is_in
entity Q1577905
action find
entity Q41411
relation P138
[ANSWER]
['Q1577905', 'P138', 'Q41411']
ASK WHERE { resource:Q41411 property:P138 resource:Q1577905 }
No
action is_in
entity Jackson-Gwilt Medal
action find
entity Sandford Fleming
relation named after
['Jackson-Gwilt Medal', 'named after', 'Sandford Fleming']
ASK WHERE { resource:Sandford_Fleming property:named_after resource:Jackson-Gwilt_Medal }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q176253
P26 P21
Q502895
USER
Which people are married to Catherine of Braganza and have the gender as male ?
AND((c(Q502895),P26,Q176253), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q176253
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q176253'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P21 resource:Q6581097 . ?w property:P26 resource:Q176253 }
male Catherine of Braganza
action filter_type
action intersection
action find_reverse
entity Catherine of Braganza
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Catherine of Braganza'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:gender resource:male . ?w property:spouse resource:Catherine_of_Braganza }
[]
common name
Q122553
SYSTEM
Charles II of England
Q122553
AND((c(Q502895),P26,Q176253), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q176253
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] is married to Catherine of Braganza and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q176253'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P21 resource:Q6581097 . ?w property:P26 resource:Q176253 }
Charles II of England
Charles II of England is married to Catherine of Braganza and have the gender as male
Charles II of England
action filter_type
action intersection
action find_reverse
entity Catherine of Braganza
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Catherine of Braganza'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:gender resource:male . ?w property:spouse resource:Catherine_of_Braganza }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q122553 Q230921
P9
Q502895
USER
Is Princess Henrietta of England the sister of Charles II of England ?
(Q122553,P9,Q230921)
action is_in
entity Q230921
action find
entity Q122553
relation P9
['Q122553', 'P9', 'Q230921']
ASK WHERE { resource:Q122553 property:P9 resource:Q230921 }
Charles II of England Princess Henrietta of England
action is_in
entity Princess Henrietta of England
action find
entity Charles II of England
relation sister
['Charles II of England', 'sister', 'Princess Henrietta of England']
ASK WHERE { resource:Charles_II_of_England property:sister resource:Princess_Henrietta_of_England }
[]
common name
SYSTEM
YES
(Q122553,P9,Q230921)
action is_in
entity Q230921
action find
entity Q122553
relation P9
[ANSWER]
['Q122553', 'P9', 'Q230921']
ASK WHERE { resource:Q122553 property:P9 resource:Q230921 }
Yes
action is_in
entity Princess Henrietta of England
action find
entity Charles II of England
relation sister
['Charles II of England', 'sister', 'Princess Henrietta of England']
ASK WHERE { resource:Charles_II_of_England property:sister resource:Princess_Henrietta_of_England }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q122553
P40
Q502895
USER
Who have Charles II of England as an offspring ?
action filter_type
action find_reverse
entity Q122553
relation P40
type Q502895
SELECT DISTINCT ?x WHERE { ?x property:P40 resource:Q122553 . ?x rdf:type ontology:Q502895 }
Charles II of England
action filter_type
action find_reverse
entity Charles II of England
relation child
type common name
SELECT DISTINCT ?x WHERE { ?x property:child resource:Charles_II_of_England . ?x rdf:type ontology:common_name }
[]
common name
Q848615 Q81506
SYSTEM
Henrietta Maria of France, Charles I of England
Q848615 Q81506
action filter_type
action find_reverse
entity Q122553
relation P40
type Q502895
[ANSWERS] have Charles II of England as an offspring
SELECT DISTINCT ?x WHERE { ?x property:P40 resource:Q122553 . ?x rdf:type ontology:Q502895 }
Henrietta Maria of France Charles I of England
Henrietta Maria of France and Charles I of England have Charles II of England as an offspring
Henrietta Maria of France Charles I of England
action filter_type
action find_reverse
entity Charles II of England
relation child
type common name
SELECT DISTINCT ?x WHERE { ?x property:child resource:Charles_II_of_England . ?x rdf:type ontology:common_name }
[]