Simple Question (Direct)
Simple Question
Q377532
P47
Q20667921
USER
Which french administrative divisions are bordered by Saint-Pierre-Saint-Jean ?
(Q377532,P47,c(Q20667921))
action filter_type
action find
entity Q377532
relation P47
type Q20667921
['Q377532', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q377532 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Saint-Pierre-Saint-Jean
action filter_type
action find
entity Saint-Pierre-Saint-Jean
relation shares border with
type type of french administrative division
['Saint-Pierre-Saint-Jean', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Saint-Pierre-Saint-Jean property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q304047 Q380694 Q375519
SYSTEM
Saint-André-Lachamp, Sablières, Payzac
Q375519 Q323655 Q473627 Q304047 Q382853 Q470526 Q380694
(Q377532,P47,c(Q20667921))
action filter_type
action find
entity Q377532
relation P47
type Q20667921
[ANSWERS] are bordered by Saint-Pierre-Saint-Jean
['Q377532', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q377532 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Payzac Chambonas Les Salelles Saint-André-Lachamp Malarce-sur-la-Thines Faugères Sablières
Saint-André-Lachamp, Sablières and Payzac are bordered by Saint-Pierre-Saint-Jean
Saint-André-Lachamp Sablières Payzac
action filter_type
action find
entity Saint-Pierre-Saint-Jean
relation shares border with
type type of french administrative division
['Saint-Pierre-Saint-Jean', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Saint-Pierre-Saint-Jean property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q304047
P17
Q15617994
USER
Which administrative territory does that french administrative division belong to ?
(Q304047,P17,c(Q15617994))
action filter_type
action find
entity Q304047
relation P17
type Q15617994
['Q304047', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q304047 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Saint-André-Lachamp
action filter_type
action find
entity Saint-André-Lachamp
relation country
type designation for an administrative territorial entity
['Saint-André-Lachamp', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Saint-André-Lachamp property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q375519
SYSTEM
Did you mean Payzac ?
Q304047 Q380694 Q375519
(Q304047,P17,c(Q15617994)) (Q380694,P17,c(Q15617994)) (Q375519,P17,c(Q15617994))
[ANSWER]
['Q304047', 'P17', {'concept': 'Q15617994'}] ['Q380694', 'P17', {'concept': 'Q15617994'}] ['Q375519', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q304047 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Saint-André-Lachamp Sablières Payzac
Did you mean Payzac ?
Payzac
['Saint-André-Lachamp', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sablières', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Payzac', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Saint-André-Lachamp property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Saint-André-Lachamp. Could you tell me the answer for that?
(Q304047,P17,c(Q15617994))
Q304047
['Q304047', 'P17', {'concept': 'Q15617994'}]
['Saint-André-Lachamp', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q304047,P17,c(Q15617994))
action filter_type
action find
entity Q304047
relation P17
type Q15617994
That french administrative division belongs to the [ANSWER]
['Q304047', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q304047 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
France
That french administrative division belongs to the France
France
action filter_type
action find
entity Saint-André-Lachamp
relation country
type designation for an administrative territorial entity
['Saint-André-Lachamp', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Saint-André-Lachamp property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q55852 Q375519
P47 P17
Q15617994
USER
Which administrative territories are Payzac situated in or have a shared border with Baselice ?
OR((Q375519,P17,c(Q15617994)), (Q55852,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q375519
relation P17
action find
entity Q55852
relation P47
type Q15617994
{'OR': [['Q375519', 'P17', {'concept': 'Q15617994'}], ['Q55852', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q375519 property:P17 ?v } UNION { resource:Q55852 property:P47 ?v } } }
Baselice Payzac
action filter_type
action union
action find
entity Payzac
relation country
action find
entity Baselice
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Payzac', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Baselice', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Payzac property:country ?v } UNION { resource:Baselice property:shares_border_with ?v } } }
[]
designation for an administrative territorial entity
Q142 Q55954 Q55968 Q55896 Q55906 Q55891
SYSTEM
France, San Bartolomeo in Galdo, San Marco dei Cavoti, Colle Sannita, Foiano di Val Fortore, Castelvetere in Val Fortore
Q142 Q55954 Q55968 Q55896 Q55906 Q55891
OR((Q375519,P17,c(Q15617994)), (Q55852,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q375519
relation P17
action find
entity Q55852
relation P47
type Q15617994
Payzac are situated have [ANSWERS]
{'OR': [['Q375519', 'P17', {'concept': 'Q15617994'}], ['Q55852', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q375519 property:P17 ?v } UNION { resource:Q55852 property:P47 ?v } } }
France San Bartolomeo in Galdo San Marco dei Cavoti Colle Sannita Foiano di Val Fortore Castelvetere in Val Fortore
Payzac are situated have France, San Bartolomeo in Galdo, San Marco dei Cavoti, Colle Sannita, Foiano di Val Fortore and Castelvetere in Val Fortore
France San Bartolomeo in Galdo San Marco dei Cavoti Colle Sannita Foiano di Val Fortore Castelvetere in Val Fortore
action filter_type
action union
action find
entity Payzac
relation country
action find
entity Baselice
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Payzac', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Baselice', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Payzac property:country ?v } UNION { resource:Baselice property:shares_border_with ?v } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P17
Q532 Q667276
USER
How many villages or art exhibitions are present in France ?
(c(Q532),P17,Q142) (c(Q667276),P17,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P17
type Q532
action filter_type
action find_reverse
entity Q142
relation P17
type Q667276
[{'concept': 'Q532'}, 'P17', 'Q142'] [{'concept': 'Q667276'}, 'P17', 'Q142']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:P17 resource:Q142 . ?u rdf:type ontology:Q532 } UNION { ?u property:P17 resource:Q142 . ?u rdf:type ontology:Q667276 } }
France
action count
action union
action filter_type
action find_reverse
entity France
relation country
type village
action filter_type
action find_reverse
entity France
relation country
type art exhibition
[{'concept': 'village'}, 'country', 'France'] [{'concept': 'art exhibition'}, 'country', 'France']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:country resource:France . ?u rdf:type ontology:village } UNION { ?u property:country resource:France . ?u rdf:type ontology:art_exhibition } }
[]
village art exhibition
SYSTEM
15
Q24038430 Q24038431 Q24038432 Q817414 Q24038429 Q24038428 Q24038427 Q24038411 Q681869 Q3552937 Q458720 Q627493 Q474363 Q633275 Q59254
(c(Q532),P17,Q142) (c(Q667276),P17,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P17
type Q532
action filter_type
action find_reverse
entity Q142
relation P17
type Q667276
[ANSWER]
[{'concept': 'Q532'}, 'P17', 'Q142'] [{'concept': 'Q667276'}, 'P17', 'Q142']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:P17 resource:Q142 . ?u rdf:type ontology:Q532 } UNION { ?u property:P17 resource:Q142 . ?u rdf:type ontology:Q667276 } }
Excentrique(s) L'Étrange Cité Empires Louvemont-Côte-du-Poivre Leviathan Personnes Promenade Chute d'étoiles Haumont-près-Samogneux VIAPAC Bezonvaux Ornes Beaumont-en-Verdunois Cumières-le-Mort-Homme Fleury-devant-Douaumont
15
action count
action union
action filter_type
action find_reverse
entity France
relation country
type village
action filter_type
action find_reverse
entity France
relation country
type art exhibition
[{'concept': 'village'}, 'country', 'France'] [{'concept': 'art exhibition'}, 'country', 'France']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:country resource:France . ?u rdf:type ontology:village } UNION { ?u property:country resource:France . ?u rdf:type ontology:art_exhibition } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q616578
P361
Q41176
USER
How many buildings are a component of France or Historic Centre of Saint Petersburg and Related Groups of Monuments ?
(c(Q41176),P361,Q142) (c(Q41176),P361,Q616578)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P361
type Q41176
action filter_type
action find_reverse
entity Q616578
relation P361
type Q41176
[{'concept': 'Q41176'}, 'P361', 'Q142'] [{'concept': 'Q41176'}, 'P361', 'Q616578']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:P361 ?w . VALUES ( ?w ) { ( resource:Q142 ) ( resource:Q616578 ) } }
France Historic Centre of Saint Petersburg and Related Groups of Monuments
action count
action union
action filter_type
action find_reverse
entity France
relation part of
type building
action filter_type
action find_reverse
entity Historic Centre of Saint Petersburg and Related Groups of Monuments
relation part of
type building
[{'concept': 'building'}, 'part of', 'France'] [{'concept': 'building'}, 'part of', 'Historic Centre of Saint Petersburg and Related Groups of Monuments']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:part_of ?w . VALUES ( ?w ) { ( resource:France ) ( resource:Historic_Centre_of_Saint_Petersburg_and_Related_Groups_of_Monuments ) } }
[]
building
SYSTEM
7
Q405637 Q1519034 Q1621200 Q7461 Q2315050 Q2854543 Q1258473
(c(Q41176),P361,Q142) (c(Q41176),P361,Q616578)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P361
type Q41176
action filter_type
action find_reverse
entity Q616578
relation P361
type Q41176
[ANSWER]
[{'concept': 'Q41176'}, 'P361', 'Q142'] [{'concept': 'Q41176'}, 'P361', 'Q616578']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:P361 ?w . VALUES ( ?w ) { ( resource:Q142 ) ( resource:Q616578 ) } }
Pavlovsk Palace Alexander Palace Tsarskoye Selo Gatchina Palace Oranienbaum, Russia Catherine Palace Peterhof Palace
7
action count
action union
action filter_type
action find_reverse
entity France
relation part of
type building
action filter_type
action find_reverse
entity Historic Centre of Saint Petersburg and Related Groups of Monuments
relation part of
type building
[{'concept': 'building'}, 'part of', 'France'] [{'concept': 'building'}, 'part of', 'Historic Centre of Saint Petersburg and Related Groups of Monuments']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:part_of ?w . VALUES ( ?w ) { ( resource:France ) ( resource:Historic_Centre_of_Saint_Petersburg_and_Related_Groups_of_Monuments ) } }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1635760
Q12737077
USER
And what about Almedíjar?
(Q1635760,P1313,c(Q12737077))
action filter_type
action find
entity Q1635760
relation P1313
type Q12737077
['Q1635760', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1635760 property:P1313 ?r . ?r rdf:type ontology:Q12737077 }
Almedíjar
action filter_type
action find
entity Almedíjar
relation office held by head of government
type occupation
['Almedíjar', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Almedíjar property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q26693079
SYSTEM
mayor of Almedíjar
Q26693079
(Q1635760,P1313,c(Q12737077))
action filter_type
action find
entity Q1635760
relation P1313
type Q12737077
[ANSWER]
['Q1635760', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1635760 property:P1313 ?r . ?r rdf:type ontology:Q12737077 }
mayor of Almedíjar
mayor of Almedíjar
action filter_type
action find
entity Almedíjar
relation office held by head of government
type occupation
['Almedíjar', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Almedíjar property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q304047
P47
Q20667921
USER
How many french administrative divisions are adjacent to Saint-André-Lachamp ?
(Q304047,P47,c(Q20667921))
action count
action filter_type
action find
entity Q304047
relation P47
type Q20667921
['Q304047', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q304047 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Saint-André-Lachamp
action count
action filter_type
action find
entity Saint-André-Lachamp
relation shares border with
type type of french administrative division
['Saint-André-Lachamp', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Saint-André-Lachamp property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
8
Q377055 Q273945 Q470549 Q380702 Q470526 Q380694 Q377532 Q324496
(Q304047,P47,c(Q20667921))
action count
action filter_type
action find
entity Q304047
relation P47
type Q20667921
[ANSWER]
['Q304047', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q304047 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Planzolles Beaumont Ribes Saint-Mélany Faugères Sablières Saint-Pierre-Saint-Jean Lablachère
8
action count
action filter_type
action find
entity Saint-André-Lachamp
relation shares border with
type type of french administrative division
['Saint-André-Lachamp', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Saint-André-Lachamp property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]