Simple Question (Direct)
Simple Question
Q1144129
P17
Q15617994
USER
Which administrative territory does Opatów County belong to ?
(Q1144129,P17,c(Q15617994))
action filter_type
action find
entity Q1144129
relation P17
type Q15617994
['Q1144129', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q1144129 property:P17 ?k }
Opatów County
action filter_type
action find
entity Opatów County
relation country
type designation for an administrative territorial entity
['Opatów County', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Opatów_County property:country ?k }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q1144129,P17,c(Q15617994))
action filter_type
action find
entity Q1144129
relation P17
type Q15617994
Opatów County belongs to [ANSWER]
['Q1144129', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q1144129 property:P17 ?k }
Poland
Opatów County belongs to Poland
Poland
action filter_type
action find
entity Opatów County
relation country
type designation for an administrative territorial entity
['Opatów County', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Opatów_County property:country ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1144129
P1376
Q56061
USER
What is the capital of Opatów County ?
(c(Q56061),P1376,Q1144129)
action filter_type
action find_reverse
entity Q1144129
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q1144129']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q1144129 . ?u rdf:type ontology:Q56061 }
Opatów County
action filter_type
action find_reverse
entity Opatów County
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Opatów County']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Opatów_County . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q275694
SYSTEM
Opatów
Q275694
(c(Q56061),P1376,Q1144129)
action filter_type
action find_reverse
entity Q1144129
relation P1376
type Q56061
The capital of [ANSWER] County is in [ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q1144129']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q1144129 . ?u rdf:type ontology:Q56061 }
Opatów
The capital of Opatów County is in Opatów
Opatów
action filter_type
action find_reverse
entity Opatów County
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Opatów County']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Opatów_County . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1144129
P36
Q56061
USER
Which administrative territory is called the capital of Opatów County ?
(Q1144129,P36,c(Q56061))
action filter_type
action find
entity Q1144129
relation P36
type Q56061
['Q1144129', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q1144129 property:P36 ?g }
Opatów County
action filter_type
action find
entity Opatów County
relation capital
type administrative territorial entity
['Opatów County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Opatów_County property:capital ?g }
[]
administrative territorial entity
Q275694
SYSTEM
Opatów
Q275694
(Q1144129,P36,c(Q56061))
action filter_type
action find
entity Q1144129
relation P36
type Q56061
[ANSWER] is called the capital of [ANSWER] County
['Q1144129', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q1144129 property:P36 ?g }
Opatów
Opatów is called the capital of Opatów County
Opatów
action filter_type
action find
entity Opatów County
relation capital
type administrative territorial entity
['Opatów County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Opatów_County property:capital ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4134613
Q56061
USER
And also tell me about Gdov Urban Settlement?
(Q4134613,P36,c(Q56061))
action filter_type
action find
entity Q4134613
relation P36
type Q56061
['Q4134613', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q4134613 property:P36 ?n }
Gdov Urban Settlement
action filter_type
action find
entity Gdov Urban Settlement
relation capital
type administrative territorial entity
['Gdov Urban Settlement', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Gdov_Urban_Settlement property:capital ?n }
[]
administrative territorial entity
Q134396
SYSTEM
Gdov
Q134396
(Q4134613,P36,c(Q56061))
action filter_type
action find
entity Q4134613
relation P36
type Q56061
[ANSWER]
['Q4134613', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q4134613 property:P36 ?n }
Gdov
Gdov
action filter_type
action find
entity Gdov Urban Settlement
relation capital
type administrative territorial entity
['Gdov Urban Settlement', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Gdov_Urban_Settlement property:capital ?n }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20528 Q275694
P47 P17
Q15617994
USER
Which administrative territories are Opatów situated in or have a shared border with Venasca ?
OR((Q275694,P17,c(Q15617994)), (Q20528,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q275694
relation P17
action find
entity Q20528
relation P47
type Q15617994
{'OR': [['Q275694', 'P17', {'concept': 'Q15617994'}], ['Q20528', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q275694 property:P17 ?v } UNION { resource:Q20528 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Venasca Opatów
action filter_type
action union
action find
entity Opatów
relation country
action find
entity Venasca
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Opatów', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Venasca', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Opatów property:country ?v } UNION { resource:Venasca property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20545 Q20108 Q20431 Q20347 Q20527 Q36 Q18388 Q18386 Q20290
SYSTEM
Verzuolo, Isasca, Rossana, Piasco, Valmala, Poland, Brossasco, Brondello, Pagno
Q20545 Q20108 Q20431 Q20347 Q20527 Q36 Q18388 Q18386 Q20290
OR((Q275694,P17,c(Q15617994)), (Q20528,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q275694
relation P17
action find
entity Q20528
relation P47
type Q15617994
Opatów are situated have [ANSWERS]
{'OR': [['Q275694', 'P17', {'concept': 'Q15617994'}], ['Q20528', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q275694 property:P17 ?v } UNION { resource:Q20528 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Verzuolo Isasca Rossana Piasco Valmala Poland Brossasco Brondello Pagno
Opatów are situated have Verzuolo, Isasca, Rossana, Piasco, Valmala, Poland, Brossasco, Brondello and Pagno
Verzuolo Isasca Rossana Piasco Valmala Poland Brossasco Brondello Pagno
action filter_type
action union
action find
entity Opatów
relation country
action find
entity Venasca
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Opatów', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Venasca', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Opatów property:country ?v } UNION { resource:Venasca property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P206
Q355304
USER
How many watercourses are situated close to that administrative territory ?
(Q36,P206,c(Q355304))
['Q36', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7208890 property:P206 ?z . ?z rdf:type ontology:Q355304 }
['Poland', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Poland property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse }
[]
watercourse
Quantitative|Count|Single entity type|Clarification
Q20545
SYSTEM
Did you mean Verzuolo ?
(Q20545,P206,c(Q355304)) (Q20108,P206,c(Q355304)) (Q20431,P206,c(Q355304)) (Q20347,P206,c(Q355304)) (Q20527,P206,c(Q355304)) (Q36,P206,c(Q355304)) (Q18388,P206,c(Q355304)) (Q18386,P206,c(Q355304)) (Q20290,P206,c(Q355304))
[ANSWER]
['Q20545', 'P206', {'concept': 'Q355304'}] ['Q20108', 'P206', {'concept': 'Q355304'}] ['Q20431', 'P206', {'concept': 'Q355304'}] ['Q20347', 'P206', {'concept': 'Q355304'}] ['Q20527', 'P206', {'concept': 'Q355304'}] ['Q36', 'P206', {'concept': 'Q355304'}] ['Q18388', 'P206', {'concept': 'Q355304'}] ['Q18386', 'P206', {'concept': 'Q355304'}] ['Q20290', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7208890 property:P206 ?z . ?z rdf:type ontology:Q355304 }
Did you mean Verzuolo ?
Verzuolo
['Verzuolo', 'located next to body of water', {'concept': 'watercourse'}] ['Isasca', 'located next to body of water', {'concept': 'watercourse'}] ['Rossana', 'located next to body of water', {'concept': 'watercourse'}] ['Piasco', 'located next to body of water', {'concept': 'watercourse'}] ['Valmala', 'located next to body of water', {'concept': 'watercourse'}] ['Poland', 'located next to body of water', {'concept': 'watercourse'}] ['Brossasco', 'located next to body of water', {'concept': 'watercourse'}] ['Brondello', 'located next to body of water', {'concept': 'watercourse'}] ['Pagno', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Poland property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Poland. Could you tell me the answer for that?
(Q36,P206,c(Q355304))
Q36
['Q36', 'P206', {'concept': 'Q355304'}]
['Poland', 'located next to body of water', {'concept': 'watercourse'}]
[]
SYSTEM
12
Q756302 Q552 Q2142065 Q4176549 Q840694 Q582675 Q5602 Q1331973 Q548 Q156237 Q828869 Q577026
(Q36,P206,c(Q355304))
[ANSWER]
['Q36', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7208890 property:P206 ?z . ?z rdf:type ontology:Q355304 }
Poprad Oder Divoká Orlice Białka Dunajec Jizera Lusatian Neisse Olza Vistula Western Bug Noteć Opava
12
['Poland', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Poland property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q375561
P19
Q502895
USER
Which person was born at Arsky District ?
(c(Q502895),P19,Q375561)
action filter_type
action find_reverse
entity Q375561
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q375561']
SELECT DISTINCT ?s WHERE { ?s property:P19 resource:Q375561 . ?s rdf:type ontology:Q502895 }
Arsky District
action filter_type
action find_reverse
entity Arsky District
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Arsky District']
SELECT DISTINCT ?s WHERE { ?s property:place_of_birth resource:Arsky_District . ?s rdf:type ontology:common_name }
[]
common name
Q2620900
SYSTEM
Vladislav Achalov
Q2620900
(c(Q502895),P19,Q375561)
action filter_type
action find_reverse
entity Q375561
relation P19
type Q502895
[ANSWER] was born at Arsky District
[{'concept': 'Q502895'}, 'P19', 'Q375561']
SELECT DISTINCT ?s WHERE { ?s property:P19 resource:Q375561 . ?s rdf:type ontology:Q502895 }
Vladislav Achalov
Vladislav Achalov was born at Arsky District
Vladislav Achalov
action filter_type
action find_reverse
entity Arsky District
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Arsky District']
SELECT DISTINCT ?s WHERE { ?s property:place_of_birth resource:Arsky_District . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2620900
P27
Q7275
USER
Which state is that person an inhabitant of ?
(Q2620900,P27,c(Q7275))
action filter_type
action find
entity Q2620900
relation P27
type Q7275
['Q2620900', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { resource:Q2620900 property:P27 ?n . ?n rdf:type ontology:Q7275 }
Vladislav Achalov
action filter_type
action find
entity Vladislav Achalov
relation country of citizenship
type state
['Vladislav Achalov', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { resource:Vladislav_Achalov property:country_of_citizenship ?n . ?n rdf:type ontology:state }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q2620900,P27,c(Q7275))
action filter_type
action find
entity Q2620900
relation P27
type Q7275
[ANSWER] is that person an inhabitant of
['Q2620900', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { resource:Q2620900 property:P27 ?n . ?n rdf:type ontology:Q7275 }
Soviet Union
Soviet Union is that person an inhabitant of
Soviet Union
action filter_type
action find
entity Vladislav Achalov
relation country of citizenship
type state
['Vladislav Achalov', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { resource:Vladislav_Achalov property:country_of_citizenship ?n . ?n rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q244421 Q1144129
P47
Q13220204
USER
Which administrative country subdivisions share the border with Opatów County or Cernobbio ?
OR((Q1144129,P47,c(Q13220204)), (Q244421,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q1144129
relation P47
action find
entity Q244421
relation P47
type Q13220204
{'OR': [['Q1144129', 'P47', {'concept': 'Q13220204'}], ['Q244421', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:P47 ?v . VALUES ( ?j ) { ( resource:Q1144129 ) ( resource:Q244421 ) } } . ?v rdf:type ontology:Q13220204 }
Cernobbio Opatów County
action filter_type
action union
action find
entity Opatów County
relation shares border with
action find
entity Cernobbio
relation shares border with
type second-level administrative country subdivision
{'OR': [['Opatów County', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Cernobbio', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:shares_border_with ?v . VALUES ( ?j ) { ( resource:Opatów_County ) ( resource:Cernobbio ) } } . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q912974 Q70629 Q782558 Q1144074 Q1335561 Q120033 Q654524 Q1335594 Q67470
SYSTEM
Opole Lubelskie County, Breggia, Lipsko County, Sandomierz County, Kraśnik County, Staszów County, Ostrowiec County, Kielce County, Vacallo
Q912974 Q70629 Q782558 Q1144074 Q1335561 Q120033 Q654524 Q1335594 Q67470
OR((Q1144129,P47,c(Q13220204)), (Q244421,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q1144129
relation P47
action find
entity Q244421
relation P47
type Q13220204
[ANSWERS] share the border with Opatów County or Cernobbio
{'OR': [['Q1144129', 'P47', {'concept': 'Q13220204'}], ['Q244421', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:P47 ?v . VALUES ( ?j ) { ( resource:Q1144129 ) ( resource:Q244421 ) } } . ?v rdf:type ontology:Q13220204 }
Opole Lubelskie County Breggia Lipsko County Sandomierz County Kraśnik County Staszów County Ostrowiec County Kielce County Vacallo
Opole Lubelskie County, Breggia, Lipsko County, Sandomierz County, Kraśnik County, Staszów County, Ostrowiec County, Kielce County and Vacallo share the border with Opatów County or Cernobbio
Opole Lubelskie County Breggia Lipsko County Sandomierz County Kraśnik County Staszów County Ostrowiec County Kielce County Vacallo
action filter_type
action union
action find
entity Opatów County
relation shares border with
action find
entity Cernobbio
relation shares border with
type second-level administrative country subdivision
{'OR': [['Opatów County', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Cernobbio', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:shares_border_with ?v . VALUES ( ?j ) { ( resource:Opatów_County ) ( resource:Cernobbio ) } } . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]