Simple Question (Direct)
Simple Question
Q16011334
P69
Q3918
USER
What is the university where Harry H. Peterson was educated ?
(Q16011334,P69,c(Q3918))
action filter_type
action find
entity Q16011334
relation P69
type Q3918
['Q16011334', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?f WHERE { resource:Q16011334 property:P69 ?f . ?f rdf:type ontology:Q3918 }
Harry H. Peterson
action filter_type
action find
entity Harry H. Peterson
relation educated at
type university
['Harry H. Peterson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?f WHERE { resource:Harry_H._Peterson property:educated_at ?f . ?f rdf:type ontology:university }
[]
university
Q7895798
SYSTEM
University of Minnesota Law School
Q7895798
(Q16011334,P69,c(Q3918))
action filter_type
action find
entity Q16011334
relation P69
type Q3918
The university Harry H. is a [ANSWER]
['Q16011334', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?f WHERE { resource:Q16011334 property:P69 ?f . ?f rdf:type ontology:Q3918 }
University of Minnesota Law School
The university Harry H. is a University of Minnesota Law School
University of Minnesota Law School
action filter_type
action find
entity Harry H. Peterson
relation educated at
type university
['Harry H. Peterson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?f WHERE { resource:Harry_H._Peterson property:educated_at ?f . ?f rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16011334
P1196
Q1931388
USER
What manner did that person die ?
(Q7895798,P1196,c(Q1931388))
action filter_type
action find
entity Q16011334
relation P1196
type Q1931388
['Q7895798', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q16011334 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
Harry H. Peterson
action filter_type
action find
entity Harry H. Peterson
relation manner of death
type cause of death
['University of Minnesota Law School', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Harry_H._Peterson property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q7895798,P1196,c(Q1931388))
action filter_type
action find
entity Q16011334
relation P1196
type Q1931388
That person died in [ANSWER]
['Q7895798', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q16011334 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Harry H. Peterson
relation manner of death
type cause of death
['University of Minnesota Law School', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Harry_H._Peterson property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16011334
P21
Q290
USER
Which sex does that person possess ?
(Q3739104,P21,c(Q290))
action filter_type
action find
entity Q16011334
relation P21
type Q290
['Q3739104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q16011334 property:P21 ?t . ?t rdf:type ontology:Q290 }
Harry H. Peterson
action filter_type
action find
entity Harry H. Peterson
relation gender
type sex
['natural causes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Harry_H._Peterson property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3739104,P21,c(Q290))
action filter_type
action find
entity Q16011334
relation P21
type Q290
That person possesses a [ANSWER]
['Q3739104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q16011334 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Harry H. Peterson
relation gender
type sex
['natural causes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Harry_H._Peterson property:gender ?t . ?t rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3739104
P1196
Q1806324 Q11424
USER
How many working dogs or films have natural causes as type of death ?
(c(Q1806324),P1196,Q3739104) (c(Q11424),P1196,Q3739104)
action count
action union
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q1806324
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q11424
[{'concept': 'Q1806324'}, 'P1196', 'Q3739104'] [{'concept': 'Q11424'}, 'P1196', 'Q3739104']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:Q1806324 . ?f property:P1196 resource:Q3739104 } UNION { ?f property:P1196 resource:Q3739104 . ?f rdf:type ontology:Q11424 } }
natural causes
action count
action union
action filter_type
action find_reverse
entity natural causes
relation manner of death
type working dog
action filter_type
action find_reverse
entity natural causes
relation manner of death
type film
[{'concept': 'working dog'}, 'manner of death', 'natural causes'] [{'concept': 'film'}, 'manner of death', 'natural causes']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:working_dog . ?f property:manner_of_death resource:natural_causes } UNION { ?f property:manner_of_death resource:natural_causes . ?f rdf:type ontology:film } }
[]
working dog film
SYSTEM
2
Q667056 Q200661
(c(Q1806324),P1196,Q3739104) (c(Q11424),P1196,Q3739104)
action count
action union
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q1806324
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q11424
[ANSWER]
[{'concept': 'Q1806324'}, 'P1196', 'Q3739104'] [{'concept': 'Q11424'}, 'P1196', 'Q3739104']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:Q1806324 . ?f property:P1196 resource:Q3739104 } UNION { ?f property:P1196 resource:Q3739104 . ?f rdf:type ontology:Q11424 } }
Barry Juan Rulfo
2
action count
action union
action filter_type
action find_reverse
entity natural causes
relation manner of death
type working dog
action filter_type
action find_reverse
entity natural causes
relation manner of death
type film
[{'concept': 'working dog'}, 'manner of death', 'natural causes'] [{'concept': 'film'}, 'manner of death', 'natural causes']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:working_dog . ?f property:manner_of_death resource:natural_causes } UNION { ?f property:manner_of_death resource:natural_causes . ?f rdf:type ontology:film } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q558148
P825
Q502895 Q207628 Q41176
USER
How many people are approximately the same number of musical compositions and buildings dedicated to as Leonard of Noblac ?
(c(Q207628)|c(Q41176),P825,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q558148
relation P825
type Q207628
type Q41176
[[{'concept': 'Q207628'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:P825 ?c . ?c rdf:type ontology:Q502895 . ?e rdf:type ontology:Q207628 } UNION { ?e property:P825 ?c . ?c rdf:type ontology:Q502895 . ?e rdf:type ontology:Q41176 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:Q207628 } UNION { ?q rdf:type ontology:Q41176 } } . ?q property:P825 resource:Q558148 } } . FILTER ( ?v = ?r ) }
Leonard of Noblac
action count
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action count
action filter_multi_types
action find_reverse
entity Leonard of Noblac
relation dedicated to
type musical composition
type building
[[{'concept': 'musical composition'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?e rdf:type ontology:musical_composition } UNION { ?e property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?e rdf:type ontology:building } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:musical_composition } UNION { ?q rdf:type ontology:building } } . ?q property:dedicated_to resource:Leonard_of_Noblac } } . FILTER ( ?v = ?r ) }
[]
common name musical composition building
SYSTEM
389
Q101698 Q152457 Q7402197 Q282498 Q4304989 Q4452364 Q7859824 Q181707 Q360420 Q1357149 Q318636 Q4218975 Q249719 Q18684004 Q534049 Q16846308 Q314700 Q676555 Q392 Q312747 Q12688 Q336692 Q770633 Q611078 Q207113 Q20748855 Q44344 Q16202312 Q184935 Q658756 Q183126 Q382053 Q88927 Q572684 Q17812378 Q93373 Q457863 Q457903 Q43675 Q2575112 Q989 Q3109901 Q157176 Q44047 Q352978 Q1442 Q2959487 Q972905 Q448890 Q161775 Q937 Q935 Q48438 Q849 Q283447 Q313737 Q2974965 Q747 Q5858974 Q173061 Q607495 Q9200 Q235863 Q8605 Q5147053 Q43999 Q295090 Q18412922 Q351670 Q3348840 Q2639031 Q685156 Q888326 Q62068 Q297 Q2959955 Q558261 Q87621 Q44269 Q1236699 Q458014 Q7683954 Q7401372 Q93341 Q4218947 Q442516 Q313548 Q935496 Q151967 Q132684 Q45380 Q192236 Q4130411 Q14345 Q38337 Q7446899 Q1398314 Q732526 Q200895 Q65290 Q1394 Q33923 Q22985873 Q43945 Q1064 Q4275175 Q1284971 Q5561411 Q612390 Q44032 Q20643690 Q9025343 Q37693 Q704817 Q1666 Q120180 Q41117 Q23900430 Q170547 Q43399 Q417686 Q276404 Q541634 Q244383 Q244380 Q460876 Q181715 Q212850 Q5249703 Q8023 Q155540 Q381815 Q878671 Q6699463 Q535 Q2381536 Q115550 Q9439 Q539 Q42887 Q272899 Q170726 Q2594000 Q464192 Q379753 Q461104 Q298185 Q271651 Q244852 Q5593 Q183085 Q57240 Q737198 Q466428 Q1246313 Q2376505 Q85760 Q284560 Q41568 Q20173462 Q1429 Q697765 Q25089 Q20683560 Q724153 Q1425 Q1427 Q160614 Q369691 Q313093 Q43982 Q44248 Q1078192 Q269867 Q191039 Q454840 Q20644286 Q236326 Q42511 Q3719466 Q44258 Q18363 Q3401960 Q163900 Q4340905 Q7179512 Q499022 Q719428 Q237149 Q17590 Q6695484 Q37064 Q160445 Q5623897 Q7732 Q1288566 Q541694 Q152727 Q29179 Q313970 Q6918007 Q3262373 Q426814 Q7327 Q35548 Q231690 Q6527 Q8195163 Q18535501 Q378656 Q174044 Q2361972 Q44024 Q44020 Q77187 Q6955878 Q5837054 Q9455 Q2573616 Q313196 Q691402 Q369668 Q1714244 Q297483 Q1380238 Q1496 Q102527 Q3392202 Q15432686 Q3398098 Q539427 Q462255 Q1088014 Q20757530 Q2454699 Q8016 Q8018 Q645141 Q215333 Q272280 Q165479 Q2853967 Q165274 Q316599 Q1398704 Q5318618 Q13132095 Q311791 Q4161262 Q167477 Q501 Q297742 Q2093405 Q12872638 Q19595674 Q2722964 Q204503 Q78657 Q234908 Q71231 Q7402252 Q4893207 Q27036912 Q727717 Q17308940 Q35149 Q23892327 Q636533 Q154353 Q2360522 Q13131020 Q119957 Q2025679 Q160149 Q3401592 Q3770666 Q154232 Q551735 Q354519 Q537553 Q154045 Q3399340 Q457433 Q1430 Q767 Q552220 Q215572 Q44015 Q318974 Q128267 Q157100 Q160435 Q3398315 Q23894387 Q23991012 Q711836 Q3069570 Q6258837 Q1016482 Q709118 Q328341 Q1293541 Q581537 Q133704 Q93362 Q773580 Q117710 Q461600 Q712653 Q23559 Q7401328 Q130777 Q130805 Q328804 Q1268 Q504529 Q603655 Q352748 Q163366 Q6108547 Q20643663 Q6804706 Q1153323 Q17509259 Q11107790 Q43669 Q18126070 Q558148 Q289215 Q351715 Q33477 Q7349 Q16859956 Q1834624 Q503886 Q444380 Q1183310 Q360798 Q3372785 Q1769 Q1446 Q170842 Q12718 Q132232 Q47120 Q63070 Q87567 Q216873 Q238090 Q374467 Q965463 Q3781346 Q174367 Q6203829 Q680538 Q894757 Q5992912 Q3395811 Q7110271 Q45682 Q472851 Q982696 Q284323 Q221263 Q51885 Q123062 Q181689 Q964608 Q218690 Q80513 Q469572 Q5984068 Q151803 Q16766274 Q1293017 Q743830 Q3405091 Q16636868 Q82122 Q1407 Q1405 Q331697 Q51673 Q1337419 Q234689 Q13132105 Q3305109 Q5623522 Q354786
(c(Q207628)|c(Q41176),P825,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q558148
relation P825
type Q207628
type Q41176
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:P825 ?c . ?c rdf:type ontology:Q502895 . ?e rdf:type ontology:Q207628 } UNION { ?e property:P825 ?c . ?c rdf:type ontology:Q502895 . ?e rdf:type ontology:Q41176 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:Q207628 } UNION { ?q rdf:type ontology:Q41176 } } . ?q property:P825 resource:Q558148 } } . FILTER ( ?v = ?r ) }
Gaetano Donizetti Saint Roch Saint Sulien Gaspar Melchor de Jovellanos Mawgan Tathan Tyfrydog Charles Fourier Serge Lifar Giacomo Bassi Neville Marriner Saint Keyne Yui Caroline Weber Saint Petroc Saint Rhian Joachim Francis of Assisi Bob Dylan Leopoldo Alas Jean Jaurès Rodolphe Kreutzer Padarn António José de Ávila, 1st Duke of Ávila and Bolama Hippolytus Llawddog Hilary of Poitiers Nidan Mihai Eminescu Alof de Wignacourt Ramakrishna Antonio Sant'Elia Louis de Montfort Thomas-Alexandre Dumas Francisco Pintado Fe Archduke Rudolf of Austria Ingeborg Bronsart von Schellendorf Saint Bavo Philip the Apostle Winefride John Paul II Gohard Władysław Szpilman James, son of Alphaeus Antoine Wiertz Septimius Severus Charles Joseph Lenoir Léon Goossens Charlotte Saunders Cushman Stephen Albert Einstein Isaac Newton Saint George François Villon Lambert of Maastricht Drusus Julius Caesar Clair of Nantes Pierre Corneille Fermín Canella Secades Syd Barrett Giuseppe De Nittis Paul Genevieve Simón Bolívar Collet Barker James Léon Gambetta Johann Georg von Browne-Camus Komitas Vardapet Octave Gréard Illtud Karl Alois, Prince Lichnowsky Bob Wills Princess Augusta of Hesse-Kassel Diego Velázquez Charles Panzéra Saint Servatius Antonie Brentano Saint Nicholas Giuseppe Sinigaglia Ottaviano Petrucci Tanwg Iestyn Miles Davis Ceidio ap Einion Germanus of Auxerre Absalon Abundius Saint Blaise Saint-John Perse John Lewis Thomas Becket Anastasia Vyaltseva Roh Moo-hyun Alexandre Dumas Seiriol Paul Ladmirault José Guadalupe Posada Agatha of Sicily Constantine, Prince of Hohenzollern-Hechingen Vladimir Lenin Peter Elizabeth Jean Scott Jude the Apostle Alessandro Manzoni Maethlu Victor Maurus José Tartiere y Lenegre Beuno Egon Schiele Claude-Emma Debussy Luis Riera Posada Paul Gauguin Gorgonius Jacques Brel Alexander III of Russia Kim Il-sung Gwenog Anthony the Great Andrew Nazarius Takeda Shingen Bobby Bland Rose of Lima Saint Denis Lenny Bruce Thérèse of Lisieux Vitus Decuman Nelson Mandela Hans von Bülow Edmund the Martyr Untash-Napirisha Ludwika Jędrzejewicz Victor Hugo Brynach Nicholas of Flüe Queen Victoria Giuseppe Diego Garibaldi Pacheco Clement I Sebastian of Portugal Enrico Caruso Diego Brosset Vladimir Stasov Benito Jerónimo Feijóo y Montenegro Jaroslav Vrchlický Samuel Sánchez Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Kevin of Glendalough Philomena Dorothea von Ertmann Edith Cowan Giulietta Guicciardi Manuel Puig Michel de Montaigne Natalia Vladimirovna Trouhanowa Antoninus Pius Rudolf Maister Woody Allen Saeran Jesse Lauriston Livermore Trajan Hadrian Skanderbeg Saint Ursula Herman Boerhaave Bartholomew the Apostle Jerome Dubricius Odile of Alsace Germanicus William Cullen Bryant Mathilde Zemlinsky Columba H. G. Wells Edmund Clarence Stedman Basil of Caesarea Alfonso XIII of Spain Fagan Saint Francis Xavier Bridget O'Connor Peulan Emmanuel Fremiet William Michael Rossetti Ida Rubinstein Lawrence of Rome Trillo Alexander Fleming Saint Boniface Gwynno 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 B. R. Ambedkar Jean-Jacques Rousseau Alfonso Iglesias Celynnin Saint Pantaleon Alexander Nevsky Winwaloe Athanasius of Alexandria Saint Matthias Ferdinand von Hompesch zu Bolheim Defendens Ernesto Winter Blanco Vallabhbhai Patel Eric Fletcher Waters Louis Desaix Philip IV of Spain William Osler Justin the Confessor Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Robert Falcon Scott Plechelm Georges Vallet Sadwrn Johann Jacob Bach Marino Lejarreta Tewdrig Madame Autard de Bragard Cadwaladr Winston Churchill Augustine of Hippo Armando Palacio Valdés Carl Czerny Æthelwold Saint Patrick Antoine Gailleton Jacques Prévert Saint Maurice Alexander Wilhelm Gottschalg Dyfodwg Tybïe Nikolai Rubinstein Dyfnan Anthony of Padua Charles Baudelaire Margaret the Virgin Digain David of Euboea Tyfei Albinus of Angers Pablo Martín Melitón de Sarasate y Navascués Alfred Grünfeld Nezami| Charles the Bald Twrog Sabino Fernández Campo, 1st Count of Latores Cwyfan Ramón Pérez de Ayala James William Davison Wilhelm Röntgen Morhaiarn Pedro Rodríguez, Conde de Campomanes François Arago Anna Petrovna Kern Rhidian Alexis Roland-Manuel Albert Thomas Mark Rothko Cynllo Giuseppe Ghislanzoni Alexander Suvorov Edgar Quinet Charley Patton Ludwig Schuncke Alexei Nikolaevich Cybi Sara Dylan Marcus Aurelius Antoninus Stéphane Mallarmé Giuseppe Zanardelli Felix Nussbaum John the Apostle Vincent of Saragossa Joseph Margaret of Austria, Duchess of Savoy Gerrit Rietveld Tudno Rhwydrus Senwyr Philippe Pot Fernando de Valdés y Salas John Thomas Stanley, 1st Baron Stanley of Alderley Burkhard Nadolny Tim Birkin Robert Smithson Saint Quentin Saint Cadfan Martin of Tours Archduke Maximilian Francis of Austria Gianni Brera Lorin Maazel Teréz Brunszvik Henri Vernes Benito Mussolini Gredifael Kazimir Malevich George I of Great Britain John the Evangelist Frédéric Chopin Theodore of Tarsus Fidelis of Como John Spencer Ezra Pound Ricardo Vázquez-Prada Blanco Hélène Bardac Mechell Danguolė Rasalaitė Saint Elli Kristjan Cavazza Thomas the Apostle Isan Leonard of Noblac Alejandro Boliviano Fruela I of Asturias Eugène Delacroix Joseph Haydn Cawrdaf Gummarus Sterling Morrison Imogen Holst Deiniol Saint Eligius Paulino Vicente (padre) Alexander Severus Caracalla Sergei Koroliov Auguste Comte Clara Schumann David Oistrakh Mary Magdalene Anton Rubinstein Pierre Puvis de Chavannes Sholem Aleichem Gabriel of Our Lady of Sorrows Rumbold of Mechelen Aida Lafuente Penaos Djoser Jiří Tancibudek Saint Teilo Botwulf of Thorney Manuel Fernández Avello Dolores Medio Oudoceus Jean Sibelius Count Ferdinand Ernst Gabriel von Waldstein Bassel Khartabil Eulalia of Mérida Philibert II, Duke of Savoy Thecla Jacques Necker Blind Willie McTell Lucien Pissarro Raymond Queneau Saint Cecilia John Nicholson Luis Noval Ferrao Piet Mondrian Michelle Vian Tysilio Wulfram of Sens Dyfan Crallo Jean-Baptiste de Lamarck Tiberius Augustus Saint David Mark Antony Emilio Alarcos Llorach Monica of Hippo Tysul Donatus of Evorea Gwenllwyfo Jean-Louis-Ernest Meissonier
389
action count
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action count
action filter_multi_types
action find_reverse
entity Leonard of Noblac
relation dedicated to
type musical composition
type building
[[{'concept': 'musical composition'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?e rdf:type ontology:musical_composition } UNION { ?e property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?e rdf:type ontology:building } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:musical_composition } UNION { ?q rdf:type ontology:building } } . ?q property:dedicated_to resource:Leonard_of_Noblac } } . FILTER ( ?v = ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q313228
P1441
Q234460 Q15961987 Q502895
USER
How many people are featured in greater number of texts or television genres than Josiah ?
(c(Q502895),P1441,c(Q234460)|c(Q15961987))
action count
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q313228
relation P1441
type Q234460
type Q15961987
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:Q234460 ) ( ontology:Q15961987 ) } . ?s rdf:type ?v } GROUP BY ?h } . FILTER ( ?p > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:Q15961987 } UNION { ?q rdf:type ontology:Q234460 } } . resource:Q313228 property:P1441 ?q } } }
Josiah
action count
action greater
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Josiah
relation present in work
type text
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:text ) ( ontology:television_genre ) } . ?s rdf:type ?v } GROUP BY ?h } . FILTER ( ?p > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:television_genre } UNION { ?q rdf:type ontology:text } } . resource:Josiah property:present_in_work ?q } } }
[]
text television genre common name
SYSTEM
5
Q1353836 Q9077 Q41370 Q81422 Q9181
(c(Q502895),P1441,c(Q234460)|c(Q15961987))
action count
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q313228
relation P1441
type Q234460
type Q15961987
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:Q234460 ) ( ontology:Q15961987 ) } . ?s rdf:type ?v } GROUP BY ?h } . FILTER ( ?p > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:Q15961987 } UNION { ?q rdf:type ontology:Q234460 } } . resource:Q313228 property:P1441 ?q } } }
Hrothgar Moses David Noah Abraham
5
action count
action greater
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Josiah
relation present in work
type text
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:text ) ( ontology:television_genre ) } . ?s rdf:type ?v } GROUP BY ?h } . FILTER ( ?p > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { { ?q rdf:type ontology:television_genre } UNION { ?q rdf:type ontology:text } } . resource:Josiah property:present_in_work ?q } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2170784
P1441
Q234460 Q15961987 Q502895
USER
And what about Anund Uppsale?
(c(Q502895),P1441,c(Q234460)|c(Q15961987))
action count
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q2170784
relation P1441
type Q234460
type Q15961987
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?c ) { ( ontology:Q234460 ) ( ontology:Q15961987 ) } . ?z rdf:type ?c } GROUP BY ?j } . FILTER ( ?a > ?n ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q2170784 property:P1441 ?p . { { ?p rdf:type ontology:Q234460 } UNION { ?p rdf:type ontology:Q15961987 } } } } }
Anund Uppsale
action count
action greater
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Anund Uppsale
relation present in work
type text
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?c ) { ( ontology:text ) ( ontology:television_genre ) } . ?z rdf:type ?c } GROUP BY ?j } . FILTER ( ?a > ?n ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Anund_Uppsale property:present_in_work ?p . { { ?p rdf:type ontology:text } UNION { ?p rdf:type ontology:television_genre } } } } }
[]
text television genre common name
SYSTEM
128
Q41863 Q1143157 Q1341397 Q194064 Q466687 Q321469 Q18699270 Q319116 Q18699272 Q12591 Q213633 Q221514 Q30914 Q937827 Q4057937 Q214648 Q18699312 Q211663 Q176125 Q8423 Q1938388 Q2040793 Q125102 Q954820 Q244912 Q313216 Q313214 Q645796 Q361636 Q205523 Q1281177 Q1353836 Q807236 Q2256348 Q1686571 Q1675214 Q188794 Q844433 Q28730 Q200902 Q3798672 Q126689 Q9077 Q145746 Q463934 Q721295 Q1403627 Q1133523 Q1133337 Q41370 Q200637 Q81422 Q3187975 Q2116944 Q3783913 Q946939 Q888890 Q1771358 Q272277 Q460763 Q205372 Q717814 Q830183 Q6577515 Q63070 Q7493584 Q1300996 Q851686 Q1333225 Q40662 Q206238 Q400294 Q922184 Q156328 Q3785031 Q1768161 Q6323112 Q171724 Q889694 Q8027483 Q816397 Q2038223 Q313415 Q360378 Q363660 Q665541 Q1516550 Q840401 Q37085 Q109920 Q536019 Q213850 Q74891 Q45090 Q336832 Q1941782 Q1542853 Q184273 Q107626 Q205365 Q32295 Q477527 Q18699310 Q62788 Q313421 Q313423 Q362021 Q262766 Q9181 Q225198 Q313228 Q536485 Q273517 Q3752551 Q671872 Q16845969 Q192785 Q308320 Q1030008 Q319049 Q18699300 Q18699268 Q229702 Q574641 Q2590260 Q599907 Q282220 Q313237
(c(Q502895),P1441,c(Q234460)|c(Q15961987))
action count
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q2170784
relation P1441
type Q234460
type Q15961987
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?c ) { ( ontology:Q234460 ) ( ontology:Q15961987 ) } . ?z rdf:type ?c } GROUP BY ?j } . FILTER ( ?a > ?n ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q2170784 property:P1441 ?p . { { ?p rdf:type ontology:Q234460 } UNION { ?p rdf:type ontology:Q15961987 } } } } }
Halga Jair Michal Ezekiel Damaris Abishag Achim Nathan Eliud Nebuchadnezzar II Deborah Manoah Ahaz Delilah Adoniram Samson Jacob Rehoboam Gideon Cyrus the Great Miriam Reu Necho II Yael Hezekiah Uzziah Ahaziah of Judah Ibzan Amnon Zipporah Beowulf Hrothgar Barak Shealtiel Jehu Ithamar Isaiah Kenan Saul Shem Ingeld Jehoshaphat Moses Joseph Athaliah Jezebel Hrethel Jephthah Abner David Japheth Noah Judith Wealhþeow Heardred Phut Nahor Salomon Bathsheba Benjamin Absalom Hadadezer Eve Samuel Mary Magdalene Sheleph Ehud Mephibosheth Elon John the Baptist Elisha Ahitophel Caleb Manasseh of Judah Heoroweard Islamic views on Abraham Nahor Daniel Hygelac Wise woman of Abel Ben-Hadad I Amminadab Asa of Judah Adonijah Elimelek Hosea Shamgar Laban Solomon Jotham of Judah Ecgþeow Amos Jonathan Jesse Jehoahaz of Judah Nadabe Alphaeus Zedekiah Seth Cain Michael J. Massimino Amram Matthan Jethro Abel Amon of Judah Eli Junia Abraham Belshazzar Josiah Othniel Abijah of Judah Freawaru Isaac Hygd Goliath Abdon Tamar Jeconiah Eleazar Zadok Ham Balaam Ahijah the Shilonite Baruch ben Neriah Judah Amaziah of Judah
128
action count
action greater
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Anund Uppsale
relation present in work
type text
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?c ) { ( ontology:text ) ( ontology:television_genre ) } . ?z rdf:type ?c } GROUP BY ?j } . FILTER ( ?a > ?n ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Anund_Uppsale property:present_in_work ?p . { { ?p rdf:type ontology:text } UNION { ?p rdf:type ontology:television_genre } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3768181 Q16011334
P102
Q7210356
USER
Which political organizations do Harry H. Peterson or Giovanni Starita belong to ?
OR((Q16011334,P102,c(Q7210356)), (Q3768181,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q16011334
relation P102
action find
entity Q3768181
relation P102
type Q7210356
{'OR': [['Q16011334', 'P102', {'concept': 'Q7210356'}], ['Q3768181', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?i WHERE { { ?x property:P102 ?i . VALUES ( ?x ) { ( resource:Q16011334 ) ( resource:Q3768181 ) } } . ?i rdf:type ontology:Q7210356 }
Giovanni Starita Harry H. Peterson
action filter_type
action union
action find
entity Harry H. Peterson
relation member of political party
action find
entity Giovanni Starita
relation member of political party
type political organization
{'OR': [['Harry H. Peterson', 'member of political party', {'concept': 'political organization'}], ['Giovanni Starita', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?i WHERE { { ?x property:member_of_political_party ?i . VALUES ( ?x ) { ( resource:Harry_H._Peterson ) ( resource:Giovanni_Starita ) } } . ?i rdf:type ontology:political_organization }
[]
political organization
Q29552 Q815348
SYSTEM
Democratic Party, Christian Democracy
Q29552 Q815348
OR((Q16011334,P102,c(Q7210356)), (Q3768181,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q16011334
relation P102
action find
entity Q3768181
relation P102
type Q7210356
[ANSWERS] do Harry H. Peterson or Giovanni Starita belong to
{'OR': [['Q16011334', 'P102', {'concept': 'Q7210356'}], ['Q3768181', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?i WHERE { { ?x property:P102 ?i . VALUES ( ?x ) { ( resource:Q16011334 ) ( resource:Q3768181 ) } } . ?i rdf:type ontology:Q7210356 }
Democratic Party Christian Democracy
Democratic Party and Christian Democracy do Harry H. Peterson or Giovanni Starita belong to
Democratic Party Christian Democracy
action filter_type
action union
action find
entity Harry H. Peterson
relation member of political party
action find
entity Giovanni Starita
relation member of political party
type political organization
{'OR': [['Harry H. Peterson', 'member of political party', {'concept': 'political organization'}], ['Giovanni Starita', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?i WHERE { { ?x property:member_of_political_party ?i . VALUES ( ?x ) { ( resource:Harry_H._Peterson ) ( resource:Giovanni_Starita ) } } . ?i rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16011334
P27
Q15617994
USER
Which administrative territory is Harry H. Peterson a civilian of ?
(Q16011334,P27,c(Q15617994))
action filter_type
action find
entity Q16011334
relation P27
type Q15617994
['Q16011334', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q16011334 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Harry H. Peterson
action filter_type
action find
entity Harry H. Peterson
relation country of citizenship
type designation for an administrative territorial entity
['Harry H. Peterson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Harry_H._Peterson property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q16011334,P27,c(Q15617994))
action filter_type
action find
entity Q16011334
relation P27
type Q15617994
The [ANSWER] is Harry H. Peterson a civilian of
['Q16011334', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q16011334 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
The United States of America is Harry H. Peterson a civilian of
United States of America
action filter_type
action find
entity Harry H. Peterson
relation country of citizenship
type designation for an administrative territorial entity
['Harry H. Peterson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Harry_H._Peterson property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P6
Q502895
USER
How many people are the head of government of that administrative territory ?
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Q30 property:P6 ?s . ?s rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:United_States_of_America property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
SYSTEM
44
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
[ANSWER]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Q30 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
44
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:United_States_of_America property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with atmost 28 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?u <= 28 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?u <= 28 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q230 Q159
SYSTEM
United States of America, Georgia, Russia
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[ANSWERS] have a diplomatic relationship with atmost 28 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?u <= 28 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
United States of America, Georgia and Russia have a diplomatic relationship with atmost 28 administrative territories
United States of America Georgia Russia
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?u <= 28 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have ambassadorial relations with those administrative territories ?
(Q183,P530,Q30) (Q183,P530,Q230) (Q183,P530,Q159)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q30'] ['Q183', 'P530', 'Q230'] ['Q183', 'P530', 'Q159']
ASK WHERE { VALUES ( ?h ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q183 property:P530 ?h }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'United States of America'] ['Germany', 'diplomatic relation', 'Georgia'] ['Germany', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?h ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . resource:Germany property:diplomatic_relation ?h }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q30) (Q183,P530,Q230) (Q183,P530,Q159)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q30'] ['Q183', 'P530', 'Q230'] ['Q183', 'P530', 'Q159']
ASK WHERE { VALUES ( ?h ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q183 property:P530 ?h }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'United States of America'] ['Germany', 'diplomatic relation', 'Georgia'] ['Germany', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?h ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . resource:Germany property:diplomatic_relation ?h }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q159 Q5656764 Q544833
P47
Q15617994
USER
Is Russia next to the border of Hare Warren and Boxberg ?
(Q159,P47,Q5656764) (Q159,P47,Q544833)
action is_in
entity Q159
action intersection
action find_reverse
entity Q5656764
relation P47
action find_reverse
entity Q544833
relation P47
['Q159', 'P47', 'Q5656764'] ['Q159', 'P47', 'Q544833']
ASK WHERE { resource:Q159 property:P47 resource:Q5656764 . resource:Q159 property:P47 resource:Q544833 }
Russia Hare Warren Boxberg
action is_in
entity Russia
action intersection
action find_reverse
entity Hare Warren
relation shares border with
action find_reverse
entity Boxberg
relation shares border with
['Russia', 'shares border with', 'Hare Warren'] ['Russia', 'shares border with', 'Boxberg']
ASK WHERE { resource:Russia property:shares_border_with resource:Hare_Warren . resource:Russia property:shares_border_with resource:Boxberg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q159,P47,Q5656764) (Q159,P47,Q544833)
action is_in
entity Q159
action intersection
action find_reverse
entity Q5656764
relation P47
action find_reverse
entity Q544833
relation P47
[ANSWER]
['Q159', 'P47', 'Q5656764'] ['Q159', 'P47', 'Q544833']
ASK WHERE { resource:Q159 property:P47 resource:Q5656764 . resource:Q159 property:P47 resource:Q544833 }
No
action is_in
entity Russia
action intersection
action find_reverse
entity Hare Warren
relation shares border with
action find_reverse
entity Boxberg
relation shares border with
['Russia', 'shares border with', 'Hare Warren'] ['Russia', 'shares border with', 'Boxberg']
ASK WHERE { resource:Russia property:shares_border_with resource:Hare_Warren . resource:Russia property:shares_border_with resource:Boxberg }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?d ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:P530 ?c . ?q rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?g ) WHERE { ?b property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?g = ?d ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?d ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:diplomatic_relation ?c . ?q rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?g ) WHERE { ?b property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?g = ?d ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have ambassadorial relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?d ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:P530 ?c . ?q rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?g ) WHERE { ?b property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?g = ?d ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have ambassadorial relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?d ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:diplomatic_relation ?c . ?q rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?g ) WHERE { ?b property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?g = ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q730
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with more number of political territories than Suriname ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q730
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?t ) WHERE { ?s property:P530 ?r . ?s rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Q730 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?i ) }
Suriname
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Suriname
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?t ) WHERE { ?s property:diplomatic_relation ?r . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Suriname property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?i ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
82
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q730
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?t ) WHERE { ?s property:P530 ?r . ?s rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Q730 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?i ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
82
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Suriname
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?t ) WHERE { ?s property:diplomatic_relation ?r . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Suriname property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1005
P530
Q15617994 Q1048835
USER
And how about Gambia?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1005
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?l ) WHERE { ?w property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s rdf:type ontology:Q15617994 . resource:Q1005 property:P530 ?s } } . FILTER ( ?l > ?f ) }
Gambia
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gambia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?l ) WHERE { ?w property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gambia property:diplomatic_relation ?s } } . FILTER ( ?l > ?f ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
82
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1005
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?l ) WHERE { ?w property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s rdf:type ontology:Q15617994 . resource:Q1005 property:P530 ?s } } . FILTER ( ?l > ?f ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
82
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gambia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?l ) WHERE { ?w property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gambia property:diplomatic_relation ?s } } . FILTER ( ?l > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q183
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relations with less number of political territories than Germany ?
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?l ) WHERE { ?e property:P530 ?g . ?e rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q183 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } }
Germany
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?l ) WHERE { ?e property:diplomatic_relation ?g . ?e rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Germany property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?l ) WHERE { ?e property:P530 ?g . ?e rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q183 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?l ) WHERE { ?e property:diplomatic_relation ?g . ?e rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Germany property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } }
[]