Simple Question (Direct)
Simple Question
Q649807
P47
Q20667921
USER
Which french administrative divisions share border with Connantre ?
(Q649807,P47,c(Q20667921))
action filter_type
action find
entity Q649807
relation P47
type Q20667921
['Q649807', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q649807 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Connantre
action filter_type
action find
entity Connantre
relation shares border with
type type of french administrative division
['Connantre', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Connantre property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q834061 Q1216673 Q745540
SYSTEM
Fère-Champenoise, Broussy-le-Grand, Linthes
Q745540 Q1248195 Q834061 Q639720 Q1216673 Q769789 Q646158
(Q649807,P47,c(Q20667921))
action filter_type
action find
entity Q649807
relation P47
type Q20667921
[ANSWERS] share border with Connantre
['Q649807', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q649807 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Linthes Bannes Fère-Champenoise Corroy Broussy-le-Grand Ognes Pleurs
Fère-Champenoise, Broussy-le-Grand and Linthes share border with Connantre
Fère-Champenoise Broussy-le-Grand Linthes
action filter_type
action find
entity Connantre
relation shares border with
type type of french administrative division
['Connantre', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Connantre property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q834061 Q1216673 Q745540
P17
Q15617994
USER
Which administrative territories do those french administrative divisions belong to ?
(Q834061,P17,c(Q15617994)) (Q1216673,P17,c(Q15617994)) (Q745540,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q834061', 'P17', {'concept': 'Q15617994'}] ['Q1216673', 'P17', {'concept': 'Q15617994'}] ['Q745540', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?p property:P17 ?i . VALUES ( ?p ) { ( resource:Q745540 ) ( resource:Q1248195 ) ( resource:Q834061 ) } . ?i rdf:type ontology:Q15617994 }
Fère-Champenoise Broussy-le-Grand Linthes
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Fère-Champenoise', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Broussy-le-Grand', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Linthes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?p property:country ?i . VALUES ( ?p ) { ( resource:Linthes ) ( resource:Bannes ) ( resource:Fère-Champenoise ) } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q834061,P17,c(Q15617994)) (Q1216673,P17,c(Q15617994)) (Q745540,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]
['Q834061', 'P17', {'concept': 'Q15617994'}] ['Q1216673', 'P17', {'concept': 'Q15617994'}] ['Q745540', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?p property:P17 ?i . VALUES ( ?p ) { ( resource:Q745540 ) ( resource:Q1248195 ) ( resource:Q834061 ) } . ?i rdf:type ontology:Q15617994 }
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
['Fère-Champenoise', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Broussy-le-Grand', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Linthes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?p property:country ?i . VALUES ( ?p ) { ( resource:Linthes ) ( resource:Bannes ) ( resource:Fère-Champenoise ) } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q834061
P166
Q618779
USER
Which award was Fère-Champenoise awarded with ?
(Q834061,P166,c(Q618779))
action filter_type
action find
entity Q834061
relation P166
type Q618779
['Q834061', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?s WHERE { resource:Q834061 property:P166 ?s . ?s rdf:type ontology:Q618779 }
Fère-Champenoise
action filter_type
action find
entity Fère-Champenoise
relation award received
type award
['Fère-Champenoise', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?s WHERE { resource:Fère-Champenoise property:award_received ?s . ?s rdf:type ontology:award }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q834061,P166,c(Q618779))
action filter_type
action find
entity Q834061
relation P166
type Q618779
Fère- Champenoise was awarded the [ANSWER]
['Q834061', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?s WHERE { resource:Q834061 property:P166 ?s . ?s rdf:type ontology:Q618779 }
Croix de guerre 1914–1918
Fère- Champenoise was awarded the Croix de guerre 1914–1918
Croix de guerre 1914–1918
action filter_type
action find
entity Fère-Champenoise
relation award received
type award
['Fère-Champenoise', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?s WHERE { resource:Fère-Champenoise property:award_received ?s . ?s rdf:type ontology:award }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1706333
Q618779
USER
And also tell me about Joseph Denis Odevaere?
(Q1706333,P166,c(Q618779))
action filter_type
action find
entity Q1706333
relation P166
type Q618779
['Q1706333', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q1706333 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Joseph Denis Odevaere
action filter_type
action find
entity Joseph Denis Odevaere
relation award received
type award
['Joseph Denis Odevaere', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Joseph_Denis_Odevaere property:award_received ?j . ?j rdf:type ontology:award }
[]
award
Q576434
SYSTEM
Prix de Rome
Q576434
(Q1706333,P166,c(Q618779))
action filter_type
action find
entity Q1706333
relation P166
type Q618779
[ANSWER]
['Q1706333', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q1706333 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Prix de Rome
Prix de Rome
action filter_type
action find
entity Joseph Denis Odevaere
relation award received
type award
['Joseph Denis Odevaere', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Joseph_Denis_Odevaere property:award_received ?j . ?j rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q576434 Q1233320
P166
Q502895
USER
Did François-Frédéric Lemot receive the award titled that one ?
(Q1233320,P166,Q576434)
action is_in
entity Q576434
action find
entity Q1233320
relation P166
['Q1233320', 'P166', 'Q576434']
ASK WHERE { resource:Q1233320 property:P166 resource:Q576434 }
Prix de Rome François-Frédéric Lemot
action is_in
entity Prix de Rome
action find
entity François-Frédéric Lemot
relation award received
['François-Frédéric Lemot', 'award received', 'Prix de Rome']
ASK WHERE { resource:François-Frédéric_Lemot property:award_received resource:Prix_de_Rome }
[]
common name
SYSTEM
YES
(Q1233320,P166,Q576434)
action is_in
entity Q576434
action find
entity Q1233320
relation P166
[ANSWER]
['Q1233320', 'P166', 'Q576434']
ASK WHERE { resource:Q1233320 property:P166 resource:Q576434 }
Yes
action is_in
entity Prix de Rome
action find
entity François-Frédéric Lemot
relation award received
['François-Frédéric Lemot', 'award received', 'Prix de Rome']
ASK WHERE { resource:François-Frédéric_Lemot property:award_received resource:Prix_de_Rome }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9409 Q142
P47
Q15617994
USER
Which administrative territories are adjacent to France or Ivrea ?
OR((Q142,P47,c(Q15617994)), (Q9409,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q9409
relation P47
type Q15617994
{'OR': [['Q142', 'P47', {'concept': 'Q15617994'}], ['Q9409', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q142 property:P47 ?m } UNION { resource:Q9409 property:P47 ?m } } . ?m rdf:type ontology:Q15617994 }
Ivrea France
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Ivrea
relation shares border with
type designation for an administrative territorial entity
{'OR': [['France', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Ivrea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:France property:shares_border_with ?m } UNION { resource:Ivrea property:shares_border_with ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q9108 Q32 Q10237 Q9265 Q29999 Q10252 Q31 Q38 Q9031 Q228
SYSTEM
Some of them are Burolo, Luxembourg, Romano Canavese, Chiaverano, Kingdom of the Netherlands, Salerano Canavese, Belgium, Italy, Banchette, Andorra
Q9108 Q8980 Q9265 Q145 Q9544 Q228 Q32 Q31 Q9031 Q39 Q38 Q717 Q730 Q29999 Q9055 Q10346 Q9487 Q9198 Q9357 Q155 Q10310 Q10237 Q29 Q10252
OR((Q142,P47,c(Q15617994)), (Q9409,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q9409
relation P47
type Q15617994
[ANSWERS] are adjacent to France or Ivrea
{'OR': [['Q142', 'P47', {'concept': 'Q15617994'}], ['Q9409', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q142 property:P47 ?m } UNION { resource:Q9409 property:P47 ?m } } . ?m rdf:type ontology:Q15617994 }
Burolo Albiano d'Ivrea Chiaverano United Kingdom Pavone Canavese Andorra Luxembourg Belgium Banchette Switzerland Italy Venezuela Suriname Kingdom of the Netherlands Bollengo Vestignè Montalto Dora Cascinette d'Ivrea Fiorano Canavese Brazil Strambino Romano Canavese Spain Salerano Canavese
Burolo, Luxembourg, Romano Canavese, Chiaverano, Kingdom of the Netherlands, Salerano Canavese, Belgium, Italy, Banchette and Andorra are adjacent to France or Ivrea
Burolo Luxembourg Romano Canavese Chiaverano Kingdom of the Netherlands Salerano Canavese Belgium Italy Banchette Andorra
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Ivrea
relation shares border with
type designation for an administrative territorial entity
{'OR': [['France', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Ivrea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:France property:shares_border_with ?m } UNION { resource:Ivrea property:shares_border_with ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q17
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with approximately the same number of administrative territories as Japan ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q17
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Q17 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?n property:P530 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } }
Japan
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Japan property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?n property:diplomatic_relation ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
105
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q17
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Q17 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?n property:P530 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
105
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Japan property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?n property:diplomatic_relation ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]