Simple Question (Direct)
Simple Question
Q1344045
P20
Q20667921
USER
Where did the expiration of Gaspard de Bernard de Marigny occur ?
(Q1344045,P20,c(Q20667921))
action filter_type
action find
entity Q1344045
relation P20
type Q20667921
['Q1344045', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1344045 property:P20 ?e . ?e rdf:type ontology:Q20667921 }
Gaspard de Bernard de Marigny
action filter_type
action find
entity Gaspard de Bernard de Marigny
relation place of death
type type of french administrative division
['Gaspard de Bernard de Marigny', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Gaspard_de_Bernard_de_Marigny property:place_of_death ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1146300
SYSTEM
Combrand
Q1146300
(Q1344045,P20,c(Q20667921))
action filter_type
action find
entity Q1344045
relation P20
type Q20667921
The expiration of Gaspard de Bernard de Marigny occurred of [ANSWER]
['Q1344045', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1344045 property:P20 ?e . ?e rdf:type ontology:Q20667921 }
Combrand
The expiration of Gaspard de Bernard de Marigny occurred of Combrand
Combrand
action filter_type
action find
entity Gaspard de Bernard de Marigny
relation place of death
type type of french administrative division
['Gaspard de Bernard de Marigny', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Gaspard_de_Bernard_de_Marigny property:place_of_death ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1344045
P410
Q4189293
USER
Which is the title held by Gaspard de Bernard de Marigny ?
(Q1344045,P410,c(Q4189293))
action filter_type
action find
entity Q1344045
relation P410
type Q4189293
['Q1344045', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?i WHERE { resource:Q1344045 property:P410 ?i . ?i rdf:type ontology:Q4189293 }
Gaspard de Bernard de Marigny
action filter_type
action find
entity Gaspard de Bernard de Marigny
relation military rank
type title
['Gaspard de Bernard de Marigny', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?i WHERE { resource:Gaspard_de_Bernard_de_Marigny property:military_rank ?i . ?i rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q1344045,P410,c(Q4189293))
action filter_type
action find
entity Q1344045
relation P410
type Q4189293
[ANSWER] is the title held by Gaspard de Bernard de Marigny
['Q1344045', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?i WHERE { resource:Q1344045 property:P410 ?i . ?i rdf:type ontology:Q4189293 }
general officer
General officer is the title held by Gaspard de Bernard de Marigny
general officer
action filter_type
action find
entity Gaspard de Bernard de Marigny
relation military rank
type title
['Gaspard de Bernard de Marigny', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?i WHERE { resource:Gaspard_de_Bernard_de_Marigny property:military_rank ?i . ?i rdf:type ontology:title }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11851921
Q4189293
USER
And how about Antero Rokka?
(Q11851921,P410,c(Q4189293))
action filter_type
action find
entity Q11851921
relation P410
type Q4189293
['Q11851921', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q4189293 . resource:Q11851921 property:P410 ?d }
Antero Rokka
action filter_type
action find
entity Antero Rokka
relation military rank
type title
['Antero Rokka', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:title . resource:Antero_Rokka property:military_rank ?d }
[]
title
Q17378201
SYSTEM
corporal
Q17378201
(Q11851921,P410,c(Q4189293))
action filter_type
action find
entity Q11851921
relation P410
type Q4189293
[ANSWER]
['Q11851921', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q4189293 . resource:Q11851921 property:P410 ?d }
corporal
corporal
action filter_type
action find
entity Antero Rokka
relation military rank
type title
['Antero Rokka', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:title . resource:Antero_Rokka property:military_rank ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16338063 Q1344045
P27
Q15617994
USER
Which administrative territories are Gaspard de Bernard de Marigny or Henri Germain a civilian of ?
OR((Q1344045,P27,c(Q15617994)), (Q16338063,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1344045
relation P27
action find
entity Q16338063
relation P27
type Q15617994
{'OR': [['Q1344045', 'P27', {'concept': 'Q15617994'}], ['Q16338063', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?n property:P27 ?q . VALUES ( ?n ) { ( resource:Q1344045 ) ( resource:Q16338063 ) } } . ?q rdf:type ontology:Q15617994 }
Henri Germain Gaspard de Bernard de Marigny
action filter_type
action union
action find
entity Gaspard de Bernard de Marigny
relation country of citizenship
action find
entity Henri Germain
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gaspard de Bernard de Marigny', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Henri Germain', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?n property:country_of_citizenship ?q . VALUES ( ?n ) { ( resource:Gaspard_de_Bernard_de_Marigny ) ( resource:Henri_Germain ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
OR((Q1344045,P27,c(Q15617994)), (Q16338063,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1344045
relation P27
action find
entity Q16338063
relation P27
type Q15617994
[ANSWER] is Gaspard de Bernard de Marigny or Henri Germain a civilian of
{'OR': [['Q1344045', 'P27', {'concept': 'Q15617994'}], ['Q16338063', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?n property:P27 ?q . VALUES ( ?n ) { ( resource:Q1344045 ) ( resource:Q16338063 ) } } . ?q rdf:type ontology:Q15617994 }
France
France is Gaspard de Bernard de Marigny or Henri Germain a civilian of
France
action filter_type
action union
action find
entity Gaspard de Bernard de Marigny
relation country of citizenship
action find
entity Henri Germain
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gaspard de Bernard de Marigny', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Henri Germain', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?n property:country_of_citizenship ?q . VALUES ( ?n ) { ( resource:Gaspard_de_Bernard_de_Marigny ) ( resource:Henri_Germain ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q819
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with lesser number of administrative territories than Laos ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q819
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { ?k property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t rdf:type ontology:Q15617994 . resource:Q819 property:P530 ?t } } . FILTER ( ?z < ?b ) }
Laos
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Laos
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { ?k property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Laos property:diplomatic_relation ?t } } . FILTER ( ?z < ?b ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q819
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with lesser number of administrative territories than Laos
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { ?k property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t rdf:type ontology:Q15617994 . resource:Q819 property:P530 ?t } } . FILTER ( ?z < ?b ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with lesser number of administrative territories than Laos
Central African Republic Kingdom of the Netherlands Kazakhstan
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Laos
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { ?k property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Laos property:diplomatic_relation ?t } } . FILTER ( ?z < ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q233
P530
Q15617994 Q15617994
USER
And also tell me about Malta?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q233
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P530 ?m . ?t rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P530 resource:Q233 . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?s ) }
Malta
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Malta
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:diplomatic_relation ?m . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:diplomatic_relation resource:Malta . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?s ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q233
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P530 ?m . ?t rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P530 resource:Q233 . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?s ) }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania Norway Tunisia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Malta
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:diplomatic_relation ?m . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:diplomatic_relation resource:Malta . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with atleast 40 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 40
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?q property:P530 ?x } GROUP BY ?q } . FILTER ( ?v >= 40 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 40
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?x } GROUP BY ?q } . FILTER ( ?v >= 40 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 40
[ANSWERS] have diplomatic relations with atleast 40 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?q property:P530 ?x } GROUP BY ?q } . FILTER ( ?v >= 40 ) }
Brazil Italy
Brazil and Italy have diplomatic relations with atleast 40 administrative territories
Brazil Italy
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 40
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?x } GROUP BY ?q } . FILTER ( ?v >= 40 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q155 Q38
P36
Q56061
USER
Which administrative territories are the capitals of those administrative territories ?
(Q155,P36,c(Q56061)) (Q38,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
['Q155', 'P36', {'concept': 'Q56061'}] ['Q38', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . VALUES ( ?i ) { ( resource:Q155 ) ( resource:Q38 ) } . ?i property:P36 ?e }
Brazil Italy
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['Italy', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . VALUES ( ?i ) { ( resource:Brazil ) ( resource:Italy ) } . ?i property:capital ?e }
[]
administrative territorial entity
Q8678 Q220
SYSTEM
Rio de Janeiro, Rome
Q8678 Q220
(Q155,P36,c(Q56061)) (Q38,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
[ANSWERS] are the capitals of those administrative territories
['Q155', 'P36', {'concept': 'Q56061'}] ['Q38', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . VALUES ( ?i ) { ( resource:Q155 ) ( resource:Q38 ) } . ?i property:P36 ?e }
Rio de Janeiro Rome
Rio de Janeiro and Rome are the capitals of those administrative territories
Rio de Janeiro Rome
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['Italy', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . VALUES ( ?i ) { ( resource:Brazil ) ( resource:Italy ) } . ?i property:capital ?e }
[]
Clarification
Simple Question|Single Entity|Indirect
Q220
P17
Q3024240
USER
Which former country is that administrative territory present in ?
(Q220,P17,c(Q3024240))
action filter_type
action find
entity Q220
relation P17
type Q3024240
['Q220', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q3024240 . resource:Q220 property:P17 ?g }
Rome
action filter_type
action find
entity Rome
relation country
type former country
['Rome', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:former_country . resource:Rome property:country ?g }
[]
former country
Clarification for simple ques.
Q8678
SYSTEM
Did you mean Rio de Janeiro ?
Q8678 Q220
(Q8678,P17,c(Q3024240)) (Q220,P17,c(Q3024240))
[ANSWER]
['Q8678', 'P17', {'concept': 'Q3024240'}] ['Q220', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q3024240 . resource:Q220 property:P17 ?g }
Rio de Janeiro Rome
Did you mean Rio de Janeiro ?
Rio de Janeiro
['Rio de Janeiro', 'country', {'concept': 'former country'}] ['Rome', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:former_country . resource:Rome property:country ?g }
[]
Simple Question (Coreferenced)
USER
No, I meant Rome. Could you tell me the answer for that?
(Q220,P17,c(Q3024240))
Q220
['Q220', 'P17', {'concept': 'Q3024240'}]
['Rome', 'country', {'concept': 'former country'}]
[]
Q2277
SYSTEM
Roman Empire
Q2277
(Q220,P17,c(Q3024240))
action filter_type
action find
entity Q220
relation P17
type Q3024240
That administrative territory is the [ANSWER]
['Q220', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q3024240 . resource:Q220 property:P17 ?g }
Roman Empire
That administrative territory is the Roman Empire
Roman Empire
action filter_type
action find
entity Rome
relation country
type former country
['Rome', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:former_country . resource:Rome property:country ?g }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P2348
Q3024240 Q502895
USER
How many former countries did lesser number of people occur than that former country ?
(c(Q502895),P2348,c(Q3024240))
action count
action less
action find_reverse_tuple_counts
relation P2348
type Q3024240
type Q502895
action count
action filter_type
action find_reverse
entity Q2277
relation P2348
type Q502895
[{'concept': 'Q502895'}, 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P2348 ?m . ?a rdf:type ontology:Q502895 . ?m rdf:type ontology:Q3024240 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P2348 resource:Q2277 . ?z rdf:type ontology:Q502895 } } . FILTER ( ?p < ?b ) }
action count
action less
action find_reverse_tuple_counts
relation period
type former country
type common name
action count
action filter_type
action find_reverse
entity Roman Empire
relation period
type common name
[{'concept': 'common name'}, 'period', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:period ?m . ?a rdf:type ontology:common_name . ?m rdf:type ontology:former_country } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:period resource:Roman_Empire . ?z rdf:type ontology:common_name } } . FILTER ( ?p < ?b ) }
[]
former country common name
SYSTEM
1
Q12544
(c(Q502895),P2348,c(Q3024240))
action count
action less
action find_reverse_tuple_counts
relation P2348
type Q3024240
type Q502895
action count
action filter_type
action find_reverse
entity Q2277
relation P2348
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P2348 ?m . ?a rdf:type ontology:Q502895 . ?m rdf:type ontology:Q3024240 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P2348 resource:Q2277 . ?z rdf:type ontology:Q502895 } } . FILTER ( ?p < ?b ) }
Byzantine Empire
1
action count
action less
action find_reverse_tuple_counts
relation period
type former country
type common name
action count
action filter_type
action find_reverse
entity Roman Empire
relation period
type common name
[{'concept': 'common name'}, 'period', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:period ?m . ?a rdf:type ontology:common_name . ?m rdf:type ontology:former_country } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:period resource:Roman_Empire . ?z rdf:type ontology:common_name } } . FILTER ( ?p < ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q220
P190
Q15617994
USER
Which administrative territory is twin city of Rome ?
(Q220,P190,c(Q15617994))
action filter_type
action find
entity Q220
relation P190
type Q15617994
['Q220', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q220 property:P190 ?f . ?f rdf:type ontology:Q15617994 }
Rome
action filter_type
action find
entity Rome
relation sister city
type designation for an administrative territorial entity
['Rome', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Rome property:sister_city ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q13437
SYSTEM
Benevento
Q13437
(Q220,P190,c(Q15617994))
action filter_type
action find
entity Q220
relation P190
type Q15617994
[ANSWER] is twin city of Rome
['Q220', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q220 property:P190 ?f . ?f rdf:type ontology:Q15617994 }
Benevento
Benevento is twin city of Rome
Benevento
action filter_type
action find
entity Rome
relation sister city
type designation for an administrative territorial entity
['Rome', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Rome property:sister_city ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q328427
Q15617994
USER
And what about Le Grau-du-Roi?
(Q328427,P190,c(Q15617994))
action filter_type
action find
entity Q328427
relation P190
type Q15617994
['Q328427', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q328427 property:P190 ?i . ?i rdf:type ontology:Q15617994 }
Le Grau-du-Roi
action filter_type
action find
entity Le Grau-du-Roi
relation sister city
type designation for an administrative territorial entity
['Le Grau-du-Roi', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Le_Grau-du-Roi property:sister_city ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q83255
SYSTEM
Dossenheim
Q83255
(Q328427,P190,c(Q15617994))
action filter_type
action find
entity Q328427
relation P190
type Q15617994
[ANSWER]
['Q328427', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q328427 property:P190 ?i . ?i rdf:type ontology:Q15617994 }
Dossenheim
Dossenheim
action filter_type
action find
entity Le Grau-du-Roi
relation sister city
type designation for an administrative territorial entity
['Le Grau-du-Roi', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Le_Grau-du-Roi property:sister_city ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]