Simple Question (Direct)
Simple Question
Q18574901
P937
Q56061
USER
What is the location where Walter Muth worked ?
(Q18574901,P937,c(Q56061))
action filter_type
action find
entity Q18574901
relation P937
type Q56061
['Q18574901', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q18574901 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Walter Muth
action filter_type
action find
entity Walter Muth
relation work location
type administrative territorial entity
['Walter Muth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Walter_Muth property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q18574901,P937,c(Q56061))
action filter_type
action find
entity Q18574901
relation P937
type Q56061
The location Walter Muth worked is in [ANSWER]
['Q18574901', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q18574901 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Munich
The location Walter Muth worked is in Munich
Munich
action filter_type
action find
entity Walter Muth
relation work location
type administrative territorial entity
['Walter Muth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Walter_Muth property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18574901
P39
Q12737077
USER
Which occupation was a position occupied by Walter Muth ?
(Q18574901,P39,c(Q12737077))
action filter_type
action find
entity Q18574901
relation P39
type Q12737077
['Q18574901', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q18574901 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Walter Muth
action filter_type
action find
entity Walter Muth
relation position held
type occupation
['Walter Muth', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Walter_Muth property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q17586301
SYSTEM
Member of the Landtag of Bavaria
Q17586301
(Q18574901,P39,c(Q12737077))
action filter_type
action find
entity Q18574901
relation P39
type Q12737077
[ANSWER] was a position occupied by Walter Muth
['Q18574901', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q18574901 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Member of the Landtag of Bavaria
Member of the Landtag of Bavaria was a position occupied by Walter Muth
Member of the Landtag of Bavaria
action filter_type
action find
entity Walter Muth
relation position held
type occupation
['Walter Muth', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Walter_Muth property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q288295
P417
Q502895 Q12737077
USER
How many people are the patron saint of more number of occupations than Justina of Padua ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q288295
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P417 ?l . ?l rdf:type ontology:Q502895 . ?u rdf:type ontology:Q12737077 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { resource:Q288295 property:P417 ?i . ?i rdf:type ontology:Q502895 } } . FILTER ( ?v > ?e ) }
Justina of Padua
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Justina of Padua
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:patron_saint ?l . ?l rdf:type ontology:common_name . ?u rdf:type ontology:occupation } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { resource:Justina_of_Padua property:patron_saint ?i . ?i rdf:type ontology:common_name } } . FILTER ( ?v > ?e ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q288295
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P417 ?l . ?l rdf:type ontology:Q502895 . ?u rdf:type ontology:Q12737077 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { resource:Q288295 property:P417 ?i . ?i rdf:type ontology:Q502895 } } . FILTER ( ?v > ?e ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Justina of Padua
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:patron_saint ?l . ?l rdf:type ontology:common_name . ?u rdf:type ontology:occupation } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { resource:Justina_of_Padua property:patron_saint ?i . ?i rdf:type ontology:common_name } } . FILTER ( ?v > ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q310686
P417
Q502895 Q12737077
USER
And how about Dionysius the Areopagite?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q310686
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:P417 ?x . ?x rdf:type ontology:Q502895 . ?y rdf:type ontology:Q12737077 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Q310686 property:P417 ?o . ?o rdf:type ontology:Q502895 } } . FILTER ( ?a > ?j ) }
Dionysius the Areopagite
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Dionysius the Areopagite
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:patron_saint ?x . ?x rdf:type ontology:common_name . ?y rdf:type ontology:occupation } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Dionysius_the_Areopagite property:patron_saint ?o . ?o rdf:type ontology:common_name } } . FILTER ( ?a > ?j ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q310686
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:P417 ?x . ?x rdf:type ontology:Q502895 . ?y rdf:type ontology:Q12737077 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Q310686 property:P417 ?o . ?o rdf:type ontology:Q502895 } } . FILTER ( ?a > ?j ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Dionysius the Areopagite
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:patron_saint ?x . ?x rdf:type ontology:common_name . ?y rdf:type ontology:occupation } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Dionysius_the_Areopagite property:patron_saint ?o . ?o rdf:type ontology:common_name } } . FILTER ( ?a > ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?a ) { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P417 ?t . ?h rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q502895 } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P417 ?b . ?b rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?b } . FILTER ( ?u = ?a ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?a ) { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:patron_saint ?t . ?h rdf:type ontology:occupation . ?t rdf:type ontology:common_name } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:patron_saint ?b . ?b rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?b } . FILTER ( ?u = ?a ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saints of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?a ) { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P417 ?t . ?h rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q502895 } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P417 ?b . ?b rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?b } . FILTER ( ?u = ?a ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saints of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?a ) { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:patron_saint ?t . ?h rdf:type ontology:occupation . ?t rdf:type ontology:common_name } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:patron_saint ?b . ?b rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?b } . FILTER ( ?u = ?a ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18574901
P19
Q515
USER
Which city is the birthplace of Walter Muth ?
(Q18574901,P19,c(Q515))
action filter_type
action find
entity Q18574901
relation P19
type Q515
['Q18574901', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q18574901 property:P19 ?t . ?t rdf:type ontology:Q515 }
Walter Muth
action filter_type
action find
entity Walter Muth
relation place of birth
type city
['Walter Muth', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Walter_Muth property:place_of_birth ?t . ?t rdf:type ontology:city }
[]
city
Q14821
SYSTEM
Coburg
Q14821
(Q18574901,P19,c(Q515))
action filter_type
action find
entity Q18574901
relation P19
type Q515
In [ANSWER] is the birthplace of Walter Muth
['Q18574901', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q18574901 property:P19 ?t . ?t rdf:type ontology:Q515 }
Coburg
In Coburg is the birthplace of Walter Muth
Coburg
action filter_type
action find
entity Walter Muth
relation place of birth
type city
['Walter Muth', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Walter_Muth property:place_of_birth ?t . ?t rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q13539802 Q15617994
USER
How many places with town privileges or administrative territories are twin towns of that city ?
(Q14821,P190,c(Q13539802)) (Q14821,P190,c(Q15617994)) (Q14821,P190,c(Q13539802)) (Q14821,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q14821
relation P190
type Q13539802
action filter_type
action find
entity Q14821
relation P190
type Q15617994
['Q14821', 'P190', {'concept': 'Q13539802'}] ['Q14821', 'P190', {'concept': 'Q15617994'}] ['Q14821', 'P190', {'concept': 'Q13539802'}] ['Q14821', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { resource:Q14821 property:P190 ?e . ?e rdf:type ontology:Q13539802 } UNION { resource:Q14821 property:P190 ?e . ?e rdf:type ontology:Q15617994 } }
action count
action union
action filter_type
action find
entity Coburg
relation sister city
type place with town rights and privileges
action filter_type
action find
entity Coburg
relation sister city
type designation for an administrative territorial entity
['Coburg', 'sister city', {'concept': 'place with town rights and privileges'}] ['Coburg', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Coburg', 'sister city', {'concept': 'place with town rights and privileges'}] ['Coburg', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { resource:Coburg property:sister_city ?e . ?e rdf:type ontology:place_with_town_rights_and_privileges } UNION { resource:Coburg property:sister_city ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
place with town rights and privileges designation for an administrative territorial entity
SYSTEM
2
Q419157 Q12992
(Q14821,P190,c(Q13539802)) (Q14821,P190,c(Q15617994)) (Q14821,P190,c(Q13539802)) (Q14821,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q14821
relation P190
type Q13539802
action filter_type
action find
entity Q14821
relation P190
type Q15617994
[ANSWER]
['Q14821', 'P190', {'concept': 'Q13539802'}] ['Q14821', 'P190', {'concept': 'Q15617994'}] ['Q14821', 'P190', {'concept': 'Q13539802'}] ['Q14821', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { resource:Q14821 property:P190 ?e . ?e rdf:type ontology:Q13539802 } UNION { resource:Q14821 property:P190 ?e . ?e rdf:type ontology:Q15617994 } }
Gais, South Tyrol Oudenaarde
2
action count
action union
action filter_type
action find
entity Coburg
relation sister city
type place with town rights and privileges
action filter_type
action find
entity Coburg
relation sister city
type designation for an administrative territorial entity
['Coburg', 'sister city', {'concept': 'place with town rights and privileges'}] ['Coburg', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Coburg', 'sister city', {'concept': 'place with town rights and privileges'}] ['Coburg', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { resource:Coburg property:sister_city ?e . ?e rdf:type ontology:place_with_town_rights_and_privileges } UNION { resource:Coburg property:sister_city ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q57941
P190
Q515 Q515
USER
How many cities are partner town of more number of cities than Schneeberg, Saxony ?
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q57941
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?g ) WHERE { ?c property:P190 ?q . ?q rdf:type ontology:Q515 . ?c rdf:type ontology:Q515 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q57941 property:P190 ?l . ?l rdf:type ontology:Q515 } } . FILTER ( ?g > ?k ) }
Schneeberg, Saxony
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Schneeberg, Saxony
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?g ) WHERE { ?c property:sister_city ?q . ?q rdf:type ontology:city . ?c rdf:type ontology:city } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Schneeberg,_Saxony property:sister_city ?l . ?l rdf:type ontology:city } } . FILTER ( ?g > ?k ) }
[]
city city
SYSTEM
95
Q23430 Q3572 Q3870 Q11736 Q696694 Q837968 Q240504 Q3624 Q43199 Q20934 Q57958 Q14424 Q3926 Q11462 Q384796 Q23482 Q16520 Q19689 Q2910 Q1899 Q26600 Q1794 Q3846983 Q72818 Q1486 Q17042 Q1461 Q842984 Q198370 Q2973 Q1519 Q8684 Q3838 Q837157 Q14819 Q137271 Q8652 Q3861 Q587746 Q3919 Q19660 Q200267 Q2844 Q3915 Q533078 Q124375 Q42635 Q9005 Q252325 Q2773 Q837161 Q205922 Q14440 Q1773 Q2079 Q252061 Q166829 Q214948 Q68481 Q267708 Q680656 Q1508 Q2749 Q11194 Q485581 Q390796 Q5972 Q843014 Q11725 Q2207 Q851056 Q76010 Q42622 Q59095 Q839796 Q146317 Q203344 Q20921 Q2887 Q1000056 Q456 Q679224 Q168648 Q485176 Q3616 Q169064 Q613813 Q1533 Q3042 Q1953 Q209988 Q240489 Q170525 Q207309 Q16666
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q57941
relation P190
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?g ) WHERE { ?c property:P190 ?q . ?q rdf:type ontology:Q515 . ?c rdf:type ontology:Q515 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q57941 property:P190 ?l . ?l rdf:type ontology:Q515 } } . FILTER ( ?g > ?k ) }
Ulaanbaatar Tunis Nairobi Tianjin Onomichi Băile Tușnad Makó Addis Ababa Omaha Incheon Zhenjiang Nagykanizsa Pretoria Surabaya Ōda Marseille Busan Tirana Ludwigshafen Kyiv Fukuoka Frankfurt Șimleu Silvaniei Haiphong Buenos Aires Oakland Manila Harkány Zibo Darmstadt Abu Dhabi Seoul Kinshasa Covasna Freiberg Kota Kinabalu Miami Doha Siret Gaborone Bucharest Kamakura Brasília Antananarivo Baraolt Hódmezővásárhely Wenzhou Brussels Hajdúdorog Braunschweig Sânnicolau Mare Qiqihar Iquique Riga Leipzig Valea lui Mihai Miercurea Nirajului Cegléd Fuzhou Sovata Sümeg Makati Augsburg Sarajevo Aveiro Orosháza Medan Szarvas Chongqing Naga Cristuru Secuiesc Santa Rosa Suzhou Zhuhai Borsec Veszprém Baja Daejeon Santiago Sušice Lyon Hajdúböszörmény Sopron Pasadena Tehran Sângeorgiu de Pădure Kőszeg Caracas Offenbach am Main Yerevan Gödöllő Higashimurayama Agadir Tokushima Nanjing
95
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Schneeberg, Saxony
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?g ) WHERE { ?c property:sister_city ?q . ?q rdf:type ontology:city . ?c rdf:type ontology:city } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Schneeberg,_Saxony property:sister_city ?l . ?l rdf:type ontology:city } } . FILTER ( ?g > ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q386651
P190
Q515 Q515
USER
And how about Iwata?
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q386651
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?t ) WHERE { ?u rdf:type ontology:Q515 . ?c rdf:type ontology:Q515 . ?u property:P190 ?c } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q386651 property:P190 ?q . ?q rdf:type ontology:Q515 } } . FILTER ( ?t > ?b ) }
Iwata
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Iwata
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?t ) WHERE { ?u rdf:type ontology:city . ?c rdf:type ontology:city . ?u property:sister_city ?c } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Iwata property:sister_city ?q . ?q rdf:type ontology:city } } . FILTER ( ?t > ?b ) }
[]
city city
SYSTEM
95
Q23430 Q3572 Q3870 Q11736 Q696694 Q837968 Q240504 Q3624 Q43199 Q20934 Q57958 Q14424 Q3926 Q11462 Q384796 Q23482 Q16520 Q19689 Q2910 Q1899 Q26600 Q1794 Q3846983 Q72818 Q1486 Q17042 Q1461 Q842984 Q198370 Q2973 Q1519 Q8684 Q3838 Q837157 Q14819 Q137271 Q8652 Q3861 Q587746 Q3919 Q19660 Q200267 Q2844 Q3915 Q533078 Q124375 Q42635 Q9005 Q252325 Q2773 Q837161 Q205922 Q14440 Q1773 Q2079 Q252061 Q166829 Q214948 Q68481 Q267708 Q680656 Q1508 Q2749 Q11194 Q485581 Q390796 Q5972 Q843014 Q11725 Q2207 Q851056 Q76010 Q42622 Q59095 Q839796 Q146317 Q203344 Q20921 Q2887 Q1000056 Q456 Q679224 Q168648 Q485176 Q3616 Q169064 Q613813 Q1533 Q3042 Q1953 Q209988 Q240489 Q170525 Q207309 Q16666
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q386651
relation P190
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?t ) WHERE { ?u rdf:type ontology:Q515 . ?c rdf:type ontology:Q515 . ?u property:P190 ?c } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q386651 property:P190 ?q . ?q rdf:type ontology:Q515 } } . FILTER ( ?t > ?b ) }
Ulaanbaatar Tunis Nairobi Tianjin Onomichi Băile Tușnad Makó Addis Ababa Omaha Incheon Zhenjiang Nagykanizsa Pretoria Surabaya Ōda Marseille Busan Tirana Ludwigshafen Kyiv Fukuoka Frankfurt Șimleu Silvaniei Haiphong Buenos Aires Oakland Manila Harkány Zibo Darmstadt Abu Dhabi Seoul Kinshasa Covasna Freiberg Kota Kinabalu Miami Doha Siret Gaborone Bucharest Kamakura Brasília Antananarivo Baraolt Hódmezővásárhely Wenzhou Brussels Hajdúdorog Braunschweig Sânnicolau Mare Qiqihar Iquique Riga Leipzig Valea lui Mihai Miercurea Nirajului Cegléd Fuzhou Sovata Sümeg Makati Augsburg Sarajevo Aveiro Orosháza Medan Szarvas Chongqing Naga Cristuru Secuiesc Santa Rosa Suzhou Zhuhai Borsec Veszprém Baja Daejeon Santiago Sušice Lyon Hajdúböszörmény Sopron Pasadena Tehran Sângeorgiu de Pădure Kőszeg Caracas Offenbach am Main Yerevan Gödöllő Higashimurayama Agadir Tokushima Nanjing
95
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Iwata
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?t ) WHERE { ?u rdf:type ontology:city . ?c rdf:type ontology:city . ?u property:sister_city ?c } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Iwata property:sister_city ?q . ?q rdf:type ontology:city } } . FILTER ( ?t > ?b ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q973488 Q310686
P19
Q56061
USER
Which administrative territories were Dionysius the Areopagite or Vladimir Chernov born in ?
OR((Q310686,P19,c(Q56061)), (Q973488,P19,c(Q56061)))
action filter_type
action union
action find
entity Q310686
relation P19
action find
entity Q973488
relation P19
type Q56061
{'OR': [['Q310686', 'P19', {'concept': 'Q56061'}], ['Q973488', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q973488 property:P19 ?j } UNION { resource:Q310686 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Vladimir Chernov Dionysius the Areopagite
action filter_type
action union
action find
entity Dionysius the Areopagite
relation place of birth
action find
entity Vladimir Chernov
relation place of birth
type administrative territorial entity
{'OR': [['Dionysius the Areopagite', 'place of birth', {'concept': 'administrative territorial entity'}], ['Vladimir Chernov', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Vladimir_Chernov property:place_of_birth ?j } UNION { resource:Dionysius_the_Areopagite property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1524 Q3646
SYSTEM
Athens, Krasnodar
Q1524 Q3646
OR((Q310686,P19,c(Q56061)), (Q973488,P19,c(Q56061)))
action filter_type
action union
action find
entity Q310686
relation P19
action find
entity Q973488
relation P19
type Q56061
Dionysius the Areopagite or Vladimir Chernov were born in [ANSWERS]
{'OR': [['Q310686', 'P19', {'concept': 'Q56061'}], ['Q973488', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q973488 property:P19 ?j } UNION { resource:Q310686 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Athens Krasnodar
Dionysius the Areopagite or Vladimir Chernov were born in Athens and Krasnodar
Athens Krasnodar
action filter_type
action union
action find
entity Dionysius the Areopagite
relation place of birth
action find
entity Vladimir Chernov
relation place of birth
type administrative territorial entity
{'OR': [['Dionysius the Areopagite', 'place of birth', {'concept': 'administrative territorial entity'}], ['Vladimir Chernov', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Vladimir_Chernov property:place_of_birth ?j } UNION { resource:Dionysius_the_Areopagite property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1524 Q3646
P1376
Q15617994
USER
What have Athens and Krasnodar as their capital ?
(Q1524,P1376,c(Q15617994)) (Q3646,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q1524
relation P1376
type Q15617994
action filter_type
action find
entity Q3646
relation P1376
type Q15617994
['Q1524', 'P1376', {'concept': 'Q15617994'}] ['Q3646', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { resource:Q1524 property:P1376 ?d . ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q15617994 . resource:Q3646 property:P1376 ?d } }
Athens Krasnodar
action union
action filter_type
action find
entity Athens
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Krasnodar
relation capital of
type designation for an administrative territorial entity
['Athens', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Krasnodar', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { resource:Athens property:capital_of ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Krasnodar property:capital_of ?d } }
[]
designation for an administrative territorial entity
Q334714 Q41 Q1786286
SYSTEM
Duchy of Athens, Greece, Kuban Oblast
Q334714 Q41 Q1786286
(Q1524,P1376,c(Q15617994)) (Q3646,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q1524
relation P1376
type Q15617994
action filter_type
action find
entity Q3646
relation P1376
type Q15617994
[ANSWERS] have Athens and Krasnodar as their capital
['Q1524', 'P1376', {'concept': 'Q15617994'}] ['Q3646', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { resource:Q1524 property:P1376 ?d . ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q15617994 . resource:Q3646 property:P1376 ?d } }
Duchy of Athens Greece Kuban Oblast
Duchy of Athens, Greece and Kuban Oblast have Athens and Krasnodar as their capital
Duchy of Athens Greece Kuban Oblast
action union
action filter_type
action find
entity Athens
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Krasnodar
relation capital of
type designation for an administrative territorial entity
['Athens', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Krasnodar', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { resource:Athens property:capital_of ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Krasnodar property:capital_of ?d } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q334714 Q41 Q1786286
P1376
Q56061
USER
Which administrative territories are the capital of Duchy of Athens, Greece and Kuban Oblast ?
(c(Q56061),P1376,Q334714) (c(Q56061),P1376,Q41) (c(Q56061),P1376,Q1786286)
action union
action filter_type
action find_reverse
entity Q334714
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q41
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q1786286
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q334714'] [{'concept': 'Q56061'}, 'P1376', 'Q41'] [{'concept': 'Q56061'}, 'P1376', 'Q1786286']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q56061 . ?w property:P1376 resource:Q334714 } UNION { ?w property:P1376 resource:Q41 . ?w rdf:type ontology:Q56061 } }
Duchy of Athens Greece Kuban Oblast
action union
action filter_type
action find_reverse
entity Duchy of Athens
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Greece
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Kuban Oblast
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Duchy of Athens'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Greece'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Kuban Oblast']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:administrative_territorial_entity . ?w property:capital_of resource:Duchy_of_Athens } UNION { ?w property:capital_of resource:Greece . ?w rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q1524 Q1524 Q3646
SYSTEM
Athens for 1st, 2nd, Krasnodar for 3rd
Q1524 Q1524 Q202337 Q3646
(c(Q56061),P1376,Q334714) (c(Q56061),P1376,Q41) (c(Q56061),P1376,Q1786286)
action union
action filter_type
action find_reverse
entity Q334714
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q41
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q1786286
relation P1376
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P1376', 'Q334714'] [{'concept': 'Q56061'}, 'P1376', 'Q41'] [{'concept': 'Q56061'}, 'P1376', 'Q1786286']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q56061 . ?w property:P1376 resource:Q334714 } UNION { ?w property:P1376 resource:Q41 . ?w rdf:type ontology:Q56061 } }
Athens Athens Nauplion Krasnodar
Athens, Athens and Krasnodar are the capital of Duchy of Athens, Greece and Kuban Oblast
Athens Athens Krasnodar
action union
action filter_type
action find_reverse
entity Duchy of Athens
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Greece
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Kuban Oblast
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Duchy of Athens'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Greece'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Kuban Oblast']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:administrative_territorial_entity . ?w property:capital_of resource:Duchy_of_Athens } UNION { ?w property:capital_of resource:Greece . ?w rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41
P710
Q820655
USER
Which statute did Greece participate in ?
(c(Q820655),P710,Q41)
action filter_type
action find_reverse
entity Q41
relation P710
type Q820655
[{'concept': 'Q820655'}, 'P710', 'Q41']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q41 . ?q rdf:type ontology:Q820655 }
Greece
action filter_type
action find_reverse
entity Greece
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Greece']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Greece . ?q rdf:type ontology:statute }
[]
statute
Q167396
SYSTEM
Balkan Pact
Q167396
(c(Q820655),P710,Q41)
action filter_type
action find_reverse
entity Q41
relation P710
type Q820655
Greece participated in [ANSWER]
[{'concept': 'Q820655'}, 'P710', 'Q41']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q41 . ?q rdf:type ontology:Q820655 }
Balkan Pact
Greece participated in Balkan Pact
Balkan Pact
action filter_type
action find_reverse
entity Greece
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Greece']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Greece . ?q rdf:type ontology:statute }
[]