Simple Question (Direct)
Simple Question
Q705185
P47
Q20667921
USER
Which french administrative divisions are adjacent to Arsure-Arsurette ?
(Q705185,P47,c(Q20667921))
action filter_type
action find
entity Q705185
relation P47
type Q20667921
['Q705185', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q705185 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Arsure-Arsurette
action filter_type
action find
entity Arsure-Arsurette
relation shares border with
type type of french administrative division
['Arsure-Arsurette', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Arsure-Arsurette property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q321646 Q288888 Q288630
SYSTEM
Gillois, Fraroz, Foncine-le-Haut
Q818457 Q321646 Q203381 Q288888 Q288630 Q818436 Q845587
(Q705185,P47,c(Q20667921))
action filter_type
action find
entity Q705185
relation P47
type Q20667921
[ANSWERS] are adjacent to Arsure-Arsurette
['Q705185', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q705185 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Billecul Gillois Châtelblanc Fraroz Foncine-le-Haut Bief-des-Maisons Chaux-Neuve
Gillois, Fraroz and Foncine-le-Haut are adjacent to Arsure-Arsurette
Gillois Fraroz Foncine-le-Haut
action filter_type
action find
entity Arsure-Arsurette
relation shares border with
type type of french administrative division
['Arsure-Arsurette', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Arsure-Arsurette property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q321646
P17
Q15617994
USER
Which administrative territory is that french administrative division situated in ?
(Q321646,P17,c(Q15617994))
action filter_type
action find
entity Q321646
relation P17
type Q15617994
['Q321646', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q321646 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Gillois
action filter_type
action find
entity Gillois
relation country
type designation for an administrative territorial entity
['Gillois', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Gillois property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q288888
SYSTEM
Did you mean Fraroz ?
Q321646 Q288888 Q288630
(Q321646,P17,c(Q15617994)) (Q288888,P17,c(Q15617994)) (Q288630,P17,c(Q15617994))
[ANSWER]
['Q321646', 'P17', {'concept': 'Q15617994'}] ['Q288888', 'P17', {'concept': 'Q15617994'}] ['Q288630', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q321646 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Gillois Fraroz Foncine-le-Haut
Did you mean Fraroz ?
Fraroz
['Gillois', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Fraroz', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Foncine-le-Haut', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Gillois property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Gillois. Could you tell me the answer for that?
(Q321646,P17,c(Q15617994))
Q321646
['Q321646', 'P17', {'concept': 'Q15617994'}]
['Gillois', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q321646,P17,c(Q15617994))
action filter_type
action find
entity Q321646
relation P17
type Q15617994
That french administrative division is situated in [ANSWER]
['Q321646', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q321646 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
France
That french administrative division is situated in France
France
action filter_type
action find
entity Gillois
relation country
type designation for an administrative territorial entity
['Gillois', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Gillois property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q408 Q40
P530
Q1048835
USER
Does that administrative territory have diplomatic associations with Australia and Austria ?
(Q142,P530,Q408) (Q142,P530,Q40)
action is_in
entity Q142
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q40
relation P530
['Q142', 'P530', 'Q408'] ['Q142', 'P530', 'Q40']
ASK WHERE { resource:Q142 property:P530 resource:Q408 . resource:Q142 property:P530 resource:Q40 }
France Australia Austria
action is_in
entity France
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Austria
relation diplomatic relation
['France', 'diplomatic relation', 'Australia'] ['France', 'diplomatic relation', 'Austria']
ASK WHERE { resource:France property:diplomatic_relation resource:Australia . resource:France property:diplomatic_relation resource:Austria }
[]
political territorial entity
SYSTEM
YES
(Q142,P530,Q408) (Q142,P530,Q40)
action is_in
entity Q142
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q40
relation P530
[ANSWER]
['Q142', 'P530', 'Q408'] ['Q142', 'P530', 'Q40']
ASK WHERE { resource:Q142 property:P530 resource:Q408 . resource:Q142 property:P530 resource:Q40 }
Yes
action is_in
entity France
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Austria
relation diplomatic relation
['France', 'diplomatic relation', 'Australia'] ['France', 'diplomatic relation', 'Austria']
ASK WHERE { resource:France property:diplomatic_relation resource:Australia . resource:France property:diplomatic_relation resource:Austria }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with atmost 47 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 47
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?t ) WHERE { ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?d property:P530 ?p } GROUP BY ?p } . FILTER ( ?t <= 47 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 47
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?t ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?p } GROUP BY ?p } . FILTER ( ?t <= 47 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q230 Q159
SYSTEM
United States of America, Georgia, Russia
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 47
[ANSWERS] have diplomatic relationships with atmost 47 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?t ) WHERE { ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?d property:P530 ?p } GROUP BY ?p } . FILTER ( ?t <= 47 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau 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 Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
United States of America, Georgia and Russia have diplomatic relationships with atmost 47 administrative territories
United States of America Georgia Russia
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 47
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?t ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?p } GROUP BY ?p } . FILTER ( ?t <= 47 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2088357 Q2342494
USER
How many administrative territories are the countries of origin of approximately the same number of musical ensembles and collectables as that administrative territory ?
(c(Q2088357)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?i property:P495 ?y . VALUES ( ?i ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?i property:country_of_origin ?y . VALUES ( ?i ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
designation for an administrative territorial entity musical ensemble collectable
Comparative|Count over More/Less|Mult. entity type|Clarification
Q159
SYSTEM
Did you mean Russia ?
(c(Q2088357)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?i property:P495 ?y . VALUES ( ?i ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Did you mean Russia ?
Russia
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?i property:country_of_origin ?y . VALUES ( ?i ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Georgia. Could you tell me the answer for that?
(c(Q2088357)|c(Q2342494),P495,c(Q15617994))
Q230
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 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(Q2088357)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France 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
167
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], '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:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1476
P159
Q20667921 Q7210356 Q895526
USER
Which french administrative divisions are the HQ of greater number of political organizations or authority organs than Le Mans ?
(c(Q7210356)|c(Q895526),P159,c(Q20667921))
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
action count
action filter_multi_types
action find_reverse
entity Q1476
relation P159
type Q7210356
type Q895526
[[{'concept': 'Q7210356'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { VALUES ( ?g ) { ( ontology:Q7210356 ) ( ontology:Q895526 ) } . ?r rdf:type ?g } GROUP BY ?o } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:P159 resource:Q1476 . { { ?w rdf:type ontology:Q7210356 } UNION { ?w rdf:type ontology:Q895526 } } } } }
Le Mans
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
action count
action filter_multi_types
action find_reverse
entity Le Mans
relation headquarters location
type political organization
type authority organ
[[{'concept': 'political organization'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { VALUES ( ?g ) { ( ontology:political_organization ) ( ontology:authority_organ ) } . ?r rdf:type ?g } GROUP BY ?o } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:headquarters_location resource:Le_Mans . { { ?w rdf:type ontology:political_organization } UNION { ?w rdf:type ontology:authority_organ } } } } }
[]
type of french administrative division political organization authority organ
Q30974 Q132671 Q134674
SYSTEM
Rouen, Pau, Bayonne
Q207605 Q9733 Q659327 Q134674 Q132671 Q476687 Q203529 Q172455 Q174019 Q225451 Q1069988 Q193370 Q71724 Q694800 Q189715 Q30974 Q81621 Q958857 Q189153 Q272906 Q947069 Q1022934 Q48958 Q120161 Q319933 Q44401 Q14112
(c(Q7210356)|c(Q895526),P159,c(Q20667921))
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
action count
action filter_multi_types
action find_reverse
entity Q1476
relation P159
type Q7210356
type Q895526
[ANSWERS] are the HQ of greater number of political organizations or authority organs than Le Mans
[[{'concept': 'Q7210356'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { VALUES ( ?g ) { ( ontology:Q7210356 ) ( ontology:Q895526 ) } . ?r rdf:type ?g } GROUP BY ?o } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:P159 resource:Q1476 . { { ?w rdf:type ontology:Q7210356 } UNION { ?w rdf:type ontology:Q895526 } } } } }
Noisy-le-Grand Nouméa Chens-sur-Léman Bayonne Pau Trégueux Lons-le-Saunier Boulogne-Billancourt Béziers Villeneuve-la-Garenne Écaquelon Montreuil Lorient Ugine Courbevoie Rouen Fort-de-France Roumazières-Loubert Saint-Cloud Le Bourget Le Lamentin Faaa Neuilly-sur-Seine Saint-Florent-le-Vieil Yerres Cayenne Corsica
Rouen, Pau and Bayonne are the HQ of greater number of political organizations or authority organs than Le Mans
Rouen Pau Bayonne
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
action count
action filter_multi_types
action find_reverse
entity Le Mans
relation headquarters location
type political organization
type authority organ
[[{'concept': 'political organization'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { VALUES ( ?g ) { ( ontology:political_organization ) ( ontology:authority_organ ) } . ?r rdf:type ?g } GROUP BY ?o } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:headquarters_location resource:Le_Mans . { { ?w rdf:type ontology:political_organization } UNION { ?w rdf:type ontology:authority_organ } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1416478
P159
Q20667921 Q7210356 Q895526
USER
And also tell me about Incheville?
(c(Q7210356)|c(Q895526),P159,c(Q20667921))
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
action count
action filter_multi_types
action find_reverse
entity Q1416478
relation P159
type Q7210356
type Q895526
[[{'concept': 'Q7210356'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?z ) WHERE { { ?m property:P159 ?t . ?t rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q7210356 } UNION { ?t rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q895526 . ?m property:P159 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P159 resource:Q1416478 . { { ?d rdf:type ontology:Q7210356 } UNION { ?d rdf:type ontology:Q895526 } } } } . FILTER ( ?z > ?l ) }
Incheville
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
action count
action filter_multi_types
action find_reverse
entity Incheville
relation headquarters location
type political organization
type authority organ
[[{'concept': 'political organization'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?z ) WHERE { { ?m property:headquarters_location ?t . ?t rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:political_organization } UNION { ?t rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:authority_organ . ?m property:headquarters_location ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:headquarters_location resource:Incheville . { { ?d rdf:type ontology:political_organization } UNION { ?d rdf:type ontology:authority_organ } } } } . FILTER ( ?z > ?l ) }
[]
type of french administrative division political organization authority organ
Q30974 Q132671 Q134674
SYSTEM
Rouen, Pau, Bayonne
Q207605 Q9733 Q659327 Q134674 Q132671 Q476687 Q203529 Q172455 Q174019 Q225451 Q1069988 Q193370 Q71724 Q694800 Q189715 Q30974 Q81621 Q958857 Q189153 Q272906 Q947069 Q1022934 Q48958 Q120161 Q319933 Q44401 Q14112
(c(Q7210356)|c(Q895526),P159,c(Q20667921))
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
action count
action filter_multi_types
action find_reverse
entity Q1416478
relation P159
type Q7210356
type Q895526
[ANSWERS]
[[{'concept': 'Q7210356'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?z ) WHERE { { ?m property:P159 ?t . ?t rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q7210356 } UNION { ?t rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q895526 . ?m property:P159 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P159 resource:Q1416478 . { { ?d rdf:type ontology:Q7210356 } UNION { ?d rdf:type ontology:Q895526 } } } } . FILTER ( ?z > ?l ) }
Noisy-le-Grand Nouméa Chens-sur-Léman Bayonne Pau Trégueux Lons-le-Saunier Boulogne-Billancourt Béziers Villeneuve-la-Garenne Écaquelon Montreuil Lorient Ugine Courbevoie Rouen Fort-de-France Roumazières-Loubert Saint-Cloud Le Bourget Le Lamentin Faaa Neuilly-sur-Seine Saint-Florent-le-Vieil Yerres Cayenne Corsica
Rouen Pau Bayonne
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
action count
action filter_multi_types
action find_reverse
entity Incheville
relation headquarters location
type political organization
type authority organ
[[{'concept': 'political organization'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?z ) WHERE { { ?m property:headquarters_location ?t . ?t rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:political_organization } UNION { ?t rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:authority_organ . ?m property:headquarters_location ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:headquarters_location resource:Incheville . { { ?d rdf:type ontology:political_organization } UNION { ?d rdf:type ontology:authority_organ } } } } . FILTER ( ?z > ?l ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1071
Q20667921 Q2235308 Q185217
USER
How many french administrative divisions are the final place of assembly of more number of ship types and dairy products than that french administrative division ?
(c(Q2235308)|c(Q185217),P1071,c(Q20667921))
[[{'concept': 'Q2235308'}, {'concept': 'Q185217'}], 'P1071', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1071 ?y } UNION { ?x property:P1071 ?y } } . ?z rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q20667921 . ?x rdf:type ontology:Q185217 }
[[{'concept': 'ship type'}, {'concept': 'dairy product'}], 'location of final assembly', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:location_of_final_assembly ?y } UNION { ?x property:location_of_final_assembly ?y } } . ?z rdf:type ontology:ship_type . ?y rdf:type ontology:type_of_french_administrative_division . ?x rdf:type ontology:dairy_product }
[]
type of french administrative division ship type dairy product
Comparative|Count over More/Less|Mult. entity type|Clarification
Q30974
SYSTEM
Did you mean Rouen ?
(c(Q2235308)|c(Q185217),P1071,c(Q20667921))
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q185217'}], 'P1071', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1071 ?y } UNION { ?x property:P1071 ?y } } . ?z rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q20667921 . ?x rdf:type ontology:Q185217 }
Did you mean Rouen ?
Rouen
[[{'concept': 'ship type'}, {'concept': 'dairy product'}], 'location of final assembly', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:location_of_final_assembly ?y } UNION { ?x property:location_of_final_assembly ?y } } . ?z rdf:type ontology:ship_type . ?y rdf:type ontology:type_of_french_administrative_division . ?x rdf:type ontology:dairy_product }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Bayonne. Could you tell me the answer for that?
(c(Q2235308)|c(Q185217),P1071,c(Q20667921))
Q134674
[[{'concept': 'Q2235308'}, {'concept': 'Q185217'}], 'P1071', {'concept': 'Q20667921'}]
[[{'concept': 'ship type'}, {'concept': 'dairy product'}], 'location of final assembly', {'concept': 'type of french administrative division'}]
[]
SYSTEM
3
Q208866 Q14112 Q12130
(c(Q2235308)|c(Q185217),P1071,c(Q20667921))
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q185217'}], 'P1071', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1071 ?y } UNION { ?x property:P1071 ?y } } . ?z rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q20667921 . ?x rdf:type ontology:Q185217 }
La Seyne-sur-Mer Corsica Brittany
3
[[{'concept': 'ship type'}, {'concept': 'dairy product'}], 'location of final assembly', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:location_of_final_assembly ?y } UNION { ?x property:location_of_final_assembly ?y } } . ?z rdf:type ontology:ship_type . ?y rdf:type ontology:type_of_french_administrative_division . ?x rdf:type ontology:dairy_product }
[]