Simple Question (Direct)
Simple Question
Q601851
P410
Q4189293
USER
Which title was the military rank conferred upon Antonio Dorregaray ?
(Q601851,P410,c(Q4189293))
action filter_type
action find
entity Q601851
relation P410
type Q4189293
['Q601851', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?p WHERE { resource:Q601851 property:P410 ?p . ?p rdf:type ontology:Q4189293 }
Antonio Dorregaray
action filter_type
action find
entity Antonio Dorregaray
relation military rank
type title
['Antonio Dorregaray', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?p WHERE { resource:Antonio_Dorregaray property:military_rank ?p . ?p rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q601851,P410,c(Q4189293))
action filter_type
action find
entity Q601851
relation P410
type Q4189293
[ANSWER] was the military rank conferred upon Antonio Dorregaray
['Q601851', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?p WHERE { resource:Q601851 property:P410 ?p . ?p rdf:type ontology:Q4189293 }
general officer
General officer was the military rank conferred upon Antonio Dorregaray
general officer
action filter_type
action find
entity Antonio Dorregaray
relation military rank
type title
['Antonio Dorregaray', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?p WHERE { resource:Antonio_Dorregaray property:military_rank ?p . ?p rdf:type ontology:title }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P655
Q502895 Q571 Q7725634
USER
Which people did the translation of max number of books and literary works ?
(c(Q571)|c(Q7725634),P655,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q571
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
[[{'concept': 'Q571'}, {'concept': 'Q7725634'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?o WHERE { VALUES ( ?d ) { ( ontology:Q571 ) ( ontology:Q7725634 ) } . ?s rdf:type ?d } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) ?k WHERE { { ?k rdf:type ontology:Q502895 . ?m rdf:type ontology:Q571 . ?m property:P655 ?k } UNION { ?m property:P655 ?k . ?k rdf:type ontology:Q502895 . ?m rdf:type ontology:Q7725634 } } GROUP BY ?k } . FILTER ( ?i = ?g ) }
action argmax
action union
action find_reverse_tuple_counts
relation translator
type common name
type book
action find_reverse_tuple_counts
relation translator
type common name
type literary work
[[{'concept': 'book'}, {'concept': 'literary work'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?o WHERE { VALUES ( ?d ) { ( ontology:book ) ( ontology:literary_work ) } . ?s rdf:type ?d } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) ?k WHERE { { ?k rdf:type ontology:common_name . ?m rdf:type ontology:book . ?m property:translator ?k } UNION { ?m property:translator ?k . ?k rdf:type ontology:common_name . ?m rdf:type ontology:literary_work } } GROUP BY ?k } . FILTER ( ?i = ?g ) }
[]
common name book literary work
Q461104
SYSTEM
Jaroslav Vrchlický
Q461104
(c(Q571)|c(Q7725634),P655,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q571
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
[ANSWER] did the translation of max number of books and literary works
[[{'concept': 'Q571'}, {'concept': 'Q7725634'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?o WHERE { VALUES ( ?d ) { ( ontology:Q571 ) ( ontology:Q7725634 ) } . ?s rdf:type ?d } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) ?k WHERE { { ?k rdf:type ontology:Q502895 . ?m rdf:type ontology:Q571 . ?m property:P655 ?k } UNION { ?m property:P655 ?k . ?k rdf:type ontology:Q502895 . ?m rdf:type ontology:Q7725634 } } GROUP BY ?k } . FILTER ( ?i = ?g ) }
Jaroslav Vrchlický
Jaroslav Vrchlický did the translation of max number of books and literary works
Jaroslav Vrchlický
action argmax
action union
action find_reverse_tuple_counts
relation translator
type common name
type book
action find_reverse_tuple_counts
relation translator
type common name
type literary work
[[{'concept': 'book'}, {'concept': 'literary work'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?o WHERE { VALUES ( ?d ) { ( ontology:book ) ( ontology:literary_work ) } . ?s rdf:type ?d } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) ?k WHERE { { ?k rdf:type ontology:common_name . ?m rdf:type ontology:book . ?m property:translator ?k } UNION { ?m property:translator ?k . ?k rdf:type ontology:common_name . ?m rdf:type ontology:literary_work } } GROUP BY ?k } . FILTER ( ?i = ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P825
Q502895 Q16970 Q41176
USER
Which people are greater number of churches and buildings dedicated to than that person ?
(c(Q16970)|c(Q41176),P825,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q461104
relation P825
type Q16970
type Q41176
[[{'concept': 'Q16970'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?h ) { ( ontology:Q16970 ) ( ontology:Q41176 ) } . ?e rdf:type ?h } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:P825 resource:Q461104 . { ?b rdf:type ?s . VALUES ( ?s ) { ( ontology:Q16970 ) ( ontology:Q41176 ) } } } } . FILTER ( ?m > ?n ) }
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action count
action filter_multi_types
action find_reverse
entity Jaroslav Vrchlický
relation dedicated to
type church
type building
[[{'concept': 'church'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?h ) { ( ontology:church ) ( ontology:building ) } . ?e rdf:type ?h } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:dedicated_to resource:Jaroslav_Vrchlický . { ?b rdf:type ?s . VALUES ( ?s ) { ( ontology:church ) ( ontology:building ) } } } } . FILTER ( ?m > ?n ) }
[]
common name church building
Q171411 Q171977 Q314846
SYSTEM
Oda Nobunaga, Tokugawa Ieyasu, Emperor Kammu
Q983142 Q11403872 Q65318 Q1774929 Q3190301 Q457903 Q2288858 Q161775 Q48438 Q179718 Q7593283 Q9200 Q19629510 Q683792 Q171411 Q44269 Q94316 Q11074321 Q461258 Q4127503 Q1889720 Q55398 Q33923 Q174231 Q200188 Q244380 Q181715 Q212850 Q187550 Q313942 Q966298 Q1196817 Q433995 Q43600 Q314846 Q32613 Q269867 Q11633375 Q311080 Q378656 Q174044 Q2361972 Q1036864 Q314802 Q165479 Q700317 Q171977 Q11403852 Q183332 Q269520 Q346 Q1132756 Q11619989 Q382005 Q3618054 Q349287 Q44015 Q318974 Q3099236 Q128267 Q316658 Q1293541 Q133704 Q179971 Q11368835 Q164294 Q164522 Q11403867 Q328804 Q149727 Q31966 Q468122 Q310462 Q10881970 Q232803 Q965463 Q317997 Q284323 Q40662 Q299179 Q836214 Q331697 Q234689
(c(Q16970)|c(Q41176),P825,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q461104
relation P825
type Q16970
type Q41176
[ANSWERS] are greater number of churches and buildings dedicated to than that person
[[{'concept': 'Q16970'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?h ) { ( ontology:Q16970 ) ( ontology:Q41176 ) } . ?e rdf:type ?h } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:P825 resource:Q461104 . { ?b rdf:type ?s . VALUES ( ?s ) { ( ontology:Q16970 ) ( ontology:Q41176 ) } } } } . FILTER ( ?m > ?n ) }
Julian the Hospitaller Kitabatake Akiyoshi Kibitsuhiko-no-mikoto Ferreolus Just of Lyon Saint Bavo Moriyoshi-shinnō Stephen Saint George Catherine of Alexandria St Govan Paul Saint Goustan Kitabatake Chikafusa Oda Nobunaga Saint Nicholas Kikuchi Taketoki Kaneyoshi-shinnō Yamato Takeru Ferrutio Cadoc Bernadette Soubirous Peter Meiji Jimmu Saint Denis Thérèse of Lisieux Vitus Toyotomi Hideyoshi Go-Daigo Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Matthew the Apostle Emperor Kammu Minamoto no Yoshiie Odile of Alsace Prince Toyokiirihiko Uesugi Kenshin Saint Pantaleon Alexander Nevsky Winwaloe Kitabatake Akiie Tenji Saint Patrick Yasuhito Chichibu Tokugawa Ieyasu Kitabatake Morichika Saint Sebastian Shōken Louis IX of France Sakai Tadatsugu Prince Uji no Wakiiratsuko Sugawara no Michizane Annibale Cressoni Sutoku John the Apostle Vincent of Saragossa Minamoto no Tsunemoto Joseph Go-Toba Saint Quentin Martin of Tours Chūai Shizuko Nogi Saint Anna Hieda no Are Kitabatake Akinobu John the Evangelist Saint Giles Mark the Evangelist Nogi Maresuke Saigō Takamori Itsuse no Mikoto Empress Jingu Rumbold of Mechelen Ōjin Eulalia of Mérida John the Baptist Kōmei Princess Tōchi Saint David Monica of Hippo
Oda Nobunaga, Tokugawa Ieyasu and Emperor Kammu are greater number of churches and buildings dedicated to than that person
Oda Nobunaga Tokugawa Ieyasu Emperor Kammu
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action count
action filter_multi_types
action find_reverse
entity Jaroslav Vrchlický
relation dedicated to
type church
type building
[[{'concept': 'church'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?h ) { ( ontology:church ) ( ontology:building ) } . ?e rdf:type ?h } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:dedicated_to resource:Jaroslav_Vrchlický . { ?b rdf:type ?s . VALUES ( ?s ) { ( ontology:church ) ( ontology:building ) } } } } . FILTER ( ?m > ?n ) }
[]