Simple Question (Direct)
Simple Question
Q674872
P47
Q20667921
USER
Which french administrative divisions are adjacent to Villers-Guislain ?
(Q674872,P47,c(Q20667921))
action filter_type
action find
entity Q674872
relation P47
type Q20667921
['Q674872', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q674872 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Villers-Guislain
action filter_type
action find
entity Villers-Guislain
relation shares border with
type type of french administrative division
['Villers-Guislain', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Villers-Guislain property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q81992 Q686917 Q637315
SYSTEM
Épehy, Honnecourt-sur-Escaut, Banteux
Q686917 Q1063694 Q637315 Q81992 Q1117354 Q1156660
(Q674872,P47,c(Q20667921))
action filter_type
action find
entity Q674872
relation P47
type Q20667921
[ANSWERS] are adjacent to Villers-Guislain
['Q674872', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q674872 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Honnecourt-sur-Escaut Gonnelieu Banteux Épehy Gouzeaucourt Heudicourt
Épehy, Honnecourt-sur-Escaut and Banteux are adjacent to Villers-Guislain
Épehy Honnecourt-sur-Escaut Banteux
action filter_type
action find
entity Villers-Guislain
relation shares border with
type type of french administrative division
['Villers-Guislain', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Villers-Guislain property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q81992 Q686917 Q637315
P17
Q15617994
USER
Which administrative territories do those french administrative divisions belong to ?
(Q81992,P17,c(Q15617994)) (Q686917,P17,c(Q15617994)) (Q637315,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q81992', 'P17', {'concept': 'Q15617994'}] ['Q686917', 'P17', {'concept': 'Q15617994'}] ['Q637315', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Q686917 ) ( resource:Q1063694 ) ( resource:Q637315 ) } . ?i rdf:type ontology:Q15617994 . ?g property:P17 ?i }
Épehy Honnecourt-sur-Escaut Banteux
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Épehy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Honnecourt-sur-Escaut', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Banteux', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Honnecourt-sur-Escaut ) ( resource:Gonnelieu ) ( resource:Banteux ) } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:country ?i }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q81992,P17,c(Q15617994)) (Q686917,P17,c(Q15617994)) (Q637315,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those french administrative divisions belong to [ANSWER], [ANSWER] and [ANSWER]
['Q81992', 'P17', {'concept': 'Q15617994'}] ['Q686917', 'P17', {'concept': 'Q15617994'}] ['Q637315', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Q686917 ) ( resource:Q1063694 ) ( resource:Q637315 ) } . ?i rdf:type ontology:Q15617994 . ?g property:P17 ?i }
France France France
Those french administrative divisions belong to France, France and France
France France France
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Épehy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Honnecourt-sur-Escaut', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Banteux', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Honnecourt-sur-Escaut ) ( resource:Gonnelieu ) ( resource:Banteux ) } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:country ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q674872
P166
Q618779
USER
What was received by Villers-Guislain ?
(Q674872,P166,c(Q618779))
action filter_type
action find
entity Q674872
relation P166
type Q618779
['Q674872', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q674872 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Villers-Guislain
action filter_type
action find
entity Villers-Guislain
relation award received
type award
['Villers-Guislain', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Villers-Guislain property:award_received ?i . ?i rdf:type ontology:award }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q674872,P166,c(Q618779))
action filter_type
action find
entity Q674872
relation P166
type Q618779
France [ANSWER] was received by Villers-Guislain
['Q674872', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q674872 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Croix de guerre 1914–1918
France Croix de guerre 1914–1918 was received by Villers-Guislain
Croix de guerre 1914–1918
action filter_type
action find
entity Villers-Guislain
relation award received
type award
['Villers-Guislain', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Villers-Guislain property:award_received ?i . ?i rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81992
P276
Q1190554
USER
Which event has its location as Épehy ?
(c(Q1190554),P276,Q81992)
action filter_type
action find_reverse
entity Q81992
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q81992']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q81992 . ?q rdf:type ontology:Q1190554 }
Épehy
action filter_type
action find_reverse
entity Épehy
relation location
type event
[{'concept': 'event'}, 'location', 'Épehy']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Épehy . ?q rdf:type ontology:event }
[]
event
Q203234
SYSTEM
Battle of Épehy
Q203234
(c(Q1190554),P276,Q81992)
action filter_type
action find_reverse
entity Q81992
relation P276
type Q1190554
The [ANSWER] has its location as Épehy
[{'concept': 'Q1190554'}, 'P276', 'Q81992']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q81992 . ?q rdf:type ontology:Q1190554 }
Battle of Épehy
The Battle of Épehy has its location as Épehy
Battle of Épehy
action filter_type
action find_reverse
entity Épehy
relation location
type event
[{'concept': 'event'}, 'location', 'Épehy']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Épehy . ?q rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81992
P20
Q502895
USER
Which people have that french administrative division as the area of death ?
(c(Q502895),P20,Q203234)
action filter_type
action find_reverse
entity Q81992
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q203234']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P20 resource:Q81992 }
Épehy
action filter_type
action find_reverse
entity Épehy
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Battle of Épehy']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:place_of_death resource:Épehy }
[]
common name
Q6230509 Q16059354
SYSTEM
John Dunville, Hardy Falconer Parsons
Q6230509 Q16059354
(c(Q502895),P20,Q203234)
action filter_type
action find_reverse
entity Q81992
relation P20
type Q502895
[ANSWERS] have that french administrative division as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q203234']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P20 resource:Q81992 }
John Dunville Hardy Falconer Parsons
John Dunville and Hardy Falconer Parsons have that french administrative division as the area of death
John Dunville Hardy Falconer Parsons
action filter_type
action find_reverse
entity Épehy
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Battle of Épehy']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:place_of_death resource:Épehy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q4164871 Q15617994 Q15617994
USER
How many administrative territories have atmost 1 positions and administrative territories as the type of government ?
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action count
action atmost
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?b ) WHERE { { ?x property:P122 ?r . ?x rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q4164871 } UNION { ?x property:P122 ?r . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . FILTER ( ?b <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?b ) WHERE { { ?x property:basic_form_of_government ?r . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:position } UNION { ?x property:basic_form_of_government ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . FILTER ( ?b <= 1 ) }
[]
position designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
97
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action count
action atmost
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?b ) WHERE { { ?x property:P122 ?r . ?x rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q4164871 } UNION { ?x property:P122 ?r . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . FILTER ( ?b <= 1 ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
97
action count
action atmost
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?b ) WHERE { { ?x property:basic_form_of_government ?r . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:position } UNION { ?x property:basic_form_of_government ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . FILTER ( ?b <= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2727598
P166
Q7275 Q56061
USER
How many states and administrative territories won Croix de guerre 1914–1918 ?
(c(Q7275),P166,Q2727598) (c(Q56061),P166,Q2727598)
action count
action union
action filter_type
action find_reverse
entity Q2727598
relation P166
type Q7275
action filter_type
action find_reverse
entity Q2727598
relation P166
type Q56061
[{'concept': 'Q7275'}, 'P166', 'Q2727598'] [{'concept': 'Q56061'}, 'P166', 'Q2727598']
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { ?t property:P166 resource:Q2727598 . ?t rdf:type ontology:Q56061 } UNION { ?t property:P166 resource:Q2727598 . ?t rdf:type ontology:Q7275 } }
Croix de guerre 1914–1918
action count
action union
action filter_type
action find_reverse
entity Croix de guerre 1914–1918
relation award received
type state
action filter_type
action find_reverse
entity Croix de guerre 1914–1918
relation award received
type administrative territorial entity
[{'concept': 'state'}, 'award received', 'Croix de guerre 1914–1918'] [{'concept': 'administrative territorial entity'}, 'award received', 'Croix de guerre 1914–1918']
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { ?t property:award_received resource:Croix_de_guerre_1914–1918 . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t property:award_received resource:Croix_de_guerre_1914–1918 . ?t rdf:type ontology:state } }
[]
state administrative territorial entity
SYSTEM
1 states and 6 administrative territories
Q387821 Q1800368 Q90 Q648 Q134121 Q287463 Q204472
(c(Q7275),P166,Q2727598) (c(Q56061),P166,Q2727598)
action count
action union
action filter_type
action find_reverse
entity Q2727598
relation P166
type Q7275
action filter_type
action find_reverse
entity Q2727598
relation P166
type Q56061
[ANSWER]
[{'concept': 'Q7275'}, 'P166', 'Q2727598'] [{'concept': 'Q56061'}, 'P166', 'Q2727598']
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { ?t property:P166 resource:Q2727598 . ?t rdf:type ontology:Q56061 } UNION { ?t property:P166 resource:Q2727598 . ?t rdf:type ontology:Q7275 } }
Dombasle-sur-Meurthe Château de Hattonchâtel Paris Lille Namur Épinoy Šabac
1 states and 6 administrative territories
action count
action union
action filter_type
action find_reverse
entity Croix de guerre 1914–1918
relation award received
type state
action filter_type
action find_reverse
entity Croix de guerre 1914–1918
relation award received
type administrative territorial entity
[{'concept': 'state'}, 'award received', 'Croix de guerre 1914–1918'] [{'concept': 'administrative territorial entity'}, 'award received', 'Croix de guerre 1914–1918']
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { ?t property:award_received resource:Croix_de_guerre_1914–1918 . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t property:award_received resource:Croix_de_guerre_1914–1918 . ?t rdf:type ontology:state } }
[]