Simple Question (Direct)
Simple Question
Q699547
P119
Q56061
USER
Where is the place of burial for Ivan Pulyui located ?
(Q699547,P119,c(Q56061))
action filter_type
action find
entity Q699547
relation P119
type Q56061
['Q699547', 'P119', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q699547 property:P119 ?w . ?w rdf:type ontology:Q56061 }
Ivan Pulyui
action filter_type
action find
entity Ivan Pulyui
relation place of burial
type administrative territorial entity
['Ivan Pulyui', 'place of burial', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ivan_Pulyui property:place_of_burial ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1085
SYSTEM
Prague
Q1085
(Q699547,P119,c(Q56061))
action filter_type
action find
entity Q699547
relation P119
type Q56061
The place of burial for Ivan Pulyui is located in [ANSWER]
['Q699547', 'P119', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q699547 property:P119 ?w . ?w rdf:type ontology:Q56061 }
Prague
The place of burial for Ivan Pulyui is located in Prague
Prague
action filter_type
action find
entity Ivan Pulyui
relation place of burial
type administrative territorial entity
['Ivan Pulyui', 'place of burial', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ivan_Pulyui property:place_of_burial ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1085
P47
Q515
USER
Which cities are bordered by that administrative territory ?
(Q1085,P47,c(Q515))
action filter_type
action find
entity Q1085
relation P47
type Q515
['Q1085', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q1085 property:P47 ?g . ?g rdf:type ontology:Q515 }
Prague
action filter_type
action find
entity Prague
relation shares border with
type city
['Prague', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Prague property:shares_border_with ?g . ?g rdf:type ontology:city }
[]
city
Q386988 Q330653 Q1756968
SYSTEM
Říčany, Úvaly, Roztoky
Q1630623 Q330653 Q1756968 Q386988 Q339112
(Q1085,P47,c(Q515))
action filter_type
action find
entity Q1085
relation P47
type Q515
[ANSWERS] are bordered by that administrative territory
['Q1085', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q1085 property:P47 ?g . ?g rdf:type ontology:Q515 }
Hostivice Úvaly Roztoky Říčany Černošice
Říčany, Úvaly and Roztoky are bordered by that administrative territory
Říčany Úvaly Roztoky
action filter_type
action find
entity Prague
relation shares border with
type city
['Prague', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Prague property:shares_border_with ?g . ?g rdf:type ontology:city }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q486972 Q56061
USER
How many human settlements and administrative territories share border with that city ?
(c(Q486972),P47,Q386988) (c(Q56061),P47,Q386988) (c(Q486972),P47,Q386988) (c(Q56061),P47,Q386988) (c(Q486972),P47,Q330653) (c(Q56061),P47,Q330653) (c(Q486972),P47,Q1756968) (c(Q56061),P47,Q1756968)
[{'concept': 'Q486972'}, 'P47', 'Q386988'] [{'concept': 'Q56061'}, 'P47', 'Q386988'] [{'concept': 'Q486972'}, 'P47', 'Q386988'] [{'concept': 'Q56061'}, 'P47', 'Q386988'] [{'concept': 'Q486972'}, 'P47', 'Q330653'] [{'concept': 'Q56061'}, 'P47', 'Q330653'] [{'concept': 'Q486972'}, 'P47', 'Q1756968'] [{'concept': 'Q56061'}, 'P47', 'Q1756968']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q387004 } UNION { ?y property:P47 resource:Q387004 } UNION { ?z property:P47 resource:Q387004 } UNION { ?y property:P47 resource:Q387004 } UNION { ?z property:P47 resource:Q20653757 } UNION { ?y property:P47 resource:Q20653757 } UNION { ?z property:P47 resource:Q1756968 } UNION { ?y property:P47 resource:Q1756968 } } . ?z rdf:type ontology:Q486972 . ?y rdf:type ontology:Q56061 }
[{'concept': 'human settlement'}, 'shares border with', 'Říčany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Říčany'] [{'concept': 'human settlement'}, 'shares border with', 'Říčany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Říčany'] [{'concept': 'human settlement'}, 'shares border with', 'Úvaly'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Úvaly'] [{'concept': 'human settlement'}, 'shares border with', 'Roztoky'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Roztoky']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Říčany } UNION { ?y property:shares_border_with resource:Říčany } UNION { ?z property:shares_border_with resource:Říčany } UNION { ?y property:shares_border_with resource:Říčany } UNION { ?z property:shares_border_with resource:Úvaly } UNION { ?y property:shares_border_with resource:Úvaly } UNION { ?z property:shares_border_with resource:Roztoky } UNION { ?y property:shares_border_with resource:Roztoky } } . ?z rdf:type ontology:human_settlement . ?y rdf:type ontology:administrative_territorial_entity }
[]
human settlement administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q330653
SYSTEM
Did you mean Úvaly ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q387004 } UNION { ?y property:P47 resource:Q387004 } UNION { ?z property:P47 resource:Q387004 } UNION { ?y property:P47 resource:Q387004 } UNION { ?z property:P47 resource:Q20653757 } UNION { ?y property:P47 resource:Q20653757 } UNION { ?z property:P47 resource:Q1756968 } UNION { ?y property:P47 resource:Q1756968 } } . ?z rdf:type ontology:Q486972 . ?y rdf:type ontology:Q56061 }
Did you mean Úvaly ?
Úvaly
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Říčany } UNION { ?y property:shares_border_with resource:Říčany } UNION { ?z property:shares_border_with resource:Říčany } UNION { ?y property:shares_border_with resource:Říčany } UNION { ?z property:shares_border_with resource:Úvaly } UNION { ?y property:shares_border_with resource:Úvaly } UNION { ?z property:shares_border_with resource:Roztoky } UNION { ?y property:shares_border_with resource:Roztoky } } . ?z rdf:type ontology:human_settlement . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Říčany. Could you tell me the answer for that?
(c(Q486972),P47,Q386988) (c(Q56061),P47,Q386988) (c(Q486972),P47,Q386988) (c(Q56061),P47,Q386988) (c(Q486972),P47,Q330653) (c(Q56061),P47,Q330653) (c(Q486972),P47,Q1756968) (c(Q56061),P47,Q1756968)
Q386988
[{'concept': 'Q486972'}, 'P47', 'Q386988'] [{'concept': 'Q56061'}, 'P47', 'Q386988'] [{'concept': 'Q486972'}, 'P47', 'Q386988'] [{'concept': 'Q56061'}, 'P47', 'Q386988'] [{'concept': 'Q486972'}, 'P47', 'Q330653'] [{'concept': 'Q56061'}, 'P47', 'Q330653'] [{'concept': 'Q486972'}, 'P47', 'Q1756968'] [{'concept': 'Q56061'}, 'P47', 'Q1756968']
[{'concept': 'human settlement'}, 'shares border with', 'Říčany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Říčany'] [{'concept': 'human settlement'}, 'shares border with', 'Říčany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Říčany'] [{'concept': 'human settlement'}, 'shares border with', 'Úvaly'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Úvaly'] [{'concept': 'human settlement'}, 'shares border with', 'Roztoky'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Roztoky']
[]
SYSTEM
1 human settlements and 1 administrative territories
Q2003039 Q1085
(c(Q486972),P47,Q386988) (c(Q56061),P47,Q386988) (c(Q486972),P47,Q386988) (c(Q56061),P47,Q386988) (c(Q486972),P47,Q330653) (c(Q56061),P47,Q330653) (c(Q486972),P47,Q1756968) (c(Q56061),P47,Q1756968)
[ANSWER]
[{'concept': 'Q486972'}, 'P47', 'Q386988'] [{'concept': 'Q56061'}, 'P47', 'Q386988'] [{'concept': 'Q486972'}, 'P47', 'Q386988'] [{'concept': 'Q56061'}, 'P47', 'Q386988'] [{'concept': 'Q486972'}, 'P47', 'Q330653'] [{'concept': 'Q56061'}, 'P47', 'Q330653'] [{'concept': 'Q486972'}, 'P47', 'Q1756968'] [{'concept': 'Q56061'}, 'P47', 'Q1756968']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q387004 } UNION { ?y property:P47 resource:Q387004 } UNION { ?z property:P47 resource:Q387004 } UNION { ?y property:P47 resource:Q387004 } UNION { ?z property:P47 resource:Q20653757 } UNION { ?y property:P47 resource:Q20653757 } UNION { ?z property:P47 resource:Q1756968 } UNION { ?y property:P47 resource:Q1756968 } } . ?z rdf:type ontology:Q486972 . ?y rdf:type ontology:Q56061 }
Ostrovačice Prague
1 human settlements and 1 administrative territories
[{'concept': 'human settlement'}, 'shares border with', 'Říčany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Říčany'] [{'concept': 'human settlement'}, 'shares border with', 'Říčany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Říčany'] [{'concept': 'human settlement'}, 'shares border with', 'Úvaly'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Úvaly'] [{'concept': 'human settlement'}, 'shares border with', 'Roztoky'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Roztoky']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Říčany } UNION { ?y property:shares_border_with resource:Říčany } UNION { ?z property:shares_border_with resource:Říčany } UNION { ?y property:shares_border_with resource:Říčany } UNION { ?z property:shares_border_with resource:Úvaly } UNION { ?y property:shares_border_with resource:Úvaly } UNION { ?z property:shares_border_with resource:Roztoky } UNION { ?y property:shares_border_with resource:Roztoky } } . ?z rdf:type ontology:human_settlement . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q386988
P6
Q502895
USER
Which person is the head of government of Říčany ?
(Q386988,P6,c(Q502895))
action filter_type
action find
entity Q386988
relation P6
type Q502895
['Q386988', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q386988 property:P6 ?p }
Říčany
action filter_type
action find
entity Říčany
relation head of government
type common name
['Říčany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Říčany property:head_of_government ?p }
[]
common name
Q11906564
SYSTEM
Vladimír Kořen
Q11906564
(Q386988,P6,c(Q502895))
action filter_type
action find
entity Q386988
relation P6
type Q502895
[ANSWER] is the head of government of Říčany
['Q386988', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q386988 property:P6 ?p }
Vladimír Kořen
Vladimír Kořen is the head of government of Říčany
Vladimír Kořen
action filter_type
action find
entity Říčany
relation head of government
type common name
['Říčany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Říčany property:head_of_government ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16426438
Q502895
USER
And how about Daneți?
(Q16426438,P6,c(Q502895))
action filter_type
action find
entity Q16426438
relation P6
type Q502895
['Q16426438', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q16426438 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Daneți
action filter_type
action find
entity Daneți
relation head of government
type common name
['Daneți', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Daneți property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
common name
Q24205588 Q25999025
SYSTEM
Constantin Spiridon, Marius Cristian Antonie
Q24205588 Q25999025
(Q16426438,P6,c(Q502895))
action filter_type
action find
entity Q16426438
relation P6
type Q502895
[ANSWERS]
['Q16426438', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q16426438 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Constantin Spiridon Marius Cristian Antonie
Constantin Spiridon Marius Cristian Antonie
action filter_type
action find
entity Daneți
relation head of government
type common name
['Daneți', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Daneți property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6069633 Q330653
P27 P17
Q15617994
USER
Which administrative territories are Úvaly located in or are Pedro Núñez de Prado a civilian of ?
OR((Q330653,P17,c(Q15617994)), (Q6069633,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q330653
relation P17
action find
entity Q6069633
relation P27
type Q15617994
{'OR': [['Q330653', 'P17', {'concept': 'Q15617994'}], ['Q6069633', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q330653 property:P17 ?n } UNION { resource:Q6069633 property:P27 ?n } } }
Pedro Núñez de Prado Úvaly
action filter_type
action union
action find
entity Úvaly
relation country
action find
entity Pedro Núñez de Prado
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Úvaly', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Núñez de Prado', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Úvaly property:country ?n } UNION { resource:Pedro_Núñez_de_Prado property:country_of_citizenship ?n } } }
[]
designation for an administrative territorial entity
Q213 Q29
SYSTEM
Czech Republic, Spain
Q213 Q29
OR((Q330653,P17,c(Q15617994)), (Q6069633,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q330653
relation P17
action find
entity Q6069633
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q330653', 'P17', {'concept': 'Q15617994'}], ['Q6069633', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q330653 property:P17 ?n } UNION { resource:Q6069633 property:P27 ?n } } }
Czech Republic Spain
Which administrative territories are Úvaly located in or are Pedro Núñez de Prado a civilian of
Czech Republic Spain
action filter_type
action union
action find
entity Úvaly
relation country
action find
entity Pedro Núñez de Prado
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Úvaly', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Núñez de Prado', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Úvaly property:country ?n } UNION { resource:Pedro_Núñez_de_Prado property:country_of_citizenship ?n } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q622085
P530
Q15617994
USER
Do Oberuckersee have ambassadorial relations with those ones ?
(Q622085,P530,Q213) (Q622085,P530,Q29)
action is_in
entity prev_answer
action find
entity Q622085
relation P530
['Q622085', 'P530', 'Q213'] ['Q622085', 'P530', 'Q29']
ASK WHERE { resource:Q622085 property:P530 ?f . VALUES ( ?f ) { ( resource:Q213 ) ( resource:Q29 ) } }
Oberuckersee
action is_in
entity prev_answer
action find
entity Oberuckersee
relation diplomatic relation
['Oberuckersee', 'diplomatic relation', 'Czech Republic'] ['Oberuckersee', 'diplomatic relation', 'Spain']
ASK WHERE { resource:Oberuckersee property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Czech_Republic ) ( resource:Spain ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q622085,P530,Q213) (Q622085,P530,Q29)
action is_in
entity prev_answer
action find
entity Q622085
relation P530
[ANSWER]
['Q622085', 'P530', 'Q213'] ['Q622085', 'P530', 'Q29']
ASK WHERE { resource:Q622085 property:P530 ?f . VALUES ( ?f ) { ( resource:Q213 ) ( resource:Q29 ) } }
No
action is_in
entity prev_answer
action find
entity Oberuckersee
relation diplomatic relation
['Oberuckersee', 'diplomatic relation', 'Czech Republic'] ['Oberuckersee', 'diplomatic relation', 'Spain']
ASK WHERE { resource:Oberuckersee property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Czech_Republic ) ( resource:Spain ) } }
[]