Simple Question (Direct)
Simple Question
Q2736323
P19
Q56061
USER
Which administrative territory was José Luis Llorente born in ?
(Q2736323,P19,c(Q56061))
action filter_type
action find
entity Q2736323
relation P19
type Q56061
['Q2736323', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q2736323 property:P19 ?m . ?m rdf:type ontology:Q56061 }
José Luis Llorente
action filter_type
action find
entity José Luis Llorente
relation place of birth
type administrative territorial entity
['José Luis Llorente', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:José_Luis_Llorente property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8356
SYSTEM
Valladolid
Q8356
(Q2736323,P19,c(Q56061))
action filter_type
action find
entity Q2736323
relation P19
type Q56061
José Luis Llorente was born in [ANSWER]
['Q2736323', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q2736323 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Valladolid
José Luis Llorente was born in Valladolid
Valladolid
action filter_type
action find
entity José Luis Llorente
relation place of birth
type administrative territorial entity
['José Luis Llorente', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:José_Luis_Llorente property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8356
P1376
Q13220204
USER
Which administrative country subdivision has that administrative territory has its first city ?
(Q8356,P1376,c(Q13220204))
action filter_type
action find
entity Q8356
relation P1376
type Q13220204
['Q8356', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { resource:Q8356 property:P1376 ?t . ?t rdf:type ontology:Q13220204 }
Valladolid
action filter_type
action find
entity Valladolid
relation capital of
type second-level administrative country subdivision
['Valladolid', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { resource:Valladolid property:capital_of ?t . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q71097
SYSTEM
Valladolid Province
Q71097
(Q8356,P1376,c(Q13220204))
action filter_type
action find
entity Q8356
relation P1376
type Q13220204
[ANSWER] has that administrative territory has its first city
['Q8356', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { resource:Q8356 property:P1376 ?t . ?t rdf:type ontology:Q13220204 }
Valladolid Province
Valladolid Province has that administrative territory has its first city
Valladolid Province
action filter_type
action find
entity Valladolid
relation capital of
type second-level administrative country subdivision
['Valladolid', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { resource:Valladolid property:capital_of ?t . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q193808
Q13220204
USER
And also tell me about Guingamp?
(Q193808,P1376,c(Q13220204))
action filter_type
action find
entity Q193808
relation P1376
type Q13220204
['Q193808', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?j WHERE { resource:Q193808 property:P1376 ?j . ?j rdf:type ontology:Q13220204 }
Guingamp
action filter_type
action find
entity Guingamp
relation capital of
type second-level administrative country subdivision
['Guingamp', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?j WHERE { resource:Guingamp property:capital_of ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q701268
SYSTEM
arrondissement of Guingamp
Q701268
(Q193808,P1376,c(Q13220204))
action filter_type
action find
entity Q193808
relation P1376
type Q13220204
[ANSWER]
['Q193808', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?j WHERE { resource:Q193808 property:P1376 ?j . ?j rdf:type ontology:Q13220204 }
arrondissement of Guingamp
arrondissement of Guingamp
action filter_type
action find
entity Guingamp
relation capital of
type second-level administrative country subdivision
['Guingamp', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?j WHERE { resource:Guingamp property:capital_of ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q337567 Q13220204
USER
Which administrative country subdivisions are situated in the neighbourhood of approximately 2 watercourses and still waterss ?
(c(Q13220204),P206,c(Q355304)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q13220204
type Q355304
action find_tuple_counts
relation P206
type Q13220204
type Q337567
value 2
[{'concept': 'Q13220204'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?i = 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } . ?d rdf:type ?o } GROUP BY ?t } }
action approx
action union
action find_tuple_counts
relation located next to body of water
type second-level administrative country subdivision
type watercourse
action find_tuple_counts
relation located next to body of water
type second-level administrative country subdivision
type still waters
value 2
[{'concept': 'second-level administrative country subdivision'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?i = 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:watercourse ) ( ontology:still_waters ) } . ?d rdf:type ?o } GROUP BY ?t } }
[]
watercourse still waters second-level administrative country subdivision
Q863961 Q157137 Q58931
SYSTEM
Binnenmaas, Kryvyi Rih, Harderwijk
Q861873 Q58931 Q863961 Q157137 Q9948
(c(Q13220204),P206,c(Q355304)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q13220204
type Q355304
action find_tuple_counts
relation P206
type Q13220204
type Q337567
value 2
[ANSWERS] are situated in the neighbourhood of approximately 2 watercourses and still waterss
[{'concept': 'Q13220204'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?i = 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } . ?d rdf:type ?o } GROUP BY ?t } }
Bilyayivka Harderwijk Binnenmaas Kryvyi Rih Muiden
Binnenmaas, Kryvyi Rih and Harderwijk are situated in the neighbourhood of approximately 2 watercourses and still waterss
Binnenmaas Kryvyi Rih Harderwijk
action approx
action union
action find_tuple_counts
relation located next to body of water
type second-level administrative country subdivision
type watercourse
action find_tuple_counts
relation located next to body of water
type second-level administrative country subdivision
type still waters
value 2
[{'concept': 'second-level administrative country subdivision'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?i = 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:watercourse ) ( ontology:still_waters ) } . ?d rdf:type ?o } GROUP BY ?t } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1028
P138
Q15617994 Q13220204
USER
Which administrative territories are greater number of administrative country subdivisions named after than Morocco ?
(c(Q13220204),P138,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action count
action filter_type
action find
entity Q1028
relation P138
type Q15617994
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?d ) WHERE { ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q13220204 . ?f property:P138 ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Q1028 property:P138 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?i ) }
Morocco
action greater
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action count
action filter_type
action find
entity Morocco
relation named after
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?d ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:second-level_administrative_country_subdivision . ?f property:named_after ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Morocco property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?i ) }
[]
designation for an administrative territorial entity second-level administrative country subdivision
Q159856 Q2719360
SYSTEM
Duchy of Brabant, Duchy of Luxembourg
Q159856 Q2719360
(c(Q13220204),P138,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action count
action filter_type
action find
entity Q1028
relation P138
type Q15617994
[ANSWERS] are greater number of administrative country subdivisions named after than Morocco
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?d ) WHERE { ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q13220204 . ?f property:P138 ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Q1028 property:P138 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?i ) }
Duchy of Brabant Duchy of Luxembourg
Duchy of Brabant and Duchy of Luxembourg are greater number of administrative country subdivisions named after than Morocco
Duchy of Brabant Duchy of Luxembourg
action greater
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action count
action filter_type
action find
entity Morocco
relation named after
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?d ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:second-level_administrative_country_subdivision . ?f property:named_after ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Morocco property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q39985
P138
Q15617994 Q13220204
USER
And also tell me about Brugherio?
(c(Q13220204),P138,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action count
action filter_type
action find
entity Q39985
relation P138
type Q15617994
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P138 ?j . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q13220204 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Q39985 property:P138 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?l ) }
Brugherio
action greater
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action count
action filter_type
action find
entity Brugherio
relation named after
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Brugherio property:named_after ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?l ) }
[]
designation for an administrative territorial entity second-level administrative country subdivision
Q159856 Q2719360
SYSTEM
Duchy of Brabant, Duchy of Luxembourg
Q159856 Q2719360
(c(Q13220204),P138,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action count
action filter_type
action find
entity Q39985
relation P138
type Q15617994
[ANSWERS]
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P138 ?j . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q13220204 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Q39985 property:P138 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?l ) }
Duchy of Brabant Duchy of Luxembourg
Duchy of Brabant Duchy of Luxembourg
action greater
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action count
action filter_type
action find
entity Brugherio
relation named after
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Brugherio property:named_after ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?l ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1935527 Q71097
P47
Q13220204
USER
Which administrative country subdivisions share border with Valladolid Province or Mueang Ranong ?
OR((c(Q13220204),P47,Q71097), (c(Q13220204),P47,Q1935527))
action filter_type
action union
action find_reverse
entity Q71097
relation P47
action find_reverse
entity Q1935527
relation P47
type Q13220204
{'OR': [[{'concept': 'Q13220204'}, 'P47', 'Q71097'], [{'concept': 'Q13220204'}, 'P47', 'Q1935527']]}
SELECT DISTINCT ?r WHERE { { ?r property:P47 ?e . VALUES ( ?e ) { ( resource:Q71097 ) ( resource:Q1935527 ) } } . ?r rdf:type ontology:Q13220204 }
Mueang Ranong Valladolid Province
action filter_type
action union
action find_reverse
entity Valladolid Province
relation shares border with
action find_reverse
entity Mueang Ranong
relation shares border with
type second-level administrative country subdivision
{'OR': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Valladolid Province'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Mueang Ranong']]}
SELECT DISTINCT ?r WHERE { { ?r property:shares_border_with ?e . VALUES ( ?e ) { ( resource:Valladolid_Province ) ( resource:Mueang_Ranong ) } } . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q71140 Q71080 Q475608 Q475861 Q55271 Q55283 Q55269 Q55288 Q71113
SYSTEM
León Province, Salamanca Province, Kapoe, La-un, Burgos Province, Segovia Province, Palencia Province, Ávila Province, Zamora Province
Q71140 Q71080 Q475608 Q475861 Q55271 Q55283 Q55269 Q55288 Q71113
OR((c(Q13220204),P47,Q71097), (c(Q13220204),P47,Q1935527))
action filter_type
action union
action find_reverse
entity Q71097
relation P47
action find_reverse
entity Q1935527
relation P47
type Q13220204
[ANSWERS] share border with Valladolid Province or Mueang Ranong
{'OR': [[{'concept': 'Q13220204'}, 'P47', 'Q71097'], [{'concept': 'Q13220204'}, 'P47', 'Q1935527']]}
SELECT DISTINCT ?r WHERE { { ?r property:P47 ?e . VALUES ( ?e ) { ( resource:Q71097 ) ( resource:Q1935527 ) } } . ?r rdf:type ontology:Q13220204 }
León Province Salamanca Province Kapoe La-un Burgos Province Segovia Province Palencia Province Ávila Province Zamora Province
León Province, Salamanca Province, Kapoe, La-un, Burgos Province, Segovia Province, Palencia Province, Ávila Province and Zamora Province share border with Valladolid Province or Mueang Ranong
León Province Salamanca Province Kapoe La-un Burgos Province Segovia Province Palencia Province Ávila Province Zamora Province
action filter_type
action union
action find_reverse
entity Valladolid Province
relation shares border with
action find_reverse
entity Mueang Ranong
relation shares border with
type second-level administrative country subdivision
{'OR': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Valladolid Province'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Mueang Ranong']]}
SELECT DISTINCT ?r WHERE { { ?r property:shares_border_with ?e . VALUES ( ?e ) { ( resource:Valladolid_Province ) ( resource:Mueang_Ranong ) } } . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q56061 Q13220204
USER
How many administrative territories and administrative country subdivisions do that administrative country subdivision share a border with ?
(c(Q56061),P47,Q71113) (c(Q13220204),P47,Q71113) (c(Q56061),P47,Q71140) (c(Q13220204),P47,Q71140) (c(Q56061),P47,Q71080) (c(Q13220204),P47,Q71080) (c(Q56061),P47,Q475608) (c(Q13220204),P47,Q475608) (c(Q56061),P47,Q475861) (c(Q13220204),P47,Q475861) (c(Q56061),P47,Q55271) (c(Q13220204),P47,Q55271) (c(Q56061),P47,Q55283) (c(Q13220204),P47,Q55283) (c(Q56061),P47,Q55269) (c(Q13220204),P47,Q55269) (c(Q56061),P47,Q55288) (c(Q13220204),P47,Q55288) (c(Q56061),P47,Q71113) (c(Q13220204),P47,Q71113)
[{'concept': 'Q56061'}, 'P47', 'Q71113'] [{'concept': 'Q13220204'}, 'P47', 'Q71113'] [{'concept': 'Q56061'}, 'P47', 'Q71140'] [{'concept': 'Q13220204'}, 'P47', 'Q71140'] [{'concept': 'Q56061'}, 'P47', 'Q71080'] [{'concept': 'Q13220204'}, 'P47', 'Q71080'] [{'concept': 'Q56061'}, 'P47', 'Q475608'] [{'concept': 'Q13220204'}, 'P47', 'Q475608'] [{'concept': 'Q56061'}, 'P47', 'Q475861'] [{'concept': 'Q13220204'}, 'P47', 'Q475861'] [{'concept': 'Q56061'}, 'P47', 'Q55271'] [{'concept': 'Q13220204'}, 'P47', 'Q55271'] [{'concept': 'Q56061'}, 'P47', 'Q55283'] [{'concept': 'Q13220204'}, 'P47', 'Q55283'] [{'concept': 'Q56061'}, 'P47', 'Q55269'] [{'concept': 'Q13220204'}, 'P47', 'Q55269'] [{'concept': 'Q56061'}, 'P47', 'Q55288'] [{'concept': 'Q13220204'}, 'P47', 'Q55288'] [{'concept': 'Q56061'}, 'P47', 'Q71113'] [{'concept': 'Q13220204'}, 'P47', 'Q71113']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q71113 } UNION { ?y property:P47 resource:Q71113 } UNION { ?z property:P47 resource:Q71140 } UNION { ?y property:P47 resource:Q71140 } UNION { ?z property:P47 resource:Q71080 } UNION { ?y property:P47 resource:Q71080 } UNION { ?z property:P47 resource:Q15900093 } UNION { ?y property:P47 resource:Q15900093 } UNION { ?z property:P47 resource:Q475861 } UNION { ?y property:P47 resource:Q475861 } UNION { ?z property:P47 resource:Q55271 } UNION { ?y property:P47 resource:Q55271 } UNION { ?z property:P47 resource:Q55283 } UNION { ?y property:P47 resource:Q55283 } UNION { ?z property:P47 resource:Q55269 } UNION { ?y property:P47 resource:Q55269 } UNION { ?z property:P47 resource:Q55288 } UNION { ?y property:P47 resource:Q55288 } UNION { ?z property:P47 resource:Q71113 } UNION { ?y property:P47 resource:Q71113 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q13220204 }
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Zamora Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Zamora Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'León Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'León Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Salamanca Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Salamanca Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Kapoe'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kapoe'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'La-un'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'La-un'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Burgos Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Burgos Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Segovia Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Segovia Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Palencia Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Palencia Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Ávila Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Ávila Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Zamora Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Zamora Province']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Zamora_Province } UNION { ?y property:shares_border_with resource:Zamora_Province } UNION { ?z property:shares_border_with resource:León_Province } UNION { ?y property:shares_border_with resource:León_Province } UNION { ?z property:shares_border_with resource:Salamanca_Province } UNION { ?y property:shares_border_with resource:Salamanca_Province } UNION { ?z property:shares_border_with resource:Kapoe } UNION { ?y property:shares_border_with resource:Kapoe } UNION { ?z property:shares_border_with resource:La-un } UNION { ?y property:shares_border_with resource:La-un } UNION { ?z property:shares_border_with resource:Burgos_Province } UNION { ?y property:shares_border_with resource:Burgos_Province } UNION { ?z property:shares_border_with resource:Segovia_Province } UNION { ?y property:shares_border_with resource:Segovia_Province } UNION { ?z property:shares_border_with resource:Palencia_Province } UNION { ?y property:shares_border_with resource:Palencia_Province } UNION { ?z property:shares_border_with resource:Ávila_Province } UNION { ?y property:shares_border_with resource:Ávila_Province } UNION { ?z property:shares_border_with resource:Zamora_Province } UNION { ?y property:shares_border_with resource:Zamora_Province } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
administrative territorial entity second-level administrative country subdivision
Quantitative|Count|Mult. entity type|Clarification
Q71080
SYSTEM
Did you mean Salamanca Province ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q71113 } UNION { ?y property:P47 resource:Q71113 } UNION { ?z property:P47 resource:Q71140 } UNION { ?y property:P47 resource:Q71140 } UNION { ?z property:P47 resource:Q71080 } UNION { ?y property:P47 resource:Q71080 } UNION { ?z property:P47 resource:Q15900093 } UNION { ?y property:P47 resource:Q15900093 } UNION { ?z property:P47 resource:Q475861 } UNION { ?y property:P47 resource:Q475861 } UNION { ?z property:P47 resource:Q55271 } UNION { ?y property:P47 resource:Q55271 } UNION { ?z property:P47 resource:Q55283 } UNION { ?y property:P47 resource:Q55283 } UNION { ?z property:P47 resource:Q55269 } UNION { ?y property:P47 resource:Q55269 } UNION { ?z property:P47 resource:Q55288 } UNION { ?y property:P47 resource:Q55288 } UNION { ?z property:P47 resource:Q71113 } UNION { ?y property:P47 resource:Q71113 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q13220204 }
Did you mean Salamanca Province ?
Salamanca Province
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Zamora_Province } UNION { ?y property:shares_border_with resource:Zamora_Province } UNION { ?z property:shares_border_with resource:León_Province } UNION { ?y property:shares_border_with resource:León_Province } UNION { ?z property:shares_border_with resource:Salamanca_Province } UNION { ?y property:shares_border_with resource:Salamanca_Province } UNION { ?z property:shares_border_with resource:Kapoe } UNION { ?y property:shares_border_with resource:Kapoe } UNION { ?z property:shares_border_with resource:La-un } UNION { ?y property:shares_border_with resource:La-un } UNION { ?z property:shares_border_with resource:Burgos_Province } UNION { ?y property:shares_border_with resource:Burgos_Province } UNION { ?z property:shares_border_with resource:Segovia_Province } UNION { ?y property:shares_border_with resource:Segovia_Province } UNION { ?z property:shares_border_with resource:Palencia_Province } UNION { ?y property:shares_border_with resource:Palencia_Province } UNION { ?z property:shares_border_with resource:Ávila_Province } UNION { ?y property:shares_border_with resource:Ávila_Province } UNION { ?z property:shares_border_with resource:Zamora_Province } UNION { ?y property:shares_border_with resource:Zamora_Province } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Zamora Province. Could you tell me the answer for that?
(c(Q56061),P47,Q71113) (c(Q13220204),P47,Q71113) (c(Q56061),P47,Q71140) (c(Q13220204),P47,Q71140) (c(Q56061),P47,Q71080) (c(Q13220204),P47,Q71080) (c(Q56061),P47,Q475608) (c(Q13220204),P47,Q475608) (c(Q56061),P47,Q475861) (c(Q13220204),P47,Q475861) (c(Q56061),P47,Q55271) (c(Q13220204),P47,Q55271) (c(Q56061),P47,Q55283) (c(Q13220204),P47,Q55283) (c(Q56061),P47,Q55269) (c(Q13220204),P47,Q55269) (c(Q56061),P47,Q55288) (c(Q13220204),P47,Q55288) (c(Q56061),P47,Q71113) (c(Q13220204),P47,Q71113)
Q71113
[{'concept': 'Q56061'}, 'P47', 'Q71113'] [{'concept': 'Q13220204'}, 'P47', 'Q71113'] [{'concept': 'Q56061'}, 'P47', 'Q71140'] [{'concept': 'Q13220204'}, 'P47', 'Q71140'] [{'concept': 'Q56061'}, 'P47', 'Q71080'] [{'concept': 'Q13220204'}, 'P47', 'Q71080'] [{'concept': 'Q56061'}, 'P47', 'Q475608'] [{'concept': 'Q13220204'}, 'P47', 'Q475608'] [{'concept': 'Q56061'}, 'P47', 'Q475861'] [{'concept': 'Q13220204'}, 'P47', 'Q475861'] [{'concept': 'Q56061'}, 'P47', 'Q55271'] [{'concept': 'Q13220204'}, 'P47', 'Q55271'] [{'concept': 'Q56061'}, 'P47', 'Q55283'] [{'concept': 'Q13220204'}, 'P47', 'Q55283'] [{'concept': 'Q56061'}, 'P47', 'Q55269'] [{'concept': 'Q13220204'}, 'P47', 'Q55269'] [{'concept': 'Q56061'}, 'P47', 'Q55288'] [{'concept': 'Q13220204'}, 'P47', 'Q55288'] [{'concept': 'Q56061'}, 'P47', 'Q71113'] [{'concept': 'Q13220204'}, 'P47', 'Q71113']
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Zamora Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Zamora Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'León Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'León Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Salamanca Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Salamanca Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Kapoe'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kapoe'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'La-un'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'La-un'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Burgos Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Burgos Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Segovia Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Segovia Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Palencia Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Palencia Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Ávila Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Ávila Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Zamora Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Zamora Province']
[]
SYSTEM
1 administrative territories and 4 administrative country subdivisions
Q71080 Q71140 Q768261 Q71097 Q95038
(c(Q56061),P47,Q71113) (c(Q13220204),P47,Q71113) (c(Q56061),P47,Q71140) (c(Q13220204),P47,Q71140) (c(Q56061),P47,Q71080) (c(Q13220204),P47,Q71080) (c(Q56061),P47,Q475608) (c(Q13220204),P47,Q475608) (c(Q56061),P47,Q475861) (c(Q13220204),P47,Q475861) (c(Q56061),P47,Q55271) (c(Q13220204),P47,Q55271) (c(Q56061),P47,Q55283) (c(Q13220204),P47,Q55283) (c(Q56061),P47,Q55269) (c(Q13220204),P47,Q55269) (c(Q56061),P47,Q55288) (c(Q13220204),P47,Q55288) (c(Q56061),P47,Q71113) (c(Q13220204),P47,Q71113)
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q71113'] [{'concept': 'Q13220204'}, 'P47', 'Q71113'] [{'concept': 'Q56061'}, 'P47', 'Q71140'] [{'concept': 'Q13220204'}, 'P47', 'Q71140'] [{'concept': 'Q56061'}, 'P47', 'Q71080'] [{'concept': 'Q13220204'}, 'P47', 'Q71080'] [{'concept': 'Q56061'}, 'P47', 'Q475608'] [{'concept': 'Q13220204'}, 'P47', 'Q475608'] [{'concept': 'Q56061'}, 'P47', 'Q475861'] [{'concept': 'Q13220204'}, 'P47', 'Q475861'] [{'concept': 'Q56061'}, 'P47', 'Q55271'] [{'concept': 'Q13220204'}, 'P47', 'Q55271'] [{'concept': 'Q56061'}, 'P47', 'Q55283'] [{'concept': 'Q13220204'}, 'P47', 'Q55283'] [{'concept': 'Q56061'}, 'P47', 'Q55269'] [{'concept': 'Q13220204'}, 'P47', 'Q55269'] [{'concept': 'Q56061'}, 'P47', 'Q55288'] [{'concept': 'Q13220204'}, 'P47', 'Q55288'] [{'concept': 'Q56061'}, 'P47', 'Q71113'] [{'concept': 'Q13220204'}, 'P47', 'Q71113']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q71113 } UNION { ?y property:P47 resource:Q71113 } UNION { ?z property:P47 resource:Q71140 } UNION { ?y property:P47 resource:Q71140 } UNION { ?z property:P47 resource:Q71080 } UNION { ?y property:P47 resource:Q71080 } UNION { ?z property:P47 resource:Q15900093 } UNION { ?y property:P47 resource:Q15900093 } UNION { ?z property:P47 resource:Q475861 } UNION { ?y property:P47 resource:Q475861 } UNION { ?z property:P47 resource:Q55271 } UNION { ?y property:P47 resource:Q55271 } UNION { ?z property:P47 resource:Q55283 } UNION { ?y property:P47 resource:Q55283 } UNION { ?z property:P47 resource:Q55269 } UNION { ?y property:P47 resource:Q55269 } UNION { ?z property:P47 resource:Q55288 } UNION { ?y property:P47 resource:Q55288 } UNION { ?z property:P47 resource:Q71113 } UNION { ?y property:P47 resource:Q71113 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q13220204 }
Salamanca Province León Province Bragança Valladolid Province Ourense Province
1 administrative territories and 4 administrative country subdivisions
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Zamora Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Zamora Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'León Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'León Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Salamanca Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Salamanca Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Kapoe'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kapoe'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'La-un'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'La-un'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Burgos Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Burgos Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Segovia Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Segovia Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Palencia Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Palencia Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Ávila Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Ávila Province'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Zamora Province'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Zamora Province']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Zamora_Province } UNION { ?y property:shares_border_with resource:Zamora_Province } UNION { ?z property:shares_border_with resource:León_Province } UNION { ?y property:shares_border_with resource:León_Province } UNION { ?z property:shares_border_with resource:Salamanca_Province } UNION { ?y property:shares_border_with resource:Salamanca_Province } UNION { ?z property:shares_border_with resource:Kapoe } UNION { ?y property:shares_border_with resource:Kapoe } UNION { ?z property:shares_border_with resource:La-un } UNION { ?y property:shares_border_with resource:La-un } UNION { ?z property:shares_border_with resource:Burgos_Province } UNION { ?y property:shares_border_with resource:Burgos_Province } UNION { ?z property:shares_border_with resource:Segovia_Province } UNION { ?y property:shares_border_with resource:Segovia_Province } UNION { ?z property:shares_border_with resource:Palencia_Province } UNION { ?y property:shares_border_with resource:Palencia_Province } UNION { ?z property:shares_border_with resource:Ávila_Province } UNION { ?y property:shares_border_with resource:Ávila_Province } UNION { ?z property:shares_border_with resource:Zamora_Province } UNION { ?y property:shares_border_with resource:Zamora_Province } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q55269 Q55283
P47
Q13220204
USER
Which administrative country subdivisions have an adjacent border with Segovia Province and Palencia Province ?
AND((c(Q13220204),P47,Q55283), (c(Q13220204),P47,Q55269))
action filter_type
action intersection
action find_reverse
entity Q55283
relation P47
action find_reverse
entity Q55269
relation P47
type Q13220204
{'AND': [[{'concept': 'Q13220204'}, 'P47', 'Q55283'], [{'concept': 'Q13220204'}, 'P47', 'Q55269']]}
SELECT DISTINCT ?o WHERE { ?o property:P47 resource:Q55269 . ?o property:P47 resource:Q55283 . ?o rdf:type ontology:Q13220204 }
Palencia Province Segovia Province
action filter_type
action intersection
action find_reverse
entity Segovia Province
relation shares border with
action find_reverse
entity Palencia Province
relation shares border with
type second-level administrative country subdivision
{'AND': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Segovia Province'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Palencia Province']]}
SELECT DISTINCT ?o WHERE { ?o property:shares_border_with resource:Palencia_Province . ?o property:shares_border_with resource:Segovia_Province . ?o rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q55271 Q71097
SYSTEM
Burgos Province, Valladolid Province
Q55271 Q71097
AND((c(Q13220204),P47,Q55283), (c(Q13220204),P47,Q55269))
action filter_type
action intersection
action find_reverse
entity Q55283
relation P47
action find_reverse
entity Q55269
relation P47
type Q13220204
[ANSWERS] have an adjacent border with Segovia Province and Palencia Province
{'AND': [[{'concept': 'Q13220204'}, 'P47', 'Q55283'], [{'concept': 'Q13220204'}, 'P47', 'Q55269']]}
SELECT DISTINCT ?o WHERE { ?o property:P47 resource:Q55269 . ?o property:P47 resource:Q55283 . ?o rdf:type ontology:Q13220204 }
Burgos Province Valladolid Province
Burgos Province and Valladolid Province have an adjacent border with Segovia Province and Palencia Province
Burgos Province Valladolid Province
action filter_type
action intersection
action find_reverse
entity Segovia Province
relation shares border with
action find_reverse
entity Palencia Province
relation shares border with
type second-level administrative country subdivision
{'AND': [[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Segovia Province'], [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Palencia Province']]}
SELECT DISTINCT ?o WHERE { ?o property:shares_border_with resource:Palencia_Province . ?o property:shares_border_with resource:Segovia_Province . ?o rdf:type ontology:second-level_administrative_country_subdivision }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q55269
P47
Q13220204
USER
Are Palencia Province next to the border of those ones ?
(Q55269,P47,Q55271) (Q55269,P47,Q71097)
action is_in
entity prev_answer
action find
entity Q55269
relation P47
['Q55269', 'P47', 'Q55271'] ['Q55269', 'P47', 'Q71097']
ASK WHERE { resource:Q55269 property:P47 ?x . VALUES ( ?x ) { ( resource:Q55271 ) ( resource:Q71097 ) } }
Palencia Province
action is_in
entity prev_answer
action find
entity Palencia Province
relation shares border with
['Palencia Province', 'shares border with', 'Burgos Province'] ['Palencia Province', 'shares border with', 'Valladolid Province']
ASK WHERE { resource:Palencia_Province property:shares_border_with ?x . VALUES ( ?x ) { ( resource:Burgos_Province ) ( resource:Valladolid_Province ) } }
[]
second-level administrative country subdivision
SYSTEM
YES
(Q55269,P47,Q55271) (Q55269,P47,Q71097)
action is_in
entity prev_answer
action find
entity Q55269
relation P47
[ANSWER]
['Q55269', 'P47', 'Q55271'] ['Q55269', 'P47', 'Q71097']
ASK WHERE { resource:Q55269 property:P47 ?x . VALUES ( ?x ) { ( resource:Q55271 ) ( resource:Q71097 ) } }
Yes
action is_in
entity prev_answer
action find
entity Palencia Province
relation shares border with
['Palencia Province', 'shares border with', 'Burgos Province'] ['Palencia Province', 'shares border with', 'Valladolid Province']
ASK WHERE { resource:Palencia_Province property:shares_border_with ?x . VALUES ( ?x ) { ( resource:Burgos_Province ) ( resource:Valladolid_Province ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55269
P36
Q56061
USER
Which administrative territory is called the capital of Palencia Province ?
(Q55269,P36,c(Q56061))
action filter_type
action find
entity Q55269
relation P36
type Q56061
['Q55269', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q55269 property:P36 ?p . ?p rdf:type ontology:Q56061 }
Palencia Province
action filter_type
action find
entity Palencia Province
relation capital
type administrative territorial entity
['Palencia Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Palencia_Province property:capital ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8378
SYSTEM
Palencia
Q8378
(Q55269,P36,c(Q56061))
action filter_type
action find
entity Q55269
relation P36
type Q56061
[ANSWER] is called the capital of [ANSWER] Province
['Q55269', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q55269 property:P36 ?p . ?p rdf:type ontology:Q56061 }
Palencia
Palencia is called the capital of Palencia Province
Palencia
action filter_type
action find
entity Palencia Province
relation capital
type administrative territorial entity
['Palencia Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Palencia_Province property:capital ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q8378 Q6055866
P19
Q502895
USER
Does Pablo Casado Blanco have birthplace at that administrative territory ?
(Q6055866,P19,Q8378)
action is_in
entity Q8378
action find
entity Q6055866
relation P19
['Q6055866', 'P19', 'Q8378']
ASK WHERE { resource:Q6055866 property:P19 resource:Q8378 }
Palencia Pablo Casado Blanco
action is_in
entity Palencia
action find
entity Pablo Casado Blanco
relation place of birth
['Pablo Casado Blanco', 'place of birth', 'Palencia']
ASK WHERE { resource:Pablo_Casado_Blanco property:place_of_birth resource:Palencia }
[]
common name
SYSTEM
YES
(Q6055866,P19,Q8378)
action is_in
entity Q8378
action find
entity Q6055866
relation P19
[ANSWER]
['Q6055866', 'P19', 'Q8378']
ASK WHERE { resource:Q6055866 property:P19 resource:Q8378 }
Yes
action is_in
entity Palencia
action find
entity Pablo Casado Blanco
relation place of birth
['Pablo Casado Blanco', 'place of birth', 'Palencia']
ASK WHERE { resource:Pablo_Casado_Blanco property:place_of_birth resource:Palencia }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q55271 Q71113
P47
Q13220204
USER
Which administrative country subdivisions are adjacent to Zamora Province and Burgos Province ?
AND((Q71113,P47,c(Q13220204)), (Q55271,P47,c(Q13220204)))
action filter_type
action intersection
action find
entity Q71113
relation P47
action find
entity Q55271
relation P47
type Q13220204
{'AND': [['Q71113', 'P47', {'concept': 'Q13220204'}], ['Q55271', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q13220204 . resource:Q71113 property:P47 ?x . resource:Q55271 property:P47 ?x }
Burgos Province Zamora Province
action filter_type
action intersection
action find
entity Zamora Province
relation shares border with
action find
entity Burgos Province
relation shares border with
type second-level administrative country subdivision
{'AND': [['Zamora Province', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Burgos Province', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:second-level_administrative_country_subdivision . resource:Zamora_Province property:shares_border_with ?x . resource:Burgos_Province property:shares_border_with ?x }
[]
second-level administrative country subdivision
Q71097
SYSTEM
Valladolid Province
Q71097
AND((Q71113,P47,c(Q13220204)), (Q55271,P47,c(Q13220204)))
action filter_type
action intersection
action find
entity Q71113
relation P47
action find
entity Q55271
relation P47
type Q13220204
[ANSWER] is adjacent to Zamora Province and Burgos Province
{'AND': [['Q71113', 'P47', {'concept': 'Q13220204'}], ['Q55271', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q13220204 . resource:Q71113 property:P47 ?x . resource:Q55271 property:P47 ?x }
Valladolid Province
Valladolid Province is adjacent to Zamora Province and Burgos Province
Valladolid Province
action filter_type
action intersection
action find
entity Zamora Province
relation shares border with
action find
entity Burgos Province
relation shares border with
type second-level administrative country subdivision
{'AND': [['Zamora Province', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Burgos Province', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:second-level_administrative_country_subdivision . resource:Zamora_Province property:shares_border_with ?x . resource:Burgos_Province property:shares_border_with ?x }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2527479
P190
Q13220204 Q1048835 Q56061
USER
Which administrative country subdivisions are twin towns of approximately the same number of political territories and administrative territories as Kouandé ?
(c(Q1048835)|c(Q56061),P190,c(Q13220204))
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q2527479
relation P190
type Q1048835
type Q56061
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?s WHERE { { ?g property:P190 ?s . ?s rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q56061 } UNION { ?g property:P190 ?s . ?s rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q1048835 } } GROUP BY ?s } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:P190 resource:Q2527479 . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q56061 } } } } }
Kouandé
action approx
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Kouandé
relation sister city
type political territorial entity
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?s WHERE { { ?g property:sister_city ?s . ?s rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:administrative_territorial_entity } UNION { ?g property:sister_city ?s . ?s rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:sister_city resource:Kouandé . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:administrative_territorial_entity } } } } }
[]
second-level administrative country subdivision political territorial entity administrative territorial entity
Q322986 Q849574 Q255972
SYSTEM
Delfzijl, Loppersum, Eemsmond
Q622817 Q67040 Q331191 Q67286 Q64224 Q68129 Q67282 Q10082 Q69545 Q64027 Q57917 Q739449 Q57914 Q841299 Q64210 Q7123 Q69235 Q193965 Q255972 Q7124 Q70245 Q668869 Q840457 Q932155 Q69721 Q67348 Q381340 Q3827305 Q70369 Q69726 Q69729 Q13209 Q10016 Q160584 Q183029 Q68889 Q146497 Q3621436 Q65316 Q197050 Q866611 Q65620 Q69099 Q56915 Q68906 Q64567 Q70643 Q161144 Q55180 Q638592 Q130048 Q133280 Q64961 Q69203 Q615491 Q69590 Q498256 Q1021676 Q54925 Q69383 Q1023951 Q64668 Q65268 Q64665 Q917326 Q107392 Q9924 Q9926 Q65797 Q9928 Q66831 Q9880 Q68261 Q66562 Q3947412 Q565290 Q70221 Q110268 Q631788 Q67249 Q68003 Q64183 Q158904 Q18473 Q69274 Q492115 Q14566 Q69071 Q9819 Q9952 Q9810 Q69374 Q69783 Q683658 Q67382 Q161984 Q147739 Q67544 Q70734 Q249715 Q691992 Q43195 Q66381 Q68076 Q493308 Q1002565 Q208012 Q1003757 Q36077 Q69612 Q990365 Q67496 Q67499 Q65510 Q661799 Q14570 Q64077 Q9774 Q9777 Q70603 Q69515 Q994125 Q65195 Q291780 Q27494 Q688324 Q69754 Q69757 Q67809 Q68986 Q10020 Q65040 Q10024 Q1190659 Q488779 Q66125 Q68220 Q1010094 Q68224 Q72981 Q68959 Q156743 Q426945 Q39383 Q420333 Q70513 Q48668 Q108999 Q484111 Q584694 Q643576 Q69724 Q488975 Q70101 Q925340 Q69979 Q685990 Q564813 Q1011435 Q850031 Q740845 Q68256 Q156719 Q68250 Q9857 Q68315 Q5128 Q68311 Q113740 Q9910 Q984656 Q67724 Q625157 Q68244 Q104379 Q68031 Q1019053 Q500227 Q843899 Q66050 Q66056 Q157440 Q68240 Q69570 Q69572 Q986107 Q952457 Q47062 Q484243 Q64156 Q200133 Q67611 Q565312 Q156760 Q46001 Q320015 Q2527479 Q636935 Q317943 Q69714 Q51111 Q58931 Q3799 Q2047414 Q1532373 Q486696 Q5262 Q63905 Q156125 Q64908 Q66473 Q281835 Q65497 Q57097 Q69668 Q68711 Q70655 Q68165 Q64873 Q68956 Q10071 Q10073 Q1006413 Q659665 Q136498 Q995091 Q507065 Q281137 Q1542478 Q65273 Q70424 Q1639488 Q9791 Q68762 Q157137 Q9796 Q67159 Q565287 Q70139 Q2201876 Q64727 Q238396 Q64058 Q64482 Q65978 Q65872 Q987491 Q69417 Q591719 Q9942 Q67714 Q1893077 Q9949 Q63939 Q952939 Q1010463 Q48696 Q252098 Q70048 Q946398 Q67468 Q67530 Q980728 Q68665 Q69401 Q483902 Q33342 Q52193 Q760224 Q110311 Q7143 Q69819 Q14641 Q69747 Q69745 Q219193 Q69629 Q217802 Q938739 Q484057 Q845666 Q69621 Q484052 Q483877 Q7132 Q483871 Q461142 Q70202 Q721567 Q70295 Q70293 Q52261 Q70204 Q1000404 Q111039 Q10035 Q966825 Q65981 Q1574897 Q66132 Q133230 Q3853441 Q488747 Q63986 Q70467 Q9999 Q64541 Q214913 Q156809 Q405241 Q66433 Q15582 Q15583 Q66617 Q69967 Q335135 Q109005 Q54449 Q493851 Q64099 Q21194 Q554313 Q64093 Q501518 Q648489 Q1000865 Q1442335 Q68363 Q66814 Q68248 Q9093 Q951897 Q493988 Q68532 Q9905 Q411715 Q67100 Q70635 Q997796 Q538953 Q68026 Q66040 Q70167 Q66042 Q490462 Q57871 Q65802 Q1135341 Q64461 Q65808 Q101918 Q208764 Q69259 Q9835 Q9833 Q455464 Q67582 Q73065 Q9850 Q67367 Q27892 Q52698 Q70308 Q48529 Q936904 Q110848 Q69706 Q1813743 Q69704 Q68097 Q68319 Q10052 Q9866 Q1525701 Q868198 Q236744 Q856293 Q68297 Q64504 Q1003164 Q69675 Q64469 Q2326 Q988413 Q57081 Q318018 Q57083 Q48827 Q48732 Q69172 Q2590698 Q488229 Q15340 Q493315 Q70304 Q10043 Q64865 Q10045 Q10047 Q337497 Q66523 Q1003146 Q64219 Q211260 Q919617 Q66146 Q107396 Q68201 Q744259 Q52278 Q222755 Q691725 Q68471 Q9780 Q9781 Q372840 Q2680952 Q109036 Q107351 Q67140 Q1149128 Q485297 Q65512 Q69525 Q67055 Q156734 Q113595 Q109042 Q67705 Q69058 Q9872 Q109048 Q9978 Q9876 Q9875 Q110431 Q9856 Q67137 Q997421 Q161961 Q36354 Q54062 Q69551 Q1011303 Q486726 Q69558 Q69222 Q69227 Q7131 Q249906 Q7133 Q65421 Q140671 Q48701 Q323774 Q69732 Q1241374 Q62641 Q69734 Q69738 Q613989 Q10001 Q10003 Q745038 Q43245 Q70671 Q52271 Q65107 Q986059 Q939948 Q66457 Q757856 Q68871 Q69085 Q65732 Q2152317 Q322986 Q6535 Q67798 Q579984 Q405252 Q623736 Q66604 Q54939 Q70232 Q65921 Q840632 Q793424 Q493481 Q66211 Q9932 Q109494 Q723246 Q9938 Q43225 Q66511 Q68540 Q66518 Q411723 Q109140 Q66890 Q19491 Q66672 Q67278 Q68015 Q216430 Q64178 Q983483 Q564759 Q57868 Q69512 Q64070 Q57864 Q204905 Q14571 Q52303 Q57860 Q9803 Q9802 Q952183 Q9806 Q1442359 Q9809 Q9808 Q90597 Q90595 Q2241 Q14592 Q2245 Q243766 Q538407 Q69507 Q67006 Q70260 Q69426 Q381337 Q69942 Q65158 Q43048 Q189161 Q69429 Q67486 Q486677 Q3549 Q109469 Q68933 Q88806 Q64920 Q3617 Q33544 Q67305 Q68838 Q146524 Q484074 Q69160 Q26581 Q52678 Q68395 Q52773 Q71727 Q52671 Q617416 Q33682 Q208259 Q65073 Q10053 Q4686 Q2091726 Q107582 Q473529 Q66256 Q972 Q70710 Q68946 Q66846 Q36160 Q36167 Q66487 Q485253 Q851399 Q69114 Q609028 Q68580 Q146453 Q68742 Q69690 Q69697 Q69495 Q934753 Q500284 Q750594 Q69498 Q826511 Q65506 Q66633 Q532572 Q488962 Q69945 Q65508 Q849574 Q1126256 Q504580 Q68305 Q66017 Q1003551 Q156704 Q64334 Q574558 Q69180 Q1533546
(c(Q1048835)|c(Q56061),P190,c(Q13220204))
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q2527479
relation P190
type Q1048835
type Q56061
[ANSWERS] are twin towns of approximately the same number of political territories and administrative territories as Kouandé
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?s WHERE { { ?g property:P190 ?s . ?s rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q56061 } UNION { ?g property:P190 ?s . ?s rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q1048835 } } GROUP BY ?s } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:P190 resource:Q2527479 . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q56061 } } } } }
Tomar Naters Abrantes Municipality Braggio Opfikon Olten Urtenen-Schönbühl Tholen Saint-Maurice Nyon Ullensaker Krimpen aan den IJssel Sørum Matosinhos Spreitenbach Sursee Cham Kamianets-Podilskyi Eemsmond Ruswil Gimel Epesses Tynaarlo Heumen La Tour-de-Peilz Gansingen Mealhada Las Vueltas Fehraltorf Langenthal Rapperswil-Jona Nidau Oldenzaal Sievierodonetsk Sande Vouvry Berehove Arcatao Meisterschwanden Zevenaar Commune of Bisoro Tuggen Trimmis Aurskog-Høland Bagnes Buochs Mörel-Filet Alchevsk Zaragoza Province Krāslava Røst Środa Wielkopolska County Felsberg Erlenbach Heerde Leuk Bauska Trigono Guadalajara Province Hinwil Salcedo, Hermanas Mirabal Reigoldswil Brienz Birsfelden Vila Franca de Xira Tønsberg Haarlemmermeer Heemskerk Sirnach Heemstede Bettlach Werkendam Meilen Tübach San José Las Flores, Chalatenango Vila Franca do Campo Le Mont-sur-Lausanne Nedre Eiker Paredes Reconvilier Claro Küssnacht Korosten Zuchwil Lichtensteig Randaberg Ebikon Münchenbuchsee Boxmeer Opmeer Asten Wallisellen Münsingen Franekeradeel Bellmund Fastiv Izmail Malleray Oron Olaine Grocka Aigle Kiesen Perroy Bjerkreim Madalena Hoogeveen Khartsyzk Hạ Long Sevelen Ponte de Sor Municipality Blatten Herzogenbuchsee Bonstetten Saint-Ursanne Horw Wil Weert Venlo Avegno Gordevio Vétroz Natitingou Suhr Ísafjarðarbær Zermatt Parakou Volketswil Prilly Landiswil St. Moritz Rijssen-Holten Neftenbach Twenterand Vaasa sub-region Tynset Neuenegg Oftringen Ipiales Morcote Wijchen Thalwil Ternopil Cantanhede Municipality Bodø Aknīste Val Müstair Spydeberg Røros Averøy Stara Pazova Ypacaraí Oberwil Lærdal Sembrancher Kaniv Villeret Guaduas Santa Maria da Feira Municipality Svitlovodsk Ouidah Olhão Municipality Porrentruy Kamianske Rorschach Oisterwijk Heiden Woerden Burgdorf Eidsberg Castricum Penafiel Vex Estremoz Wohlen Vadsø Heitenried Lajes do Pico Vennesla Rheden Menzingen Wittenbach Truskavets Onex Rolle Saxon Alcanena Municipality Nizhyn Fernando de la Mora Bjugn Arbon Chalkida Grosshöchstetten Ribeira Grande Nikopol Alushta San Juan de Pasto Kouandé Tukums Nowa Sól County Grand-Saconnex Pereira Harderwijk Porto-Novo Palanga Zaltbommel Rygge Riehen Kreuzlingen Larvik Mutten Lengnau Sirdal Hausen bei Brugg Coppet Steffisburg Préverenges Mex Kloten Illnau-Effretikon Martigny Borsele Hulst Lousã Municipality Salacgrīva Fuerte Olimpo Aleksandrovac Smallingerland Bratsch Grand-Popo Plan-les-Ouates Saint-Blaise Sosúa Mook en Middelaar Mont-sur-Rolle Kryvyi Rih Kerkrade Kerns São João da Madeira Cressier Presidente Franco District Allschwil Epe Köniz Rothrist Dulliken Arconciel Nova Kakhovka Zweisimmen Novovolynsk Landsmeer Cottens Bassila Naarden Baden Lingewaard Santa Cruz da Graciosa Fauske New Belgrade Vucherens Paços de Ferreira Nods Bettingen Domburg Muntelier Morges Karmøy Bila Tserkva Kolomyia Hola Prystan Øvre Eiker Schenkon Dürrenroth Emmen Reinach Renens Chop Lohn Stjørdal San Lorenzo Hol Kandi Binningen Bamble Eigersund Buttisholz Holmestrand Bedum Moudon Quillota Province Schöfflisdorf Merzligen Bex Le Landeron Pryluky Namsos De Bilt Pombal Municipality Krauchthal Ambalema Erlenbach im Simmental Piła County Meanguera, Morazán Kvinesdal Zofingen Vaumarcus Dinkelland Obersiggenthal Leticia Novyi Rozdil Oliveira do Bairro Municipality Eiken Brig Brig-Glis Frick Wangen bei Olten Popayán Sandefjord Vellerat Tysfjord Brugg Vũng Tàu Racibórz County Le Locle Gran Loznica Vlist Manzanares Laufen Schwerzenbach Grenchen Bülach Chiquinquirá Malvik La Sagne Beverwijk Aizkraukle Lachen Glarus Nord Pamplona La Vega Embd Thierachern Ayent Hilterfingen Farsund Skedsmo Hüttlingen Kętrzyn County Neuenhof Buchberg Apeldoorn Katwijk Pontresina Geldrop-Mierlo Etten-Leur Noordwijk Oberdiessbach Veendam Loon op Zand Niederried bei Kallnach Neringa Municipality Chardonne Cortaillod Trysil Felgueiras Municipality Ringerike Brissago Voždovac Münchwilen Davos Bergün Vianen Sint-Michielsgestel Tenjo Djougou Tunja Novi Kneževac Sierre Auenstein Vila do Porto Zollikofen Fislisbach Notodden Puerto Plata Enebakk Słubice County Frogn Sør-Varanger Meråker Hallau Pantelej Rendalen Hyderabad district Bardu Saas-Balen Utrechtse Heuvelrug Bischofszell IJsselstein Lopik Čajetina Füllinsdorf Vila Nova de Paiva Würenlingen Zaandam Brus Brenzikofen Leikanger Thônex Ludza Boussens Ibagué Renkum Binn Stein Sittard-Geleen Tavira Municipality Rotterdam Haugesund Hammerfest Radelfingen Krosno County Sauda Oberembrach Payerne Massagno Oleksandriia, Kirovohrad Oblast Oppdal Halden Schmitten Wittnau Uden Horten Zaanstad Vught Veldhoven Steinkjer Oirschot Elgg Vasylkiv Myrhorod Hải Dương Ås Evolène Obukhiv Sigdal Savièse Aarwangen Orpund Nottwil Águeda Municipality Grosswangen Lostorf Ostroh Svelvik Valka Worb Moca Nordkapp Bassersdorf Pully Duiven Deventer Haaksbergen Waalwijk Baulmes Romainmôtier-Envy Bottens Stierva Copargo Putten Rafz Valpaços Municipality Martigny-Combe Samedan Sigriswil Kastrychnitski District Delfzijl Alta Plaffeien Temerin Oliveira de Azeméis Câmara de Lobos Risch-Rotkreuz Valencia Province Les Bois Grossaffoltern Opsterland Berezhany Flekkefjord Konolfingen Heiloo Odda Santa Tecla, El Salvador Hoorn Assens Olsberg Les Planchettes Oberflachs Aizpute Elverum Rüthi Nha Trang Breitenbach Mühleberg Roggwil Levanger Maienfeld Gondomar Lagoa Oppegård Lyss Dietikon Nesodden Eleusis Kriens Bussy-Chardonney Lørenskog Brunssum Echt-Susteren Rijnwoude Beek Palermo Alphen-Chaam Aalburg Tvedestrand Risør Tokke Ettiswil Vinje Bucaramanga Montemor-o-Novo Municipality Boudry Lohn-Ammannsegg Féchy Gadmen Estarreja Municipality Boécourt Stetten Rhodes Trogir Lengnau Eggerberg Dovre Šibenik Askim Mex Bykle Breil/Brigels Karlovac Volodymyr-Volynskyi Charmey La Brévine Yaremche Nord-Aurdal Bolligen Thái Nguyên Chamblon Neerach Cheseaux-sur-Lausanne Irpin Carrouge Kovin Nam Định Ameland Brienz/Brinzauls Wijk bij Duurstede Slavonski Brod Pukhavichy District Cēsis Fjell Hünenberg Alkmaar Saillon Saint-Oyens Lotzwil Hội An Huế Corminboeuf Stord Strenči Trubschachen Antratsyt Cheyres Kalush Échichens Ittigen Lutry Ligerz Buga Orkdal Guarda Giubiasco Montijo Municipality Flawil Kilchberg Mariquita, Tolima Hægebostad Müntschemier Balgach Loppersum Hajnówka County Chaves Municipality Wetzikon Lütschental Nejapa Kovel Berikon Heerenveen Stetten Norðurþing
Delfzijl, Loppersum and Eemsmond are twin towns of approximately the same number of political territories and administrative territories as Kouandé
Delfzijl Loppersum Eemsmond
action approx
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Kouandé
relation sister city
type political territorial entity
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?s WHERE { { ?g property:sister_city ?s . ?s rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:administrative_territorial_entity } UNION { ?g property:sister_city ?s . ?s rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:sister_city resource:Kouandé . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:administrative_territorial_entity } } } } }
[]