Simple Question (Direct)
Simple Question
Q1102570
P17
Q15617994
USER
Which administrative territory is Gerbécourt-et-Haplemont situated in ?
(Q1102570,P17,c(Q15617994))
action filter_type
action find
entity Q1102570
relation P17
type Q15617994
['Q1102570', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1102570 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Gerbécourt-et-Haplemont
action filter_type
action find
entity Gerbécourt-et-Haplemont
relation country
type designation for an administrative territorial entity
['Gerbécourt-et-Haplemont', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Gerbécourt-et-Haplemont property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1102570,P17,c(Q15617994))
action filter_type
action find
entity Q1102570
relation P17
type Q15617994
Which administrative territory is Gerbécourt-et-Haplemont situated in
['Q1102570', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1102570 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
France
Which administrative territory is Gerbécourt-et-Haplemont situated in
France
action filter_type
action find
entity Gerbécourt-et-Haplemont
relation country
type designation for an administrative territorial entity
['Gerbécourt-et-Haplemont', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Gerbécourt-et-Haplemont property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1102570
P47
Q20667921
USER
Which french administrative divisions have a shared border with that one ?
(Q142,P47,c(Q20667921))
action filter_type
action find
entity Q1102570
relation P47
type Q20667921
['Q142', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q1102570 property:P47 ?f . ?f rdf:type ontology:Q20667921 }
Gerbécourt-et-Haplemont
action filter_type
action find
entity Gerbécourt-et-Haplemont
relation shares border with
type type of french administrative division
['France', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Gerbécourt-et-Haplemont property:shares_border_with ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q684302 Q228782 Q193197
SYSTEM
Tantonville, Ceintrey, Haroué
Q684302 Q1159874 Q231912 Q193197 Q193079 Q194806 Q228782 Q997311
(Q142,P47,c(Q20667921))
action filter_type
action find
entity Q1102570
relation P47
type Q20667921
[ANSWERS] have a shared border with that one
['Q142', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q1102570 property:P47 ?f . ?f rdf:type ontology:Q20667921 }
Tantonville Lemainville Clérey-sur-Brenon Haroué Omelmont Ormes-et-Ville Ceintrey Affracourt
Tantonville, Ceintrey and Haroué have a shared border with that one
Tantonville Ceintrey Haroué
action filter_type
action find
entity Gerbécourt-et-Haplemont
relation shares border with
type type of french administrative division
['France', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Gerbécourt-et-Haplemont property:shares_border_with ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1102570
P47
Q20667921
USER
Are Gerbécourt-et-Haplemont next to the border of those ones ?
(Q1102570,P47,Q684302) (Q1102570,P47,Q228782) (Q1102570,P47,Q193197)
action is_in
entity prev_answer
action find
entity Q1102570
relation P47
['Q1102570', 'P47', 'Q684302'] ['Q1102570', 'P47', 'Q228782'] ['Q1102570', 'P47', 'Q193197']
ASK WHERE { resource:Q1102570 property:P47 ?r . VALUES ( ?r ) { ( resource:Q684302 ) ( resource:Q1159874 ) ( resource:Q231912 ) } }
Gerbécourt-et-Haplemont
action is_in
entity prev_answer
action find
entity Gerbécourt-et-Haplemont
relation shares border with
['Gerbécourt-et-Haplemont', 'shares border with', 'Tantonville'] ['Gerbécourt-et-Haplemont', 'shares border with', 'Ceintrey'] ['Gerbécourt-et-Haplemont', 'shares border with', 'Haroué']
ASK WHERE { resource:Gerbécourt-et-Haplemont property:shares_border_with ?r . VALUES ( ?r ) { ( resource:Tantonville ) ( resource:Lemainville ) ( resource:Clérey-sur-Brenon ) } }
[]
type of french administrative division
SYSTEM
YES
(Q1102570,P47,Q684302) (Q1102570,P47,Q228782) (Q1102570,P47,Q193197)
action is_in
entity prev_answer
action find
entity Q1102570
relation P47
[ANSWER]
['Q1102570', 'P47', 'Q684302'] ['Q1102570', 'P47', 'Q228782'] ['Q1102570', 'P47', 'Q193197']
ASK WHERE { resource:Q1102570 property:P47 ?r . VALUES ( ?r ) { ( resource:Q684302 ) ( resource:Q1159874 ) ( resource:Q231912 ) } }
Yes
action is_in
entity prev_answer
action find
entity Gerbécourt-et-Haplemont
relation shares border with
['Gerbécourt-et-Haplemont', 'shares border with', 'Tantonville'] ['Gerbécourt-et-Haplemont', 'shares border with', 'Ceintrey'] ['Gerbécourt-et-Haplemont', 'shares border with', 'Haroué']
ASK WHERE { resource:Gerbécourt-et-Haplemont property:shares_border_with ?r . VALUES ( ?r ) { ( resource:Tantonville ) ( resource:Lemainville ) ( resource:Clérey-sur-Brenon ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q193197
P1376
Q20667921
USER
Which french administrative division has Haroué has its center of administration ?
(Q193197,P1376,c(Q20667921))
action filter_type
action find
entity Q193197
relation P1376
type Q20667921
['Q193197', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q193197 property:P1376 ?r }
Haroué
action filter_type
action find
entity Haroué
relation capital of
type type of french administrative division
['Haroué', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Haroué property:capital_of ?r }
[]
type of french administrative division
Q1725473
SYSTEM
canton of Haroué
Q1725473
(Q193197,P1376,c(Q20667921))
action filter_type
action find
entity Q193197
relation P1376
type Q20667921
[ANSWER] has Haroué has its center of administration
['Q193197', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q193197 property:P1376 ?r }
canton of Haroué
Canton of Haroué has Haroué has its center of administration
canton of Haroué
action filter_type
action find
entity Haroué
relation capital of
type type of french administrative division
['Haroué', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Haroué property:capital_of ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1725473 Q193197
P1376
Q20667921
USER
Is Haroué the county seat for that one ?
(Q193197,P1376,Q1725473)
action is_in
entity Q1725473
action find
entity Q193197
relation P1376
['Q193197', 'P1376', 'Q1725473']
ASK WHERE { resource:Q193197 property:P1376 resource:Q1725473 }
canton of Haroué Haroué
action is_in
entity canton of Haroué
action find
entity Haroué
relation capital of
['Haroué', 'capital of', 'canton of Haroué']
ASK WHERE { resource:Haroué property:capital_of resource:canton_of_Haroué }
[]
type of french administrative division
SYSTEM
YES
(Q193197,P1376,Q1725473)
action is_in
entity Q1725473
action find
entity Q193197
relation P1376
[ANSWER]
['Q193197', 'P1376', 'Q1725473']
ASK WHERE { resource:Q193197 property:P1376 resource:Q1725473 }
Yes
action is_in
entity canton of Haroué
action find
entity Haroué
relation capital of
['Haroué', 'capital of', 'canton of Haroué']
ASK WHERE { resource:Haroué property:capital_of resource:canton_of_Haroué }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26516281 Q228782
P17
Q15617994
USER
Which administrative territories are Ceintrey or 6, Priestland Place present in ?
OR((Q228782,P17,c(Q15617994)), (Q26516281,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q228782
relation P17
action find
entity Q26516281
relation P17
type Q15617994
{'OR': [['Q228782', 'P17', {'concept': 'Q15617994'}], ['Q26516281', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { ?g property:P17 ?q . VALUES ( ?g ) { ( resource:Q228782 ) ( resource:Q26516281 ) } } }
6, Priestland Place Ceintrey
action filter_type
action union
action find
entity Ceintrey
relation country
action find
entity 6, Priestland Place
relation country
type designation for an administrative territorial entity
{'OR': [['Ceintrey', 'country', {'concept': 'designation for an administrative territorial entity'}], ['6, Priestland Place', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?g property:country ?q . VALUES ( ?g ) { ( resource:Ceintrey ) ( resource:6,_Priestland_Place ) } } }
[]
designation for an administrative territorial entity
Q142 Q145
SYSTEM
France, United Kingdom
Q142 Q145
OR((Q228782,P17,c(Q15617994)), (Q26516281,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q228782
relation P17
action find
entity Q26516281
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q228782', 'P17', {'concept': 'Q15617994'}], ['Q26516281', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { ?g property:P17 ?q . VALUES ( ?g ) { ( resource:Q228782 ) ( resource:Q26516281 ) } } }
France United Kingdom
Which administrative territories are Ceintrey or 6, Priestland Place present in
France United Kingdom
action filter_type
action union
action find
entity Ceintrey
relation country
action find
entity 6, Priestland Place
relation country
type designation for an administrative territorial entity
{'OR': [['Ceintrey', 'country', {'concept': 'designation for an administrative territorial entity'}], ['6, Priestland Place', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?g property:country ?q . VALUES ( ?g ) { ( resource:Ceintrey ) ( resource:6,_Priestland_Place ) } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q7725634
USER
How many administrative territories did lesser number of collectables and literary works originate than that administrative territory ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity collectable literary work
Comparative|Count over More/Less|Mult. entity type|Clarification
Q142
SYSTEM
Did you mean France ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean France ?
France
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
166
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
166
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with atmost 83 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 83
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { FILTER ( ?o <= 83 ) . { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?o ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?a } }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 83
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { FILTER ( ?o <= 83 ) . { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?o ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 83
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { FILTER ( ?o <= 83 ) . { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?o ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?a } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 83
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { FILTER ( ?o <= 83 ) . { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?o ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q959128
Q502895
USER
And how about María Irene Fornés?
(Q959128,P172,c(Q502895))
action count
action filter_type
action find
entity Q959128
relation P172
type Q502895
['Q959128', 'P172', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q959128 property:P172 ?j . ?j rdf:type ontology:Q502895 }
María Irene Fornés
action count
action filter_type
action find
entity María Irene Fornés
relation ethnic group
type common name
['María Irene Fornés', 'ethnic group', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:María_Irene_Fornés property:ethnic_group ?j . ?j rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q959128,P172,c(Q502895))
action count
action filter_type
action find
entity Q959128
relation P172
type Q502895
[ANSWER]
['Q959128', 'P172', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q959128 property:P172 ?j . ?j rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity María Irene Fornés
relation ethnic group
type common name
['María Irene Fornés', 'ethnic group', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:María_Irene_Fornés property:ethnic_group ?j . ?j rdf:type ontology:common_name }
[]