Simple Question (Direct)
Simple Question
Q566669
P19
Q56061
USER
Which administrative territory was Roland Wieser born at ?
(Q566669,P19,c(Q56061))
action filter_type
action find
entity Q566669
relation P19
type Q56061
['Q566669', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q566669 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Roland Wieser
action filter_type
action find
entity Roland Wieser
relation place of birth
type administrative territorial entity
['Roland Wieser', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Roland_Wieser property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q58006
SYSTEM
Zschopau
Q58006
(Q566669,P19,c(Q56061))
action filter_type
action find
entity Q566669
relation P19
type Q56061
Roland Wieser was born in [ANSWER]
['Q566669', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q566669 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Zschopau
Roland Wieser was born in Zschopau
Zschopau
action filter_type
action find
entity Roland Wieser
relation place of birth
type administrative territorial entity
['Roland Wieser', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Roland_Wieser property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q566669
P27
Q7275
USER
Which state is Roland Wieser an inhabitant of ?
(Q566669,P27,c(Q7275))
action filter_type
action find
entity Q566669
relation P27
type Q7275
['Q566669', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q566669 property:P27 ?q . ?q rdf:type ontology:Q7275 }
Roland Wieser
action filter_type
action find
entity Roland Wieser
relation country of citizenship
type state
['Roland Wieser', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Roland_Wieser property:country_of_citizenship ?q . ?q rdf:type ontology:state }
[]
state
Q16957
SYSTEM
East Germany
Q16957
(Q566669,P27,c(Q7275))
action filter_type
action find
entity Q566669
relation P27
type Q7275
[ANSWER] is Roland Wieser an inhabitant of
['Q566669', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q566669 property:P27 ?q . ?q rdf:type ontology:Q7275 }
East Germany
East Germany is Roland Wieser an inhabitant of
East Germany
action filter_type
action find
entity Roland Wieser
relation country of citizenship
type state
['Roland Wieser', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Roland_Wieser property:country_of_citizenship ?q . ?q rdf:type ontology:state }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q566669
Q1048835
USER
And which political territory?
(Q566669,P27,c(Q1048835))
action filter_type
action find
entity Q566669
relation P27
type Q1048835
['Q566669', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . resource:Q566669 property:P27 ?g }
Roland Wieser
action filter_type
action find
entity Roland Wieser
relation country of citizenship
type political territorial entity
['Roland Wieser', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . resource:Roland_Wieser property:country_of_citizenship ?g }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q566669,P27,c(Q1048835))
action filter_type
action find
entity Q566669
relation P27
type Q1048835
[ANSWER]
['Q566669', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . resource:Q566669 property:P27 ?g }
Germany
Germany
action filter_type
action find
entity Roland Wieser
relation country of citizenship
type political territorial entity
['Roland Wieser', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . resource:Roland_Wieser property:country_of_citizenship ?g }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6694963 Q183
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Germany and are Luadh located in ?
AND((Q183,P530,c(Q15617994)), (Q6694963,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q6694963
relation P17
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q6694963', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?v . resource:Q6694963 property:P17 ?v }
Luadh Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Luadh
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Luadh', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?v . resource:Luadh property:country ?v }
[]
designation for an administrative territorial entity
Q222
SYSTEM
Albania
Q222
AND((Q183,P530,c(Q15617994)), (Q6694963,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q6694963
relation P17
type Q15617994
[ANSWER] have diplomatic relationships with Germany and are Luadh located in
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q6694963', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?v . resource:Q6694963 property:P17 ?v }
Albania
Albania have diplomatic relationships with Germany and are Luadh located in
Albania
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Luadh
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Luadh', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?v . resource:Luadh property:country ?v }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q31
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with lesser number of administrative territories and political territories than Belgium ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q31
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?p WHERE { VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?y rdf:type ?d } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { ?q rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } . resource:Q31 property:P530 ?q } } . FILTER ( ?r < ?x ) }
Belgium
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Belgium
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?p WHERE { VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?y rdf:type ?d } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { ?q rdf:type ?k . VALUES ( ?k ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } . resource:Belgium property:diplomatic_relation ?q } } . FILTER ( ?r < ?x ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q55 Q32 Q96
SYSTEM
Netherlands, Luxembourg, Mexico
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q924 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q31
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic associations with lesser number of administrative territories and political territories than Belgium
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?p WHERE { VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?y rdf:type ?d } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { ?q rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } . resource:Q31 property:P530 ?q } } . FILTER ( ?r < ?x ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Tanzania Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
Netherlands, Luxembourg and Mexico have diplomatic associations with lesser number of administrative territories and political territories than Belgium
Netherlands Luxembourg Mexico
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Belgium
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?p WHERE { VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?y rdf:type ?d } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { ?q rdf:type ?k . VALUES ( ?k ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } . resource:Belgium property:diplomatic_relation ?q } } . FILTER ( ?r < ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q881
P530
Q15617994 Q1048835 Q15617994
USER
And what about Vietnam?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q881
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?v WHERE { { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } } GROUP BY ?v } . FILTER ( ?c < ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q881 property:P530 ?j . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q1048835 } } } } }
Vietnam
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Vietnam
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?v WHERE { { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . FILTER ( ?c < ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Vietnam property:diplomatic_relation ?j . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:political_territorial_entity } } } } }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q55 Q214 Q28
SYSTEM
Netherlands, Slovakia, Hungary
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q924 Q983 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1028 Q786 Q228 Q227 Q224 Q221 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q881
relation P530
type Q15617994
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?v WHERE { { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } } GROUP BY ?v } . FILTER ( ?c < ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q881 property:P530 ?j . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q1048835 } } } } }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Tanzania Equatorial Guinea 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 Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
Netherlands Slovakia Hungary
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Vietnam
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?v WHERE { { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . FILTER ( ?c < ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Vietnam property:diplomatic_relation ?j . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:political_territorial_entity } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q811979 Q699405
USER
Which administrative territories are atmost 40367 architectural structures and dwellings situated in ?
(c(Q811979)|c(Q699405),P17,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q699405
value 40367
[[{'concept': 'Q811979'}, {'concept': 'Q699405'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { { ?q property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q699405 } UNION { ?q property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q811979 } } GROUP BY ?s } . FILTER ( ?f <= 40367 ) }
action atmost
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type dwelling
value 40367
[[{'concept': 'architectural structure'}, {'concept': 'dwelling'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { { ?q property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:dwelling } UNION { ?q property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:architectural_structure } } GROUP BY ?s } . FILTER ( ?f <= 40367 ) }
[]
designation for an administrative territorial entity architectural structure dwelling
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q30 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q811979)|c(Q699405),P17,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q699405
value 40367
[ANSWERS] are atmost 40367 architectural structures and dwellings situated in
[[{'concept': 'Q811979'}, {'concept': 'Q699405'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { { ?q property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q699405 } UNION { ?q property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q811979 } } GROUP BY ?s } . FILTER ( ?f <= 40367 ) }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium United States of America Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
Italy, Brazil and United States of America are atmost 40367 architectural structures and dwellings situated in
Italy Brazil United States of America
action atmost
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type dwelling
value 40367
[[{'concept': 'architectural structure'}, {'concept': 'dwelling'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { { ?q property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:dwelling } UNION { ?q property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:architectural_structure } } GROUP BY ?s } . FILTER ( ?f <= 40367 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q30
P463
Q874405
USER
Which organizations were those administrative territories a member of ?
(Q38,P463,c(Q874405)) (Q155,P463,c(Q874405)) (Q30,P463,c(Q874405))
action filter_type
action find
entity prev_answer
relation P463
type Q874405
['Q38', 'P463', {'concept': 'Q874405'}] ['Q155', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?s ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . ?g rdf:type ontology:Q874405 . ?s property:P463 ?g }
Italy Brazil United States of America
action filter_type
action find
entity prev_answer
relation member of
type social group
['Italy', 'member of', {'concept': 'social group'}] ['Brazil', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?s ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . ?g rdf:type ontology:social_group . ?s property:member_of ?g }
[]
social group
Q7817 Q7817 Q8908
SYSTEM
World Health Organization for 1st, 2nd, Council of Europe for 3rd
Q663492 Q8908 Q376150 Q41984 Q782942 Q848633 Q1374456 Q7817 Q602399 Q47539 Q1484463 Q7817 Q782942 Q295875
(Q38,P463,c(Q874405)) (Q155,P463,c(Q874405)) (Q30,P463,c(Q874405))
action filter_type
action find
entity prev_answer
relation P463
type Q874405
[ANSWERS]
['Q38', 'P463', {'concept': 'Q874405'}] ['Q155', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?s ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . ?g rdf:type ontology:Q874405 . ?s property:P463 ?g }
Eurocontrol Council of Europe International Telecommunication Union International Atomic Energy Agency Australia Group International Chamber of Commerce Euro-Atlantic Partnership Council World Health Organization Amazon Cooperation Treaty Organization South Atlantic Peace and Cooperation Zone G8+5 World Health Organization Australia Group ANZUS
World Health Organization, World Health Organization and Council of Europe were those administrative territories a member of
World Health Organization World Health Organization Council of Europe
action filter_type
action find
entity prev_answer
relation member of
type social group
['Italy', 'member of', {'concept': 'social group'}] ['Brazil', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?s ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . ?g rdf:type ontology:social_group . ?s property:member_of ?g }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8908
P664
Q2558684
USER
What was organized by that social group ?
(c(Q2558684),P664,Q8908)
action filter_type
action find_reverse
entity Q8908
relation P664
type Q2558684
[{'concept': 'Q2558684'}, 'P664', 'Q8908']
SELECT DISTINCT ?d WHERE { ?d property:P664 resource:Q8908 . ?d rdf:type ontology:Q2558684 }
Council of Europe
action filter_type
action find_reverse
entity Council of Europe
relation organizer
type world day
[{'concept': 'world day'}, 'organizer', 'Council of Europe']
SELECT DISTINCT ?d WHERE { ?d property:organizer resource:Council_of_Europe . ?d rdf:type ontology:world_day }
[]
world day
Clarification for simple ques.
Q7817
SYSTEM
Did you mean World Health Organization ?
Q7817 Q7817 Q8908
(c(Q2558684),P664,Q7817) (c(Q2558684),P664,Q7817) (c(Q2558684),P664,Q8908)
[ANSWER]
[{'concept': 'Q2558684'}, 'P664', 'Q7817'] [{'concept': 'Q2558684'}, 'P664', 'Q7817'] [{'concept': 'Q2558684'}, 'P664', 'Q8908']
SELECT DISTINCT ?d WHERE { ?d property:P664 resource:Q8908 . ?d rdf:type ontology:Q2558684 }
World Health Organization World Health Organization Council of Europe
Did you mean World Health Organization ?
World Health Organization
[{'concept': 'world day'}, 'organizer', 'World Health Organization'] [{'concept': 'world day'}, 'organizer', 'World Health Organization'] [{'concept': 'world day'}, 'organizer', 'Council of Europe']
SELECT DISTINCT ?d WHERE { ?d property:organizer resource:Council_of_Europe . ?d rdf:type ontology:world_day }
[]
Simple Question (Coreferenced)
USER
No, I meant Council of Europe. Could you tell me the answer for that?
(c(Q2558684),P664,Q8908)
Q8908
[{'concept': 'Q2558684'}, 'P664', 'Q8908']
[{'concept': 'world day'}, 'organizer', 'Council of Europe']
[]
Q496423
SYSTEM
European Day of Languages
Q496423
(c(Q2558684),P664,Q8908)
action filter_type
action find_reverse
entity Q8908
relation P664
type Q2558684
[ANSWER] was organized by that social group
[{'concept': 'Q2558684'}, 'P664', 'Q8908']
SELECT DISTINCT ?d WHERE { ?d property:P664 resource:Q8908 . ?d rdf:type ontology:Q2558684 }
European Day of Languages
European Day of Languages was organized by that social group
European Day of Languages
action filter_type
action find_reverse
entity Council of Europe
relation organizer
type world day
[{'concept': 'world day'}, 'organizer', 'Council of Europe']
SELECT DISTINCT ?d WHERE { ?d property:organizer resource:Council_of_Europe . ?d rdf:type ontology:world_day }
[]