Simple Question (Direct)
Simple Question
Q1144398
P17
Q15617994
USER
Which administrative territory is Vinax a part of ?
(Q1144398,P17,c(Q15617994))
action filter_type
action find
entity Q1144398
relation P17
type Q15617994
['Q1144398', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1144398 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Vinax
action filter_type
action find
entity Vinax
relation country
type designation for an administrative territorial entity
['Vinax', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Vinax property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1144398,P17,c(Q15617994))
action filter_type
action find
entity Q1144398
relation P17
type Q15617994
Which administrative territory is Vinax a part of
['Q1144398', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1144398 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
France
Which administrative territory is Vinax a part of
France
action filter_type
action find
entity Vinax
relation country
type designation for an administrative territorial entity
['Vinax', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Vinax property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1144398
P47
Q20667921
USER
Which french administrative divisions share border with Vinax ?
(Q1144398,P47,c(Q20667921))
action filter_type
action find
entity Q1144398
relation P47
type Q20667921
['Q1144398', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q1144398 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Vinax
action filter_type
action find
entity Vinax
relation shares border with
type type of french administrative division
['Vinax', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Vinax property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1084436 Q1144770 Q1084427
SYSTEM
Aubigné, Néré, Asnières-en-Poitou
Q1084427 Q651235 Q1084436 Q1099019 Q1144770 Q1350306 Q1080900 Q1348661
(Q1144398,P47,c(Q20667921))
action filter_type
action find
entity Q1144398
relation P47
type Q20667921
[ANSWERS] share border with Vinax
['Q1144398', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q1144398 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Asnières-en-Poitou Saleignes Aubigné Les Éduts Néré Saint-Mandé-sur-Brédoire Contré Paizay-le-Chapt
Aubigné, Néré and Asnières-en-Poitou share border with Vinax
Aubigné Néré Asnières-en-Poitou
action filter_type
action find
entity Vinax
relation shares border with
type type of french administrative division
['Vinax', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Vinax property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q242830
Q20667921
USER
And how about Courçais?
(Q242830,P47,c(Q20667921))
action filter_type
action find
entity Q242830
relation P47
type Q20667921
['Q242830', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q20667921 . resource:Q242830 property:P47 ?g }
Courçais
action filter_type
action find
entity Courçais
relation shares border with
type type of french administrative division
['Courçais', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:type_of_french_administrative_division . resource:Courçais property:shares_border_with ?g }
[]
type of french administrative division
Q741494 Q867932 Q242843
SYSTEM
Saint-Désiré, Viplaix, Chazemais
Q867932 Q741494 Q242843 Q747398 Q845297
(Q242830,P47,c(Q20667921))
action filter_type
action find
entity Q242830
relation P47
type Q20667921
[ANSWERS]
['Q242830', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q20667921 . resource:Q242830 property:P47 ?g }
Viplaix Saint-Désiré Chazemais Chambérat La Chapelaude
Saint-Désiré Viplaix Chazemais
action filter_type
action find
entity Courçais
relation shares border with
type type of french administrative division
['Courçais', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:type_of_french_administrative_division . resource:Courçais property:shares_border_with ?g }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q741494 Q867932 Q242843
P47
Q20667921
USER
Which french administrative divisions have an adjacent border with Saint-Désiré, Viplaix and Chazemais ?
(c(Q20667921),P47,Q741494) (c(Q20667921),P47,Q867932) (c(Q20667921),P47,Q242843)
action union
action filter_type
action find
entity Q741494
relation P47
type Q20667921
action filter_type
action find
entity Q867932
relation P47
type Q20667921
action filter_type
action find
entity Q242843
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q741494'] [{'concept': 'Q20667921'}, 'P47', 'Q867932'] [{'concept': 'Q20667921'}, 'P47', 'Q242843']
SELECT DISTINCT ?w WHERE { { resource:Q741494 property:P47 ?w . ?w rdf:type ontology:Q20667921 } UNION { ?w rdf:type ontology:Q20667921 . resource:Q867932 property:P47 ?w } }
Saint-Désiré Viplaix Chazemais
action union
action filter_type
action find
entity Saint-Désiré
relation shares border with
type type of french administrative division
action filter_type
action find
entity Viplaix
relation shares border with
type type of french administrative division
action filter_type
action find
entity Chazemais
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Désiré'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Viplaix'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Chazemais']
SELECT DISTINCT ?w WHERE { { resource:Saint-Désiré property:shares_border_with ?w . ?w rdf:type ontology:type_of_french_administrative_division } UNION { ?w rdf:type ontology:type_of_french_administrative_division . resource:Viplaix property:shares_border_with ?w } }
[]
type of french administrative division
Q993870 Q993870 Q741494
SYSTEM
Vallon-en-Sully for 1st, 2nd, Saint-Désiré for 3rd
Q993870 Q242843 Q819818 Q633775 Q786723 Q865813 Q867932 Q242830 Q1019905 Q747398 Q741494 Q867866 Q865813 Q829656 Q242830 Q993870 Q845297 Q510331 Q583819 Q741494 Q786723 Q242830
(c(Q20667921),P47,Q741494) (c(Q20667921),P47,Q867932) (c(Q20667921),P47,Q242843)
action union
action filter_type
action find
entity Q741494
relation P47
type Q20667921
action filter_type
action find
entity Q867932
relation P47
type Q20667921
action filter_type
action find
entity Q242843
relation P47
type Q20667921
[ANSWERS]
[{'concept': 'Q20667921'}, 'P47', 'Q741494'] [{'concept': 'Q20667921'}, 'P47', 'Q867932'] [{'concept': 'Q20667921'}, 'P47', 'Q242843']
SELECT DISTINCT ?w WHERE { { resource:Q741494 property:P47 ?w . ?w rdf:type ontology:Q20667921 } UNION { ?w rdf:type ontology:Q20667921 . resource:Q867932 property:P47 ?w } }
Vallon-en-Sully Chazemais Culan Vesdun Saint-Vitte Saint-Éloy-d'Allier Viplaix Courçais Saint-Palais Chambérat Saint-Désiré Mesples Saint-Éloy-d'Allier Sidiailles Courçais Vallon-en-Sully La Chapelaude Nassigny Audes Saint-Désiré Saint-Vitte Courçais
Vallon-en-Sully, Vallon-en-Sully and Saint-Désiré have an adjacent border with Saint-Désiré, Viplaix and Chazemais
Vallon-en-Sully Vallon-en-Sully Saint-Désiré
action union
action filter_type
action find
entity Saint-Désiré
relation shares border with
type type of french administrative division
action filter_type
action find
entity Viplaix
relation shares border with
type type of french administrative division
action filter_type
action find
entity Chazemais
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Désiré'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Viplaix'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Chazemais']
SELECT DISTINCT ?w WHERE { { resource:Saint-Désiré property:shares_border_with ?w . ?w rdf:type ontology:type_of_french_administrative_division } UNION { ?w rdf:type ontology:type_of_french_administrative_division . resource:Viplaix property:shares_border_with ?w } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q993870
P20
Q502895
USER
Which person has that french administrative division as place of death ?
(c(Q502895),P20,Q993870)
action filter_type
action find_reverse
entity Q993870
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q993870']
SELECT DISTINCT ?l WHERE { ?l property:P20 resource:Q993870 . ?l rdf:type ontology:Q502895 }
Vallon-en-Sully
action filter_type
action find_reverse
entity Vallon-en-Sully
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Vallon-en-Sully']
SELECT DISTINCT ?l WHERE { ?l property:place_of_death resource:Vallon-en-Sully . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q993870
SYSTEM
Did you mean Vallon-en-Sully ?
Q993870 Q993870 Q741494
(c(Q502895),P20,Q993870) (c(Q502895),P20,Q993870) (c(Q502895),P20,Q741494)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q993870'] [{'concept': 'Q502895'}, 'P20', 'Q993870'] [{'concept': 'Q502895'}, 'P20', 'Q741494']
SELECT DISTINCT ?l WHERE { ?l property:P20 resource:Q993870 . ?l rdf:type ontology:Q502895 }
Vallon-en-Sully Vallon-en-Sully Saint-Désiré
Did you mean Vallon-en-Sully ?
Vallon-en-Sully
[{'concept': 'common name'}, 'place of death', 'Vallon-en-Sully'] [{'concept': 'common name'}, 'place of death', 'Vallon-en-Sully'] [{'concept': 'common name'}, 'place of death', 'Saint-Désiré']
SELECT DISTINCT ?l WHERE { ?l property:place_of_death resource:Vallon-en-Sully . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P20,Q993870)
[{'concept': 'Q502895'}, 'P20', 'Q993870']
[{'concept': 'common name'}, 'place of death', 'Vallon-en-Sully']
[]
Q17642780
SYSTEM
Robert Villatte des Prûgnes
Q17642780
(c(Q502895),P20,Q993870)
action filter_type
action find_reverse
entity Q993870
relation P20
type Q502895
[ANSWER] has that french administrative division as place of death
[{'concept': 'Q502895'}, 'P20', 'Q993870']
SELECT DISTINCT ?l WHERE { ?l property:P20 resource:Q993870 . ?l rdf:type ontology:Q502895 }
Robert Villatte des Prûgnes
Robert Villatte des Prûgnes has that french administrative division as place of death
Robert Villatte des Prûgnes
action filter_type
action find_reverse
entity Vallon-en-Sully
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Vallon-en-Sully']
SELECT DISTINCT ?l WHERE { ?l property:place_of_death resource:Vallon-en-Sully . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q2818519
P6
Q502895
USER
How many people are France or Sakskoburggotski Government the head of goverment of ?
(Q142,P6,c(Q502895)) (Q2818519,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q142
relation P6
type Q502895
action filter_type
action find
entity Q2818519
relation P6
type Q502895
['Q142', 'P6', {'concept': 'Q502895'}] ['Q2818519', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?s property:P6 ?h . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q2818519 ) } }
France Sakskoburggotski Government
action count
action union
action filter_type
action find
entity France
relation head of government
type common name
action filter_type
action find
entity Sakskoburggotski Government
relation head of government
type common name
['France', 'head of government', {'concept': 'common name'}] ['Sakskoburggotski Government', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?s property:head_of_government ?h . VALUES ( ?s ) { ( resource:France ) ( resource:Sakskoburggotski_Government ) } }
[]
common name
SYSTEM
3
Q10287 Q7711 Q1060355
(Q142,P6,c(Q502895)) (Q2818519,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q142
relation P6
type Q502895
action filter_type
action find
entity Q2818519
relation P6
type Q502895
[ANSWER]
['Q142', 'P6', {'concept': 'Q502895'}] ['Q2818519', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?s property:P6 ?h . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q2818519 ) } }
Manuel Valls Jean-Marc Ayrault Simeon Saxe-Coburg-Gotha
3
action count
action union
action filter_type
action find
entity France
relation head of government
type common name
action filter_type
action find
entity Sakskoburggotski Government
relation head of government
type common name
['France', 'head of government', {'concept': 'common name'}] ['Sakskoburggotski Government', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?s property:head_of_government ?h . VALUES ( ?s ) { ( resource:France ) ( resource:Sakskoburggotski_Government ) } }
[]