Simple Question (Direct)
Simple Question
Q6274334
P21
Q290
USER
What is the sex of Jonathan Sayeed ?
(Q6274334,P21,c(Q290))
action filter_type
action find
entity Q6274334
relation P21
type Q290
['Q6274334', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q6274334 property:P21 ?k . ?k rdf:type ontology:Q290 }
Jonathan Sayeed
action filter_type
action find
entity Jonathan Sayeed
relation gender
type sex
['Jonathan Sayeed', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Jonathan_Sayeed property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6274334,P21,c(Q290))
action filter_type
action find
entity Q6274334
relation P21
type Q290
The sex of Jonathan Sayeed is a [ANSWER]
['Q6274334', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q6274334 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
The sex of Jonathan Sayeed is a male
male
action filter_type
action find
entity Jonathan Sayeed
relation gender
type sex
['Jonathan Sayeed', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Jonathan_Sayeed property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6274334
P1412
Q34770
USER
Which language can Jonathan Sayeed read ?
(Q6274334,P1412,c(Q34770))
action filter_type
action find
entity Q6274334
relation P1412
type Q34770
['Q6274334', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q6274334 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Jonathan Sayeed
action filter_type
action find
entity Jonathan Sayeed
relation languages spoken, written or signed
type language
['Jonathan Sayeed', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Jonathan_Sayeed property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6274334,P1412,c(Q34770))
action filter_type
action find
entity Q6274334
relation P1412
type Q34770
Jonathan Sayeed can read in [ANSWER]
['Q6274334', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q6274334 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
English
Jonathan Sayeed can read in English
English
action filter_type
action find
entity Jonathan Sayeed
relation languages spoken, written or signed
type language
['Jonathan Sayeed', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Jonathan_Sayeed property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6274334
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q1860,P39,c(Q12737077))
action filter_type
action find
entity Q6274334
relation P39
type Q12737077
['Q1860', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q6274334 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Jonathan Sayeed
action filter_type
action find
entity Jonathan Sayeed
relation position held
type occupation
['English', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Jonathan_Sayeed property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q1860,P39,c(Q12737077))
action filter_type
action find
entity Q6274334
relation P39
type Q12737077
The [ANSWER] was a position occupied by that person
['Q1860', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q6274334 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position occupied by that person
Member of Parliament in the United Kingdom
action filter_type
action find
entity Jonathan Sayeed
relation position held
type occupation
['English', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Jonathan_Sayeed property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6274334
P937
Q56061
USER
What is the location where that person worked ?
(Q16707842,P937,c(Q56061))
action filter_type
action find
entity Q6274334
relation P937
type Q56061
['Q16707842', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q6274334 property:P937 ?h . ?h rdf:type ontology:Q56061 }
Jonathan Sayeed
action filter_type
action find
entity Jonathan Sayeed
relation work location
type administrative territorial entity
['Member of Parliament in the United Kingdom', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jonathan_Sayeed property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q16707842,P937,c(Q56061))
action filter_type
action find
entity Q6274334
relation P937
type Q56061
The location that person worked is [ANSWER]
['Q16707842', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q6274334 property:P937 ?h . ?h rdf:type ontology:Q56061 }
London
The location that person worked is London
London
action filter_type
action find
entity Jonathan Sayeed
relation work location
type administrative territorial entity
['Member of Parliament in the United Kingdom', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jonathan_Sayeed property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q152457
P825
Q502895 Q41176 Q838948
USER
Which people are greater number of buildings or works of art dedicated to than Saint Roch ?
(c(Q41176)|c(Q838948),P825,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q152457
relation P825
type Q41176
type Q838948
[[{'concept': 'Q41176'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?o ) WHERE { { ?l property:P825 ?k . ?k rdf:type ontology:Q502895 . ?l rdf:type ontology:Q838948 } UNION { ?l property:P825 ?k . ?l rdf:type ontology:Q41176 . ?k rdf:type ontology:Q502895 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q property:P825 resource:Q152457 . { { ?q rdf:type ontology:Q41176 } UNION { ?q rdf:type ontology:Q838948 } } } } . FILTER ( ?o > ?g ) }
Saint Roch
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action count
action filter_multi_types
action find_reverse
entity Saint Roch
relation dedicated to
type building
type work of art
[[{'concept': 'building'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?o ) WHERE { { ?l property:dedicated_to ?k . ?k rdf:type ontology:common_name . ?l rdf:type ontology:work_of_art } UNION { ?l property:dedicated_to ?k . ?l rdf:type ontology:building . ?k rdf:type ontology:common_name } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q property:dedicated_to resource:Saint_Roch . { { ?q rdf:type ontology:building } UNION { ?q rdf:type ontology:work_of_art } } } } . FILTER ( ?o > ?g ) }
[]
common name building work of art
Q937 Q25089 Q171411
SYSTEM
Albert Einstein, Woody Allen, Oda Nobunaga
Q282498 Q181707 Q318636 Q983142 Q676555 Q11403872 Q312747 Q184935 Q65318 Q1774929 Q572684 Q17812378 Q3190301 Q989 Q157176 Q2288858 Q2959487 Q937 Q849 Q179718 Q7593283 Q747 Q5858974 Q235863 Q8605 Q19629510 Q43999 Q295090 Q351670 Q683792 Q3348840 Q297 Q171411 Q94316 Q11074321 Q313548 Q461258 Q132684 Q45380 Q4127503 Q14345 Q1889720 Q55398 Q1394 Q22985873 Q1064 Q5561411 Q9025343 Q174231 Q200188 Q115550 Q539 Q187550 Q313942 Q379753 Q298185 Q966298 Q1196817 Q433995 Q43600 Q271651 Q244852 Q5593 Q183085 Q57240 Q2376505 Q284560 Q314846 Q41568 Q697765 Q25089 Q160614 Q32613 Q18363 Q4340905 Q11633375 Q499022 Q311080 Q37064 Q1288566 Q152727 Q29179 Q7327 Q35548 Q6527 Q8195163 Q5837054 Q9455 Q691402 Q297483 Q1380238 Q1496 Q1036864 Q462255 Q314802 Q645141 Q165274 Q700317 Q171977 Q11403852 Q501 Q183332 Q269520 Q4893207 Q346 Q727717 Q1132756 Q35149 Q636533 Q11619989 Q160149 Q382005 Q154232 Q551735 Q3618054 Q349287 Q3099236 Q157100 Q316658 Q711836 Q3069570 Q709118 Q179971 Q11368835 Q164294 Q164522 Q11403867 Q130777 Q130805 Q6108547 Q1153323 Q289215 Q351715 Q149727 Q31966 Q468122 Q3372785 Q310462 Q10881970 Q170842 Q12718 Q216873 Q232803 Q238090 Q3781346 Q5992912 Q3395811 Q45682 Q317997 Q284323 Q221263 Q40662 Q469572 Q5984068 Q82122 Q299179 Q836214 Q1337419
(c(Q41176)|c(Q838948),P825,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q152457
relation P825
type Q41176
type Q838948
[ANSWERS] are greater number of buildings or works of art dedicated to than Saint Roch
[[{'concept': 'Q41176'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?o ) WHERE { { ?l property:P825 ?k . ?k rdf:type ontology:Q502895 . ?l rdf:type ontology:Q838948 } UNION { ?l property:P825 ?k . ?l rdf:type ontology:Q41176 . ?k rdf:type ontology:Q502895 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q property:P825 resource:Q152457 . { { ?q rdf:type ontology:Q41176 } UNION { ?q rdf:type ontology:Q838948 } } } } . FILTER ( ?o > ?g ) }
Gaspar Melchor de Jovellanos Charles Fourier Neville Marriner Julian the Hospitaller Francis of Assisi Kitabatake Akiyoshi Leopoldo Alas Mihai Eminescu Kibitsuhiko-no-mikoto Ferreolus Thomas-Alexandre Dumas Francisco Pintado Fe Just of Lyon John Paul II Władysław Szpilman Moriyoshi-shinnō Charles Joseph Lenoir Albert Einstein François Villon Catherine of Alexandria St Govan Pierre Corneille Fermín Canella Secades Genevieve Simón Bolívar Saint Goustan James Léon Gambetta Komitas Vardapet Kitabatake Chikafusa Octave Gréard Diego Velázquez Oda Nobunaga Kikuchi Taketoki Kaneyoshi-shinnō Absalon Yamato Takeru Saint-John Perse John Lewis Ferrutio Roh Moo-hyun Cadoc Bernadette Soubirous Vladimir Lenin Elizabeth Jean Scott Alessandro Manzoni José Tartiere y Lenegre Luis Riera Posada Meiji Jimmu Nicholas of Flüe Giuseppe Diego Garibaldi Pacheco Toyotomi Hideyoshi Go-Daigo Benito Jerónimo Feijóo y Montenegro Samuel Sánchez Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Matthew the Apostle Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Edith Cowan Manuel Puig Emperor Kammu Michel de Montaigne Rudolf Maister Woody Allen Skanderbeg Minamoto no Yoshiie Alfonso XIII of Spain Bridget O'Connor Prince Toyokiirihiko Emmanuel Fremiet Uesugi Kenshin Alexander Fleming Len Lye Frederick William, Elector of Brandenburg Francisco Franco Yuri Gagarin Paul Cézanne Jean-Jacques Rousseau Alfonso Iglesias Ernesto Winter Blanco Vallabhbhai Patel Philip IV of Spain Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Kitabatake Akiie Marino Lejarreta Tenji Armando Palacio Valdés Jacques Prévert Yasuhito Chichibu Tokugawa Ieyasu Kitabatake Morichika Charles Baudelaire Saint Sebastian Shōken Sabino Fernández Campo, 1st Count of Latores Louis IX of France Ramón Pérez de Ayala Sakai Tadatsugu Wilhelm Röntgen Pedro Rodríguez, Conde de Campomanes Prince Uji no Wakiiratsuko Mark Rothko Sugawara no Michizane Alexander Suvorov Edgar Quinet Annibale Cressoni Sutoku Minamoto no Tsunemoto Margaret of Austria, Duchess of Savoy Go-Toba Philippe Pot Fernando de Valdés y Salas Tim Birkin Chūai Shizuko Nogi Saint Anna Hieda no Are Kitabatake Akinobu Kazimir Malevich George I of Great Britain Ricardo Vázquez-Prada Blanco Danguolė Rasalaitė Alejandro Boliviano Fruela I of Asturias Saint Giles Mark the Evangelist Nogi Maresuke Paulino Vicente (padre) Saigō Takamori Itsuse no Mikoto Sergei Koroliov Auguste Comte Pierre Puvis de Chavannes Empress Jingu Sholem Aleichem Aida Lafuente Penaos Manuel Fernández Avello Dolores Medio Jean Sibelius Ōjin Eulalia of Mérida Philibert II, Duke of Savoy John the Baptist John Nicholson Luis Noval Ferrao Jean-Baptiste de Lamarck Kōmei Princess Tōchi Emilio Alarcos Llorach
Albert Einstein, Woody Allen and Oda Nobunaga are greater number of buildings or works of art dedicated to than Saint Roch
Albert Einstein Woody Allen Oda Nobunaga
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action count
action filter_multi_types
action find_reverse
entity Saint Roch
relation dedicated to
type building
type work of art
[[{'concept': 'building'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?o ) WHERE { { ?l property:dedicated_to ?k . ?k rdf:type ontology:common_name . ?l rdf:type ontology:work_of_art } UNION { ?l property:dedicated_to ?k . ?l rdf:type ontology:building . ?k rdf:type ontology:common_name } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q property:dedicated_to resource:Saint_Roch . { { ?q rdf:type ontology:building } UNION { ?q rdf:type ontology:work_of_art } } } } . FILTER ( ?o > ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1425
P825
Q502895 Q41176 Q838948
USER
And also tell me about Trajan?
(c(Q41176)|c(Q838948),P825,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1425
relation P825
type Q41176
type Q838948
[[{'concept': 'Q41176'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?j > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P825 resource:Q1425 . { { ?v rdf:type ontology:Q41176 } UNION { ?v rdf:type ontology:Q838948 } } } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?c WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q41176 ) } } GROUP BY ?c } }
Trajan
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action count
action filter_multi_types
action find_reverse
entity Trajan
relation dedicated to
type building
type work of art
[[{'concept': 'building'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?j > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:dedicated_to resource:Trajan . { { ?v rdf:type ontology:building } UNION { ?v rdf:type ontology:work_of_art } } } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?c WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:building ) } } GROUP BY ?c } }
[]
common name building work of art
Q937 Q25089 Q171411
SYSTEM
Albert Einstein, Woody Allen, Oda Nobunaga
Q282498 Q181707 Q318636 Q983142 Q676555 Q11403872 Q312747 Q184935 Q65318 Q1774929 Q572684 Q17812378 Q3190301 Q989 Q157176 Q2288858 Q2959487 Q937 Q849 Q179718 Q7593283 Q747 Q5858974 Q235863 Q8605 Q19629510 Q43999 Q295090 Q351670 Q683792 Q3348840 Q297 Q171411 Q94316 Q11074321 Q313548 Q461258 Q132684 Q45380 Q4127503 Q14345 Q1889720 Q55398 Q1394 Q22985873 Q1064 Q5561411 Q9025343 Q174231 Q200188 Q115550 Q539 Q187550 Q313942 Q379753 Q298185 Q966298 Q1196817 Q433995 Q43600 Q271651 Q244852 Q5593 Q183085 Q57240 Q2376505 Q284560 Q314846 Q41568 Q697765 Q25089 Q160614 Q32613 Q18363 Q4340905 Q11633375 Q499022 Q311080 Q37064 Q1288566 Q152727 Q29179 Q7327 Q35548 Q6527 Q8195163 Q5837054 Q9455 Q691402 Q297483 Q1380238 Q1496 Q1036864 Q462255 Q314802 Q645141 Q165274 Q700317 Q171977 Q11403852 Q501 Q183332 Q269520 Q4893207 Q346 Q727717 Q1132756 Q35149 Q636533 Q11619989 Q160149 Q382005 Q154232 Q551735 Q3618054 Q349287 Q3099236 Q157100 Q316658 Q711836 Q3069570 Q709118 Q179971 Q11368835 Q164294 Q164522 Q11403867 Q130777 Q130805 Q6108547 Q1153323 Q289215 Q351715 Q149727 Q31966 Q468122 Q3372785 Q310462 Q10881970 Q170842 Q12718 Q216873 Q232803 Q238090 Q3781346 Q5992912 Q3395811 Q45682 Q317997 Q284323 Q221263 Q40662 Q469572 Q5984068 Q82122 Q299179 Q836214 Q1337419
(c(Q41176)|c(Q838948),P825,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1425
relation P825
type Q41176
type Q838948
[ANSWERS]
[[{'concept': 'Q41176'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?j > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P825 resource:Q1425 . { { ?v rdf:type ontology:Q41176 } UNION { ?v rdf:type ontology:Q838948 } } } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?c WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q41176 ) } } GROUP BY ?c } }
Gaspar Melchor de Jovellanos Charles Fourier Neville Marriner Julian the Hospitaller Francis of Assisi Kitabatake Akiyoshi Leopoldo Alas Mihai Eminescu Kibitsuhiko-no-mikoto Ferreolus Thomas-Alexandre Dumas Francisco Pintado Fe Just of Lyon John Paul II Władysław Szpilman Moriyoshi-shinnō Charles Joseph Lenoir Albert Einstein François Villon Catherine of Alexandria St Govan Pierre Corneille Fermín Canella Secades Genevieve Simón Bolívar Saint Goustan James Léon Gambetta Komitas Vardapet Kitabatake Chikafusa Octave Gréard Diego Velázquez Oda Nobunaga Kikuchi Taketoki Kaneyoshi-shinnō Absalon Yamato Takeru Saint-John Perse John Lewis Ferrutio Roh Moo-hyun Cadoc Bernadette Soubirous Vladimir Lenin Elizabeth Jean Scott Alessandro Manzoni José Tartiere y Lenegre Luis Riera Posada Meiji Jimmu Nicholas of Flüe Giuseppe Diego Garibaldi Pacheco Toyotomi Hideyoshi Go-Daigo Benito Jerónimo Feijóo y Montenegro Samuel Sánchez Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Matthew the Apostle Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Edith Cowan Manuel Puig Emperor Kammu Michel de Montaigne Rudolf Maister Woody Allen Skanderbeg Minamoto no Yoshiie Alfonso XIII of Spain Bridget O'Connor Prince Toyokiirihiko Emmanuel Fremiet Uesugi Kenshin Alexander Fleming Len Lye Frederick William, Elector of Brandenburg Francisco Franco Yuri Gagarin Paul Cézanne Jean-Jacques Rousseau Alfonso Iglesias Ernesto Winter Blanco Vallabhbhai Patel Philip IV of Spain Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Kitabatake Akiie Marino Lejarreta Tenji Armando Palacio Valdés Jacques Prévert Yasuhito Chichibu Tokugawa Ieyasu Kitabatake Morichika Charles Baudelaire Saint Sebastian Shōken Sabino Fernández Campo, 1st Count of Latores Louis IX of France Ramón Pérez de Ayala Sakai Tadatsugu Wilhelm Röntgen Pedro Rodríguez, Conde de Campomanes Prince Uji no Wakiiratsuko Mark Rothko Sugawara no Michizane Alexander Suvorov Edgar Quinet Annibale Cressoni Sutoku Minamoto no Tsunemoto Margaret of Austria, Duchess of Savoy Go-Toba Philippe Pot Fernando de Valdés y Salas Tim Birkin Chūai Shizuko Nogi Saint Anna Hieda no Are Kitabatake Akinobu Kazimir Malevich George I of Great Britain Ricardo Vázquez-Prada Blanco Danguolė Rasalaitė Alejandro Boliviano Fruela I of Asturias Saint Giles Mark the Evangelist Nogi Maresuke Paulino Vicente (padre) Saigō Takamori Itsuse no Mikoto Sergei Koroliov Auguste Comte Pierre Puvis de Chavannes Empress Jingu Sholem Aleichem Aida Lafuente Penaos Manuel Fernández Avello Dolores Medio Jean Sibelius Ōjin Eulalia of Mérida Philibert II, Duke of Savoy John the Baptist John Nicholson Luis Noval Ferrao Jean-Baptiste de Lamarck Kōmei Princess Tōchi Emilio Alarcos Llorach
Albert Einstein Woody Allen Oda Nobunaga
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action count
action filter_multi_types
action find_reverse
entity Trajan
relation dedicated to
type building
type work of art
[[{'concept': 'building'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?j > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:dedicated_to resource:Trajan . { { ?v rdf:type ontology:building } UNION { ?v rdf:type ontology:work_of_art } } } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?c WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:building ) } } GROUP BY ?c } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25089
P1411
Q4220917
USER
What were that person nominated for ?
(Q25089,P1411,c(Q4220917))
action filter_type
action find
entity Q25089
relation P1411
type Q4220917
['Q25089', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?l WHERE { resource:Q25089 property:P1411 ?l . ?l rdf:type ontology:Q4220917 }
Woody Allen
action filter_type
action find
entity Woody Allen
relation nominated for
type film award
['Woody Allen', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?l WHERE { resource:Woody_Allen property:nominated_for ?l . ?l rdf:type ontology:film_award }
[]
film award
Clarification for simple ques.
Q25089
SYSTEM
Did you mean Woody Allen ?
Q937 Q25089 Q171411
(Q937,P1411,c(Q4220917)) (Q25089,P1411,c(Q4220917)) (Q171411,P1411,c(Q4220917))
[ANSWER]
['Q937', 'P1411', {'concept': 'Q4220917'}] ['Q25089', 'P1411', {'concept': 'Q4220917'}] ['Q171411', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?l WHERE { resource:Q25089 property:P1411 ?l . ?l rdf:type ontology:Q4220917 }
Albert Einstein Woody Allen Oda Nobunaga
Did you mean Woody Allen ?
Woody Allen
['Albert Einstein', 'nominated for', {'concept': 'film award'}] ['Woody Allen', 'nominated for', {'concept': 'film award'}] ['Oda Nobunaga', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?l WHERE { resource:Woody_Allen property:nominated_for ?l . ?l rdf:type ontology:film_award }
[]
Simple Question (Coreferenced)
USER
Yes
(Q25089,P1411,c(Q4220917))
['Q25089', 'P1411', {'concept': 'Q4220917'}]
['Woody Allen', 'nominated for', {'concept': 'film award'}]
[]
Q41417 Q103916 Q103360
SYSTEM
Academy Award for Best Writing, Original Screenplay, Academy Award for Best Actor, Academy Award for Best Director
Q41417 Q103916 Q103360
(Q25089,P1411,c(Q4220917))
action filter_type
action find
entity Q25089
relation P1411
type Q4220917
That person were nominated for [ANSWERS]
['Q25089', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?l WHERE { resource:Q25089 property:P1411 ?l . ?l rdf:type ontology:Q4220917 }
Academy Award for Best Writing, Original Screenplay Academy Award for Best Actor Academy Award for Best Director
That person were nominated for Academy Award for Best Writing, Original Screenplay, Academy Award for Best Actor and Academy Award for Best Director
Academy Award for Best Writing, Original Screenplay Academy Award for Best Actor Academy Award for Best Director
action filter_type
action find
entity Woody Allen
relation nominated for
type film award
['Woody Allen', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?l WHERE { resource:Woody_Allen property:nominated_for ?l . ?l rdf:type ontology:film_award }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q14071751
P1411
Q502895
USER
Were Pedro Jesus Martinez Ortiz nominated for those film awards ?
(Q14071751,P1411,Q41417) (Q14071751,P1411,Q103916) (Q14071751,P1411,Q103360)
action is_in
entity prev_answer
action find
entity Q14071751
relation P1411
['Q14071751', 'P1411', 'Q41417'] ['Q14071751', 'P1411', 'Q103916'] ['Q14071751', 'P1411', 'Q103360']
ASK WHERE { VALUES ( ?d ) { ( resource:Q41417 ) ( resource:Q103916 ) ( resource:Q103360 ) } . resource:Q14071751 property:P1411 ?d }
Pedro Jesus Martinez Ortiz
action is_in
entity prev_answer
action find
entity Pedro Jesus Martinez Ortiz
relation nominated for
['Pedro Jesus Martinez Ortiz', 'nominated for', 'Academy Award for Best Writing, Original Screenplay'] ['Pedro Jesus Martinez Ortiz', 'nominated for', 'Academy Award for Best Actor'] ['Pedro Jesus Martinez Ortiz', 'nominated for', 'Academy Award for Best Director']
ASK WHERE { VALUES ( ?d ) { ( resource:Academy_Award_for_Best_Writing,_Original_Screenplay ) ( resource:Academy_Award_for_Best_Actor ) ( resource:Academy_Award_for_Best_Director ) } . resource:Pedro_Jesus_Martinez_Ortiz property:nominated_for ?d }
[]
common name
SYSTEM
NO
(Q14071751,P1411,Q41417) (Q14071751,P1411,Q103916) (Q14071751,P1411,Q103360)
action is_in
entity prev_answer
action find
entity Q14071751
relation P1411
[ANSWER]
['Q14071751', 'P1411', 'Q41417'] ['Q14071751', 'P1411', 'Q103916'] ['Q14071751', 'P1411', 'Q103360']
ASK WHERE { VALUES ( ?d ) { ( resource:Q41417 ) ( resource:Q103916 ) ( resource:Q103360 ) } . resource:Q14071751 property:P1411 ?d }
No
action is_in
entity prev_answer
action find
entity Pedro Jesus Martinez Ortiz
relation nominated for
['Pedro Jesus Martinez Ortiz', 'nominated for', 'Academy Award for Best Writing, Original Screenplay'] ['Pedro Jesus Martinez Ortiz', 'nominated for', 'Academy Award for Best Actor'] ['Pedro Jesus Martinez Ortiz', 'nominated for', 'Academy Award for Best Director']
ASK WHERE { VALUES ( ?d ) { ( resource:Academy_Award_for_Best_Writing,_Original_Screenplay ) ( resource:Academy_Award_for_Best_Actor ) ( resource:Academy_Award_for_Best_Director ) } . resource:Pedro_Jesus_Martinez_Ortiz property:nominated_for ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1411
Q4220917 Q502895 Q838948
USER
How many film awards did approximately 1338 people and works of art receive ?
(c(Q502895)|c(Q838948),P1411,c(Q4220917))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
value 1338
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { FILTER ( ?t = 1338 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?p WHERE { { ?p rdf:type ontology:Q4220917 . ?d rdf:type ontology:Q502895 . ?d property:P1411 ?p } UNION { ?d property:P1411 ?p . ?p rdf:type ontology:Q4220917 . ?d rdf:type ontology:Q838948 } } GROUP BY ?p } }
action count
action approx
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
value 1338
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { FILTER ( ?t = 1338 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?p WHERE { { ?p rdf:type ontology:film_award . ?d rdf:type ontology:common_name . ?d property:nominated_for ?p } UNION { ?d property:nominated_for ?p . ?p rdf:type ontology:film_award . ?d rdf:type ontology:work_of_art } } GROUP BY ?p } }
[]
film award common name work of art
SYSTEM
2
Q102427 Q830079
(c(Q502895)|c(Q838948),P1411,c(Q4220917))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
value 1338
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { FILTER ( ?t = 1338 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?p WHERE { { ?p rdf:type ontology:Q4220917 . ?d rdf:type ontology:Q502895 . ?d property:P1411 ?p } UNION { ?d property:P1411 ?p . ?p rdf:type ontology:Q4220917 . ?d rdf:type ontology:Q838948 } } GROUP BY ?p } }
Academy Award for Best Picture Academy Award for Best Sound Mixing
2
action count
action approx
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
value 1338
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { FILTER ( ?t = 1338 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?p WHERE { { ?p rdf:type ontology:film_award . ?d rdf:type ontology:common_name . ?d property:nominated_for ?p } UNION { ?d property:nominated_for ?p . ?p rdf:type ontology:film_award . ?d rdf:type ontology:work_of_art } } GROUP BY ?p } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7822844 Q152457
P27
Q15617994
USER
Which administrative territories are Saint Roch or Tony Macaulay an inhabitant of ?
OR((Q152457,P27,c(Q15617994)), (Q7822844,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q152457
relation P27
action find
entity Q7822844
relation P27
type Q15617994
{'OR': [['Q152457', 'P27', {'concept': 'Q15617994'}], ['Q7822844', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?n ) { ( resource:Q152457 ) ( resource:Q7822844 ) } . ?n property:P27 ?r } . ?r rdf:type ontology:Q15617994 }
Tony Macaulay Saint Roch
action filter_type
action union
action find
entity Saint Roch
relation country of citizenship
action find
entity Tony Macaulay
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Saint Roch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tony Macaulay', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?n ) { ( resource:Saint_Roch ) ( resource:Tony_Macaulay ) } . ?n property:country_of_citizenship ?r } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q145
SYSTEM
France, United Kingdom
Q142 Q145
OR((Q152457,P27,c(Q15617994)), (Q7822844,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q152457
relation P27
action find
entity Q7822844
relation P27
type Q15617994
[ANSWERS] are Saint Roch or Tony Macaulay an inhabitant of
{'OR': [['Q152457', 'P27', {'concept': 'Q15617994'}], ['Q7822844', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?n ) { ( resource:Q152457 ) ( resource:Q7822844 ) } . ?n property:P27 ?r } . ?r rdf:type ontology:Q15617994 }
France United Kingdom
France and United Kingdom are Saint Roch or Tony Macaulay an inhabitant of
France United Kingdom
action filter_type
action union
action find
entity Saint Roch
relation country of citizenship
action find
entity Tony Macaulay
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Saint Roch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tony Macaulay', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?n ) { ( resource:Saint_Roch ) ( resource:Tony_Macaulay ) } . ?n property:country_of_citizenship ?r } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1008
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with approximately the same number of administrative territories as Côte d'Ivoire ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1008
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q1008 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?o } }
Côte d'Ivoire
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Côte_d'Ivoire property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
154
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 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 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 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1008
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q1008 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?o } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium 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 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 Togo Tonga Spain New Caledonia Thailand Zambia
154
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Côte_d'Ivoire property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q977
P530
Q15617994 Q15617994
USER
And also tell me about Djibouti?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q977
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q977 property:P530 ?u } } . FILTER ( ?t = ?o ) }
Djibouti
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Djibouti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Djibouti property:diplomatic_relation ?u } } . FILTER ( ?t = ?o ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 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 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 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q977
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q977 property:P530 ?u } } . FILTER ( ?t = ?o ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium 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 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 Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Djibouti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { ?m property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Djibouti property:diplomatic_relation ?u } } . FILTER ( ?t = ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q20
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with more number of administrative territories than Norway ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?w property:P530 ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:Q20 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?l ) }
Norway
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:Norway property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?l ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with more number of administrative territories than Norway
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?w property:P530 ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:Q20 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?l ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America hold diplomatic relationship with more number of administrative territories than Norway
Italy Brazil United States of America
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?s ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?k } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:Norway property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?l ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q30
P463
Q43229
USER
Which organizations were those administrative territories a member of ?
(Q38,P463,c(Q43229)) (Q155,P463,c(Q43229)) (Q30,P463,c(Q43229))
action filter_type
action find
entity prev_answer
relation P463
type Q43229
['Q38', 'P463', {'concept': 'Q43229'}] ['Q155', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?m ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . ?m property:P463 ?e . ?e rdf:type ontology:Q43229 }
Italy Brazil United States of America
action filter_type
action find
entity prev_answer
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['Brazil', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?m ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . ?m property:member_of ?e . ?e rdf:type ontology:organization }
[]
organization
Q7809 Q42944 Q151991
SYSTEM
United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research, European Southern Observatory
Q340195 Q125761 Q191384 Q1153087 Q309195 Q689859 Q899770 Q189946 Q7809 Q132551 Q1666759 Q699036 Q42944 Q61923 Q177773 Q41550 Q3772571 Q386120 Q656801 Q151991 Q161549 Q7825 Q488981 Q82151 Q7178 Q827525 Q340195 Q191384 Q182500 Q123759 Q1045401 Q7825 Q656801 Q151991 Q123209 Q243630 Q827525 Q340195 Q191384 Q899770 Q41550 Q656801 Q170481 Q7825 Q827525
(Q38,P463,c(Q43229)) (Q155,P463,c(Q43229)) (Q30,P463,c(Q43229))
action filter_type
action find
entity prev_answer
relation P463
type Q43229
[ANSWERS] were those administrative territories a member of
['Q38', 'P463', {'concept': 'Q43229'}] ['Q155', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?m ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . ?m property:P463 ?e . ?e rdf:type ontology:Q43229 }
African Development Bank International Civil Aviation Organization International Bank for Reconstruction and Development Inter-American Development Bank Bank for International Settlements International Fund for Agricultural Development International Centre for Settlement of Investment Disputes Western European Union United Nations Educational, Scientific and Cultural Organization United Nations High Commissioner for Refugees International Mobile Satellite Organization United Nations Truce Supervision Organization European Organization for Nuclear Research World Tourism Organization World Intellectual Property Organization Organisation for Economic Co-operation and Development Caribbean Development Bank United Nations Industrial Development Organization International Finance Corporation European Southern Observatory European Coal and Steel Community World Trade Organization European Bank for Reconstruction and Development Food and Agriculture Organization of the United Nations International Red Cross and Red Crescent Movementsac International Development Association African Development Bank International Bank for Reconstruction and Development Community of Portuguese Language Countries Organization of American States Community of Latin American and Caribbean States World Trade Organization International Finance Corporation European Southern Observatory Latin Union BRICS International Development Association African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation Asia-Pacific Economic Cooperation World Trade Organization International Development Association
United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research and European Southern Observatory were those administrative territories a member of
United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research European Southern Observatory
action filter_type
action find
entity prev_answer
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['Brazil', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?m ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . ?m property:member_of ?e . ?e rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q7809 Q42944 Q151991
P108
Q502895
USER
Which people have United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research and European Southern Observatory as their employer ?
(c(Q502895),P108,Q7809) (c(Q502895),P108,Q42944) (c(Q502895),P108,Q151991)
action union
action filter_type
action find_reverse
entity Q7809
relation P108
type Q502895
action filter_type
action find_reverse
entity Q42944
relation P108
type Q502895
action filter_type
action find_reverse
entity Q151991
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q7809'] [{'concept': 'Q502895'}, 'P108', 'Q42944'] [{'concept': 'Q502895'}, 'P108', 'Q151991']
SELECT DISTINCT ?k WHERE { ?k property:P108 ?r . VALUES ( ?r ) { ( resource:Q7809 ) ( resource:Q42944 ) } }
United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research European Southern Observatory
action union
action filter_type
action find_reverse
entity United Nations Educational, Scientific and Cultural Organization
relation employer
type common name
action filter_type
action find_reverse
entity European Organization for Nuclear Research
relation employer
type common name
action filter_type
action find_reverse
entity European Southern Observatory
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'United Nations Educational, Scientific and Cultural Organization'] [{'concept': 'common name'}, 'employer', 'European Organization for Nuclear Research'] [{'concept': 'common name'}, 'employer', 'European Southern Observatory']
SELECT DISTINCT ?k WHERE { ?k property:employer ?r . VALUES ( ?r ) { ( resource:United_Nations_Educational,_Scientific_and_Cultural_Organization ) ( resource:European_Organization_for_Nuclear_Research ) } }
[]
common name
Q80 Q80 Q22667895
SYSTEM
Tim Berners-Lee for 1st, 2nd, David Wasawo for 3rd
Q20986340 Q22667895 Q3085768 Q716552 Q3103148 Q25872869 Q3541430 Q230850 Q26179875 Q23840678 Q2824517 Q26936556 Q153178 Q26936205 Q709562 Q5396133 Q21820002 Q514831 Q370077 Q21708036 Q80 Q80 Q1515185 Q20829709 Q375147
(c(Q502895),P108,Q7809) (c(Q502895),P108,Q42944) (c(Q502895),P108,Q151991)
action union
action filter_type
action find_reverse
entity Q7809
relation P108
type Q502895
action filter_type
action find_reverse
entity Q42944
relation P108
type Q502895
action filter_type
action find_reverse
entity Q151991
relation P108
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P108', 'Q7809'] [{'concept': 'Q502895'}, 'P108', 'Q42944'] [{'concept': 'Q502895'}, 'P108', 'Q151991']
SELECT DISTINCT ?k WHERE { ?k property:P108 ?r . VALUES ( ?r ) { ( resource:Q7809 ) ( resource:Q42944 ) } }
Lê Thành Khôi David Wasawo François Russo Norman McLaren Georges Malempré János Bogárdi Trần Văn Khê Irina Bokova Genevieve Fiore Harry Cliff Adlène Hicheur Werner Kienzle Georges Charpak Siegmund Brandt Rolf Widerøe Erwin Gabathuler Juan Antonio Rubio Rodríguez Lyn Evans John Stewart Bell Richard Pankhurst Tim Berners-Lee Tim Berners-Lee Werner Nahm Olivier Hainaut Richard Martin West
Tim Berners-Lee, Tim Berners-Lee and David Wasawo have United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research and European Southern Observatory as their employer
Tim Berners-Lee Tim Berners-Lee David Wasawo
action union
action filter_type
action find_reverse
entity United Nations Educational, Scientific and Cultural Organization
relation employer
type common name
action filter_type
action find_reverse
entity European Organization for Nuclear Research
relation employer
type common name
action filter_type
action find_reverse
entity European Southern Observatory
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'United Nations Educational, Scientific and Cultural Organization'] [{'concept': 'common name'}, 'employer', 'European Organization for Nuclear Research'] [{'concept': 'common name'}, 'employer', 'European Southern Observatory']
SELECT DISTINCT ?k WHERE { ?k property:employer ?r . VALUES ( ?r ) { ( resource:United_Nations_Educational,_Scientific_and_Cultural_Organization ) ( resource:European_Organization_for_Nuclear_Research ) } }
[]