Simple Question (Direct)
Simple Question
Q521372
P47
Q20667921
USER
Which french administrative divisions are adjacent to Le Caule-Sainte-Beuve ?
(Q521372,P47,c(Q20667921))
action filter_type
action find
entity Q521372
relation P47
type Q20667921
['Q521372', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q521372 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Le Caule-Sainte-Beuve
action filter_type
action find
entity Le Caule-Sainte-Beuve
relation shares border with
type type of french administrative division
['Le Caule-Sainte-Beuve', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Le_Caule-Sainte-Beuve property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1416592 Q960795 Q614866
SYSTEM
Flamets-Frétils, Saint-Germain-sur-Eaulne, Illois
Q723869 Q640924 Q944094 Q373135 Q1112304 Q960795 Q614866 Q1167782 Q1416592
(Q521372,P47,c(Q20667921))
action filter_type
action find
entity Q521372
relation P47
type Q20667921
[ANSWERS] are adjacent to Le Caule-Sainte-Beuve
['Q521372', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q521372 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Landes-Vieilles-et-Neuves Aubermesnil-aux-Érables Sainte-Beuve-en-Rivière Nullemont Auvilliers Saint-Germain-sur-Eaulne Illois Rétonval Flamets-Frétils
Flamets-Frétils, Saint-Germain-sur-Eaulne and Illois are adjacent to Le Caule-Sainte-Beuve
Flamets-Frétils Saint-Germain-sur-Eaulne Illois
action filter_type
action find
entity Le Caule-Sainte-Beuve
relation shares border with
type type of french administrative division
['Le Caule-Sainte-Beuve', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Le_Caule-Sainte-Beuve property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q521372
P19
Q502895
USER
Who has location of birth at Le Caule-Sainte-Beuve ?
(c(Q502895),P19,Q521372)
action filter_type
action find_reverse
entity Q521372
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q521372']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P19 resource:Q521372 }
Le Caule-Sainte-Beuve
action filter_type
action find_reverse
entity Le Caule-Sainte-Beuve
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Le Caule-Sainte-Beuve']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:place_of_birth resource:Le_Caule-Sainte-Beuve }
[]
common name
Q6948193
SYSTEM
Myriam Birger
Q6948193
(c(Q502895),P19,Q521372)
action filter_type
action find_reverse
entity Q521372
relation P19
type Q502895
[ANSWER] has location of birth at Le Caule-Sainte-Beuve
[{'concept': 'Q502895'}, 'P19', 'Q521372']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P19 resource:Q521372 }
Myriam Birger
Myriam Birger has location of birth at Le Caule-Sainte-Beuve
Myriam Birger
action filter_type
action find_reverse
entity Le Caule-Sainte-Beuve
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Le Caule-Sainte-Beuve']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:place_of_birth resource:Le_Caule-Sainte-Beuve }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1416592
P17
Q15617994
USER
Which administrative territory does Flamets-Frétils belong to ?
(Q1416592,P17,c(Q15617994))
action filter_type
action find
entity Q1416592
relation P17
type Q15617994
['Q1416592', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1416592 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Flamets-Frétils
action filter_type
action find
entity Flamets-Frétils
relation country
type designation for an administrative territorial entity
['Flamets-Frétils', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Flamets-Frétils property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1416592,P17,c(Q15617994))
action filter_type
action find
entity Q1416592
relation P17
type Q15617994
Flamets-Frétils belongs to the [ANSWER]
['Q1416592', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1416592 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
France
Flamets-Frétils belongs to the France
France
action filter_type
action find
entity Flamets-Frétils
relation country
type designation for an administrative territorial entity
['Flamets-Frétils', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Flamets-Frétils property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q830641
Q15617994
USER
And how about La Celle-en-Morvan?
(Q830641,P17,c(Q15617994))
action filter_type
action find
entity Q830641
relation P17
type Q15617994
['Q830641', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q830641 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
La Celle-en-Morvan
action filter_type
action find
entity La Celle-en-Morvan
relation country
type designation for an administrative territorial entity
['La Celle-en-Morvan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:La_Celle-en-Morvan property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q830641,P17,c(Q15617994))
action filter_type
action find
entity Q830641
relation P17
type Q15617994
[ANSWER]
['Q830641', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q830641 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity La Celle-en-Morvan
relation country
type designation for an administrative territorial entity
['La Celle-en-Morvan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:La_Celle-en-Morvan property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1045
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with greater number of administrative territories or political territories than Somalia ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1045
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:P530 ?j . ?v rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P530 resource:Q1045 . { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?u > ?q ) }
Somalia
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Somalia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:diplomatic_relation ?j . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:diplomatic_relation resource:Somalia . { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?u > ?q ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q230 Q233 Q20 Q1041 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q916 Q833 Q1009 Q1008 Q971 Q79 Q77 Q878 Q774 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1045
relation P530
type Q15617994
type Q1048835
[ANSWERS] have a diplomatic relationship with greater number of administrative territories or political territories than Somalia
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:P530 ?j . ?v rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P530 resource:Q1045 . { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?u > ?q ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Georgia Malta Norway Senegal Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Angola Malaysia Cameroon Côte d'Ivoire Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have a diplomatic relationship with greater number of administrative territories or political territories than Somalia
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Somalia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:diplomatic_relation ?j . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:diplomatic_relation resource:Somalia . { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?u > ?q ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q55076
P530
Q15617994
USER
Do Parolise have diplomatic relations with those ones ?
(Q55076,P530,Q38) (Q55076,P530,Q155) (Q55076,P530,Q30)
action is_in
entity prev_answer
action find
entity Q55076
relation P530
['Q55076', 'P530', 'Q38'] ['Q55076', 'P530', 'Q155'] ['Q55076', 'P530', 'Q30']
ASK WHERE { VALUES ( ?o ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . resource:Q55076 property:P530 ?o }
Parolise
action is_in
entity prev_answer
action find
entity Parolise
relation diplomatic relation
['Parolise', 'diplomatic relation', 'Italy'] ['Parolise', 'diplomatic relation', 'Brazil'] ['Parolise', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?o ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . resource:Parolise property:diplomatic_relation ?o }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q55076,P530,Q38) (Q55076,P530,Q155) (Q55076,P530,Q30)
action is_in
entity prev_answer
action find
entity Q55076
relation P530
[ANSWER]
['Q55076', 'P530', 'Q38'] ['Q55076', 'P530', 'Q155'] ['Q55076', 'P530', 'Q30']
ASK WHERE { VALUES ( ?o ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . resource:Q55076 property:P530 ?o }
No
action is_in
entity prev_answer
action find
entity Parolise
relation diplomatic relation
['Parolise', 'diplomatic relation', 'Italy'] ['Parolise', 'diplomatic relation', 'Brazil'] ['Parolise', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?o ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . resource:Parolise property:diplomatic_relation ?o }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q960795 Q1110472 Q254829
P47
Q20667921
USER
Does Saint-Germain-sur-Eaulne have an adjacent border with Criquetot-l'Esneval and Collioure ?
(Q960795,P47,Q1110472) (Q960795,P47,Q254829)
action is_in
entity Q960795
action intersection
action find_reverse
entity Q1110472
relation P47
action find_reverse
entity Q254829
relation P47
['Q960795', 'P47', 'Q1110472'] ['Q960795', 'P47', 'Q254829']
ASK WHERE { resource:Q960795 property:P47 resource:Q1110472 . resource:Q960795 property:P47 resource:Q254829 }
Saint-Germain-sur-Eaulne Criquetot-l'Esneval Collioure
action is_in
entity Saint-Germain-sur-Eaulne
action intersection
action find_reverse
entity Criquetot-l'Esneval
relation shares border with
action find_reverse
entity Collioure
relation shares border with
['Saint-Germain-sur-Eaulne', 'shares border with', "Criquetot-l'Esneval"] ['Saint-Germain-sur-Eaulne', 'shares border with', 'Collioure']
ASK WHERE { resource:Saint-Germain-sur-Eaulne property:shares_border_with resource:Criquetot-l'Esneval . resource:Saint-Germain-sur-Eaulne property:shares_border_with resource:Collioure }
[]
type of french administrative division
SYSTEM
NO
(Q960795,P47,Q1110472) (Q960795,P47,Q254829)
action is_in
entity Q960795
action intersection
action find_reverse
entity Q1110472
relation P47
action find_reverse
entity Q254829
relation P47
[ANSWER]
['Q960795', 'P47', 'Q1110472'] ['Q960795', 'P47', 'Q254829']
ASK WHERE { resource:Q960795 property:P47 resource:Q1110472 . resource:Q960795 property:P47 resource:Q254829 }
No
action is_in
entity Saint-Germain-sur-Eaulne
action intersection
action find_reverse
entity Criquetot-l'Esneval
relation shares border with
action find_reverse
entity Collioure
relation shares border with
['Saint-Germain-sur-Eaulne', 'shares border with', "Criquetot-l'Esneval"] ['Saint-Germain-sur-Eaulne', 'shares border with', 'Collioure']
ASK WHERE { resource:Saint-Germain-sur-Eaulne property:shares_border_with resource:Criquetot-l'Esneval . resource:Saint-Germain-sur-Eaulne property:shares_border_with resource:Collioure }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q960795 Q2024276
P47
Q13220204
USER
How many administrative country subdivisions are adjacent to Saint-Germain-sur-Eaulne or Chavusy District ?
(Q960795,P47,c(Q13220204)) (Q2024276,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q960795
relation P47
type Q13220204
action filter_type
action find
entity Q2024276
relation P47
type Q13220204
['Q960795', 'P47', {'concept': 'Q13220204'}] ['Q2024276', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { VALUES ( ?a ) { ( resource:Q960795 ) ( resource:Q2024276 ) } . ?a property:P47 ?r }
Saint-Germain-sur-Eaulne Chavusy District
action count
action union
action filter_type
action find
entity Saint-Germain-sur-Eaulne
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Chavusy District
relation shares border with
type second-level administrative country subdivision
['Saint-Germain-sur-Eaulne', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Chavusy District', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { VALUES ( ?a ) { ( resource:Saint-Germain-sur-Eaulne ) ( resource:Chavusy_District ) } . ?a property:shares_border_with ?r }
[]
second-level administrative country subdivision
SYSTEM
6
Q2024293 Q537700 Q1644438 Q2024248 Q2024261 Q675279
(Q960795,P47,c(Q13220204)) (Q2024276,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q960795
relation P47
type Q13220204
action filter_type
action find
entity Q2024276
relation P47
type Q13220204
[ANSWER]
['Q960795', 'P47', {'concept': 'Q13220204'}] ['Q2024276', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { VALUES ( ?a ) { ( resource:Q960795 ) ( resource:Q2024276 ) } . ?a property:P47 ?r }
Cherykaw District Bychaw District Mstsislaw District Slawharad District Mogilev District Drybin District
6
action count
action union
action filter_type
action find
entity Saint-Germain-sur-Eaulne
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Chavusy District
relation shares border with
type second-level administrative country subdivision
['Saint-Germain-sur-Eaulne', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Chavusy District', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { VALUES ( ?a ) { ( resource:Saint-Germain-sur-Eaulne ) ( resource:Chavusy_District ) } . ?a property:shares_border_with ?r }
[]