Simple Question (Direct)
Simple Question
Q683558
P21
Q290
USER
What is the sex of Ivan Horbachevsky ?
(Q683558,P21,c(Q290))
action filter_type
action find
entity Q683558
relation P21
type Q290
['Q683558', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q683558 property:P21 ?k . ?k rdf:type ontology:Q290 }
Ivan Horbachevsky
action filter_type
action find
entity Ivan Horbachevsky
relation gender
type sex
['Ivan Horbachevsky', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Ivan_Horbachevsky property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q683558,P21,c(Q290))
action filter_type
action find
entity Q683558
relation P21
type Q290
The sex of Ivan Horbachevsky is the [ANSWER]
['Q683558', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q683558 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
The sex of Ivan Horbachevsky is the male
male
action filter_type
action find
entity Ivan Horbachevsky
relation gender
type sex
['Ivan Horbachevsky', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Ivan_Horbachevsky property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q683558
P767
Q223393
USER
Which literary genre had Ivan Horbachevsky as an assistant ?
(c(Q223393),P767,Q683558)
action filter_type
action find_reverse
entity Q683558
relation P767
type Q223393
[{'concept': 'Q223393'}, 'P767', 'Q683558']
SELECT DISTINCT ?r WHERE { ?r property:P767 resource:Q683558 . ?r rdf:type ontology:Q223393 }
Ivan Horbachevsky
action filter_type
action find_reverse
entity Ivan Horbachevsky
relation contributor
type literary genre
[{'concept': 'literary genre'}, 'contributor', 'Ivan Horbachevsky']
SELECT DISTINCT ?r WHERE { ?r property:contributor resource:Ivan_Horbachevsky . ?r rdf:type ontology:literary_genre }
[]
literary genre
Q2041543
SYSTEM
Otto's encyclopedia
Q2041543
(c(Q223393),P767,Q683558)
action filter_type
action find_reverse
entity Q683558
relation P767
type Q223393
[ANSWER] had Ivan Horbachevsky as an assistant
[{'concept': 'Q223393'}, 'P767', 'Q683558']
SELECT DISTINCT ?r WHERE { ?r property:P767 resource:Q683558 . ?r rdf:type ontology:Q223393 }
Otto's encyclopedia
Otto's encyclopedia had Ivan Horbachevsky as an assistant
Otto's encyclopedia
action filter_type
action find_reverse
entity Ivan Horbachevsky
relation contributor
type literary genre
[{'concept': 'literary genre'}, 'contributor', 'Ivan Horbachevsky']
SELECT DISTINCT ?r WHERE { ?r property:contributor resource:Ivan_Horbachevsky . ?r rdf:type ontology:literary_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2041543
P1433
Q191067
USER
Which articles were published in that literary genre ?
(c(Q191067),P1433,Q2041543)
action filter_type
action find_reverse
entity Q2041543
relation P1433
type Q191067
[{'concept': 'Q191067'}, 'P1433', 'Q2041543']
SELECT DISTINCT ?h WHERE { ?h property:P1433 resource:Q2041543 . ?h rdf:type ontology:Q191067 }
Otto's encyclopedia
action filter_type
action find_reverse
entity Otto's encyclopedia
relation published in
type article
[{'concept': 'article'}, 'published in', "Otto's encyclopedia"]
SELECT DISTINCT ?h WHERE { ?h property:published_in resource:Otto's_encyclopedia . ?h rdf:type ontology:article }
[]
article
Q26001190 Q24692514 Q23864732
SYSTEM
Ottův slovník naučný/Hale, Ottův slovník naučný/Lázně, Peters
Q23857513 Q26001190 Q23875955 Q23861445 Q23851032 Q23864341 Q23854194 Q23845256 Q23862713 Q23851498 Q26001085 Q23864732 Q23845158 Q23864133 Q24692998 Q23869666 Q24692514 Q23859907 Q23845289 Q23863167 Q23858260 Q23854236 Q23845024 Q23850531 Q23851183 Q23862913 Q23863358 Q23856217 Q23845255 Q23863307 Q23870766 Q23867100
(c(Q191067),P1433,Q2041543)
action filter_type
action find_reverse
entity Q2041543
relation P1433
type Q191067
[ANSWERS] were published in that literary genre
[{'concept': 'Q191067'}, 'P1433', 'Q2041543']
SELECT DISTINCT ?h WHERE { ?h property:P1433 resource:Q2041543 . ?h rdf:type ontology:Q191067 }
Ottův slovník naučný/Dudík Ottův slovník naučný/Hale Wellesley (area) Otto/Ženíšek Ahiri Perna praetor Ottův slovník naučný/Abernethy John Otto/Pastor accommodation (natural sciences) Ottův slovník naučný/Hole Peters Ottův slovník naučný/Abbás Mírzá Peribolos Ottův slovník naučný/Sv. Vojtěch Ottův slovník naučný/Božić Ottův slovník naučný/Lázně Jesus Christ Aberffraw Palanda minima non curat praetor Fetiales (article) OSN/Abaffy Leopold Africa Ottův slovník naučný/Aigun Patroklos Wellington, Arthur Wellesley Veslování Ottův slovník naučný/Abernethy Wellesley Leghorn Otto/Podkoní a žák
Ottův slovník naučný/Hale, Ottův slovník naučný/Lázně and Peters were published in that literary genre
Ottův slovník naučný/Hale Ottův slovník naučný/Lázně Peters
action filter_type
action find_reverse
entity Otto's encyclopedia
relation published in
type article
[{'concept': 'article'}, 'published in', "Otto's encyclopedia"]
SELECT DISTINCT ?h WHERE { ?h property:published_in resource:Otto's_encyclopedia . ?h rdf:type ontology:article }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q26001190 Q24692514 Q23864732
P361
Q223393
USER
Which literary genres are those articles a part of ?
(Q26001190,P361,c(Q223393)) (Q24692514,P361,c(Q223393)) (Q23864732,P361,c(Q223393))
action filter_type
action find
entity prev_answer
relation P361
type Q223393
['Q26001190', 'P361', {'concept': 'Q223393'}] ['Q24692514', 'P361', {'concept': 'Q223393'}] ['Q23864732', 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ?w WHERE { ?l property:P361 ?w . ?w rdf:type ontology:Q223393 . VALUES ( ?l ) { ( resource:Q23857513 ) ( resource:Q26001190 ) ( resource:Q23875955 ) } }
Ottův slovník naučný/Hale Ottův slovník naučný/Lázně Peters
action filter_type
action find
entity prev_answer
relation part of
type literary genre
['Ottův slovník naučný/Hale', 'part of', {'concept': 'literary genre'}] ['Ottův slovník naučný/Lázně', 'part of', {'concept': 'literary genre'}] ['Peters', 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ?w WHERE { ?l property:part_of ?w . ?w rdf:type ontology:literary_genre . VALUES ( ?l ) { ( resource:Ottův_slovník_naučný/Dudík ) ( resource:Ottův_slovník_naučný/Hale ) ( resource:Wellesley_(area) ) } }
[]
literary genre
Q2041543 Q2041543 Q2041543
SYSTEM
Otto's encyclopedia
Q2041543 Q2041543 Q2041543
(Q26001190,P361,c(Q223393)) (Q24692514,P361,c(Q223393)) (Q23864732,P361,c(Q223393))
action filter_type
action find
entity prev_answer
relation P361
type Q223393
[ANSWER], [ANSWER] and [ANSWER] are those articles a part of
['Q26001190', 'P361', {'concept': 'Q223393'}] ['Q24692514', 'P361', {'concept': 'Q223393'}] ['Q23864732', 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ?w WHERE { ?l property:P361 ?w . ?w rdf:type ontology:Q223393 . VALUES ( ?l ) { ( resource:Q23857513 ) ( resource:Q26001190 ) ( resource:Q23875955 ) } }
Otto's encyclopedia Otto's encyclopedia Otto's encyclopedia
Otto's encyclopedia, Otto's encyclopedia and Otto's encyclopedia are those articles a part of
Otto's encyclopedia Otto's encyclopedia Otto's encyclopedia
action filter_type
action find
entity prev_answer
relation part of
type literary genre
['Ottův slovník naučný/Hale', 'part of', {'concept': 'literary genre'}] ['Ottův slovník naučný/Lázně', 'part of', {'concept': 'literary genre'}] ['Peters', 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ?w WHERE { ?l property:part_of ?w . ?w rdf:type ontology:literary_genre . VALUES ( ?l ) { ( resource:Ottův_slovník_naučný/Dudík ) ( resource:Ottův_slovník_naučný/Hale ) ( resource:Wellesley_(area) ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2041543
P407
Q34770
USER
Which language is that literary genre composed in ?
(Q2041543,P407,c(Q34770)) (Q2041543,P407,c(Q34770)) (Q2041543,P407,c(Q34770))
action filter_type
action find
entity Q2041543
relation P407
type Q34770
['Q2041543', 'P407', {'concept': 'Q34770'}] ['Q2041543', 'P407', {'concept': 'Q34770'}] ['Q2041543', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q2041543 property:P407 ?t . ?t rdf:type ontology:Q34770 }
Otto's encyclopedia
action filter_type
action find
entity Otto's encyclopedia
relation language of work or name
type language
["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}] ["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}] ["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:Otto's_encyclopedia property:language_of_work_or_name ?t . ?t rdf:type ontology:language }
[]
language
Q9056
SYSTEM
Czech
Q9056
(Q2041543,P407,c(Q34770)) (Q2041543,P407,c(Q34770)) (Q2041543,P407,c(Q34770))
action filter_type
action find
entity Q2041543
relation P407
type Q34770
That literary genre is composed by [ANSWER]
['Q2041543', 'P407', {'concept': 'Q34770'}] ['Q2041543', 'P407', {'concept': 'Q34770'}] ['Q2041543', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q2041543 property:P407 ?t . ?t rdf:type ontology:Q34770 }
Czech
That literary genre is composed by Czech
Czech
action filter_type
action find
entity Otto's encyclopedia
relation language of work or name
type language
["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}] ["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}] ["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:Otto's_encyclopedia property:language_of_work_or_name ?t . ?t rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2041543
P248
Q515
USER
Which city has been stated in that literary genre ?
(c(Q515),P248,Q9056)
action filter_type
action find_reverse
entity Q2041543
relation P248
type Q515
[{'concept': 'Q515'}, 'P248', 'Q9056']
SELECT DISTINCT ?o WHERE { ?o property:P248 resource:Q2041543 . ?o rdf:type ontology:Q515 }
Otto's encyclopedia
action filter_type
action find_reverse
entity Otto's encyclopedia
relation stated in
type city
[{'concept': 'city'}, 'stated in', 'Czech']
SELECT DISTINCT ?o WHERE { ?o property:stated_in resource:Otto's_encyclopedia . ?o rdf:type ontology:city }
[]
city
Q157835
SYSTEM
Zaporizhzhya
Q157835
(c(Q515),P248,Q9056)
action filter_type
action find_reverse
entity Q2041543
relation P248
type Q515
[ANSWER] has been stated in that literary genre
[{'concept': 'Q515'}, 'P248', 'Q9056']
SELECT DISTINCT ?o WHERE { ?o property:P248 resource:Q2041543 . ?o rdf:type ontology:Q515 }
Zaporizhzhya
Zaporizhzhya has been stated in that literary genre
Zaporizhzhya
action filter_type
action find_reverse
entity Otto's encyclopedia
relation stated in
type city
[{'concept': 'city'}, 'stated in', 'Czech']
SELECT DISTINCT ?o WHERE { ?o property:stated_in resource:Otto's_encyclopedia . ?o rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2041543
P364
Q34770
USER
Which language was used originally for the creation of Otto's encyclopedia ?
(Q2041543,P364,c(Q34770))
action filter_type
action find
entity Q2041543
relation P364
type Q34770
['Q2041543', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q2041543 property:P364 ?o . ?o rdf:type ontology:Q34770 }
Otto's encyclopedia
action filter_type
action find
entity Otto's encyclopedia
relation original language of work
type language
["Otto's encyclopedia", 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Otto's_encyclopedia property:original_language_of_work ?o . ?o rdf:type ontology:language }
[]
language
Q9056
SYSTEM
Czech
Q9056
(Q2041543,P364,c(Q34770))
action filter_type
action find
entity Q2041543
relation P364
type Q34770
[ANSWER] was used originally for the creation of Otto's encyclopedia
['Q2041543', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q2041543 property:P364 ?o . ?o rdf:type ontology:Q34770 }
Czech
Czech was used originally for the creation of Otto's encyclopedia
Czech
action filter_type
action find
entity Otto's encyclopedia
relation original language of work
type language
["Otto's encyclopedia", 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Otto's_encyclopedia property:original_language_of_work ?o . ?o rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q43706
P674
Q502895 Q223393 Q15416
USER
Which people are the name of the persons who plays a role in lesser number of literary genres and television programs than John Chrysostom ?
(c(Q223393)|c(Q15416),P674,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q223393
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q43706
relation P674
type Q223393
type Q15416
[[{'concept': 'Q223393'}, {'concept': 'Q15416'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { { ?k property:P674 ?j . ?k rdf:type ontology:Q223393 . ?j rdf:type ontology:Q502895 } UNION { ?k rdf:type ontology:Q15416 . ?j rdf:type ontology:Q502895 . ?k property:P674 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P674 resource:Q43706 . { { ?q rdf:type ontology:Q223393 } UNION { ?q rdf:type ontology:Q15416 } } } } . FILTER ( ?o < ?w ) }
John Chrysostom
action less
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary genre
action find_reverse_tuple_counts
relation characters
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity John Chrysostom
relation characters
type literary genre
type television program
[[{'concept': 'literary genre'}, {'concept': 'television program'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { { ?k property:characters ?j . ?k rdf:type ontology:literary_genre . ?j rdf:type ontology:common_name } UNION { ?k rdf:type ontology:television_program . ?j rdf:type ontology:common_name . ?k property:characters ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:characters resource:John_Chrysostom . { { ?q rdf:type ontology:literary_genre } UNION { ?q rdf:type ontology:television_program } } } } . FILTER ( ?o < ?w ) }
[]
common name literary genre television program
Q7243 Q5879 Q692
SYSTEM
Leo Tolstoy, Johann Wolfgang von Goethe, William Shakespeare
Q13562217 Q7793319 Q315726 Q6741571 Q216362 Q457881 Q1986812 Q315795 Q3051256 Q2635523 Q744125 Q157 Q7788839 Q152513 Q1353836 Q1851366 Q3680198 Q6173387 Q17141 Q551481 Q200902 Q12316446 Q7322 Q18733964 Q10261 Q5879 Q2458567 Q12591 Q118653 Q353879 Q955856 Q262513 Q6779230 Q3299086 Q5685 Q5686 Q854177 Q2468262 Q1093885 Q1774745 Q9640 Q248029 Q2850415 Q5170 Q57384 Q48438 Q849 Q36591 Q319713 Q1354988 Q981915 Q1291267 Q229807 Q21916822 Q6113413 Q6323112 Q456931 Q3181675 Q4212237 Q10265876 Q2085338 Q43353 Q206459 Q220344 Q765624 Q44387 Q312660 Q6139425 Q547828 Q172480 Q1234647 Q830183 Q1937560 Q256663 Q62788 Q4679883 Q313421 Q47365 Q104804 Q294147 Q460763 Q230677 Q6562057 Q1347324 Q13560546 Q1338025 Q6777920 Q234811 Q185101 Q24061503 Q286238 Q2355196 Q229702 Q129165 Q282220 Q55398 Q1411 Q1413 Q363636 Q1416 Q1419 Q42305 Q1140161 Q937415 Q7200 Q5343069 Q20749193 Q312332 Q5363384 Q84192 Q6780580 Q187982 Q43393 Q328793 Q34428 Q42544 Q5015 Q7523 Q169329 Q271278 Q353188 Q1227273 Q603096 Q83235 Q543853 Q2412941 Q1348718 Q12927 Q2361344 Q6780925 Q7742 Q281146 Q181875 Q15718786 Q81422 Q3187975 Q634239 Q591879 Q38370 Q1209603 Q1059572 Q6818772 Q662533 Q317188 Q378053 Q469118 Q17410 Q594805 Q719418 Q991 Q43600 Q128358 Q3090807 Q5598 Q531748 Q7243 Q76918 Q19844997 Q188541 Q256439 Q184176 Q193232 Q297285 Q335173 Q8462 Q692 Q2750254 Q1427 Q9353 Q9215 Q43989 Q4791018 Q137680 Q315628 Q86745 Q209535 Q7422342 Q1981295 Q321166 Q40787 Q737533 Q236243 Q1281235 Q532354 Q185476 Q953718 Q81506 Q3860377 Q154971 Q200817 Q352489 Q76723 Q83159 Q1030008 Q951503 Q289694 Q7732 Q153670 Q1394 Q3080825 Q310303 Q638973 Q215512 Q231944 Q7326 Q63639 Q307 Q6527 Q1280744 Q15995718 Q75568 Q24062019 Q20750935 Q134309 Q273942 Q332020 Q1938388 Q2633351 Q68366 Q6184 Q145746 Q282280 Q3064195 Q1177456 Q674683 Q15897 Q165479 Q109860 Q154723 Q2438324 Q519984 Q312682 Q20749268 Q691873 Q228896 Q9045 Q19348839 Q80823 Q57652 Q7071043 Q131412 Q743858 Q1773005 Q237201 Q353081 Q166056 Q131002 Q229432 Q47180 Q122290 Q170172 Q452048 Q5582 Q1377025 Q612501 Q231997 Q170373 Q16912694 Q144622 Q950850 Q7617726 Q3261049 Q335165 Q544680 Q717441 Q9588 Q2872353 Q559541 Q8058 Q83808 Q1824066 Q66107 Q106077 Q141791 Q200637 Q16404704 Q193660 Q6780526 Q182637 Q3421721 Q4230107 Q15463333 Q6264078 Q670332 Q5944261 Q19118331 Q5544435 Q318726 Q80048 Q5816 Q778520 Q230716 Q7367631 Q1370965 Q43718 Q555304 Q3275910 Q5202472 Q1394174 Q4712236 Q1281177 Q208359 Q186652 Q15711674 Q75090 Q1771963 Q365695 Q313817 Q7647581 Q4403346 Q443256 Q2596433 Q5689201 Q879350 Q82006 Q151209 Q828583 Q310267 Q1747004 Q233359 Q2116944 Q360798 Q981902 Q205523 Q347133 Q545875 Q380482 Q230314 Q26702 Q43963 Q366205 Q983502 Q453382 Q85393 Q36456 Q517 Q154732 Q6779045 Q568082 Q3687804 Q469050 Q438615 Q36517 Q44279 Q745286 Q204236 Q889694 Q297050 Q17131 Q1960623 Q3182316 Q158707 Q6762867 Q37085 Q313555 Q920912 Q2361032 Q1774982 Q3471206 Q107626 Q5553293 Q12324262 Q8820 Q190116 Q9181 Q860084 Q772930 Q434579 Q671872 Q83321 Q39259 Q1401 Q15427574 Q43954 Q289149 Q236017 Q187447 Q155596 Q174210 Q463440 Q218747 Q9960
(c(Q223393)|c(Q15416),P674,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q223393
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q43706
relation P674
type Q223393
type Q15416
[ANSWERS] are the name of the persons who plays a role in lesser number of literary genres and television programs than John Chrysostom
[[{'concept': 'Q223393'}, {'concept': 'Q15416'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { { ?k property:P674 ?j . ?k rdf:type ontology:Q223393 . ?j rdf:type ontology:Q502895 } UNION { ?k rdf:type ontology:Q15416 . ?j rdf:type ontology:Q502895 . ?k property:P674 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P674 resource:Q43706 . { { ?q rdf:type ontology:Q223393 } UNION { ?q rdf:type ontology:Q15416 } } } } . FILTER ( ?o < ?w ) }
Mary Cecilia Bailly Thomas Putnam Grand Duke Alexei Alexandrovich of Russia Malayaketu August von Goethe John Tenniel Tituba Bernal Díaz del Castillo Elizabeth Parris 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 Shem Henrik Sass Larsen Christopher Columbus Peter Stahl Pythagoras Johann Wolfgang von Goethe François Bonivard Nebuchadnezzar II August Engelhardt Jean François Paul de Gondi Pallas John Felton Mary Cleophas Foley 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 Saint George François Villon Vladimir Nabokov Leopold V, Duke of Austria Giles Corey Joseph Bazalgette Gundomar I Berengaria of Navarre Giovanni Corrado Orsini Rucio Nahor Sextus Tarquinius John Hale Kanva Dhana Nanda Vahan I Mamikonian Aristophanes Feodor II of Russia Pythia Willem Adriaan van der Stel Darius I of Persia Gaius Mucius Scaevola Thomas Hayward Christiaan de Wet Isaac of Armenia Mark Smeaton Eve Mogens Lykketoft Anne Geneviève de Bourbon Jethro Adam Tas Abel Marie Antoinette Saint Mesrob William Bligh Benjamin Madame du Barry Mushegh IV Mamikonian François de Vendôme, Duc de Beaufort Heidi Blickenstaff Emma Forsayth Maruja Pachón Emma, Lady Hamilton Hamilcar Barca Petrus Kalden Thaïs Martinus Theunis Steyn Ham Xerxes Judah Bernadette Soubirous Claudius Nero Cardinal de Rohan Otho Vespasian Richard I of England Marina Mniszech James Stewart, 1st Earl of Moray Alexander Pushkin Edward Garrard Marsh Irma Le Fer de la Motte Alessandro Cagliostro Elizabeth Proctor Maximilian I of Mexico Mary Raphael Slattery Alcibiades Robert Boyle Periander Philip Thomas More Mette Frederiksen Kublai Khan Conrad of Montferrat Jeanne of Valois-Saint-Rémy Lucius Tarquinius Collatinus Henry Mayhew Leon Klinghoffer Horatio Nelson Herod II The Fox and the Cat Jean-Claude Romand Marine Le Pen Durvasa Mary Warren Louis XIV of France Yeznik of Kolb Robert Peel Winona Noah Judith Atto Melani Piet Cronjé Henry VIII Dick Beardsley Khaled Al Khamissi Mercy Lewis 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 Sahakanuysh Chandragupta Maurya Claudia Acte Seleucus I Nicator Vasili IV of Russia Ali Pasha Edward Hyde, 1st Earl of Clarendon Timur William Shakespeare Pharantzem Hadrian John Locke Sigmund Freud Grigori Rasputin 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 Flavius Aetius Henry Bennet, 1st Earl of Arlington Charles I of England The Nun of Monza Carlota of Mexico Titus van Rijn Aulus Plautius Maurice de Saxe Clement VII Tamar Ashot II of Armenia Abigail Williams Louis XVI of France Primo Levi Vladimir Lenin Frances Nelson Yazdegerd II Leofric, Earl of Mercia 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 Charles IX of France Pia Gjellerup César Gaviria Miriam Vasak of Syunik Siward, Earl of Northumbria Plotius Tucca Joseph Vladimir Solovyov Hovsep Ier de Holotsim David of Scotland, Earl of Huntingdon Terpsion Amy Winehouse Saint Patrick Dagobert I Viktor Frankl Julie d'Aubigny Neil Strauss Euclid of Megara John Corbe Anthony Wood 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 Christopher Wren Cornelia van Rijn Phil Collins Samuel Morland William Douglas, 6th Earl of Morton Louis Ange Pitou Osceola John Thurloe Alberto Salazar Richard Nixon Autaritus Salvatore Giuliano Louis XI of France François Joseph Lefebvre Arturo Bandini Henry Kissinger Lady Godiva Moctezuma IIl Japheth Endel Nelis Ramon Llull Mary Pius Regnier Jane Seymour Rebecca Nurse William Compton John Mordaunt, 1st Viscount Mordaunt John Willard Comte de Troisville Hunter Bell Andrey Shchelkalov George Seton, 7th Lord Seton Publius Valerius Publicola Al Capone Mao Zedong Diana Turbay Poppaea Sabina Rose Angela Horan Peter Heywood Nikolai Gogol Georges Cadoudal Anne Françoise Elisabeth Lange Célestine Guynemer de la Hailandière Paphnutius of Thebes Alberto Villamizar Beowulf John Wallis Gilbert du Motier Zecora Adele Schopenhauer Naphtali Moses of Chorene George Villiers, 1st Duke of Buckingham Susan Blackwell Sahak Sevada Marie Favart Naomi Hernando Santos Castillo Bjarne Corydon Benjamin Disraeli Anne of Austria Bertrand-François Mahé de La Bourdonnais Shapur III Timon of Athens Atossa Wealhþeow Saint Eligius Charles Simon Favart Zipporah George Boleyn, Viscount Rochford Monte Melkonian Agathon La Malinche Cardinal Richelieu Jack the Ripper Tigellinus St. Nerses I John Adams Friedrich Wilhelm Riemer Hannibal Napoleon 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 Pontius Pilatus Tsarevna Xenia Borisovna of Russia John Proctor Pat Nixon Marie Helene Franey Solomon Hanno the Great Theaetetus Thomas Ken Ruth Samuel Parris Seth Gertrude Clare Owens Lene Jensen Lucius Varius Rufus Benvenuto Cellini Abraham Pausanias of Athens Aulus Plautius Théodore Guérin Isaac Giacomo Casanova Recep Tayyip Erdoğan Petrarch John Hathorne Leo I Étienne François, duc de Choiseul Jiang Qing Pablo Escobar Philippe, Duke of Orléans, Regent of France Gael Corteza Hendrickje Stoffels Honoré Gabriel Riqueti, comte de Mirabeau Ronald Reagan
Leo Tolstoy, Johann Wolfgang von Goethe and William Shakespeare are the name of the persons who plays a role in lesser number of literary genres and television programs than John Chrysostom
Leo Tolstoy Johann Wolfgang von Goethe William Shakespeare
action less
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary genre
action find_reverse_tuple_counts
relation characters
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity John Chrysostom
relation characters
type literary genre
type television program
[[{'concept': 'literary genre'}, {'concept': 'television program'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { { ?k property:characters ?j . ?k rdf:type ontology:literary_genre . ?j rdf:type ontology:common_name } UNION { ?k rdf:type ontology:television_program . ?j rdf:type ontology:common_name . ?k property:characters ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:characters resource:John_Chrysostom . { { ?q rdf:type ontology:literary_genre } UNION { ?q rdf:type ontology:television_program } } } } . FILTER ( ?o < ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q232913
P674
Q502895 Q223393 Q15416
USER
And also tell me about Beatrice Portinari?
(c(Q223393)|c(Q15416),P674,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q223393
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q232913
relation P674
type Q223393
type Q15416
[[{'concept': 'Q223393'}, {'concept': 'Q15416'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:P674 ?v . ?v rdf:type ontology:Q502895 . ?c rdf:type ontology:Q223393 } UNION { ?c property:P674 ?v . ?v rdf:type ontology:Q502895 . ?c rdf:type ontology:Q15416 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P674 resource:Q232913 . { { ?d rdf:type ontology:Q223393 } UNION { ?d rdf:type ontology:Q15416 } } } } . FILTER ( ?g < ?x ) }
Beatrice Portinari
action less
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary genre
action find_reverse_tuple_counts
relation characters
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity Beatrice Portinari
relation characters
type literary genre
type television program
[[{'concept': 'literary genre'}, {'concept': 'television program'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:characters ?v . ?v rdf:type ontology:common_name . ?c rdf:type ontology:literary_genre } UNION { ?c property:characters ?v . ?v rdf:type ontology:common_name . ?c rdf:type ontology:television_program } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:characters resource:Beatrice_Portinari . { { ?d rdf:type ontology:literary_genre } UNION { ?d rdf:type ontology:television_program } } } } . FILTER ( ?g < ?x ) }
[]
common name literary genre television program
Q7243 Q5879 Q692
SYSTEM
Leo Tolstoy, Johann Wolfgang von Goethe, William Shakespeare
Q13562217 Q7793319 Q315726 Q6741571 Q216362 Q457881 Q1986812 Q315795 Q3051256 Q2635523 Q744125 Q157 Q7788839 Q152513 Q1353836 Q1851366 Q3680198 Q6173387 Q17141 Q551481 Q200902 Q12316446 Q7322 Q18733964 Q10261 Q5879 Q2458567 Q12591 Q118653 Q353879 Q955856 Q262513 Q6779230 Q3299086 Q5685 Q5686 Q854177 Q2468262 Q1093885 Q1774745 Q9640 Q248029 Q2850415 Q5170 Q57384 Q48438 Q849 Q36591 Q319713 Q1354988 Q981915 Q1291267 Q229807 Q21916822 Q6113413 Q6323112 Q456931 Q3181675 Q4212237 Q10265876 Q2085338 Q43353 Q206459 Q220344 Q765624 Q44387 Q312660 Q6139425 Q547828 Q172480 Q1234647 Q830183 Q1937560 Q256663 Q62788 Q4679883 Q313421 Q47365 Q104804 Q294147 Q460763 Q230677 Q6562057 Q1347324 Q13560546 Q1338025 Q6777920 Q234811 Q185101 Q24061503 Q286238 Q2355196 Q229702 Q129165 Q282220 Q55398 Q1411 Q1413 Q363636 Q1416 Q1419 Q42305 Q1140161 Q937415 Q7200 Q5343069 Q20749193 Q312332 Q5363384 Q84192 Q6780580 Q187982 Q43393 Q328793 Q34428 Q42544 Q5015 Q7523 Q169329 Q271278 Q353188 Q1227273 Q603096 Q83235 Q543853 Q2412941 Q1348718 Q12927 Q2361344 Q6780925 Q7742 Q281146 Q181875 Q15718786 Q81422 Q3187975 Q634239 Q591879 Q38370 Q1209603 Q1059572 Q6818772 Q662533 Q317188 Q378053 Q469118 Q17410 Q594805 Q719418 Q991 Q43600 Q128358 Q3090807 Q5598 Q531748 Q7243 Q76918 Q19844997 Q188541 Q256439 Q184176 Q193232 Q297285 Q335173 Q8462 Q692 Q2750254 Q1427 Q9353 Q9215 Q43989 Q4791018 Q137680 Q315628 Q86745 Q209535 Q7422342 Q1981295 Q321166 Q40787 Q737533 Q236243 Q1281235 Q532354 Q185476 Q953718 Q81506 Q3860377 Q154971 Q200817 Q352489 Q76723 Q83159 Q1030008 Q951503 Q289694 Q7732 Q153670 Q1394 Q3080825 Q310303 Q638973 Q215512 Q231944 Q7326 Q63639 Q307 Q6527 Q1280744 Q15995718 Q75568 Q24062019 Q20750935 Q134309 Q273942 Q332020 Q1938388 Q2633351 Q68366 Q6184 Q145746 Q282280 Q3064195 Q1177456 Q674683 Q15897 Q165479 Q109860 Q154723 Q2438324 Q519984 Q312682 Q20749268 Q691873 Q228896 Q9045 Q19348839 Q80823 Q57652 Q7071043 Q131412 Q743858 Q1773005 Q237201 Q353081 Q166056 Q131002 Q229432 Q47180 Q122290 Q170172 Q452048 Q5582 Q1377025 Q612501 Q231997 Q170373 Q16912694 Q144622 Q950850 Q7617726 Q3261049 Q335165 Q544680 Q717441 Q9588 Q2872353 Q559541 Q8058 Q83808 Q1824066 Q66107 Q106077 Q141791 Q200637 Q16404704 Q193660 Q6780526 Q182637 Q3421721 Q4230107 Q15463333 Q6264078 Q670332 Q5944261 Q19118331 Q5544435 Q318726 Q80048 Q5816 Q778520 Q230716 Q7367631 Q1370965 Q43718 Q555304 Q3275910 Q5202472 Q1394174 Q4712236 Q1281177 Q208359 Q186652 Q15711674 Q75090 Q1771963 Q365695 Q313817 Q7647581 Q4403346 Q443256 Q2596433 Q5689201 Q879350 Q82006 Q151209 Q828583 Q310267 Q1747004 Q233359 Q2116944 Q360798 Q981902 Q205523 Q347133 Q545875 Q380482 Q230314 Q26702 Q43963 Q366205 Q983502 Q453382 Q85393 Q36456 Q517 Q154732 Q6779045 Q568082 Q3687804 Q469050 Q438615 Q36517 Q44279 Q745286 Q204236 Q889694 Q297050 Q17131 Q1960623 Q3182316 Q158707 Q6762867 Q37085 Q313555 Q920912 Q2361032 Q1774982 Q3471206 Q107626 Q5553293 Q12324262 Q8820 Q190116 Q9181 Q860084 Q772930 Q434579 Q671872 Q83321 Q39259 Q1401 Q15427574 Q43954 Q289149 Q236017 Q187447 Q155596 Q174210 Q463440 Q218747 Q9960
(c(Q223393)|c(Q15416),P674,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q223393
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q232913
relation P674
type Q223393
type Q15416
[ANSWERS]
[[{'concept': 'Q223393'}, {'concept': 'Q15416'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:P674 ?v . ?v rdf:type ontology:Q502895 . ?c rdf:type ontology:Q223393 } UNION { ?c property:P674 ?v . ?v rdf:type ontology:Q502895 . ?c rdf:type ontology:Q15416 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P674 resource:Q232913 . { { ?d rdf:type ontology:Q223393 } UNION { ?d rdf:type ontology:Q15416 } } } } . FILTER ( ?g < ?x ) }
Mary Cecilia Bailly Thomas Putnam Grand Duke Alexei Alexandrovich of Russia Malayaketu August von Goethe John Tenniel Tituba Bernal Díaz del Castillo Elizabeth Parris 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 Shem Henrik Sass Larsen Christopher Columbus Peter Stahl Pythagoras Johann Wolfgang von Goethe François Bonivard Nebuchadnezzar II August Engelhardt Jean François Paul de Gondi Pallas John Felton Mary Cleophas Foley 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 Saint George François Villon Vladimir Nabokov Leopold V, Duke of Austria Giles Corey Joseph Bazalgette Gundomar I Berengaria of Navarre Giovanni Corrado Orsini Rucio Nahor Sextus Tarquinius John Hale Kanva Dhana Nanda Vahan I Mamikonian Aristophanes Feodor II of Russia Pythia Willem Adriaan van der Stel Darius I of Persia Gaius Mucius Scaevola Thomas Hayward Christiaan de Wet Isaac of Armenia Mark Smeaton Eve Mogens Lykketoft Anne Geneviève de Bourbon Jethro Adam Tas Abel Marie Antoinette Saint Mesrob William Bligh Benjamin Madame du Barry Mushegh IV Mamikonian François de Vendôme, Duc de Beaufort Heidi Blickenstaff Emma Forsayth Maruja Pachón Emma, Lady Hamilton Hamilcar Barca Petrus Kalden Thaïs Martinus Theunis Steyn Ham Xerxes Judah Bernadette Soubirous Claudius Nero Cardinal de Rohan Otho Vespasian Richard I of England Marina Mniszech James Stewart, 1st Earl of Moray Alexander Pushkin Edward Garrard Marsh Irma Le Fer de la Motte Alessandro Cagliostro Elizabeth Proctor Maximilian I of Mexico Mary Raphael Slattery Alcibiades Robert Boyle Periander Philip Thomas More Mette Frederiksen Kublai Khan Conrad of Montferrat Jeanne of Valois-Saint-Rémy Lucius Tarquinius Collatinus Henry Mayhew Leon Klinghoffer Horatio Nelson Herod II The Fox and the Cat Jean-Claude Romand Marine Le Pen Durvasa Mary Warren Louis XIV of France Yeznik of Kolb Robert Peel Winona Noah Judith Atto Melani Piet Cronjé Henry VIII Dick Beardsley Khaled Al Khamissi Mercy Lewis 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 Sahakanuysh Chandragupta Maurya Claudia Acte Seleucus I Nicator Vasili IV of Russia Ali Pasha Edward Hyde, 1st Earl of Clarendon Timur William Shakespeare Pharantzem Hadrian John Locke Sigmund Freud Grigori Rasputin 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 Flavius Aetius Henry Bennet, 1st Earl of Arlington Charles I of England The Nun of Monza Carlota of Mexico Titus van Rijn Aulus Plautius Maurice de Saxe Clement VII Tamar Ashot II of Armenia Abigail Williams Louis XVI of France Primo Levi Vladimir Lenin Frances Nelson Yazdegerd II Leofric, Earl of Mercia 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 Charles IX of France Pia Gjellerup César Gaviria Miriam Vasak of Syunik Siward, Earl of Northumbria Plotius Tucca Joseph Vladimir Solovyov Hovsep Ier de Holotsim David of Scotland, Earl of Huntingdon Terpsion Amy Winehouse Saint Patrick Dagobert I Viktor Frankl Julie d'Aubigny Neil Strauss Euclid of Megara John Corbe Anthony Wood 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 Christopher Wren Cornelia van Rijn Phil Collins Samuel Morland William Douglas, 6th Earl of Morton Louis Ange Pitou Osceola John Thurloe Alberto Salazar Richard Nixon Autaritus Salvatore Giuliano Louis XI of France François Joseph Lefebvre Arturo Bandini Henry Kissinger Lady Godiva Moctezuma IIl Japheth Endel Nelis Ramon Llull Mary Pius Regnier Jane Seymour Rebecca Nurse William Compton John Mordaunt, 1st Viscount Mordaunt John Willard Comte de Troisville Hunter Bell Andrey Shchelkalov George Seton, 7th Lord Seton Publius Valerius Publicola Al Capone Mao Zedong Diana Turbay Poppaea Sabina Rose Angela Horan Peter Heywood Nikolai Gogol Georges Cadoudal Anne Françoise Elisabeth Lange Célestine Guynemer de la Hailandière Paphnutius of Thebes Alberto Villamizar Beowulf John Wallis Gilbert du Motier Zecora Adele Schopenhauer Naphtali Moses of Chorene George Villiers, 1st Duke of Buckingham Susan Blackwell Sahak Sevada Marie Favart Naomi Hernando Santos Castillo Bjarne Corydon Benjamin Disraeli Anne of Austria Bertrand-François Mahé de La Bourdonnais Shapur III Timon of Athens Atossa Wealhþeow Saint Eligius Charles Simon Favart Zipporah George Boleyn, Viscount Rochford Monte Melkonian Agathon La Malinche Cardinal Richelieu Jack the Ripper Tigellinus St. Nerses I John Adams Friedrich Wilhelm Riemer Hannibal Napoleon 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 Pontius Pilatus Tsarevna Xenia Borisovna of Russia John Proctor Pat Nixon Marie Helene Franey Solomon Hanno the Great Theaetetus Thomas Ken Ruth Samuel Parris Seth Gertrude Clare Owens Lene Jensen Lucius Varius Rufus Benvenuto Cellini Abraham Pausanias of Athens Aulus Plautius Théodore Guérin Isaac Giacomo Casanova Recep Tayyip Erdoğan Petrarch John Hathorne Leo I Étienne François, duc de Choiseul Jiang Qing Pablo Escobar Philippe, Duke of Orléans, Regent of France Gael Corteza Hendrickje Stoffels Honoré Gabriel Riqueti, comte de Mirabeau Ronald Reagan
Leo Tolstoy Johann Wolfgang von Goethe William Shakespeare
action less
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary genre
action find_reverse_tuple_counts
relation characters
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity Beatrice Portinari
relation characters
type literary genre
type television program
[[{'concept': 'literary genre'}, {'concept': 'television program'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:characters ?v . ?v rdf:type ontology:common_name . ?c rdf:type ontology:literary_genre } UNION { ?c property:characters ?v . ?v rdf:type ontology:common_name . ?c rdf:type ontology:television_program } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:characters resource:Beatrice_Portinari . { { ?d rdf:type ontology:literary_genre } UNION { ?d rdf:type ontology:television_program } } } } . FILTER ( ?g < ?x ) }
[]