Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q731347
Q20667921
USER
And what about Cézan?
(Q731347,P47,c(Q20667921))
action filter_type
action find
entity Q731347
relation P47
type Q20667921
['Q731347', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q731347 property:P47 ?w . ?w rdf:type ontology:Q20667921 }
Cézan
action filter_type
action find
entity Cézan
relation shares border with
type type of french administrative division
['Cézan', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Cézan property:shares_border_with ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q528214 Q682734 Q1041958
SYSTEM
Jegun, Lavardens, Castéra-Verduzan
Q682734 Q1006795 Q528214 Q1041958 Q550585 Q1004910
(Q731347,P47,c(Q20667921))
action filter_type
action find
entity Q731347
relation P47
type Q20667921
[ANSWERS]
['Q731347', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q731347 property:P47 ?w . ?w rdf:type ontology:Q20667921 }
Lavardens Larroque-Saint-Sernin Jegun Castéra-Verduzan Préchac Réjaumont
Jegun Lavardens Castéra-Verduzan
action filter_type
action find
entity Cézan
relation shares border with
type type of french administrative division
['Cézan', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Cézan property:shares_border_with ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q528214
P1376
Q20667921
USER
Which french administrative division has that one as its capital ?
(Q528214,P1376,c(Q20667921))
action filter_type
action find
entity Q528214
relation P1376
type Q20667921
['Q528214', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q20667921 . resource:Q528214 property:P1376 ?v }
Jegun
action filter_type
action find
entity Jegun
relation capital of
type type of french administrative division
['Jegun', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:type_of_french_administrative_division . resource:Jegun property:capital_of ?v }
[]
type of french administrative division
Clarification for simple ques.
Q682734
SYSTEM
Did you mean Lavardens ?
Q528214 Q682734 Q1041958
(Q528214,P1376,c(Q20667921)) (Q682734,P1376,c(Q20667921)) (Q1041958,P1376,c(Q20667921))
[ANSWER]
['Q528214', 'P1376', {'concept': 'Q20667921'}] ['Q682734', 'P1376', {'concept': 'Q20667921'}] ['Q1041958', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q20667921 . resource:Q528214 property:P1376 ?v }
Jegun Lavardens Castéra-Verduzan
Did you mean Lavardens ?
Lavardens
['Jegun', 'capital of', {'concept': 'type of french administrative division'}] ['Lavardens', 'capital of', {'concept': 'type of french administrative division'}] ['Castéra-Verduzan', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:type_of_french_administrative_division . resource:Jegun property:capital_of ?v }
[]
Simple Question (Coreferenced)
USER
No, I meant Jegun. Could you tell me the answer for that?
(Q528214,P1376,c(Q20667921))
Q528214
['Q528214', 'P1376', {'concept': 'Q20667921'}]
['Jegun', 'capital of', {'concept': 'type of french administrative division'}]
[]
Q1725541
SYSTEM
canton of Jegun
Q1725541
(Q528214,P1376,c(Q20667921))
action filter_type
action find
entity Q528214
relation P1376
type Q20667921
The [ANSWER] has that one as its capital
['Q528214', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q20667921 . resource:Q528214 property:P1376 ?v }
canton of Jegun
The canton of Jegun has that one as its capital
canton of Jegun
action filter_type
action find
entity Jegun
relation capital of
type type of french administrative division
['Jegun', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:type_of_french_administrative_division . resource:Jegun property:capital_of ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1725541
P1376
Q20667921
USER
Which french administrative division is center of administration for that one ?
(c(Q20667921),P1376,Q1725541)
action filter_type
action find_reverse
entity Q1725541
relation P1376
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q1725541']
SELECT DISTINCT ?a WHERE { ?a property:P1376 resource:Q1725541 . ?a rdf:type ontology:Q20667921 }
canton of Jegun
action filter_type
action find_reverse
entity canton of Jegun
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Jegun']
SELECT DISTINCT ?a WHERE { ?a property:capital_of resource:canton_of_Jegun . ?a rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q528214
SYSTEM
Jegun
Q528214
(c(Q20667921),P1376,Q1725541)
action filter_type
action find_reverse
entity Q1725541
relation P1376
type Q20667921
[ANSWER] is center of administration for that one
[{'concept': 'Q20667921'}, 'P1376', 'Q1725541']
SELECT DISTINCT ?a WHERE { ?a property:P1376 resource:Q1725541 . ?a rdf:type ontology:Q20667921 }
Jegun
Jegun is center of administration for that one
Jegun
action filter_type
action find_reverse
entity canton of Jegun
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Jegun']
SELECT DISTINCT ?a WHERE { ?a property:capital_of resource:canton_of_Jegun . ?a rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q146214 Q528214
P47
Q20667921
USER
Which french administrative divisions are bordered by Jegun or Fontaine-lès-Cappy ?
OR((Q528214,P47,c(Q20667921)), (Q146214,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q528214
relation P47
action find
entity Q146214
relation P47
type Q20667921
{'OR': [['Q528214', 'P47', {'concept': 'Q20667921'}], ['Q146214', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q146214 property:P47 ?n } UNION { resource:Q528214 property:P47 ?n } } . ?n rdf:type ontology:Q20667921 }
Fontaine-lès-Cappy Jegun
action filter_type
action union
action find
entity Jegun
relation shares border with
action find
entity Fontaine-lès-Cappy
relation shares border with
type type of french administrative division
{'OR': [['Jegun', 'shares border with', {'concept': 'type of french administrative division'}], ['Fontaine-lès-Cappy', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Fontaine-lès-Cappy property:shares_border_with ?n } UNION { resource:Jegun property:shares_border_with ?n } } . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q682734 Q1041958 Q70024 Q731347 Q146325 Q1004902 Q120798 Q1143408 Q1003999 Q732595
SYSTEM
Some of them are Lavardens, Castéra-Verduzan, Dompierre-Becquincourt, Cézan, Foucaucourt-en-Santerre, Saint-Paul-de-Baïse, Fay, Biran, Saint-Jean-Poutge, Antras
Q1003999 Q732595 Q731347 Q859850 Q70024 Q1004902 Q1041958 Q146325 Q1143408 Q545619 Q58887 Q682734 Q1089981 Q120798
OR((Q528214,P47,c(Q20667921)), (Q146214,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q528214
relation P47
action find
entity Q146214
relation P47
type Q20667921
[ANSWERS] are bordered by Jegun or Fontaine-lès-Cappy
{'OR': [['Q528214', 'P47', {'concept': 'Q20667921'}], ['Q146214', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q146214 property:P47 ?n } UNION { resource:Q528214 property:P47 ?n } } . ?n rdf:type ontology:Q20667921 }
Saint-Jean-Poutge Antras Cézan Bonas Dompierre-Becquincourt Saint-Paul-de-Baïse Castéra-Verduzan Foucaucourt-en-Santerre Biran Saint-Lary Chuignes Lavardens Cappy Fay
Lavardens, Castéra-Verduzan, Dompierre-Becquincourt, Cézan, Foucaucourt-en-Santerre, Saint-Paul-de-Baïse, Fay, Biran, Saint-Jean-Poutge and Antras are bordered by Jegun or Fontaine-lès-Cappy
Lavardens Castéra-Verduzan Dompierre-Becquincourt Cézan Foucaucourt-en-Santerre Saint-Paul-de-Baïse Fay Biran Saint-Jean-Poutge Antras
action filter_type
action union
action find
entity Jegun
relation shares border with
action find
entity Fontaine-lès-Cappy
relation shares border with
type type of french administrative division
{'OR': [['Jegun', 'shares border with', {'concept': 'type of french administrative division'}], ['Fontaine-lès-Cappy', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Fontaine-lès-Cappy property:shares_border_with ?n } UNION { resource:Jegun property:shares_border_with ?n } } . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q70024
P166
Q618779
USER
Which award was Dompierre-Becquincourt awarded with ?
(Q70024,P166,c(Q618779))
action filter_type
action find
entity Q70024
relation P166
type Q618779
['Q70024', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?d WHERE { resource:Q70024 property:P166 ?d . ?d rdf:type ontology:Q618779 }
Dompierre-Becquincourt
action filter_type
action find
entity Dompierre-Becquincourt
relation award received
type award
['Dompierre-Becquincourt', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?d WHERE { resource:Dompierre-Becquincourt property:award_received ?d . ?d rdf:type ontology:award }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q70024,P166,c(Q618779))
action filter_type
action find
entity Q70024
relation P166
type Q618779
Dompierre-Becquincourt was awarded the [ANSWER]
['Q70024', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?d WHERE { resource:Q70024 property:P166 ?d . ?d rdf:type ontology:Q618779 }
Croix de guerre 1914–1918
Dompierre-Becquincourt was awarded the Croix de guerre 1914–1918
Croix de guerre 1914–1918
action filter_type
action find
entity Dompierre-Becquincourt
relation award received
type award
['Dompierre-Becquincourt', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?d WHERE { resource:Dompierre-Becquincourt property:award_received ?d . ?d rdf:type ontology:award }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q90702
Q618779
USER
And what about Helmut Maucher?
(Q90702,P166,c(Q618779))
action filter_type
action find
entity Q90702
relation P166
type Q618779
['Q90702', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?h WHERE { resource:Q90702 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Helmut Maucher
action filter_type
action find
entity Helmut Maucher
relation award received
type award
['Helmut Maucher', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?h WHERE { resource:Helmut_Maucher property:award_received ?h . ?h rdf:type ontology:award }
[]
award
Q10905276 Q445673
SYSTEM
Commander's Cross of the Order of Merit of the Federal Republic of Germany, Order of Merit of Baden-Württemberg
Q10905276 Q445673
(Q90702,P166,c(Q618779))
action filter_type
action find
entity Q90702
relation P166
type Q618779
[ANSWERS]
['Q90702', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?h WHERE { resource:Q90702 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Commander's Cross of the Order of Merit of the Federal Republic of Germany Order of Merit of Baden-Württemberg
Commander's Cross of the Order of Merit of the Federal Republic of Germany Order of Merit of Baden-Württemberg
action filter_type
action find
entity Helmut Maucher
relation award received
type award
['Helmut Maucher', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?h WHERE { resource:Helmut_Maucher property:award_received ?h . ?h rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q528214
P47
Q20667921
USER
How many french administrative divisions are bordered by Jegun ?
(Q528214,P47,c(Q20667921))
action count
action filter_type
action find
entity Q528214
relation P47
type Q20667921
['Q528214', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q528214 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Jegun
action count
action filter_type
action find
entity Jegun
relation shares border with
type type of french administrative division
['Jegun', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Jegun property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
9
Q1003999 Q732595 Q731347 Q859850 Q1041958 Q1143408 Q545619 Q682734 Q1004902
(Q528214,P47,c(Q20667921))
action count
action filter_type
action find
entity Q528214
relation P47
type Q20667921
[ANSWER]
['Q528214', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q528214 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Saint-Jean-Poutge Antras Cézan Bonas Castéra-Verduzan Biran Saint-Lary Lavardens Saint-Paul-de-Baïse
9
action count
action filter_type
action find
entity Jegun
relation shares border with
type type of french administrative division
['Jegun', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Jegun property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]