Simple Question (Direct)
Simple Question
Q1178398
P19
Q56061
USER
Which administrative territory is the place of birth of Davy Frick ?
(Q1178398,P19,c(Q56061))
action filter_type
action find
entity Q1178398
relation P19
type Q56061
['Q1178398', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1178398 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Davy Frick
action filter_type
action find
entity Davy Frick
relation place of birth
type administrative territorial entity
['Davy Frick', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Davy_Frick property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q266510
SYSTEM
Triptis
Q266510
(Q1178398,P19,c(Q56061))
action filter_type
action find
entity Q1178398
relation P19
type Q56061
[ANSWER] is the place of birth of Davy Frick
['Q1178398', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1178398 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Triptis
Triptis is the place of birth of Davy Frick
Triptis
action filter_type
action find
entity Davy Frick
relation place of birth
type administrative territorial entity
['Davy Frick', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Davy_Frick property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1178398
P641
Q349
USER
What did Davy Frick participate in ?
(Q1178398,P641,c(Q349))
action filter_type
action find
entity Q1178398
relation P641
type Q349
['Q1178398', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q1178398 property:P641 ?l . ?l rdf:type ontology:Q349 }
Davy Frick
action filter_type
action find
entity Davy Frick
relation sport
type sport
['Davy Frick', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Davy_Frick property:sport ?l . ?l rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1178398,P641,c(Q349))
action filter_type
action find
entity Q1178398
relation P641
type Q349
Davy Frick participated in [ANSWER]
['Q1178398', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q1178398 property:P641 ?l . ?l rdf:type ontology:Q349 }
association football
Davy Frick participated in association football
association football
action filter_type
action find
entity Davy Frick
relation sport
type sport
['Davy Frick', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Davy_Frick property:sport ?l . ?l rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1178398
P27
Q1048835
USER
Which political territory is Davy Frick an inhabitant of ?
(Q1178398,P27,c(Q1048835))
action filter_type
action find
entity Q1178398
relation P27
type Q1048835
['Q1178398', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1178398 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Davy Frick
action filter_type
action find
entity Davy Frick
relation country of citizenship
type political territorial entity
['Davy Frick', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Davy_Frick property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1178398,P27,c(Q1048835))
action filter_type
action find
entity Q1178398
relation P27
type Q1048835
[ANSWER] is Davy Frick an inhabitant of
['Q1178398', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1178398 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Germany
Germany is Davy Frick an inhabitant of
Germany
action filter_type
action find
entity Davy Frick
relation country of citizenship
type political territorial entity
['Davy Frick', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Davy_Frick property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P291
Q838948
USER
Which work of art has that political territory as its publication place ?
(c(Q838948),P291,Q183)
action filter_type
action find_reverse
entity Q183
relation P291
type Q838948
[{'concept': 'Q838948'}, 'P291', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P291 resource:Q183 . ?y rdf:type ontology:Q838948 }
Germany
action filter_type
action find_reverse
entity Germany
relation place of publication
type work of art
[{'concept': 'work of art'}, 'place of publication', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:place_of_publication resource:Germany . ?y rdf:type ontology:work_of_art }
[]
work of art
Q23931111
SYSTEM
One Who Set Forth: Wim Wenders' Early Years
Q23931111
(c(Q838948),P291,Q183)
action filter_type
action find_reverse
entity Q183
relation P291
type Q838948
One Who set Forth: Wim Wenders' Early Years has that political territory as its publication place
[{'concept': 'Q838948'}, 'P291', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P291 resource:Q183 . ?y rdf:type ontology:Q838948 }
One Who Set Forth: Wim Wenders' Early Years
One Who set Forth: Wim Wenders' Early Years has that political territory as its publication place
One Who Set Forth: Wim Wenders' Early Years
action filter_type
action find_reverse
entity Germany
relation place of publication
type work of art
[{'concept': 'work of art'}, 'place of publication', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:place_of_publication resource:Germany . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q838948 Q386724
USER
How many works represents a fictional universe described in exactly 5 works of art ?
(c(Q386724),P1445,c(Q838948))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 5
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?p ) WHERE { ?j property:P1445 ?b . ?j rdf:type ontology:Q386724 . ?b rdf:type ontology:Q838948 } GROUP BY ?j } . FILTER ( ?p = 5 ) }
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 5
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?p ) WHERE { ?j property:fictional_universe_described_in ?b . ?j rdf:type ontology:work . ?b rdf:type ontology:work_of_art } GROUP BY ?j } . FILTER ( ?p = 5 ) }
[]
work of art work
SYSTEM
1
Q384426
(c(Q386724),P1445,c(Q838948))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 5
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?p ) WHERE { ?j property:P1445 ?b . ?j rdf:type ontology:Q386724 . ?b rdf:type ontology:Q838948 } GROUP BY ?j } . FILTER ( ?p = 5 ) }
Pirates of the Caribbean
1
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 5
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?p ) WHERE { ?j property:fictional_universe_described_in ?b . ?j rdf:type ontology:work . ?b rdf:type ontology:work_of_art } GROUP BY ?j } . FILTER ( ?p = 5 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q128267
P825
Q502895 Q7725634 Q44539
USER
Which people are lesser number of literary works and temples dedicated to than Joseph ?
(c(Q7725634)|c(Q44539),P825,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q128267
relation P825
type Q7725634
type Q44539
[[{'concept': 'Q7725634'}, {'concept': 'Q44539'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?e < ?d ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:P825 resource:Q128267 . { { ?j rdf:type ontology:Q7725634 } UNION { ?j rdf:type ontology:Q44539 } } } } . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?e ) WHERE { { ?o property:P825 ?c . ?o rdf:type ontology:Q44539 . ?c rdf:type ontology:Q502895 } UNION { ?o property:P825 ?c . ?c rdf:type ontology:Q502895 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?c } }
Joseph
action less
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Joseph
relation dedicated to
type literary work
type temple
[[{'concept': 'literary work'}, {'concept': 'temple'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?e < ?d ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:dedicated_to resource:Joseph . { { ?j rdf:type ontology:literary_work } UNION { ?j rdf:type ontology:temple } } } } . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?e ) WHERE { { ?o property:dedicated_to ?c . ?o rdf:type ontology:temple . ?c rdf:type ontology:common_name } UNION { ?o property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?o rdf:type ontology:literary_work } } GROUP BY ?c } }
[]
common name literary work temple
Q8016 Q937 Q23559
SYSTEM
Winston Churchill, Albert Einstein, Benito Mussolini
Q101698 Q282498 Q181707 Q360420 Q1357149 Q318636 Q249719 Q18684004 Q983142 Q676555 Q11403872 Q85210 Q312747 Q12688 Q336692 Q611078 Q184935 Q65318 Q658756 Q1774929 Q382053 Q572684 Q17812378 Q3190301 Q93373 Q457863 Q150767 Q989 Q157176 Q2288858 Q352978 Q1442 Q2959487 Q972905 Q937 Q935 Q849 Q313737 Q7593283 Q1948037 Q747 Q5858974 Q173061 Q607495 Q235863 Q8605 Q19629510 Q5147053 Q295090 Q18412922 Q351670 Q683792 Q3348840 Q685156 Q888326 Q62068 Q297 Q171411 Q558261 Q87621 Q94316 Q1236699 Q458014 Q11074321 Q93341 Q313548 Q935496 Q461258 Q132684 Q45380 Q4130411 Q4127503 Q14345 Q38337 Q1398314 Q732526 Q65290 Q55398 Q1394 Q22985873 Q1064 Q5561411 Q44039 Q44032 Q20643690 Q9025343 Q37693 Q1666 Q120180 Q41117 Q174231 Q200188 Q417686 Q276404 Q541634 Q181715 Q212850 Q155540 Q878671 Q6699463 Q443559 Q535 Q115550 Q9439 Q539 Q42887 Q272899 Q187550 Q2594000 Q313942 Q464192 Q379753 Q461104 Q298185 Q966298 Q1196817 Q433995 Q271651 Q244852 Q5593 Q183085 Q57240 Q1246313 Q2376505 Q85760 Q160257 Q284560 Q314846 Q41568 Q20173462 Q1429 Q697765 Q25089 Q724153 Q1425 Q1427 Q160614 Q313093 Q32613 Q269867 Q66005 Q191039 Q20644286 Q42511 Q3719466 Q44258 Q18363 Q4340905 Q11633375 Q499022 Q719428 Q237149 Q311080 Q37064 Q7732 Q1288566 Q541694 Q152727 Q29179 Q313970 Q6918007 Q3262373 Q426814 Q7327 Q35548 Q570845 Q231690 Q6527 Q8195163 Q378656 Q174044 Q502943 Q77187 Q5837054 Q9455 Q2573616 Q313196 Q691402 Q369668 Q297483 Q1380238 Q1496 Q1036864 Q102527 Q51056 Q15432686 Q539427 Q462255 Q314802 Q8016 Q645141 Q215333 Q2853967 Q165274 Q700317 Q171977 Q1398704 Q11403852 Q311791 Q501 Q12872638 Q269520 Q204503 Q78657 Q234908 Q71231 Q4893207 Q346 Q727717 Q17308940 Q1132756 Q35149 Q636533 Q11619989 Q154353 Q119957 Q2025679 Q160149 Q382005 Q3770666 Q154232 Q551735 Q3618054 Q349287 Q537553 Q154045 Q1430 Q767 Q552220 Q215572 Q318974 Q3099236 Q157100 Q160435 Q472635 Q92467 Q316658 Q711836 Q3069570 Q6258837 Q1016482 Q709118 Q328341 Q1293541 Q93362 Q538335 Q179971 Q11368835 Q773580 Q164522 Q117710 Q11403867 Q461600 Q712653 Q23559 Q130777 Q130805 Q1268 Q603655 Q352748 Q6108547 Q20643663 Q1153323 Q11107790 Q289215 Q351715 Q33477 Q149727 Q7349 Q468122 Q444380 Q3372785 Q1769 Q1446 Q310462 Q10881970 Q170842 Q12718 Q132232 Q47120 Q87567 Q216873 Q232803 Q238090 Q374467 Q965463 Q3781346 Q174367 Q6203829 Q179858 Q5992912 Q3395811 Q45682 Q472851 Q982696 Q317997 Q284323 Q221263 Q123062 Q181689 Q964608 Q218690 Q469572 Q5984068 Q151803 Q16766274 Q82122 Q299179 Q1407 Q1405 Q836214 Q51673 Q1337419 Q234689 Q41309 Q354786
(c(Q7725634)|c(Q44539),P825,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q128267
relation P825
type Q7725634
type Q44539
[ANSWERS] are lesser number of literary works and temples dedicated to than Joseph
[[{'concept': 'Q7725634'}, {'concept': 'Q44539'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?e < ?d ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:P825 resource:Q128267 . { { ?j rdf:type ontology:Q7725634 } UNION { ?j rdf:type ontology:Q44539 } } } } . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?e ) WHERE { { ?o property:P825 ?c . ?o rdf:type ontology:Q44539 . ?c rdf:type ontology:Q502895 } UNION { ?o property:P825 ?c . ?c rdf:type ontology:Q502895 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?c } }
Gaetano Donizetti Gaspar Melchor de Jovellanos Charles Fourier Serge Lifar Giacomo Bassi Neville Marriner Yui Caroline Weber Julian the Hospitaller Francis of Assisi Kitabatake Akiyoshi Karl Ritter von Stremayr Leopoldo Alas Jean Jaurès Rodolphe Kreutzer António José de Ávila, 1st Duke of Ávila and Bolama Mihai Eminescu Kibitsuhiko-no-mikoto Alof de Wignacourt Ferreolus Antonio Sant'Elia Thomas-Alexandre Dumas Francisco Pintado Fe Just of Lyon Archduke Rudolf of Austria Ingeborg Bronsart von Schellendorf Benjamin Britten John Paul II Władysław Szpilman Moriyoshi-shinnō Antoine Wiertz Septimius Severus Charles Joseph Lenoir Léon Goossens Albert Einstein Isaac Newton François Villon Drusus Julius Caesar St Govan Moritz Reichsgraf von Fries Pierre Corneille Fermín Canella Secades Syd Barrett Giuseppe De Nittis Genevieve Simón Bolívar Saint Goustan Collet Barker Léon Gambetta Johann Georg von Browne-Camus Komitas Vardapet Kitabatake Chikafusa Octave Gréard Karl Alois, Prince Lichnowsky Bob Wills Princess Augusta of Hesse-Kassel Diego Velázquez Oda Nobunaga Saint Servatius Antonie Brentano Kikuchi Taketoki Giuseppe Sinigaglia Ottaviano Petrucci Kaneyoshi-shinnō Miles Davis Absalon Abundius Yamato Takeru Saint-John Perse John Lewis Anastasia Vyaltseva Ferrutio Roh Moo-hyun Alexandre Dumas Paul Ladmirault José Guadalupe Posada Constantine, Prince of Hohenzollern-Hechingen Bernadette Soubirous Vladimir Lenin Elizabeth Jean Scott Alessandro Manzoni José Tartiere y Lenegre Ludwig II of Bavaria Egon Schiele Claude-Emma Debussy Luis Riera Posada Paul Gauguin Jacques Brel Alexander III of Russia Kim Il-sung Meiji Jimmu Nazarius Takeda Shingen Bobby Bland Thérèse of Lisieux Vitus Hans von Bülow Untash-Napirisha Ludwika Jędrzejewicz Elizabeth Sprague Coolidge Victor Hugo Nicholas of Flüe Queen Victoria Giuseppe Diego Garibaldi Pacheco Clement I Sebastian of Portugal Toyotomi Hideyoshi Diego Brosset Go-Daigo Vladimir Stasov Benito Jerónimo Feijóo y Montenegro Jaroslav Vrchlický Samuel Sánchez Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Dorothea von Ertmann Edith Cowan Giulietta Guicciardi Wanda Landowska Manuel Puig Emperor Kammu Michel de Montaigne Natalia Vladimirovna Trouhanowa Antoninus Pius Rudolf Maister Woody Allen Jesse Lauriston Livermore Trajan Hadrian Skanderbeg Herman Boerhaave Minamoto no Yoshiie Odile of Alsace Margrave Christian Ludwig of Brandenburg-Schwedt Germanicus Mathilde Zemlinsky H. G. Wells Edmund Clarence Stedman Basil of Caesarea Alfonso XIII of Spain Bridget O'Connor Prince Toyokiirihiko Emmanuel Fremiet William Michael Rossetti Ida Rubinstein Uesugi Kenshin Alexander Fleming Louis XVI of France Len Lye Joseph Merk Frederick William, Elector of Brandenburg Francisco Franco Anton Arensky Motoharu Sano Louis Jou Emmanuel de Rohan-Polduc Yuri Gagarin Paul Cézanne Joseph Franz von Lobkowitz B. R. Ambedkar Jean-Jacques Rousseau Alfonso Iglesias Saint Pantaleon Alexander Nevsky Andrey Razumovsky Ferdinand von Hompesch zu Bolheim Ernesto Winter Blanco Vallabhbhai Patel Eric Fletcher Waters Louis Desaix Philip IV of Spain William Osler Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Kitabatake Akiie Robert Falcon Scott Franz Joseph I of Austria Georges Vallet Johann Jacob Bach Marino Lejarreta Tenji Winston Churchill Armando Palacio Valdés Carl Czerny Antoine Gailleton Jacques Prévert Yasuhito Chichibu Tokugawa Ieyasu Alexander Wilhelm Gottschalg Kitabatake Morichika Nikolai Rubinstein Charles Baudelaire David of Euboea Shōken Pablo Martín Melitón de Sarasate y Navascués Alfred Grünfeld Nezami| Charles the Bald Sabino Fernández Campo, 1st Count of Latores Louis IX of France Ramón Pérez de Ayala James William Davison Sakai Tadatsugu Wilhelm Röntgen Pedro Rodríguez, Conde de Campomanes Prince Uji no Wakiiratsuko François Arago Alexis Roland-Manuel Albert Thomas Mark Rothko Sugawara no Michizane Giuseppe Ghislanzoni Alexander Suvorov Edgar Quinet Annibale Cressoni Sutoku Ludwig Schuncke Alexei Nikolaevich Marcus Aurelius Antoninus Stéphane Mallarmé Giuseppe Zanardelli Felix Nussbaum Vincent of Saragossa Minamoto no Tsunemoto Margaret of Austria, Duchess of Savoy Gerrit Rietveld Gustav, Prince of Vasa Theodor Avé-Lallemant Go-Toba Philippe Pot Fernando de Valdés y Salas John Thomas Stanley, 1st Baron Stanley of Alderley Burkhard Nadolny Tim Birkin Robert Smithson Saint Quentin Archduke Maximilian Francis of Austria Marianne Kirchgessner Chūai Shizuko Nogi Gianni Brera Hieda no Are Lorin Maazel Kitabatake Akinobu Teréz Brunszvik Henri Vernes Benito Mussolini Kazimir Malevich George I of Great Britain Frédéric Chopin Fidelis of Como John Spencer Ricardo Vázquez-Prada Blanco Hélène Bardac Danguolė Rasalaitė Kristjan Cavazza Alejandro Boliviano Fruela I of Asturias Eugène Delacroix Saint Giles Joseph Haydn Nogi Maresuke Imogen Holst Paulino Vicente (padre) Alexander Severus Caracalla Saigō Takamori Itsuse no Mikoto Sergei Koroliov Auguste Comte Clara Schumann David Oistrakh Anton Rubinstein Pierre Puvis de Chavannes Empress Jingu Sholem Aleichem Gabriel of Our Lady of Sorrows Rumbold of Mechelen Aida Lafuente Penaos Djoser Jiří Tancibudek Urho Kekkonen Manuel Fernández Avello Dolores Medio Jean Sibelius Count Ferdinand Ernst Gabriel von Waldstein Bassel Khartabil Ōjin Eulalia of Mérida Philibert II, Duke of Savoy Jacques Necker Blind Willie McTell Lucien Pissarro Raymond Queneau John Nicholson Luis Noval Ferrao Piet Mondrian Michelle Vian Jean-Baptiste de Lamarck Kōmei Tiberius Augustus Princess Tōchi Mark Antony Emilio Alarcos Llorach Monica of Hippo Franz Liszt Jean-Louis-Ernest Meissonier
Winston Churchill, Albert Einstein and Benito Mussolini are lesser number of literary works and temples dedicated to than Joseph
Winston Churchill Albert Einstein Benito Mussolini
action less
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Joseph
relation dedicated to
type literary work
type temple
[[{'concept': 'literary work'}, {'concept': 'temple'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?e < ?d ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:dedicated_to resource:Joseph . { { ?j rdf:type ontology:literary_work } UNION { ?j rdf:type ontology:temple } } } } . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?e ) WHERE { { ?o property:dedicated_to ?c . ?o rdf:type ontology:temple . ?c rdf:type ontology:common_name } UNION { ?o property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?o rdf:type ontology:literary_work } } GROUP BY ?c } }
[]