Simple Question (Direct)
Simple Question
Q544001
P21
Q290
USER
What is the sex of Mila Haugová ?
(Q544001,P21,c(Q290))
action filter_type
action find
entity Q544001
relation P21
type Q290
['Q544001', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q544001 property:P21 ?j }
Mila Haugová
action filter_type
action find
entity Mila Haugová
relation gender
type sex
['Mila Haugová', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Mila_Haugová property:gender ?j }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q544001,P21,c(Q290))
action filter_type
action find
entity Q544001
relation P21
type Q290
The sex of Mila Haugová is the [ANSWER]
['Q544001', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q544001 property:P21 ?j }
female
The sex of Mila Haugová is the female
female
action filter_type
action find
entity Mila Haugová
relation gender
type sex
['Mila Haugová', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Mila_Haugová property:gender ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q544001
P27
Q15617994
USER
Which administrative territory does Mila Haugová belong to ?
(Q544001,P27,c(Q15617994))
action filter_type
action find
entity Q544001
relation P27
type Q15617994
['Q544001', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q544001 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Mila Haugová
action filter_type
action find
entity Mila Haugová
relation country of citizenship
type designation for an administrative territorial entity
['Mila Haugová', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Mila_Haugová property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q214
SYSTEM
Slovakia
Q214
(Q544001,P27,c(Q15617994))
action filter_type
action find
entity Q544001
relation P27
type Q15617994
Mila Haugová belongs to [ANSWER]
['Q544001', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q544001 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Slovakia
Mila Haugová belongs to Slovakia
Slovakia
action filter_type
action find
entity Mila Haugová
relation country of citizenship
type designation for an administrative territorial entity
['Mila Haugová', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Mila_Haugová property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q544001
P106
Q12737077
USER
What do that person do for a living ?
(Q214,P106,c(Q12737077))
action filter_type
action find
entity Q544001
relation P106
type Q12737077
['Q214', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q544001 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Mila Haugová
action filter_type
action find
entity Mila Haugová
relation occupation
type occupation
['Slovakia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Mila_Haugová property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q333634 Q49757 Q36180
SYSTEM
translator, poet, writer
Q333634 Q49757 Q36180
(Q214,P106,c(Q12737077))
action filter_type
action find
entity Q544001
relation P106
type Q12737077
[ANSWERS] that person do for a living
['Q214', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q544001 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
translator poet writer
Translator, poet and writer that person do for a living
translator poet writer
action filter_type
action find
entity Mila Haugová
relation occupation
type occupation
['Slovakia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Mila_Haugová property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q333634 Q49757 Q36180
P937
Q502895
USER
Who works at those occupations ?
(c(Q502895),P937,Q333634) (c(Q502895),P937,Q49757) (c(Q502895),P937,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q333634'] [{'concept': 'Q502895'}, 'P937', 'Q49757'] [{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?w WHERE { ?w property:P937 ?o . VALUES ( ?o ) { ( resource:Q333634 ) ( resource:Q49757 ) ( resource:Q36180 ) } . ?w rdf:type ontology:Q502895 }
translator poet writer
action filter_type
action find_reverse
entity prev_answer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'translator'] [{'concept': 'common name'}, 'work location', 'poet'] [{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?w WHERE { ?w property:work_location ?o . VALUES ( ?o ) { ( resource:translator ) ( resource:poet ) ( resource:writer ) } . ?w rdf:type ontology:common_name }
[]
common name
Q3398852
SYSTEM
Lidija Dimkovska
Q3398852
(c(Q502895),P937,Q333634) (c(Q502895),P937,Q49757) (c(Q502895),P937,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P937
type Q502895
[ANSWER] works at those occupations
[{'concept': 'Q502895'}, 'P937', 'Q333634'] [{'concept': 'Q502895'}, 'P937', 'Q49757'] [{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?w WHERE { ?w property:P937 ?o . VALUES ( ?o ) { ( resource:Q333634 ) ( resource:Q49757 ) ( resource:Q36180 ) } . ?w rdf:type ontology:Q502895 }
Lidija Dimkovska
Lidija Dimkovska works at those occupations
Lidija Dimkovska
action filter_type
action find_reverse
entity prev_answer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'translator'] [{'concept': 'common name'}, 'work location', 'poet'] [{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?w WHERE { ?w property:work_location ?o . VALUES ( ?o ) { ( resource:translator ) ( resource:poet ) ( resource:writer ) } . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q214
P530
Q15617994
USER
Which administrative territory has diplomatic relations with Slovakia ?
(Q214,P530,c(Q15617994))
action filter_type
action find
entity Q214
relation P530
type Q15617994
['Q214', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q214 property:P530 ?b . ?b rdf:type ontology:Q15617994 }
Slovakia
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Slovakia property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q214,P530,c(Q15617994))
action filter_type
action find
entity Q214
relation P530
type Q15617994
And [ANSWER] has diplomatic relations with Slovakia
['Q214', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q214 property:P530 ?b . ?b rdf:type ontology:Q15617994 }
Italy
And Italy has diplomatic relations with Slovakia
Italy
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Slovakia property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q214
Q1048835
USER
And which political territory?
(Q214,P530,c(Q1048835))
action filter_type
action find
entity Q214
relation P530
type Q1048835
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q214 property:P530 ?x . ?x rdf:type ontology:Q1048835 }
Slovakia
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Slovakia property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q214,P530,c(Q1048835))
action filter_type
action find
entity Q214
relation P530
type Q1048835
[ANSWER]
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q214 property:P530 ?x . ?x rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Slovakia property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q678
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with greater number of political territories than Tonga ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q678
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?e ) WHERE { ?r property:P530 ?j . ?r rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Q678 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?g ) }
Tonga
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Tonga
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?e ) WHERE { ?r property:diplomatic_relation ?j . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Tonga property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?g ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
82
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q678
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?e ) WHERE { ?r property:P530 ?j . ?r rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Q678 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?g ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
82
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Tonga
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?e ) WHERE { ?r property:diplomatic_relation ?j . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Tonga property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q822
P530
Q15617994 Q1048835
USER
And what about Lebanon?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q822
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a rdf:type ontology:Q1048835 . resource:Q822 property:P530 ?a } } . FILTER ( ?r > ?k ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?r ) WHERE { ?h property:P530 ?p . ?h rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?h } }
Lebanon
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Lebanon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Lebanon property:diplomatic_relation ?a } } . FILTER ( ?r > ?k ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?r ) WHERE { ?h property:diplomatic_relation ?p . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?h } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
82
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q822
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a rdf:type ontology:Q1048835 . resource:Q822 property:P530 ?a } } . FILTER ( ?r > ?k ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?r ) WHERE { ?h property:P530 ?p . ?h rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?h } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
82
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Lebanon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Lebanon property:diplomatic_relation ?a } } . FILTER ( ?r > ?k ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?r ) WHERE { ?h property:diplomatic_relation ?p . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?h } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q145
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic associations with lesser number of political territories than United Kingdom ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q145
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?n ) WHERE { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 . ?r property:P530 ?p } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:Q145 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?n < ?h ) }
United Kingdom
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?n ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?p } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:United_Kingdom property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n < ?h ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
124
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q145
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?n ) WHERE { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 . ?r property:P530 ?p } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:Q145 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?n < ?h ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
124
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?n ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?p } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { resource:United_Kingdom property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n < ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1028
P530
Q1048835 Q15617994
USER
And how about Morocco?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1028
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?t property:P530 ?v } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q1028 property:P530 ?c } } . FILTER ( ?k < ?s ) }
Morocco
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?v } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Morocco property:diplomatic_relation ?c } } . FILTER ( ?k < ?s ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
77
Q702 Q805 Q262 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1028
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?t property:P530 ?v } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q1028 property:P530 ?c } } . FILTER ( ?k < ?s ) }
Federated States of Micronesia Yemen Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
77
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?v } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Morocco property:diplomatic_relation ?c } } . FILTER ( ?k < ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q214
P17
Q56061
USER
Which administrative territories are located in Slovakia ?
(c(Q56061),P17,Q214)
action filter_type
action find_reverse
entity Q214
relation P17
type Q56061
[{'concept': 'Q56061'}, 'P17', 'Q214']
SELECT DISTINCT ?c WHERE { ?c property:P17 resource:Q214 . ?c rdf:type ontology:Q56061 }
Slovakia
action filter_type
action find_reverse
entity Slovakia
relation country
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'country', 'Slovakia']
SELECT DISTINCT ?c WHERE { ?c property:country resource:Slovakia . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1780 Q11874 Q25409
SYSTEM
Bratislava, Zvolen, Košice
Q12813780 Q12813550 Q276362 Q833845 Q11056698 Q846434 Q524405 Q846431 Q370445 Q756667 Q11874 Q852324 Q373318 Q909301 Q460925 Q3495592 Q246760 Q855767 Q754768 Q258439 Q286229 Q842005 Q212590 Q550357 Q15705197 Q516689 Q1780 Q740351 Q3391866 Q663954 Q26393 Q480806 Q26397 Q1011722 Q1461425 Q837478 Q135727 Q7919102 Q846424 Q852318 Q780527 Q852313 Q144983 Q387563 Q509715 Q1212546 Q374095 Q828850 Q528102 Q1012707 Q754776 Q847350 Q27907 Q754773 Q337478 Q242478 Q258481 Q829812 Q12055838 Q393479 Q740469 Q341724 Q876300 Q479329 Q208750 Q837464 Q389942 Q12816876 Q837460 Q842022 Q5904602 Q596044 Q549849 Q135818 Q11857 Q376987 Q26175 Q842028 Q391068 Q909291 Q856402 Q256301 Q581492 Q531445 Q392365 Q649076 Q792099 Q1501355 Q338528 Q135647 Q279005 Q512771 Q135649 Q600735 Q537778 Q713754 Q901050 Q208110 Q221097 Q847118 Q907449 Q832998 Q1160703 Q578686 Q673741 Q1028048 Q12814569 Q259694 Q846444 Q637861 Q601117 Q592301 Q909281 Q207226 Q301501 Q529060 Q750423 Q875268 Q1289023 Q481564 Q390911 Q4938853 Q135655 Q460767 Q1468651 Q849018 Q392704 Q243669 Q663394 Q613959 Q267888 Q846440 Q612516 Q268463 Q1186966 Q847213 Q27541 Q327977 Q874947 Q247620 Q393421 Q1105540 Q60038 Q750413 Q552208 Q429676 Q391361 Q1057687 Q272040 Q144454 Q3391933 Q12816871 Q782928 Q506693 Q1214751 Q389397 Q239637 Q182903 Q26119 Q210796 Q957896 Q6161834 Q733946 Q319787 Q1023443 Q135667 Q716125 Q12035129 Q3756899 Q3393637 Q590957 Q1023474 Q1105729 Q847336 Q750407 Q1898406 Q846853 Q261678 Q690807 Q793128 Q392483 Q793680 Q848166 Q27001 Q1399966 Q34409 Q680094 Q427243 Q241125 Q659424 Q964132 Q516578 Q728965 Q377416 Q390946 Q605059 Q788753 Q462840 Q247240 Q393609 Q741329 Q25797 Q282536 Q377650 Q605521 Q532555 Q754788 Q249935 Q8675874 Q669551 Q547367 Q465312 Q663470 Q837456 Q572748 Q145002 Q568249 Q264708 Q848735 Q393925 Q909333 Q481528 Q321074 Q832897 Q1044667 Q754790 Q842018 Q302787 Q842011 Q653326 Q27007 Q1416247 Q1178457 Q25409 Q589309 Q713808 Q1128621 Q646393
(c(Q56061),P17,Q214)
action filter_type
action find_reverse
entity Q214
relation P17
type Q56061
Are [ANSWERS] are located in Slovakia
[{'concept': 'Q56061'}, 'P17', 'Q214']
SELECT DISTINCT ?c WHERE { ?c property:P17 resource:Q214 . ?c rdf:type ontology:Q56061 }
Bujakovo Dolný Almáš Nové Zámky Svidník Hrabové Strážske Spišské Vlachy Hriňová Tisovec Krupina Zvolen Podolínec Kraskovo, Slovakia Nováky Michalovce Gapel Záhorská Ves Behynce Partizánske Sliač Ťahanovce Vranov nad Topľou Čierna nad Tisou Giraltovce Hradisko Súľov-Hradná Bratislava Nové Mesto, Bratislava Radačov Nová Bystrica Poprad Obručná Nitra Gombasek Hliník nad Váhom Sabinov Medzev Velký Lót Gbely Svit Hanušovce nad Topľou Veľký Šariš Banská Bystrica Kňažia Tvrdošín Mást Kolárovo Hnúšťa Spišský Štiavnik Karlova Ves Kremnica Trstená Bytča Hlohovec Čadca Levoča Púchov Rimavská Sobota Srňacie Žehra Veľký Meder Čunovo Čilistov Krásna Prievidza Malacky Nemšová Agov Myjava Veľké Kapušany Horné Krškany Modra Bánovce nad Bebravou Brezová pod Bradlom Detva Nové Mesto nad Váhom Trnava Gelnica Šamorín Tornaľa Hurbanovo Trebišov Liptovské Sliače Dudince Vlkolínec Skalica Behynce Brakoň Liptovský Hrádok Turčianske Teplice Dobšiná Stará Turá Šaštín-Stráže Vyšná Hutka Spišské Podhradie Veľká Modrý Kameň Banská Štiavnica Sídlisko KVP Lipany Dúbravka Bodolló Závada Medzilaborce Veľký Krtíš Turany nad Ondavou Hed' Poltár Vrbové Jasenov Sklabinský Podzámok Spišská Stará Ves Krásno nad Kysucou Zlaté Moravce Okoličné Vrtižer Topoľčany Čekovce Šipice Ilava Šaca Bokša Rajecké Teplice Galanta Záskalie Pod Braniskom Šurany administrative territorial entity of Slovakia Dolné Devičany Topoľa Rožňava Moldava nad Bodvou Vysoké Tatry Nová Baňa Staré Hory Revúca Ružomberok Kežmarok Čáčov Fiľakovo Žarnovica Horňa Štúrovo Stropkov Horný Ohaj Sereď Šaľa Hody Liptovský Mikuláš Tatranská Lomnica Meretice Adamovce Stupava Levice Veľký Bysterec Gabčíkovo Tlmače Turzovka Prešov Komárno Lednica, Púchov District Jasna Low Tatras Brestovec, Myjava District Považská Bystrica Turany Kráľovský Chlmec Kalinčiakovo Malý Bysterec Farná Zlatno Nitrianska Streda Teplička nad Váhom Kava, Komárno Sečovce Senica Old Town Jelšava Mochovce Leopoldov Beňova Lehota Štrbské Pleso Bernátovce Borov Martin Úpor Mošovce Arma Breza, Slovakia Sobrance Pezinok Voderady Kysucké Nové Mesto Lučenec Košice-Barca Šahy Spišská Belá Bojnice Spišská Nová Ves Svätý Jur Želiezovce Trnové Žilina Jasná Námestovo Stará Ľubovňa Trenčianske Teplice Snina Nová Dubnica Príles Sušany Alekšince Brezno Baškovce Vrútky Kavečany Trenčín Sládkovičovo Vráble Jalšovík Žiar nad Hronom Rajec Dubnica nad Váhom Piešťany Bodice Veľké Kozmálovce Senec Krompachy Ivanka pri Dunaji Handlová Holíč Bardejov Malé Kosihy Mokraď Košice Dolný Kubín Černová Pšurnovice Dunajská Streda
Are Bratislava, Zvolen and Košice are located in Slovakia
Bratislava Zvolen Košice
action filter_type
action find_reverse
entity Slovakia
relation country
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'country', 'Slovakia']
SELECT DISTINCT ?c WHERE { ?c property:country resource:Slovakia . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1780 Q11874 Q25409
P190
Q486972
USER
Which human settlements are twin cities of Bratislava, Zvolen and Košice ?
(Q1780,P190,c(Q486972)) (Q11874,P190,c(Q486972)) (Q25409,P190,c(Q486972))
action union
action filter_type
action find
entity Q1780
relation P190
type Q486972
action filter_type
action find
entity Q11874
relation P190
type Q486972
action filter_type
action find
entity Q25409
relation P190
type Q486972
['Q1780', 'P190', {'concept': 'Q486972'}] ['Q11874', 'P190', {'concept': 'Q486972'}] ['Q25409', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { ?t property:P190 ?g . VALUES ( ?t ) { ( resource:Q1780 ) ( resource:Q11874 ) } }
Bratislava Zvolen Košice
action union
action filter_type
action find
entity Bratislava
relation sister city
type human settlement
action filter_type
action find
entity Zvolen
relation sister city
type human settlement
action filter_type
action find
entity Košice
relation sister city
type human settlement
['Bratislava', 'sister city', {'concept': 'human settlement'}] ['Zvolen', 'sister city', {'concept': 'human settlement'}] ['Košice', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { ?t property:sister_city ?g . VALUES ( ?t ) { ( resource:Bratislava ) ( resource:Zvolen ) } }
[]
human settlement
Q31487 Q24879 Q263107
SYSTEM
Kraków, Bremen, Judenburg
Q31487 Q24879 Q263107 Q826068
(Q1780,P190,c(Q486972)) (Q11874,P190,c(Q486972)) (Q25409,P190,c(Q486972))
action union
action filter_type
action find
entity Q1780
relation P190
type Q486972
action filter_type
action find
entity Q11874
relation P190
type Q486972
action filter_type
action find
entity Q25409
relation P190
type Q486972
[ANSWERS] are twin cities of Bratislava, Zvolen and Košice
['Q1780', 'P190', {'concept': 'Q486972'}] ['Q11874', 'P190', {'concept': 'Q486972'}] ['Q25409', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { ?t property:P190 ?g . VALUES ( ?t ) { ( resource:Q1780 ) ( resource:Q11874 ) } }
Kraków Bremen Judenburg Krosno
Kraków, Bremen and Judenburg are twin cities of Bratislava, Zvolen and Košice
Kraków Bremen Judenburg
action union
action filter_type
action find
entity Bratislava
relation sister city
type human settlement
action filter_type
action find
entity Zvolen
relation sister city
type human settlement
action filter_type
action find
entity Košice
relation sister city
type human settlement
['Bratislava', 'sister city', {'concept': 'human settlement'}] ['Zvolen', 'sister city', {'concept': 'human settlement'}] ['Košice', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { ?t property:sister_city ?g . VALUES ( ?t ) { ( resource:Bratislava ) ( resource:Zvolen ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1780
P119
Q502895
USER
Which people have that administrative territory as place of burial ?
(c(Q502895),P119,Q1780)
action filter_type
action find_reverse
entity Q1780
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q1780']
SELECT DISTINCT ?m WHERE { ?m property:P119 resource:Q1780 . ?m rdf:type ontology:Q502895 }
Bratislava
action filter_type
action find_reverse
entity Bratislava
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Bratislava']
SELECT DISTINCT ?m WHERE { ?m property:place_of_burial resource:Bratislava . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1780
SYSTEM
Did you mean Bratislava ?
Q31487 Q24879 Q263107
(c(Q502895),P119,Q31487) (c(Q502895),P119,Q24879) (c(Q502895),P119,Q263107)
[ANSWER]
[{'concept': 'Q502895'}, 'P119', 'Q31487'] [{'concept': 'Q502895'}, 'P119', 'Q24879'] [{'concept': 'Q502895'}, 'P119', 'Q263107']
SELECT DISTINCT ?m WHERE { ?m property:P119 resource:Q1780 . ?m rdf:type ontology:Q502895 }
Kraków Bremen Judenburg
Did you mean Bratislava ?
Bratislava
[{'concept': 'common name'}, 'place of burial', 'Kraków'] [{'concept': 'common name'}, 'place of burial', 'Bremen'] [{'concept': 'common name'}, 'place of burial', 'Judenburg']
SELECT DISTINCT ?m WHERE { ?m property:place_of_burial resource:Bratislava . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P119,Q1780)
[{'concept': 'Q502895'}, 'P119', 'Q1780']
[{'concept': 'common name'}, 'place of burial', 'Bratislava']
[]
Q791393 Q150543
SYSTEM
József Batthyány, Alexander Dubček
Q791393 Q150543
(c(Q502895),P119,Q1780)
action filter_type
action find_reverse
entity Q1780
relation P119
type Q502895
[ANSWERS] have that administrative territory as place of burial
[{'concept': 'Q502895'}, 'P119', 'Q1780']
SELECT DISTINCT ?m WHERE { ?m property:P119 resource:Q1780 . ?m rdf:type ontology:Q502895 }
József Batthyány Alexander Dubček
József Batthyány and Alexander Dubček have that administrative territory as place of burial
József Batthyány Alexander Dubček
action filter_type
action find_reverse
entity Bratislava
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Bratislava']
SELECT DISTINCT ?m WHERE { ?m property:place_of_burial resource:Bratislava . ?m rdf:type ontology:common_name }
[]